:root {
  --bg: #eef4f1;
  --ink: #141d17;
  --muted: #5f6b62;
  --line: #d6e1de;
  --paper: #f7faf9;
  --white: #ffffff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --green: #0f7650;
  --green-dark: #0f3629;
  --green-deep: #08291f;
  --mint: #e6f3e7;
  --cream: #fffbf2;
  --blue: #235fbd;
  --orange: #d76144;
  --yellow: #e8b33f;
  --shadow: 0 20px 50px rgba(22, 34, 27, 0.12);
  --shadow-soft: 0 10px 24px rgba(22, 34, 27, 0.08);
  --shadow-tight: 0 8px 18px rgba(22, 34, 27, 0.08);
  --ring: 0 0 0 3px rgba(15, 118, 80, 0.18);
  --field: #0f6b45;
  --field-dark: #0d4f37;
  --theme-bg: #eef4f1;
  --theme-bg-start: #f7fbf9;
  --theme-bg-mid: #eef4f1;
  --theme-bg-end: #fbfbf7;
  --theme-grid: rgba(8, 122, 85, 0.045);
  --theme-glow: rgba(8, 122, 85, 0.16);
  --theme-accent-glow: rgba(237, 194, 78, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, var(--theme-glow), transparent 360px),
    radial-gradient(circle at 92% 12%, var(--theme-accent-glow), transparent 300px),
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 52%, var(--theme-bg-end) 100%);
  background-size: auto, auto, 74px 74px, auto;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 22px;
  animation: page-in 0.32s ease both;
}

.topbar,
.auth-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  padding-bottom: 4px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.brand-button:focus-visible {
  outline: 3px solid rgba(18, 56, 44, 0.28);
  outline-offset: 6px;
  border-radius: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
}

.brand span,
.muted,
.field span,
.stat-label,
.section-kicker,
.card-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.view-pill,
.status-pill,
.role-pill,
.team-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.view-pill {
  border: 1px solid var(--line);
  background: var(--paper);
}

.view-pill.warning {
  background: #fde9df;
  color: #9a351f;
}

.status-pill {
  background: #e8f3e8;
  color: var(--green-dark);
}

.status-pill.warning {
  background: #fde9df;
  color: #9a351f;
}

.role-pill,
.team-pill {
  background: #eef4ea;
  color: var(--green-dark);
}

.button-primary,
.button-secondary,
.button-danger,
.button-ghost,
.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}

.button-primary {
  background: var(--orange);
  color: white;
}

.button-primary:hover {
  background: #c95034;
  box-shadow: 0 10px 22px rgba(215, 97, 68, 0.22);
}

.button-secondary {
  background: var(--green-dark);
  color: white;
}

.button-secondary:hover {
  background: #0d2d23;
  box-shadow: 0 10px 22px rgba(18, 56, 44, 0.18);
}

.button-danger {
  background: #ffe1d8;
  color: #8e2c1a;
}

.button-ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.button-full {
  width: 100%;
}

.button-primary:disabled,
.button-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-ghost.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.auth-shell {
  min-height: calc(100vh - 44px);
  align-items: stretch;
  justify-content: center;
}

.auth-panel,
.auth-side,
.panel,
.profile-required,
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.panel,
.card,
.admin-match,
.callup-card {
  animation: card-in 0.28s ease both;
}

.auth-panel {
  width: min(510px, 100%);
  align-self: center;
  padding: 22px;
}

.loading-panel {
  display: grid;
  min-height: calc(100vh - 44px);
  place-items: center;
}

.auth-side {
  display: grid;
  flex: 1;
  min-height: 560px;
  align-self: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 56, 44, 0.22), rgba(18, 56, 44, 0.52)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 680'%3E%3Crect width='900' height='680' fill='%23156245'/%3E%3Cpath d='M450 0v680M0 340h900' stroke='%23ffffff' stroke-opacity='.35' stroke-width='10'/%3E%3Ccircle cx='450' cy='340' r='125' fill='none' stroke='%23ffffff' stroke-opacity='.35' stroke-width='10'/%3E%3Cpath d='M90 90h720v500H90z' fill='none' stroke='%23ffffff' stroke-opacity='.28' stroke-width='8'/%3E%3Ccircle cx='260' cy='240' r='42' fill='%23f5f3ec' opacity='.9'/%3E%3Ccircle cx='645' cy='430' r='42' fill='%23e8b33f' opacity='.9'/%3E%3Ccircle cx='503' cy='337' r='28' fill='%2318211b' opacity='.9'/%3E%3C/svg%3E");
  background-size: cover;
  color: white;
  padding: 34px;
}

.auth-side-content {
  align-self: end;
  max-width: 520px;
}

.auth-side h1,
.auth-panel h1,
.profile-required h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.auth-panel h1,
.profile-required h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.auth-side p,
.auth-panel p,
.profile-required p {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}

.auth-panel p,
.profile-required p {
  color: var(--muted);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #e9eef0;
  padding: 4px;
}

.segmented button {
  background: transparent;
}

.segmented button.active {
  background: var(--green-dark);
  color: white;
}

.form-grid,
.profile-grid,
.dashboard-grid,
.info-grid,
.stats-grid,
.standings-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
}

.field textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
}

.form-grid.two,
.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.helper {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-link-row {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.link-button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: underline;
}

.notice {
  margin: 14px 0 0;
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff1eb;
  padding: 12px;
  color: #78311f;
  font-size: 14px;
  font-weight: 800;
}

.notice.ok {
  border-color: var(--green);
  background: #edf6ed;
  color: var(--green-dark);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.sidebar,
.burger-menu-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 12px;
}

.burger-menu-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
  animation: menu-in 0.2s ease both;
  transform-origin: top right;
}

.admin-burger-menu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.menu-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  box-shadow: var(--shadow-soft);
}

.menu-toggle:hover,
.nav-button:hover {
  border-color: rgba(18, 98, 69, 0.32);
  background: #eef6ef;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
  text-align: left;
}

.nav-button.active {
  background: var(--green-dark);
  color: white;
  box-shadow: 0 10px 22px rgba(18, 56, 44, 0.16);
}

.nav-button small {
  color: inherit;
  opacity: 0.72;
}

.main-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.hero-panel > .notice {
  grid-column: 1 / -1;
  margin-top: 0;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel:hover,
.card:hover {
  border-color: rgba(18, 98, 69, 0.24);
  box-shadow: 0 20px 54px rgba(28, 38, 31, 0.13);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-role-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.match-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  border: 1px solid rgba(18, 98, 69, 0.18);
  border-radius: 999px;
  background: #e8f3e9;
  color: var(--green-dark);
  padding: 8px 12px;
  font-weight: 950;
}

.match-countdown span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.match-countdown strong {
  font-size: 14px;
}

.section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  text-transform: uppercase;
}

.panel h2,
.card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
}

.panel h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.profile-required {
  padding: 22px;
  min-width: 0;
}

.profile-required form {
  margin-top: 18px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric {
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: rgba(18, 98, 69, 0.14);
  content: "";
}

.admin-metric-button,
.dashboard-metric-button {
  display: grid;
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.admin-metric-button:hover,
.admin-metric-button.active,
.dashboard-metric-button:hover {
  border-color: rgba(18, 98, 69, 0.38);
  background: #eef6ef;
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.admin-metric-button:focus-visible,
.dashboard-metric-button:focus-visible {
  outline: 3px solid rgba(35, 95, 189, 0.35);
  outline-offset: 2px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.callup-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.callup-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.callup-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-weight: 850;
}

.callup-card-footer strong {
  color: var(--green);
}

.history-card {
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.history-card:hover,
.history-card:focus-visible {
  border-color: rgba(18, 56, 44, 0.45);
  box-shadow: 0 14px 32px rgba(18, 56, 44, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.history-back-button {
  margin-bottom: 16px;
}

.callup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.history-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.callup-filter {
  margin-top: 14px;
}

.history-type-filter {
  margin-top: 10px;
}

.history-filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
  text-align: left;
}

.history-filter-button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.history-filter-button strong {
  font-size: 18px;
}

.notification-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
  min-width: 0;
}

.notification-panel h3 {
  margin: 0;
  font-size: 22px;
}

.notification-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.profile-required .notification-panel {
  margin-top: 18px;
}

.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-info-grid {
  grid-template-columns: minmax(0, 1fr);
}

.card {
  padding: 16px;
  min-width: 0;
}

.card p,
.card li {
  color: #4f584f;
  line-height: 1.5;
}

.card ul,
.rules-list,
.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rules-list-editable li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.rule-line {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.rule-line strong {
  flex: 0 0 auto;
}

.rule-line span {
  min-width: 0;
}

.rule-actions {
  display: flex;
  gap: 8px;
  align-self: start;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rule-edit-button,
.rule-insert-button {
  align-self: start;
}

.rule-insert-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.rule-insert-button:hover {
  background: var(--green-deep);
  color: white;
}

.rules-admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.rules-signature {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  color: var(--ink);
}

.rules-signature-editable {
  gap: 10px;
}

.rules-signature-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
}

.rules-signature-row span {
  color: var(--muted);
  font-weight: 800;
}

.rules-signature-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rules-signature p {
  margin: 0;
}

.rules-list li,
.timeline li {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.stat-box strong {
  display: block;
  margin-top: 6px;
  font-size: 30px;
}

.table-wrap {
  max-width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #dfe7e5;
  padding: 12px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.standings-row-current td {
  background: #e8f3e8;
}

.standings-row-current td:first-child {
  border-left: 4px solid var(--green);
}

.standings-table-wrap {
  overflow: visible;
}

.standings-table {
  min-width: 0;
  table-layout: fixed;
}

.standings-table th,
.standings-table td {
  padding: 9px 4px;
  text-align: center;
  vertical-align: middle;
}

.standings-table th:nth-child(1),
.standings-table td:nth-child(1) {
  width: 5%;
}

.standings-table th:nth-child(2),
.standings-table td:nth-child(2) {
  width: 30%;
  text-align: left;
}

.standings-table th:nth-child(3),
.standings-table td:nth-child(3),
.standings-table th:nth-child(4),
.standings-table td:nth-child(4),
.standings-table th:nth-child(5),
.standings-table td:nth-child(5),
.standings-table th:nth-child(6),
.standings-table td:nth-child(6),
.standings-table th:nth-child(7),
.standings-table td:nth-child(7),
.standings-table th:nth-child(8),
.standings-table td:nth-child(8) {
  width: 6%;
}

.standings-table th:nth-child(9),
.standings-table td:nth-child(9) {
  width: 11%;
}

.standings-table th:nth-child(10),
.standings-table td:nth-child(10) {
  width: 12%;
}

.standings-table td:nth-child(2) strong {
  display: block;
  overflow-wrap: anywhere;
  line-height: 1.12;
}

.standings-name-compact {
  display: none;
}

.table-name-compact {
  display: none;
}

.cash-fund-panel {
  overflow: hidden;
}

.cash-actions {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 6px;
}

.cash-table-wrap {
  margin-top: 16px;
  overflow-x: visible;
}

.cash-table {
  min-width: 0;
  table-layout: fixed;
}

.cash-table th,
.cash-table td {
  vertical-align: middle;
}

.cash-table th:nth-child(1),
.cash-table td:nth-child(1) {
  width: 22%;
}

.cash-table th:nth-child(2),
.cash-table td:nth-child(2) {
  width: 14%;
  text-align: right;
}

.cash-table th:nth-child(4),
.cash-table td:nth-child(4) {
  width: 210px;
  text-align: right;
}

.cash-table td:nth-child(3) {
  overflow-wrap: anywhere;
}

.cash-amount-positive,
.cash-amount-negative {
  font-weight: 950;
}

.cash-amount-positive {
  color: var(--green-dark);
}

.cash-amount-negative {
  color: #a33a24;
}

.cash-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hall-of-fame-panel {
  overflow: hidden;
}

.honors-poster {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 8px;
  border: 1px solid rgba(247, 196, 67, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(247, 196, 67, 0.22), transparent 26%),
    radial-gradient(circle at 100% 12%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(145deg, #062b22 0%, #0c513c 52%, #041f19 100%);
  color: #fff;
  padding: 14px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 32, 24, 0.18);
}

.honors-poster-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(255, 255, 255, 0.12) 49.5%, rgba(255, 255, 255, 0.12) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 68%, rgba(255, 255, 255, 0.08) 68.4%, transparent 68.8%);
  pointer-events: none;
}

.honors-poster::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -95px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(247, 196, 67, 0.26);
  border-radius: 50%;
}

.honors-poster-header,
.honors-champion,
.honors-stage,
.honors-awards,
.honors-award {
  position: relative;
  z-index: 1;
}

.honors-poster-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.honors-poster-header span {
  color: #f7c443;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.honors-poster-header strong {
  color: #fff;
  font-size: clamp(18px, 4vw, 30px);
  line-height: 1;
  text-align: right;
}

.honors-champion {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 10px;
  color: var(--green-deep);
}

.honors-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f7c443;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.34), 0 14px 28px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.honors-seal img {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  opacity: 0.22;
}

.honors-seal span {
  position: relative;
  z-index: 1;
  color: #13221b;
  font-size: 42px;
  font-weight: 950;
}

.honors-champion-copy,
.honors-place-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.honors-champion-copy span,
.honors-place-copy span,
.honors-award span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.honors-champion-copy span {
  color: var(--green-dark);
}

.honors-champion-copy {
  align-content: center;
  width: min(100%, 420px);
  min-height: 124px;
  border: 1px solid rgba(247, 196, 67, 0.44);
  border-radius: 8px 8px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(180deg, #f7d76f 0%, #caa044 100%);
  padding: 18px;
  text-align: center;
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.2);
}

.honors-champion-copy strong {
  color: var(--green-deep);
  font-size: clamp(30px, 6vw, 52px);
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.honors-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 12px;
  min-height: 270px;
  padding: 18px 0 0;
}

.honors-place {
  display: grid;
  align-items: end;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 0 0;
  background: rgba(255, 255, 255, 0.12);
  padding: 14px 10px;
  text-align: center;
  backdrop-filter: blur(8px);
}

.honors-place-2 {
  min-height: 154px;
}

.honors-place-3 {
  min-height: 124px;
}

.honors-place-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-deep);
  font-size: 24px;
  font-weight: 950;
}

.honors-place-2 .honors-place-number {
  background: #dbe2e8;
}

.honors-place-3 .honors-place-number {
  background: #d18b58;
  color: #1b1b16;
}

.honors-place-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.honors-place-copy strong {
  color: #fff;
  font-size: clamp(17px, 3.4vw, 26px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.honors-awards {
  display: grid;
  gap: 10px;
}

.honors-award {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(247, 196, 67, 0.34);
  border-radius: 8px;
  background: rgba(247, 196, 67, 0.16);
  padding: 12px;
}

.honors-award span {
  color: #f7c443;
}

.honors-award strong {
  color: #fff;
  font-size: clamp(18px, 4vw, 28px);
  line-height: 1.05;
  text-align: right;
}

.podium-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}

.podium-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(18, 98, 69, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
    var(--paper);
  padding: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 38, 31, 0.08);
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: rgba(18, 98, 69, 0.22);
}

.podium-card h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.05;
}

.podium-1 {
  min-height: 180px;
  background:
    radial-gradient(circle at 80% 18%, rgba(247, 196, 67, 0.24), transparent 30%),
    linear-gradient(180deg, #fffdf4, #f8fafc);
}

.podium-1::before {
  background: linear-gradient(90deg, #f7c443, #ffe99a);
}

.podium-2::before {
  background: linear-gradient(90deg, #a8b0b8, #e2e8f0);
}

.podium-3::before {
  background: linear-gradient(90deg, #c7773f, #f6b27a);
}

.podium-medal {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.podium-1 .podium-medal {
  background: #f7c443;
  color: #1b1b16;
}

.podium-2 .podium-medal {
  background: #dbe2e8;
  color: #23302b;
}

.podium-3 .podium-medal {
  background: #d18b58;
  color: #1b1b16;
}

.current-winner {
  border-color: rgba(18, 98, 69, 0.42);
  box-shadow: 0 18px 46px rgba(18, 98, 69, 0.16);
}

.top-scorer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border: 1px solid rgba(247, 196, 67, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(247, 196, 67, 0.28), transparent 28%),
    linear-gradient(135deg, #fffdf4, #ffffff);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(28, 38, 31, 0.08);
}

.top-scorer-card h3,
.top-scorer-card p {
  margin: 0;
}

.top-scorer-card h3 {
  color: var(--green-deep);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.05;
}

.top-scorer-card p {
  color: var(--muted);
  font-weight: 850;
  margin-top: 6px;
}

.top-scorer-score {
  display: grid;
  place-items: center;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  background: #f7c443;
  color: #1b1b16;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.42);
}

.top-scorer-score strong {
  font-size: 42px;
  line-height: 0.9;
}

.top-scorer-score span {
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.top-scorer-empty {
  border-color: var(--line);
  background: #fff;
}

.hall-history-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hall-history-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.hall-history-item span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.hall-history-item small {
  color: var(--green-dark);
  font-weight: 900;
}

.hall-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.hall-edit-button,
.hall-delete-button {
  justify-self: start;
}

.hall-entry-dialog {
  max-width: 860px;
}

.hall-editor-fieldset {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.hall-editor-fieldset legend {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 6px;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-podium-preview {
  margin-bottom: 16px;
}

.result-score {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  min-height: 150px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 255, 255, 0.28) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(135deg, #176d4a, #12382c);
  color: white;
}

.result-score span {
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-score strong {
  font-size: clamp(42px, 9vw, 82px);
  line-height: 1;
}

.pending-result-score {
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(18, 56, 44, 0.16) 49.5% 50.5%, transparent 50.5%),
    #eef6ef;
  color: var(--green-dark);
}

.live-countdown-field {
  overflow: hidden;
  min-height: 210px;
  padding: 18px;
  color: #fff;
  isolation: isolate;
}

.live-countdown-field::before,
.live-countdown-field::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.live-countdown-field::before {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.live-countdown-field::after {
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.live-countdown-field > span,
.live-countdown-field > strong,
.field-countdown {
  position: relative;
  z-index: 1;
}

.live-countdown-field > span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 900;
  text-align: center;
}

.field-countdown {
  display: grid;
  gap: 6px;
  min-width: min(280px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(8, 34, 26, 0.72);
  box-shadow: 0 18px 42px rgba(4, 18, 14, 0.24);
  padding: 14px 18px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.field-countdown span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-countdown strong {
  color: #fff;
  font-size: clamp(30px, 8vw, 58px);
  line-height: 1;
}

.field-countdown-fallback {
  color: #fff;
}

.history-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.venue-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.venue-summary span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--text);
  font-weight: 850;
}

.venue-summary strong {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.user-callup-status-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.user-callup-status-toggle {
  cursor: pointer;
  list-style: none;
}

.user-callup-status-toggle::-webkit-details-marker {
  display: none;
}

.user-callup-status-toggle::after {
  align-self: center;
  border: 1px solid rgba(18, 98, 69, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--green-dark);
  content: "Apri";
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.user-callup-status-panel[open] .user-callup-status-toggle::after {
  content: "Chiudi";
}

.user-callup-status-panel h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.user-callup-status-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.user-callup-status-summary span,
.callup-status-chip {
  border-radius: 999px;
  background: #e8f3e9;
  color: var(--green-dark);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.user-callup-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.user-callup-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.user-callup-status-row > div {
  display: grid;
  min-width: 0;
}

.user-callup-status-row strong,
.user-callup-status-row span:not(.callup-status-chip) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-callup-status-row strong {
  color: var(--ink);
  font-weight: 950;
}

.user-callup-status-row span:not(.callup-status-chip) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.callup-status-chip.accepted {
  background: #e8f3e9;
  color: var(--green-dark);
}

.callup-status-chip.declined {
  background: #ffe5dc;
  color: #8b2d1d;
}

.callup-status-chip.pending {
  background: #fff2cf;
  color: #745112;
}

.history-teams {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-summary {
  display: grid;
  gap: 12px;
}

.profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #dfe7e5;
  padding: 10px 0;
}

.admin-placeholder {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.admin-notice {
  margin-bottom: 18px;
}

.admin-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-create-match-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(18, 98, 69, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)),
    linear-gradient(135deg, rgba(18, 98, 69, 0.18), rgba(232, 179, 63, 0.16));
  color: var(--ink);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.admin-create-match-card strong {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
}

.admin-create-match-card:hover {
  border-color: var(--green);
  background:
    linear-gradient(90deg, rgba(237, 246, 237, 0.95), rgba(255, 255, 255, 0.74)),
    linear-gradient(135deg, rgba(18, 98, 69, 0.22), rgba(232, 179, 63, 0.18));
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.championship-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 340px);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(18, 98, 69, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(18, 98, 69, 0.12), rgba(232, 179, 63, 0.1));
  padding: 12px;
  box-shadow: var(--shadow-tight);
}

.championship-switcher div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.championship-switcher span,
.championship-switcher em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.championship-switcher strong {
  overflow: hidden;
  color: var(--green-dark);
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.championship-switcher select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.championship-form {
  margin-top: 18px;
}

.championship-merge-form,
.player-championship-form {
  margin-top: 18px;
  border: 1px solid rgba(18, 98, 69, 0.16);
  border-radius: 8px;
  background: rgba(250, 252, 249, 0.82);
  padding: 14px;
}

.compact-section-title {
  margin-bottom: 12px;
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

.checkbox-row input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.checkbox-row span {
  display: grid;
  gap: 2px;
}

.checkbox-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.championship-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.championship-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
  box-shadow: var(--shadow-tight);
}

.championship-card.active {
  border-color: rgba(15, 118, 80, 0.45);
  background: #f4fbf4;
}

.championship-card h3 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.1;
}

.championship-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.championship-locked {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 98, 69, 0.2);
  border-radius: 8px;
  background: #eef7ef;
  color: var(--green-dark);
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-menu-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.admin-menu-button {
  display: grid;
  gap: 6px;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  box-shadow: var(--shadow);
}

.admin-menu-button span {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
}

.admin-menu-button small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-menu-button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.admin-menu-button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.admin-tab-content {
  display: grid;
  gap: 18px;
}

.admin-standalone-content {
  margin-top: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.admin-stack,
.admin-form,
.player-selector,
.score-form {
  display: grid;
  gap: 16px;
}

.admin-access-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-email-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.admin-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.admin-email-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-email-row span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-email-row em {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.admin-section-title,
.admin-match-head,
.admin-actions,
.team-player,
.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-section-title h3,
.admin-match h3,
.team-column h4 {
  margin: 0;
}

.map-location-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.map-location-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.map-search {
  position: relative;
}

.map-search-field input {
  min-height: 54px;
  padding-right: 16px;
}

.map-suggestions {
  position: absolute;
  z-index: 20;
  right: 0;
  left: 0;
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  padding: 8px;
}

.map-suggestions[hidden] {
  display: none;
}

.map-suggestion-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}

.map-suggestion-item:hover,
.map-suggestion-item:focus {
  background: #eef4ea;
}

.map-suggestion-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.maps-link.compact {
  margin-top: 6px;
}

.player-selector {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.player-row {
  border: 1px solid #dfe7e5;
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.player-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.player-row span {
  display: grid;
  flex: 1;
  min-width: 0;
}

.player-row small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-row select,
.inline-select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
}

.tournament-player-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
}

.tournament-player-row select {
  width: 100%;
}

.tournament-player-edit-card {
  grid-template-columns: minmax(150px, 1fr) minmax(180px, 260px);
}

.admin-match {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  padding: 16px;
}

.admin-match + .admin-match {
  margin-top: 16px;
}

.admin-match-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.admin-match-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.admin-match-toggle:hover h3 {
  color: var(--green);
}

.admin-match-toggle h3 {
  font-size: 24px;
}

.match-toggle-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.remove-match-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f0c3b8;
  border-radius: 999px;
  background: #fff5f1;
  color: #9a351f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.remove-match-button:hover {
  background: #ffe1d8;
}

.admin-match.expanded {
  border-color: rgba(18, 98, 69, 0.35);
  box-shadow: 0 14px 34px rgba(28, 38, 31, 0.08);
}

.admin-match-details {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.admin-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-counter-button {
  display: flex;
  aspect-ratio: 1 / 1;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
  color: var(--green-dark);
  font-weight: 900;
  text-align: left;
}

.admin-counter-button strong {
  color: var(--ink);
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1;
}

.admin-counter-button span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: clamp(10px, 1.4vw, 13px);
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-counter-button:hover {
  border-color: var(--green);
  background: #edf6ed;
}

.team-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.team-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.team-preview-head span {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #e7f4e7;
  color: var(--green-dark);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
  list-style: none;
}

.success-notice {
  background: #e7f4e7;
  border-left-color: var(--green);
  color: var(--green-dark);
}

.tournament-mini-standings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.tournament-mini-standings div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
}

.tournament-mini-standings span,
.tournament-mini-standings em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-mini-standings strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-row td {
  background: #e7f4e7;
}

.highlight-card {
  border-color: var(--green);
  background: #edf6ed;
}

.tournament-user-teams {
  margin-top: 16px;
}

.tournament-user-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.tournament-user-results-list {
  display: grid;
  gap: 10px;
}

.tournament-result-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.tournament-result-card-clickable {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tournament-result-card-clickable:hover,
.tournament-result-card-clickable:focus-visible {
  border-color: rgba(0, 102, 73, 0.35);
  box-shadow: 0 12px 28px rgba(18, 33, 27, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.tournament-result-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.tournament-result-top h5 {
  margin: 2px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

.tournament-result-top h5 span {
  color: var(--muted);
  font-size: 0.72em;
}

.tournament-result-score {
  display: grid;
  min-width: 86px;
  min-height: 64px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
}

.tournament-events {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tournament-events > span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tournament-events ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tournament-events li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px 10px;
}

.tournament-events li strong {
  overflow-wrap: anywhere;
}

.tournament-events li span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.tournament-events li em {
  border-radius: 999px;
  background: #e9f4e9;
  color: var(--green-dark);
  padding: 5px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.compact-empty {
  margin: 0;
}

.compact-table table {
  min-width: 760px;
}

.tournament-fixture-list {
  display: grid;
  gap: 12px;
}

.tournament-fixture-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 12px;
}

.tournament-fixture-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tournament-fixture-head h5 {
  margin: 2px 0 0;
  font-size: clamp(18px, 2vw, 24px);
}

.tournament-fixture-head h5 span {
  color: var(--muted);
  font-size: 0.72em;
}

.fixture-meta-grid,
.fixture-score-grid,
.tournament-fixture-venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tournament-fixture-venue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tournament-fixture-formation {
  display: grid;
  gap: 8px;
}

.tournament-fixture-formation .team-board {
  min-height: 160px;
}

.fixture-score-field {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.fixture-score-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fixture-score-field input,
.tournament-stat-row input,
.tournament-stat-row select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 10px;
}

.tournament-player-stats {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tournament-player-stats summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}

.tournament-stat-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.tournament-stat-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 92px minmax(130px, 0.8fr);
  gap: 8px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px;
}

.tournament-stat-row > div {
  display: grid;
  gap: 2px;
}

.tournament-stat-row strong {
  overflow-wrap: anywhere;
}

.tournament-stat-row > div span,
.tournament-stat-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tournament-stat-row label {
  display: grid;
  gap: 5px;
}

.match-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.match-editor-card,
.score-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 12px;
}

.compact-form-grid {
  gap: 10px;
}

.compact-submit {
  min-height: 44px;
}

.match-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.match-editor-head h4,
.team-column-head h4,
.score-form h4 {
  margin: 2px 0 0;
  font-size: 18px;
}

.editor-badge,
.team-column-head span {
  border-radius: 999px;
  background: #e9f4e9;
  color: var(--green-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.editor-helper {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-action {
  min-height: 36px;
  padding: 0 12px;
}

.team-name-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-field {
  gap: 4px;
}

.compact-field input,
.compact-field select {
  min-height: 36px;
  font-size: 15px;
}

.player-edit-list {
  display: grid;
  gap: 8px;
}

.player-edit-card {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(130px, 0.9fr) auto 36px;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 8px;
}

.player-edit-name {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.player-edit-name strong,
.team-player strong {
  overflow-wrap: anywhere;
}

.player-edit-name span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-select {
  width: 100%;
  min-width: 0;
}

.team-switch {
  display: grid;
  grid-template-columns: 36px repeat(2, minmax(78px, 1fr));
  gap: 6px;
}

.team-choice {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  font-weight: 900;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-choice.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.player-remove-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #f0c3b8;
  border-radius: 8px;
  background: #fff5f1;
  color: #9a351f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.player-remove-button:hover {
  background: #ffe1d8;
}

.add-match-player-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 10px;
}

.score-table {
  overflow: visible;
}

.score-table table {
  min-width: 0;
  table-layout: fixed;
}

.score-table th,
.score-table td {
  padding: 8px 6px;
}

.score-table th:nth-child(1),
.score-table td:nth-child(1) {
  width: 42%;
}

.score-table th:nth-child(2),
.score-table td:nth-child(2) {
  width: 22%;
}

.score-table th:nth-child(3),
.score-table td:nth-child(3) {
  width: 36%;
}

.score-table .score-input,
.score-table .inline-select {
  width: 100%;
  min-width: 0;
}

.score-table strong {
  overflow-wrap: anywhere;
}

.referee-report-card {
  background: #fffefa;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.players-table table {
  min-width: 0;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover strong {
  color: var(--green);
  text-decoration: underline;
}

.table-remove-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #f0c3b8;
  border-radius: 999px;
  background: #fff5f1;
  color: #9a351f;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.table-remove-button:hover {
  background: #ffe1d8;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(18, 33, 27, 0.45);
  padding: 18px;
}

.admin-dialog {
  display: grid;
  gap: 16px;
  width: min(560px, 100%);
  max-height: min(720px, 88vh);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 64px rgba(18, 33, 27, 0.24);
  padding: 20px;
}

.dialog-head,
.dialog-actions,
.dialog-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head {
  align-items: flex-start;
}

.dialog-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.dialog-list {
  display: grid;
  gap: 10px;
}

.dialog-player-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.dialog-player-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.dialog-player-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.dialog-player-actions .compact-action {
  min-height: 38px;
  padding: 9px 12px;
}

.dialog-info-grid {
  display: grid;
  gap: 10px;
}

.dialog-info-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.45fr) minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px 12px;
}

.dialog-info-row span,
.dialog-note span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.dialog-note {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
}

.dialog-note p {
  margin: 0;
}

.pitch-board-trigger {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.pitch-board-trigger:focus-visible {
  outline: 3px solid rgba(22, 101, 52, 0.32);
  outline-offset: 4px;
}

.pitch-board-trigger .pitch-board {
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pitch-board-trigger:hover .pitch-board {
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.22),
    0 14px 30px rgba(18, 33, 27, 0.14);
  transform: translateY(-1px);
}

.team-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pitch-board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 255, 255, 0.42) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--field), var(--field-dark));
  background-size: auto, 100% 38px, auto;
  padding: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.pitch-board::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}

.team-column {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.pitch-board .team-column {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.team-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.team-player {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: 0 6px 14px rgba(18, 33, 27, 0.06);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.team-player:hover {
  box-shadow: 0 10px 18px rgba(18, 33, 27, 0.12);
  transform: translateY(-1px);
}

.team-player span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.formation-dialog {
  width: min(980px, 100%);
}

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

.formation-team-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.formation-team-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.formation-team-head h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.formation-team-head span {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-weight: 950;
}

.formation-pitch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1.08fr 0.92fr 1fr 1fr 0.82fr;
  gap: 6px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(0deg, transparent 0 49.5%, rgba(255, 255, 255, 0.36) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, var(--field), var(--field-dark));
  background-size: auto, 42px 100%, auto;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.16);
  padding: 12px;
}

.formation-pitch::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 116px;
  height: 116px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  content: "";
  transform: translate(-50%, -50%);
}

.formation-pitch::after {
  position: absolute;
  z-index: 0;
  right: 18%;
  bottom: 12px;
  left: 18%;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
}

.formation-zone {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  pointer-events: none;
}

.formation-zone-keeper {
  border-bottom: 0;
}

.formation-zone-label {
  position: absolute;
  top: 4px;
  left: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.formation-zone-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 14px 4px 4px;
}

.formation-player {
  display: grid;
  gap: 2px;
  max-width: 160px;
  min-width: 112px;
  border: 1px solid rgba(18, 33, 27, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  padding: 7px 9px;
  text-align: center;
}

.formation-player-token {
  position: absolute;
  z-index: 2;
  cursor: grab;
  touch-action: none;
  transform: translate(-50%, -50%);
  transition:
    box-shadow 0.16s ease,
    transform 0.16s ease,
    border-color 0.16s ease;
  user-select: none;
}

.formation-player-token.manual {
  border-color: rgba(22, 101, 52, 0.42);
}

.formation-player-token:hover,
.formation-player-token:focus-visible {
  border-color: rgba(22, 101, 52, 0.5);
  outline: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%) scale(1.03);
}

.formation-player-token.dragging {
  z-index: 5;
  cursor: grabbing;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%) scale(1.06);
}

.formation-player-marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.formation-player-marker.manual {
  border-color: rgba(22, 101, 52, 0.42);
}

.formation-player strong,
.formation-player span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formation-player strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
}

.formation-player span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.formation-empty {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(220px, calc(100% - 36px));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-weight: 900;
  line-height: 1.35;
  padding: 14px;
  text-align: center;
  transform: translate(-50%, -50%);
}

.user-formation {
  margin-top: 20px;
}

.readonly-formation-team {
  min-width: 0;
}

.readonly-formation-pitch {
  min-height: 460px;
}

.score-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.score-input {
  width: 74px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  padding: 16px;
  font-weight: 800;
  line-height: 1.45;
}

/* 20260618 UI rework */
.app-shell {
  padding: clamp(16px, 2.4vw, 28px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: -6px 0 18px;
  border: 1px solid rgba(214, 225, 222, 0.78);
  border-radius: 8px;
  background: rgba(248, 250, 249, 0.86);
  box-shadow: var(--shadow-tight);
  padding: 10px;
  backdrop-filter: blur(16px);
}

.topbar .brand-button {
  border-radius: 8px;
  padding: 4px 10px 4px 4px;
}

.topbar .brand-button:hover {
  background: rgba(255, 255, 255, 0.72);
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(214, 225, 222, 0.88);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(20, 29, 23, 0.08);
}

.brand strong {
  color: var(--green-deep);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
}

.brand span {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}

.top-actions {
  gap: 8px;
}

.menu-toggle {
  width: 50px;
  height: 50px;
  border-color: rgba(214, 225, 222, 0.9);
  background: var(--surface-strong);
}

.menu-toggle:hover {
  box-shadow: var(--ring), var(--shadow-soft);
}

.menu-toggle span {
  width: 24px;
  height: 3px;
}

.burger-menu-panel {
  margin: -6px 0 18px auto;
  border-color: rgba(214, 225, 222, 0.86);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(22, 34, 27, 0.14);
  backdrop-filter: blur(14px);
}

.nav-button {
  justify-content: flex-start;
  min-height: 52px;
  padding: 0 16px;
}

.nav-button.active {
  background:
    linear-gradient(135deg, rgba(15, 118, 80, 0.18), transparent 72%),
    var(--green-dark);
}

.install-app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  border: 1px solid rgba(8, 122, 85, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 194, 78, 0.16), transparent 170px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 241, 0.95));
  padding: 14px;
  box-shadow: 0 18px 42px rgba(16, 32, 25, 0.1);
}

.install-app-card div {
  min-width: 0;
}

.install-app-card span,
.install-app-card small {
  display: block;
}

.install-app-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.install-app-card strong {
  display: block;
  margin-top: 3px;
  color: var(--green-deep);
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1.02;
}

.install-app-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

.install-app-card .button-secondary {
  min-height: 48px;
  white-space: nowrap;
}

.install-app-notice {
  margin-top: -6px;
  margin-bottom: 14px;
}

.button-primary,
.button-secondary,
.button-danger,
.button-ghost,
.segmented button,
.history-filter-button,
.admin-menu-button,
.admin-create-match-card,
.nav-button,
.field input,
.field select,
.field textarea,
.inline-select,
.score-input {
  border-radius: 8px;
}

.button-primary {
  background: linear-gradient(135deg, #da6b4e, #c85134);
}

.button-secondary {
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
}

.button-ghost {
  background: rgba(255, 255, 255, 0.86);
}

.field input,
.field select,
.field textarea,
.inline-select,
.score-input {
  border-color: rgba(214, 225, 222, 0.95);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-select:focus,
.score-input:focus {
  border-color: rgba(15, 118, 80, 0.42);
  box-shadow: var(--ring);
  outline: none;
}

.auth-panel,
.auth-side,
.panel,
.profile-required,
.card,
.admin-match,
.callup-card,
.metric,
.admin-dialog,
.team-column,
.match-editor-card,
.score-form,
.player-selector,
.map-location-panel,
.notification-panel,
.team-preview-card,
.stat-box {
  border-color: rgba(205, 219, 216, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.96));
  box-shadow: 0 16px 42px rgba(22, 34, 27, 0.08);
}

.panel,
.profile-required,
.card {
  padding: clamp(18px, 2.2vw, 24px);
}

.panel:hover,
.card:hover,
.admin-match:hover,
.callup-card:hover {
  border-color: rgba(15, 118, 80, 0.28);
  box-shadow: 0 22px 54px rgba(22, 34, 27, 0.12);
}

.section-kicker {
  color: var(--green);
  font-size: 12px;
  letter-spacing: 0.045em;
}

.panel h2,
.profile-required h1,
.auth-panel h1 {
  color: var(--green-deep);
}

.panel h2 {
  font-size: clamp(30px, 4.6vw, 56px);
  letter-spacing: 0;
}

.panel h2 + p,
.profile-required p,
.card p,
.muted {
  color: var(--muted);
}

.status-pill,
.role-pill,
.team-pill,
.editor-badge,
.team-column-head span,
.formation-team-head span {
  background: var(--mint);
  color: var(--green-dark);
}

.status-pill.warning,
.view-pill.warning,
.notice {
  background: #fff1eb;
}

.segmented,
.history-filter {
  gap: 6px;
  border-color: rgba(214, 225, 222, 0.88);
  background: rgba(232, 238, 236, 0.68);
}

.segmented button.active,
.history-filter-button.active {
  background:
    linear-gradient(135deg, rgba(15, 118, 80, 0.18), transparent 72%),
    var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 54, 41, 0.18);
}

.history-filter-button {
  min-height: 58px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-panel {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.dashboard-grid {
  gap: 12px;
}

.metric {
  min-height: 118px;
  background:
    linear-gradient(135deg, rgba(15, 118, 80, 0.05), transparent 60%),
    rgba(255, 255, 255, 0.92);
}

.metric::after {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 118, 80, 0.38), rgba(232, 179, 63, 0.26));
}

.metric strong {
  color: var(--green-deep);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 0.95;
}

.admin-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-grid .metric {
  aspect-ratio: 1 / 0.72;
  min-height: 118px;
}

.admin-home-actions {
  gap: 12px;
  margin-top: 16px;
}

.admin-create-match-card {
  position: relative;
  min-height: 86px;
  border-color: rgba(15, 118, 80, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 249, 0.86)),
    linear-gradient(135deg, rgba(15, 118, 80, 0.15), rgba(232, 179, 63, 0.12));
}

.admin-create-match-card strong {
  color: var(--green-deep);
}

.admin-match {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 253, 248, 0.96));
}

.admin-match-toggle h3 {
  color: var(--green-deep);
  font-size: clamp(23px, 2.4vw, 34px);
}

.admin-counters {
  gap: 10px;
}

.admin-counter-button {
  background:
    linear-gradient(135deg, rgba(15, 118, 80, 0.04), rgba(255, 255, 255, 0.92));
}

.admin-counter-button:hover {
  transform: translateY(-1px);
}

.callup-card,
.history-card {
  background:
    linear-gradient(135deg, rgba(15, 118, 80, 0.035), transparent 58%),
    var(--paper);
}

.callup-card-footer {
  border-top-color: rgba(214, 225, 222, 0.9);
}

.table-wrap {
  border-radius: 8px;
}

th {
  letter-spacing: 0.035em;
}

td strong,
.clickable-row strong {
  color: var(--green-deep);
}

.result-score {
  background:
    linear-gradient(90deg, transparent 0 49.5%, rgba(255, 255, 255, 0.3) 49.5% 50.5%, transparent 50.5%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 36%),
    linear-gradient(135deg, #14724f, var(--green-deep));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.dialog-backdrop {
  align-items: center;
  background: rgba(12, 24, 18, 0.52);
  backdrop-filter: blur(8px);
}

.admin-dialog {
  width: min(620px, 100%);
  box-shadow: 0 28px 72px rgba(12, 24, 18, 0.28);
}

.dialog-player-row,
.dialog-info-row,
.dialog-note,
.empty-state {
  background: rgba(248, 250, 249, 0.92);
}

.pitch-board,
.formation-pitch {
  background:
    linear-gradient(0deg, transparent 0 49.5%, rgba(255, 255, 255, 0.34) 49.5% 50.5%, transparent 50.5%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 28%),
    linear-gradient(135deg, #0e7a4e, #0b4a35);
}

.formation-player,
.pitch-board .team-column {
  background: rgba(255, 255, 255, 0.93);
}

.formation-player-token {
  min-width: 96px;
}

.remove-match-button,
.player-remove-button,
.table-remove-button,
.dialog-close {
  border-radius: 8px;
}

.notice {
  box-shadow: var(--shadow-tight);
}

.hidden {
  display: none !important;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1080px) {
  .auth-shell,
  .hero-panel,
  .layout,
  .info-grid,
  .admin-layout,
  .match-editor-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .auth-shell {
    display: grid;
  }

  .auth-side {
    min-height: 360px;
    order: -1;
  }

  .sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .panel-header,
  .notification-panel,
  .admin-match-head,
  .admin-match-toggle,
  .match-toggle-meta,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    align-items: center;
    flex-direction: row;
  }

  .topbar .brand {
    flex: 1 1 auto;
  }

  .topbar .brand > div {
    min-width: 0;
  }

  .topbar .brand > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .rules-list-editable li,
  .rules-signature-row {
    grid-template-columns: 1fr;
  }

  .rule-actions {
    display: flex;
    align-items: center;
    justify-content: stretch;
    width: 100%;
  }

  .rule-edit-button {
    width: 100%;
  }

  .rule-insert-button {
    flex: 0 0 54px;
    width: 54px;
    min-width: 54px;
    height: 54px;
  }

  .topbar .top-actions {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
  }

  .top-actions,
  .callup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-grid,
  .stats-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .metric {
    display: flex;
    aspect-ratio: 1 / 1;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
  }

  .admin-grid {
    gap: 8px;
  }

  .admin-home-actions,
  .team-preview-grid {
    grid-template-columns: 1fr;
  }

  .tournament-mini-standings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid .metric {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 10px;
  }

  .admin-grid .admin-metric-button {
    align-content: center;
  }

  .admin-grid .stat-label {
    font-size: clamp(11px, 3.1vw, 14px);
    line-height: 1.15;
  }

  .admin-grid .metric strong {
    margin-top: 6px;
    font-size: clamp(26px, 8vw, 42px);
  }

  .form-grid.two,
  .championship-switcher,
  .burger-menu-panel,
  .history-detail-grid,
  .user-callup-status-list,
  .formation-grid,
  .team-board,
  .team-name-editor,
  .admin-menu-tabs,
  .admin-access-form {
    grid-template-columns: 1fr;
  }

  .match-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .championship-card {
    align-items: stretch;
    flex-direction: column;
  }

  .championship-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .compact-action {
    width: 100%;
  }

  .player-edit-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .player-edit-name {
    grid-column: 1 / 2;
  }

  .player-remove-button {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .player-edit-card .compact-select,
  .player-edit-card .team-switch {
    grid-column: 1 / -1;
  }

  .team-switch {
    grid-template-columns: 36px repeat(2, minmax(0, 1fr));
  }

  .teams-editor .team-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formation-pitch {
    min-height: 520px;
  }

  .add-match-player-form {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }

  .result-score {
    flex-direction: column;
  }

  .podium-grid {
    grid-template-columns: 1fr;
  }

  .podium-card,
  .podium-1 {
    min-height: auto;
  }

  .podium-1 {
    order: -1;
  }

  .top-scorer-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-scorer-score {
    min-width: 82px;
    min-height: 82px;
  }

  .honors-poster {
    gap: 10px;
    padding: 12px;
  }

  .honors-poster-header {
    align-items: flex-start;
  }

  .honors-poster-header strong {
    max-width: 54%;
    font-size: 18px;
  }

  .honors-stage {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding-top: 8px;
  }

  .honors-champion {
    order: 1;
    gap: 8px;
  }

  .honors-seal {
    width: 60px;
    height: 60px;
  }

  .honors-seal span {
    font-size: 32px;
  }

  .honors-champion-copy {
    width: 100%;
    min-height: 100px;
    padding: 14px;
  }

  .honors-champion-copy strong {
    display: -webkit-box;
    font-size: clamp(28px, 9vw, 42px);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .honors-place-2 {
    order: 2;
  }

  .honors-place-3 {
    order: 3;
  }

  .honors-place {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 8px;
    min-height: auto;
    border-radius: 8px;
    padding: 10px;
    text-align: left;
  }

  .honors-place-number {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 18px;
  }

  .honors-place-copy span,
  .honors-award span {
    font-size: 10px;
  }

  .honors-place-copy strong {
    display: -webkit-box;
    font-size: clamp(15px, 4.8vw, 22px);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }

  .honors-award {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
  }

  .honors-award strong {
    text-align: left;
  }

  .auth-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .user-callup-status-summary {
    justify-content: flex-start;
  }

  .dialog-player-row {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-player-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .standings-table th,
  .standings-table td {
    padding: 7px 2px;
    font-size: 11px;
  }

  .standings-table th {
    font-size: 9px;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    width: 27%;
  }

  .standings-table td:nth-child(2) strong {
    font-size: 11px;
  }

  .standings-table th:nth-child(9),
  .standings-table td:nth-child(9) {
    width: 10%;
  }

  .standings-table th:nth-child(10),
  .standings-table td:nth-child(10) {
    width: 13%;
  }

  .report-actions {
    width: 100%;
    justify-content: stretch;
  }

  .report-actions .compact-action {
    flex: 1;
  }

  .cash-table th,
  .cash-table td {
    padding: 9px 5px;
    font-size: 12px;
  }

  .cash-table th {
    font-size: 10px;
  }

  .cash-table th:nth-child(1),
  .cash-table td:nth-child(1) {
    width: 30%;
  }

  .cash-table th:nth-child(2),
  .cash-table td:nth-child(2) {
    width: 18%;
  }

  .cash-table th:nth-child(4),
  .cash-table td:nth-child(4) {
    width: 112px;
  }

  .cash-table-actions {
    justify-content: flex-start;
  }

  .cash-table-actions .compact-action {
    width: 100%;
    padding-inline: 8px;
  }
}

@media (max-width: 460px) {
  .stats-grid,
  .profile-grid,
  .top-actions,
  .burger-menu-panel,
  .callup-actions,
  .score-line {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 19px;
  }

  .player-row {
    align-items: stretch;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tournament-player-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tournament-player-row small {
    grid-column: 1 / -1;
    padding-left: 30px;
  }

  .player-row select {
    grid-column: 1 / -1;
  }

  .tournament-player-edit-card {
    grid-template-columns: 1fr;
  }

  .formation-dialog {
    padding: 16px;
  }

  .formation-pitch {
    min-height: 500px;
    padding: 10px;
  }

  .formation-player {
    min-width: 96px;
    max-width: 130px;
  }

  .formation-zone-players {
    gap: 5px;
  }
}

@media (max-width: 1080px) {
  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid .metric {
    aspect-ratio: 1 / 0.82;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 12px;
  }

  .topbar {
    top: 8px;
    margin: -2px 0 14px;
    padding: 9px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 24px;
  }

  .brand span {
    max-width: min(58vw, 320px);
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 52px;
    height: 52px;
  }

  .burger-menu-panel {
    position: sticky;
    top: 80px;
    z-index: 45;
    margin: -4px 0 14px;
    padding: 10px;
  }

  .burger-menu-panel,
  .admin-burger-menu {
    grid-template-columns: 1fr;
  }

  .championship-switcher {
    grid-template-columns: 1fr;
  }

  .championship-card {
    align-items: stretch;
    flex-direction: column;
  }

  .championship-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .nav-button {
    min-height: 56px;
    font-size: 20px;
  }

  .panel,
  .profile-required,
  .card {
    padding: 18px;
  }

  .panel h2,
  .profile-required h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-panel {
    gap: 14px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .metric {
    min-height: 0;
    padding: 14px;
  }

  .dashboard-grid .metric strong {
    font-size: clamp(42px, 14vw, 62px);
  }

  .admin-home-actions {
    grid-template-columns: 1fr;
  }

  .admin-create-match-card {
    min-height: 76px;
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-grid .metric {
    min-height: 0;
    padding: 10px;
  }

  .admin-grid .stat-label {
    font-size: clamp(10px, 3vw, 13px);
  }

  .admin-grid .metric strong {
    font-size: clamp(32px, 10vw, 50px);
  }

  .admin-counter-button {
    padding: 8px;
  }

  .history-filter-button {
    min-height: 54px;
    padding: 10px 12px;
  }

  .match-toggle-meta {
    width: 100%;
  }

  .match-toggle-meta .status-pill {
    width: 100%;
    justify-content: center;
  }

  .admin-match-top {
    align-items: flex-start;
  }

  .dialog-backdrop {
    align-items: center;
    padding: 12px;
  }

  .admin-dialog {
    max-height: 84vh;
    padding: 16px;
  }
}

@media (max-width: 540px) {
  .admin-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-grid .metric {
    min-width: 92px;
  }

  .history-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-filter-button {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .score-table th,
  .score-table td {
    padding: 7px 4px;
  }

  .score-table th:nth-child(1),
  .score-table td:nth-child(1) {
    width: 39%;
  }

  .score-table th:nth-child(2),
  .score-table td:nth-child(2) {
    width: 20%;
  }

  .score-table th:nth-child(3),
  .score-table td:nth-child(3) {
    width: 41%;
  }

  .tournament-fixture-head,
  .fixture-meta-grid,
  .fixture-score-grid,
  .tournament-fixture-venue-grid {
    grid-template-columns: 1fr;
  }

  .tournament-fixture-head {
    display: grid;
  }

  .tournament-stat-row {
    grid-template-columns: minmax(0, 1fr) 74px minmax(100px, 0.9fr);
    gap: 6px;
    padding: 8px;
  }

  .tournament-result-top,
  .tournament-events li {
    grid-template-columns: 1fr;
  }

  .tournament-result-score {
    width: 100%;
  }
}

/* 20260826 visual refactor */
:root {
  --bg: #edf4f0;
  --ink: #102019;
  --muted: #637069;
  --line: #d7e4df;
  --paper: #f9fbfa;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --green: #087a55;
  --green-dark: #073d2e;
  --green-deep: #05281f;
  --mint: #e4f2e8;
  --cream: #fffaf0;
  --orange: #cd6349;
  --yellow: #edc24e;
  --shadow: 0 26px 70px rgba(16, 32, 25, 0.12);
  --shadow-soft: 0 14px 32px rgba(16, 32, 25, 0.08);
  --shadow-tight: 0 8px 22px rgba(16, 32, 25, 0.07);
  --ring: 0 0 0 4px rgba(8, 122, 85, 0.16);
}

body {
  background:
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-grid) 1px, transparent 1px),
    radial-gradient(circle at 12% 6%, var(--theme-glow), transparent 350px),
    radial-gradient(circle at 86% 18%, var(--theme-accent-glow), transparent 310px),
    linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 48%, var(--theme-bg-end) 100%);
  background-size: 82px 82px, 82px 82px, auto, auto, auto;
}

.app-shell {
  width: min(1180px, 100%);
  padding: clamp(16px, 2vw, 26px);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 110;
  min-height: 80px;
  margin: 0 0 16px;
  border: 1px solid rgba(202, 218, 212, 0.82);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.86));
  box-shadow: 0 20px 52px rgba(16, 32, 25, 0.1);
  padding: 10px 12px;
  backdrop-filter: blur(20px);
}

.brand-button {
  border-radius: 16px;
  padding: 4px 8px 4px 4px;
}

.brand-button:hover {
  background: rgba(8, 122, 85, 0.06);
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(202, 218, 212, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 25, 0.08);
}

.brand strong {
  color: var(--green-deep);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 0.95;
}

.brand span {
  max-width: min(54vw, 420px);
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-toggle {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(202, 218, 212, 0.92);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 32, 25, 0.08);
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(8, 122, 85, 0.42);
  box-shadow: var(--ring), 0 12px 28px rgba(16, 32, 25, 0.08);
}

.burger-menu-panel,
.admin-burger-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 104px);
  right: max(16px, calc((100vw - 1180px) / 2 + 18px));
  z-index: 130;
  display: grid;
  grid-template-columns: 1fr;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100dvh - 128px);
  gap: 6px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(202, 218, 212, 0.9);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.95));
  box-shadow: 0 28px 80px rgba(16, 32, 25, 0.2);
  padding: 10px;
  backdrop-filter: blur(18px);
}

.nav-button {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  text-align: left;
  box-shadow: none;
}

.nav-button span {
  font-size: 18px;
  font-weight: 900;
}

.nav-button:hover,
.nav-button:focus-visible {
  background: rgba(8, 122, 85, 0.08);
  box-shadow: none;
  outline: none;
}

.nav-button.active {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(7, 61, 46, 0.2);
}

.championship-switcher {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 300px);
  margin: 0 0 16px;
  border: 1px solid rgba(202, 218, 212, 0.8);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-tight);
  padding: 10px 12px;
}

.championship-switcher span {
  display: none;
}

.championship-switcher strong {
  color: var(--green-deep);
  font-size: 17px;
}

.championship-switcher em {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.championship-switcher select,
.field input,
.field select,
.field textarea,
.inline-select,
.score-input {
  border-radius: 14px;
  border-color: rgba(202, 218, 212, 0.95);
  background: rgba(255, 255, 255, 0.96);
}

.layout {
  margin-top: 16px;
}

.main-stack,
.callup-list,
.hall-history-list {
  gap: 14px;
}

.auth-panel,
.auth-side,
.panel,
.profile-required,
.card,
.admin-match,
.callup-card,
.team-column,
.match-editor-card,
.score-form,
.player-selector,
.map-location-panel,
.notification-panel,
.team-preview-card,
.stat-box,
.cash-fund-panel,
.hall-of-fame-panel {
  border: 1px solid rgba(202, 218, 212, 0.9);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 252, 0.95));
  box-shadow: var(--shadow-soft);
}

.panel,
.profile-required,
.card {
  padding: clamp(18px, 2.4vw, 30px);
}

.panel:hover,
.card:hover,
.admin-match:hover,
.callup-card:hover {
  border-color: rgba(8, 122, 85, 0.26);
  box-shadow: var(--shadow);
}

.panel-header {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel h2,
.profile-required h1,
.auth-panel h1 {
  color: var(--green-deep);
  font-size: clamp(32px, 4.6vw, 58px);
  letter-spacing: 0;
}

.panel h2 {
  line-height: 0.98;
}

.profile-role-line {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 900;
}

.status-pill,
.role-pill,
.team-pill,
.view-pill,
.championship-locked {
  border-radius: 999px;
}

.button-primary,
.button-secondary,
.button-danger,
.button-ghost,
.segmented button,
.history-filter-button,
.compact-action,
.admin-menu-button,
.admin-create-match-card,
.rule-edit-button,
.rule-insert-button,
.hall-edit-button,
.hall-delete-button {
  border-radius: 14px;
}

.button-primary,
.button-danger {
  background: linear-gradient(135deg, #d96549, #bd4f34);
}

.button-secondary,
.compact-action,
.rule-edit-button {
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
}

.hero-panel {
  grid-template-columns: minmax(0, 0.95fr) minmax(310px, 1.05fr);
  gap: 16px;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  display: grid;
  min-height: 126px;
  align-content: space-between;
  border: 1px solid rgba(202, 218, 212, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.055), rgba(255, 255, 255, 0) 62%),
    rgba(255, 255, 255, 0.9);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.metric::after {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(8, 122, 85, 0.6), rgba(237, 194, 78, 0.5));
}

.metric strong {
  color: var(--green-deep);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.9;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.16;
}

.admin-tab-content:empty {
  display: none;
}

.admin-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.admin-create-match-card {
  position: relative;
  justify-content: flex-start;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(202, 218, 212, 0.86);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.12), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 249, 0.9));
  padding: 22px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.admin-create-match-card::before,
.admin-create-match-card::after {
  display: none !important;
  content: none !important;
}

.admin-create-match-card:nth-child(2) {
  border-color: rgba(8, 122, 85, 0.38);
  background:
    linear-gradient(135deg, rgba(237, 194, 78, 0.2), transparent 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 249, 0.9));
}

.admin-create-match-card strong {
  color: var(--green-deep);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 0.95;
}

.admin-create-match-card:hover,
.admin-create-match-card:focus-visible {
  border-color: rgba(8, 122, 85, 0.5);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-grid .metric {
  aspect-ratio: 1 / 0.82;
  min-height: 120px;
}

.admin-metric-button.active {
  border-color: rgba(8, 122, 85, 0.55);
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.12), transparent 58%),
    rgba(245, 251, 247, 0.96);
}

.admin-counters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-counter-button {
  min-height: 112px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.055), transparent 58%),
    rgba(255, 255, 255, 0.94);
  padding: 14px;
}

.admin-counter-button strong {
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 0.9;
}

.admin-counter-button span {
  font-size: 12px;
  letter-spacing: 0.02em;
}

.callup-card,
.history-card,
.hall-history-item,
.championship-card,
.team-preview-card,
.formation-team-card,
.cash-table-wrap {
  border-radius: 18px;
}

.history-filter,
.segmented {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(231, 239, 235, 0.74);
  padding: 4px;
}

.history-filter-button,
.segmented button {
  min-height: 56px;
  border: 0;
  border-radius: 14px;
}

.history-filter-button.active,
.segmented button.active {
  background: var(--green-dark);
  color: #fff;
}

.pitch-board,
.formation-pitch {
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 34px rgba(7, 61, 46, 0.2);
}

.formation-player,
.formation-player-token {
  border-radius: 14px;
}

.dialog-backdrop {
  z-index: 180;
  align-items: center;
  padding: 18px;
}

.admin-dialog,
.formation-dialog {
  border-radius: 24px;
  box-shadow: 0 36px 120px rgba(16, 32, 25, 0.34);
}

.notice {
  border-radius: 16px;
  padding: 14px 16px;
}

@media (max-width: 1080px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px 14px 96px;
  }

  .topbar {
    top: 10px;
    min-height: 78px;
    margin-bottom: 14px;
    padding: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 30px;
  }

  .brand span {
    max-width: calc(100vw - 190px);
    font-size: 14px;
  }

  .topbar .top-actions {
    flex: 0 0 auto;
  }

  .menu-toggle {
    width: 58px;
    height: 58px;
  }

  .burger-menu-panel,
  .admin-burger-menu {
    top: calc(env(safe-area-inset-top, 0px) + 104px);
    right: 14px;
    width: min(360px, calc(100vw - 28px));
  }

  .nav-button {
    min-height: 58px;
  }

  .nav-button span {
    font-size: 22px;
  }

  .championship-switcher {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .panel,
  .profile-required,
  .card {
    padding: 18px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel h2,
  .profile-required h1 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid .metric {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 14px;
  }

  .dashboard-grid .metric strong {
    font-size: clamp(48px, 14vw, 64px);
  }

  .admin-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-create-match-card {
    aspect-ratio: 1 / 0.92;
    min-height: 0;
    padding: 16px;
  }

  .admin-create-match-card strong {
    font-size: clamp(24px, 8vw, 34px);
  }

  .admin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .admin-grid .metric {
    aspect-ratio: 1 / 1;
    min-width: 0;
    min-height: 0;
    padding: 10px;
  }

  .admin-grid .stat-label {
    font-size: clamp(10px, 3.1vw, 13px);
  }

  .admin-grid .metric strong {
    font-size: clamp(34px, 10vw, 50px);
  }

  .admin-counters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .admin-counter-button {
    min-height: 86px;
    padding: 9px;
  }

  .admin-counter-button strong {
    font-size: clamp(26px, 8vw, 40px);
  }

  .admin-counter-button span {
    font-size: clamp(9px, 2.8vw, 11px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 460px) {
  .app-shell {
    padding-inline: 12px;
  }

  .brand-mark,
  .menu-toggle {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .brand strong {
    font-size: 27px;
  }

  .brand span {
    max-width: calc(100vw - 176px);
    font-size: 13px;
  }

  .admin-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-create-match-card {
    padding: 14px;
  }

  .admin-create-match-card strong {
    font-size: clamp(21px, 7vw, 28px);
  }

  .admin-grid .metric {
    border-radius: 16px;
    padding: 9px;
  }

  .admin-grid .stat-label {
    font-size: 10px;
  }

  .admin-grid .metric strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .panel h2,
  .profile-required h1 {
    font-size: clamp(32px, 11vw, 46px);
  }
}

.auth-panel {
  background: #fff;
  box-shadow: 0 30px 90px rgba(8, 31, 24, 0.16);
}

.auth-panel .segmented,
.auth-panel .field input {
  background: #fff;
}

/* 20260827 UI lift: visual refinement without changing the app structure. */
body {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(245deg, rgba(237, 194, 78, 0.11), transparent 38%),
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 46%, var(--theme-bg-end) 100%);
  background-size: auto, auto, 82px 82px, 82px 82px, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
}

.topbar {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 248, 0.78)),
    linear-gradient(90deg, rgba(8, 122, 85, 0.08), rgba(237, 194, 78, 0.08));
  box-shadow:
    0 24px 70px rgba(16, 32, 25, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(8, 122, 85, 0.38), rgba(237, 194, 78, 0.42), transparent);
}

.brand-button,
.menu-toggle,
.nav-button,
.button-primary,
.button-secondary,
.button-danger,
.button-ghost,
.history-filter-button,
.segmented button,
.admin-create-match-card,
.metric,
.card,
.panel,
.admin-match,
.callup-card {
  -webkit-tap-highlight-color: transparent;
}

.brand-mark,
.menu-toggle {
  box-shadow:
    0 14px 30px rgba(16, 32, 25, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.menu-toggle span {
  transition:
    transform 0.2s ease,
    width 0.2s ease;
}

.menu-toggle:hover span:first-child {
  width: 20px;
  transform: translateX(-3px);
}

.menu-toggle:hover span:last-child {
  width: 20px;
  transform: translateX(3px);
}

.burger-menu-panel,
.admin-burger-menu {
  border-color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.92));
  box-shadow:
    0 32px 90px rgba(16, 32, 25, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-button {
  position: relative;
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.nav-button:hover::before,
.nav-button.active::before {
  background: rgba(237, 194, 78, 0.84);
}

.nav-button span {
  position: relative;
  padding-left: 6px;
}

.championship-switcher,
.auth-panel,
.auth-side,
.panel,
.profile-required,
.card,
.admin-match,
.callup-card,
.team-column,
.match-editor-card,
.score-form,
.player-selector,
.map-location-panel,
.notification-panel,
.team-preview-card,
.stat-box,
.cash-fund-panel,
.hall-of-fame-panel {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.9)),
    linear-gradient(135deg, rgba(8, 122, 85, 0.035), transparent 44%);
  box-shadow:
    0 22px 58px rgba(16, 32, 25, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel:hover,
.card:hover,
.admin-match:hover,
.callup-card:hover {
  box-shadow:
    0 28px 76px rgba(16, 32, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(8, 122, 85, 0.08);
  padding: 0 9px;
}

.panel h2,
.profile-required h1,
.auth-panel h1 {
  text-wrap: balance;
}

.field input,
.field select,
.field textarea,
.inline-select,
.score-input {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.inline-select:focus,
.score-input:focus {
  border-color: rgba(8, 122, 85, 0.55);
  box-shadow:
    var(--ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  outline: 0;
}

.button-primary,
.button-secondary,
.button-danger,
.compact-action,
.rule-edit-button,
.history-filter-button.active,
.segmented button.active {
  box-shadow:
    0 14px 30px rgba(16, 32, 25, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.button-primary:hover,
.button-secondary:hover,
.button-danger:hover,
.compact-action:hover,
.rule-edit-button:hover {
  transform: translateY(-1px);
}

.button-ghost {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 250, 0.9));
}

.status-pill,
.role-pill,
.team-pill,
.view-pill,
.match-countdown,
.championship-locked {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.metric {
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.08), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 250, 0.84));
}

.dashboard-grid .metric:nth-child(2n)::after,
.admin-grid .metric:nth-child(2n)::after {
  background: linear-gradient(90deg, rgba(35, 95, 189, 0.56), rgba(75, 171, 178, 0.46));
}

.dashboard-grid .metric:nth-child(3n)::after,
.admin-grid .metric:nth-child(3n)::after {
  background: linear-gradient(90deg, rgba(237, 194, 78, 0.7), rgba(215, 97, 68, 0.45));
}

.dashboard-grid .metric:nth-child(4n)::after,
.admin-grid .metric:nth-child(4n)::after {
  background: linear-gradient(90deg, rgba(118, 76, 151, 0.5), rgba(174, 73, 91, 0.42));
}

.table-wrap {
  border: 1px solid rgba(214, 225, 222, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 252, 250, 0.96);
  backdrop-filter: blur(10px);
}

td {
  background: rgba(255, 255, 255, 0.46);
}

tbody tr:hover td {
  background: rgba(232, 243, 233, 0.66);
}

.callup-card,
.history-card,
.hall-history-item,
.championship-card,
.team-preview-card,
.formation-team-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.callup-card:hover,
.history-card:hover,
.championship-card:hover {
  transform: translateY(-2px);
}

.notice {
  box-shadow:
    0 14px 34px rgba(215, 97, 68, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 22px;
  }

  .topbar::after {
    right: 14px;
    left: 14px;
  }

  .section-kicker {
    min-height: 22px;
    padding-inline: 8px;
  }

  .table-wrap {
    border-radius: 16px;
  }
}

.intro-splash {
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 15%, rgba(237, 194, 78, 0.25), transparent 280px),
    radial-gradient(circle at 12% 88%, rgba(8, 122, 85, 0.35), transparent 320px),
    linear-gradient(135deg, #061d17 0%, #0b3d2e 48%, #082820 100%);
}

.intro-splash__button {
  appearance: none;
  width: 100%;
  min-height: 100svh;
  border: 0;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(28px, env(safe-area-inset-top, 0px)) 18px max(32px, env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.intro-splash__button:focus-visible {
  outline: 0;
}

.intro-splash__button:focus-visible .intro-splash__cta {
  box-shadow: 0 0 0 4px rgba(237, 194, 78, 0.28), 0 18px 48px rgba(0, 0, 0, 0.28);
}

.intro-splash__content {
  width: min(420px, 90vw);
  display: grid;
  justify-items: center;
  gap: 22px;
}

.intro-splash__logo-stage {
  position: relative;
  min-height: 250px;
  width: 100%;
  display: grid;
  place-items: center;
}

.intro-splash__logo-stage::before,
.intro-splash__logo-stage::after,
.intro-splash__logo-glow {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.intro-splash__logo-stage::before {
  width: 260px;
  height: 260px;
  border: 1px solid rgba(237, 194, 78, 0.3);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.035),
    0 0 70px rgba(237, 194, 78, 0.18);
  animation: intro-logo-halo 4.4s ease-in-out infinite;
}

.intro-splash__logo-stage::after {
  width: 198px;
  height: 198px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: intro-logo-halo-inner 3.4s ease-in-out infinite;
}

.intro-splash__logo-glow {
  width: 210px;
  height: 210px;
  background: rgba(237, 194, 78, 0.22);
  filter: blur(34px);
  animation: intro-logo-glow 3.6s ease-in-out infinite;
}

.intro-splash__logo-orbit {
  position: relative;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.intro-splash__logo-orbit::before,
.intro-splash__logo-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  pointer-events: none;
}

.intro-splash__logo-orbit::before {
  border: 2px solid rgba(237, 194, 78, 0.48);
  border-top-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 12px rgba(255, 255, 255, 0.04),
    0 0 48px rgba(237, 194, 78, 0.28);
  animation: intro-logo-ring 5.8s linear infinite;
}

.intro-splash__logo-orbit::after {
  width: 24px;
  height: 24px;
  inset: -3px auto auto 50%;
  border: 2px solid #fff;
  background:
    radial-gradient(circle at 50% 50%, #111 0 19%, transparent 20%),
    radial-gradient(circle at 24% 24%, #111 0 10%, transparent 11%),
    radial-gradient(circle at 76% 24%, #111 0 10%, transparent 11%),
    radial-gradient(circle at 24% 76%, #111 0 10%, transparent 11%),
    radial-gradient(circle at 76% 76%, #111 0 10%, transparent 11%),
    linear-gradient(58deg, transparent 0 44%, rgba(17, 17, 17, 0.32) 45% 48%, transparent 49% 100%),
    linear-gradient(122deg, transparent 0 44%, rgba(17, 17, 17, 0.26) 45% 48%, transparent 49% 100%),
    #f7f7f2;
  box-shadow:
    inset -3px -4px 7px rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.28);
  transform-origin: 0 110px;
  animation: intro-logo-ball 3.4s linear infinite;
}

.intro-splash__logo {
  width: 154px;
  height: 154px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  background: #fff;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 42px rgba(237, 194, 78, 0.22);
  animation: intro-logo-float 2.8s ease-in-out infinite;
}

.intro-splash__cta {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #edc24e;
  color: #09251d;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  padding: 0 26px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
  animation: intro-cta 1.65s ease-in-out infinite;
}

@keyframes intro-logo-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  50% {
    transform: translateY(-8px) rotate(1deg) scale(1.04);
  }
}

@keyframes intro-logo-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes intro-logo-ball {
  to {
    transform: rotate(360deg);
  }
}

@keyframes intro-logo-halo {
  0%,
  100% {
    transform: scale(0.94);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes intro-logo-halo-inner {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes intro-logo-glow {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes intro-cta {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 560px) {
  .install-app-card {
    grid-template-columns: 1fr;
  }

  .install-app-card .button-secondary {
    width: 100%;
  }

  .intro-splash__button {
    padding-inline: 22px;
  }

  .intro-splash__content {
    gap: 20px;
  }

  .intro-splash__logo-stage {
    min-height: 220px;
  }

  .intro-splash__logo-stage::before {
    width: 222px;
    height: 222px;
  }

  .intro-splash__logo-stage::after {
    width: 170px;
    height: 170px;
  }

  .intro-splash__logo-glow {
    width: 176px;
    height: 176px;
  }

  .intro-splash__logo-orbit {
    width: 176px;
    height: 176px;
  }

  .intro-splash__logo-orbit::after {
    width: 22px;
    height: 22px;
    transform-origin: 0 92px;
  }

  .intro-splash__logo {
    width: 128px;
    height: 128px;
    border-radius: 34px;
  }

  .intro-splash__cta {
    width: min(330px, 86vw);
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash__logo-glow,
  .intro-splash__logo,
  .intro-splash__logo-stage::before,
  .intro-splash__logo-stage::after,
  .intro-splash__logo-orbit::before,
  .intro-splash__logo-orbit::after,
  .intro-splash__cta {
    animation: none;
  }
}

/* 20260827 visual boost + mobile table handling. */
body {
  background:
    radial-gradient(circle at 8% -8%, rgba(255, 255, 255, 0.9), transparent 320px),
    radial-gradient(circle at 92% 2%, var(--theme-accent-glow), transparent 340px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.66), transparent 34%),
    linear-gradient(90deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--theme-bg-start) 0%, var(--theme-bg-mid) 46%, var(--theme-bg-end) 100%);
  background-size: auto, auto, auto, 78px 78px, 78px 78px, auto;
}

.topbar,
.panel,
.card,
.admin-match,
.callup-card,
.metric,
.history-filter,
.segmented,
.championship-switcher,
.table-wrap {
  outline: 1px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.topbar,
.panel,
.card,
.admin-match,
.callup-card {
  position: relative;
  overflow: hidden;
}

.panel::before,
.card::before,
.admin-match::before,
.callup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(8, 122, 85, 0.7), rgba(237, 194, 78, 0.55), rgba(35, 95, 189, 0.38));
  opacity: 0.65;
  pointer-events: none;
}

.panel > *,
.card > *,
.admin-match > *,
.callup-card > * {
  position: relative;
}

.button-primary,
.button-secondary,
.compact-action,
.admin-menu-button,
.history-filter-button.active,
.segmented button.active {
  background-size: 160% 160%;
  transition:
    background-position 0.24s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.button-primary:hover,
.button-secondary:hover,
.compact-action:hover,
.admin-menu-button:hover,
.history-filter-button.active:hover,
.segmented button.active:hover {
  background-position: 100% 50%;
}

.status-pill,
.role-pill,
.team-pill,
.view-pill {
  border: 1px solid rgba(255, 255, 255, 0.62);
}

.admin-create-match-card {
  isolation: isolate;
}

.admin-create-match-card::before {
  display: block !important;
  content: "" !important;
  position: absolute;
  inset: auto 14px 14px auto;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(8, 122, 85, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 122, 85, 0.18) 1px, transparent 1px),
    rgba(255, 255, 255, 0.5);
  background-size: 15px 15px;
  opacity: 0.7;
  z-index: -1;
}

.metric {
  isolation: isolate;
}

.metric::before {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(8, 122, 85, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.table-wrap {
  overflow: auto;
  border-color: rgba(202, 218, 212, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 42px rgba(16, 32, 25, 0.07);
}

th {
  color: color-mix(in srgb, var(--green-deep) 70%, var(--muted));
}

td {
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .panel,
  .profile-required,
  .card,
  .admin-match,
  .callup-card {
    border-radius: 20px;
  }

  .panel h2,
  .profile-required h1,
  .auth-panel h1 {
    font-size: clamp(31px, 9vw, 46px);
    line-height: 1;
  }

  .topbar {
    box-shadow:
      0 18px 48px rgba(16, 32, 25, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .burger-menu-panel,
  .admin-burger-menu {
    border-radius: 22px;
    padding: 8px;
  }

  .nav-button {
    min-height: 54px;
    border-radius: 16px;
  }

  .nav-button span {
    font-size: 20px;
  }

  .history-filter,
  .segmented {
    gap: 5px;
    border-radius: 20px;
  }

  .history-filter-button,
  .segmented button {
    min-height: 52px;
    border-radius: 16px;
  }

  .table-wrap {
    position: relative;
    width: calc(100% + 8px);
    margin-right: -4px;
    margin-left: -4px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
      linear-gradient(90deg, rgba(8, 122, 85, 0.09), transparent 26%, transparent 74%, rgba(8, 122, 85, 0.09));
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(8, 122, 85, 0.42) rgba(231, 239, 235, 0.8);
    scrollbar-width: thin;
  }

  .table-wrap::-webkit-scrollbar {
    height: 7px;
  }

  .table-wrap::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(231, 239, 235, 0.9);
  }

  .table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(8, 122, 85, 0.42);
  }

  .table-wrap table {
    width: max-content;
    min-width: 620px;
    border-spacing: 0;
  }

  .table-wrap.compact-table table {
    min-width: 680px;
  }

  .table-wrap.players-table table {
    min-width: 620px;
  }

  .cash-table {
    min-width: 560px;
  }

  .score-table {
    overflow-x: auto;
  }

  .table-wrap.score-table table {
    min-width: 520px;
    table-layout: auto;
  }

  .standings-table-wrap {
    overflow-x: auto;
  }

  .standings-table-wrap .standings-table {
    width: max-content;
    min-width: 760px;
    table-layout: auto;
  }

  th,
  td {
    padding: 11px 10px;
    white-space: nowrap;
  }

  th {
    font-size: 10px;
  }

  .table-wrap:not(.standings-table-wrap) th:first-child,
  .table-wrap:not(.standings-table-wrap) td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 128px;
    max-width: 172px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 10px 0 20px -18px rgba(16, 32, 25, 0.38);
    white-space: normal;
  }

  .table-wrap:not(.standings-table-wrap) thead th:first-child {
    z-index: 4;
    background: rgba(248, 252, 250, 0.98);
  }

  .standings-table th:nth-child(1),
  .standings-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 42px;
    min-width: 42px;
    background: rgba(255, 255, 255, 0.98);
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    position: sticky;
    left: 42px;
    z-index: 3;
    width: 176px;
    min-width: 176px;
    max-width: 176px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 12px 0 22px -18px rgba(16, 32, 25, 0.42);
    white-space: normal;
  }

  .standings-table thead th:nth-child(1),
  .standings-table thead th:nth-child(2) {
    z-index: 5;
    background: rgba(248, 252, 250, 0.98);
  }

  .standings-table td:nth-child(2) strong {
    display: block;
    font-size: 13px;
    line-height: 1.15;
  }

  .cash-table th:first-child,
  .cash-table td:first-child {
    min-width: 118px;
  }

  .cash-table-actions {
    display: grid;
    gap: 6px;
  }

  .tournament-fixture-card {
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 250, 0.93));
    box-shadow: var(--shadow-tight);
  }

  .tournament-fixture-head {
    gap: 8px;
  }

  .fixture-meta-grid,
  .fixture-score-grid,
  .tournament-fixture-venue-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .table-wrap {
    width: calc(100% + 12px);
    margin-right: -6px;
    margin-left: -6px;
  }

  .table-wrap table {
    min-width: 590px;
  }

  .table-wrap.compact-table table {
    min-width: 650px;
  }

  .standings-table-wrap .standings-table {
    min-width: 720px;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    width: 158px;
    min-width: 158px;
    max-width: 158px;
  }
}

@media (max-width: 760px) {
  .standings-table-wrap {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow: hidden;
  }

  .standings-table-wrap .standings-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .standings-table th,
  .standings-table td {
    position: static;
    left: auto;
    z-index: auto;
    padding: 7px 2px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .standings-table th {
    font-size: 8px;
    letter-spacing: 0;
  }

  .standings-table td {
    font-size: 11px;
    font-weight: 800;
  }

  .standings-table td:nth-child(2) strong {
    font-size: 10px;
    line-height: 1.08;
  }

  .standings-name-full {
    display: none;
  }

  .standings-name-compact {
    display: block;
  }

  .standings-table th:nth-child(1),
  .standings-table td:nth-child(1) {
    width: 6%;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    width: 23%;
    text-align: left;
  }

  .standings-table th:nth-child(3),
  .standings-table td:nth-child(3),
  .standings-table th:nth-child(4),
  .standings-table td:nth-child(4),
  .standings-table th:nth-child(5),
  .standings-table td:nth-child(5),
  .standings-table th:nth-child(6),
  .standings-table td:nth-child(6),
  .standings-table th:nth-child(7),
  .standings-table td:nth-child(7) {
    width: 6%;
  }

  .standings-table th:nth-child(8),
  .standings-table td:nth-child(8),
  .standings-table th:nth-child(9),
  .standings-table td:nth-child(9),
  .standings-table th:nth-child(10),
  .standings-table td:nth-child(10) {
    width: 7%;
  }

  .standings-table th:nth-child(11),
  .standings-table td:nth-child(11) {
    width: 13%;
  }
}

@media (max-width: 460px) {
  .standings-table-wrap {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .standings-table th,
  .standings-table td {
    padding: 6px 1px;
  }

  .standings-table th {
    font-size: 7px;
  }

  .standings-table td {
    font-size: 10px;
  }

  .standings-table td:nth-child(2) strong {
    font-size: 9px;
  }
}

@media (max-width: 760px) {
  .table-wrap,
  .table-wrap.compact-table,
  .cash-table-wrap,
  .score-table,
  .standings-table-wrap {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .table-wrap table,
  .table-wrap.compact-table table,
  .table-wrap.score-table table,
  .cash-table,
  .standings-table-wrap .standings-table {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    table-layout: fixed !important;
  }

  .table-wrap th,
  .table-wrap td {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 7px 3px;
    overflow: hidden;
    vertical-align: middle;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
  }

  .table-wrap th {
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .table-wrap td {
    font-size: 10.5px;
    line-height: 1.1;
    font-weight: 800;
  }

  .table-wrap td strong {
    display: block;
    font-size: 10.5px;
    line-height: 1.08;
  }

  .table-name-full,
  .standings-name-full {
    display: none;
  }

  .table-name-compact,
  .standings-name-compact {
    display: block;
  }

  .table-wrap td:first-child,
  .table-wrap th:first-child {
    background: transparent;
    box-shadow: none;
  }

  .table-wrap.players-table th:nth-child(1),
  .table-wrap.players-table td:nth-child(1) {
    width: 38%;
  }

  .table-wrap.players-table th:nth-child(2),
  .table-wrap.players-table td:nth-child(2) {
    width: 22%;
  }

  .table-wrap.players-table th:nth-child(3),
  .table-wrap.players-table td:nth-child(3) {
    width: 28%;
  }

  .table-wrap.players-table th:nth-child(4),
  .table-wrap.players-table td:nth-child(4) {
    width: 12%;
    text-align: center;
  }

  .cash-table th:nth-child(1),
  .cash-table td:nth-child(1) {
    width: 25%;
  }

  .cash-table th:nth-child(2),
  .cash-table td:nth-child(2) {
    width: 15%;
    text-align: right;
  }

  .cash-table th:nth-child(3),
  .cash-table td:nth-child(3) {
    width: auto;
  }

  .cash-table th:nth-child(4),
  .cash-table td:nth-child(4) {
    width: 24%;
  }

  .cash-table-actions {
    display: grid;
    gap: 5px;
  }

  .cash-table-actions .compact-action {
    min-height: 32px;
    padding: 6px 7px;
    font-size: 10px;
  }

  .score-table th:nth-child(1),
  .score-table td:nth-child(1) {
    width: 40%;
  }

  .score-table th:nth-child(2),
  .score-table td:nth-child(2) {
    width: 18%;
  }

  .score-table th:nth-child(3),
  .score-table td:nth-child(3) {
    width: 42%;
  }

  .score-table .score-input,
  .score-table .inline-select {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 12px;
  }

  .ranking-table th:nth-child(1),
  .ranking-table td:nth-child(1) {
    width: 7%;
  }

  .ranking-table th:nth-child(2),
  .ranking-table td:nth-child(2) {
    width: 29%;
  }

  .ranking-table th:nth-child(3),
  .ranking-table td:nth-child(3) {
    width: 20%;
  }

  .ranking-table th:nth-child(n + 4),
  .ranking-table td:nth-child(n + 4) {
    width: 7.3%;
    text-align: center;
  }

  .tournament-user-table th:nth-child(1),
  .tournament-user-table td:nth-child(1),
  .compact-table:not(.players-table):not(.score-table) th:nth-child(1),
  .compact-table:not(.players-table):not(.score-table) td:nth-child(1) {
    width: 7%;
  }

  .tournament-user-table th:nth-child(2),
  .tournament-user-table td:nth-child(2),
  .compact-table:not(.players-table):not(.score-table) th:nth-child(2),
  .compact-table:not(.players-table):not(.score-table) td:nth-child(2) {
    width: 27%;
  }

  .standings-table th:nth-child(1),
  .standings-table td:nth-child(1) {
    width: 6%;
  }

  .standings-table th:nth-child(2),
  .standings-table td:nth-child(2) {
    width: 23%;
    text-align: left;
  }

  .standings-table th:nth-child(11),
  .standings-table td:nth-child(11) {
    width: 13%;
  }

  .table-remove-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

@media (max-width: 460px) {
  .table-wrap th,
  .table-wrap td {
    padding: 6px 2px;
  }

  .table-wrap th {
    font-size: 7px;
  }

  .table-wrap td,
  .table-wrap td strong {
    font-size: 9px;
  }

  .score-table .score-input,
  .score-table .inline-select {
    min-height: 34px;
    padding: 6px;
    font-size: 11px;
  }

  .cash-table-actions .compact-action {
    min-height: 30px;
    padding: 5px 6px;
    font-size: 9px;
  }
}

.home-dashboard-focus {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.home-dashboard-focus .panel {
  border-radius: 26px;
}

.home-fixture-focus {
  position: relative;
  min-height: 430px;
  align-content: space-between;
  border-color: rgba(8, 122, 85, 0.28);
  background:
    radial-gradient(circle at 90% 12%, rgba(237, 194, 78, 0.18), transparent 260px),
    radial-gradient(circle at 0% 0%, rgba(8, 122, 85, 0.18), transparent 320px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 249, 0.94));
}

.home-fixture-focus::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(8, 122, 85, 0.055);
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.home-fixture-focus > * {
  position: relative;
  z-index: 1;
}

.home-dashboard-focus .home-hero-copy h2 {
  max-width: 720px;
  font-size: clamp(44px, 6.3vw, 82px);
}

.home-dashboard-focus .home-next-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
  align-items: stretch;
  border: 0;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(6, 29, 22, 0.98), rgba(10, 76, 53, 0.96)),
    var(--green-deep);
  padding: clamp(20px, 3vw, 30px);
}

.home-dashboard-focus .home-next-card::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.home-dashboard-focus .home-next-card-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.home-dashboard-focus .home-next-card h3 {
  max-width: 720px;
  font-size: clamp(42px, 5.6vw, 78px);
}

.home-dashboard-focus .home-match-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: min(100%, 640px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
}

.home-dashboard-focus .home-match-teams span {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-focus .home-match-teams strong {
  align-self: center;
  padding: 0 8px;
}

.home-dashboard-focus .home-next-meta {
  grid-template-columns: 1fr;
  align-content: end;
}

.home-dashboard-focus .home-next-meta span {
  display: grid;
  min-height: 74px;
  align-content: center;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.085);
}

.home-dashboard-focus .home-next-card .callup-card-footer {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.home-player-card {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 252, 248, 0.94));
}

.home-player-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-stat-tile {
  display: grid;
  min-height: 108px;
  align-content: space-between;
  border: 1px solid rgba(202, 218, 212, 0.92);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.075), rgba(255, 255, 255, 0.88));
  color: var(--green-deep);
  padding: 14px;
  text-align: left;
}

button.home-stat-tile:hover,
button.home-stat-tile:focus-visible {
  border-color: rgba(8, 122, 85, 0.4);
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.14), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-tight);
  outline: none;
  transform: translateY(-1px);
}

.home-stat-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.home-stat-tile strong {
  overflow-wrap: anywhere;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 0.9;
}

.home-action-banner,
.home-ready-note {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(237, 194, 78, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(237, 194, 78, 0.2), rgba(255, 255, 255, 0.9));
  color: var(--green-deep);
  padding: 14px;
  text-align: left;
}

.home-action-banner:hover,
.home-action-banner:focus-visible {
  border-color: rgba(217, 101, 73, 0.42);
  box-shadow: var(--shadow-tight);
  outline: none;
}

.home-action-banner span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-weight: 950;
}

.home-action-banner strong,
.home-ready-note strong {
  font-size: 16px;
  line-height: 1.1;
}

.home-ready-note {
  display: grid;
  border-color: rgba(8, 122, 85, 0.14);
  background: rgba(230, 243, 231, 0.46);
}

.home-ready-note span {
  color: var(--muted);
  font-weight: 850;
}

.home-dashboard-focus .home-pending-panel {
  border-color: rgba(237, 194, 78, 0.26);
  background:
    linear-gradient(135deg, rgba(237, 194, 78, 0.1), rgba(255, 255, 255, 0) 48%),
    rgba(255, 255, 255, 0.95);
}

@media (max-width: 1080px) {
  .home-dashboard-focus {
    grid-template-columns: 1fr;
  }

  .home-player-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .home-dashboard-focus .panel {
    border-radius: 22px;
  }

  .home-fixture-focus {
    min-height: 0;
  }

  .home-dashboard-focus .home-hero-copy {
    display: flex;
    align-items: flex-start;
  }

  .home-dashboard-focus .home-hero-copy h2 {
    font-size: clamp(34px, 10vw, 52px);
  }

  .home-dashboard-focus .home-hero-copy .status-pill {
    white-space: nowrap;
  }

  .home-dashboard-focus .home-next-card {
    grid-template-columns: 1fr;
    border-radius: 22px;
    padding: 18px;
  }

  .home-dashboard-focus .home-next-card h3 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .home-dashboard-focus .home-match-teams {
    display: flex;
    border-radius: 18px;
  }

  .home-dashboard-focus .home-match-teams span {
    flex: 1 1 0;
    min-width: 0;
  }

  .home-dashboard-focus .home-next-meta span {
    min-height: 58px;
  }

  .home-player-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .home-stat-tile {
    min-height: 76px;
    border-radius: 16px;
    padding: 9px 7px;
  }

  .home-stat-tile span {
    font-size: 8px;
    line-height: 1.1;
  }

  .home-stat-tile strong {
    font-size: clamp(24px, 8vw, 34px);
  }
}

@media (max-width: 420px) {
  .home-dashboard-focus .home-hero-copy {
    display: block;
  }

  .home-dashboard-focus .home-hero-copy .status-pill {
    margin-top: 10px;
  }

  .home-player-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .home-stat-tile {
    min-height: 82px;
    padding: 10px;
  }

  .home-stat-tile span {
    font-size: 10px;
  }
}

.home-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.home-hero-card {
  display: grid;
  gap: 18px;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.11), rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 250, 0.94));
}

.home-hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.home-hero-copy h2,
.home-status-card h2,
.home-pending-panel h2 {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 0.96;
}

.home-next-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(8, 122, 85, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(237, 194, 78, 0.18), transparent 210px),
    linear-gradient(135deg, rgba(8, 41, 31, 0.98), rgba(15, 118, 80, 0.9));
  color: #fff;
  padding: clamp(18px, 3vw, 28px);
  cursor: pointer;
  box-shadow: 0 22px 48px rgba(8, 41, 31, 0.2);
}

.home-next-card:hover,
.home-next-card:focus-visible {
  border-color: rgba(237, 194, 78, 0.58);
  box-shadow: 0 26px 58px rgba(8, 41, 31, 0.26);
  outline: none;
  transform: translateY(-2px);
}

.home-next-card .section-kicker,
.home-next-card .callup-card-footer strong {
  color: #f4d36b;
}

.home-next-card h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.95;
}

.home-match-teams {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.home-match-teams span {
  color: #fff;
}

.home-match-teams strong {
  color: rgba(244, 211, 107, 0.9);
  font-size: 13px;
  text-transform: uppercase;
}

.home-next-card .match-countdown {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.home-next-card .match-countdown span {
  color: rgba(255, 255, 255, 0.68);
}

.home-next-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-next-meta span,
.home-points-strip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  font-weight: 850;
}

.home-next-meta strong,
.home-points-strip span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-next-card .callup-card-footer {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
}

.home-next-empty {
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.09), transparent 60%),
    rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-next-empty:hover,
.home-next-empty:focus-visible {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-next-empty .section-kicker {
  color: var(--green);
}

.home-next-empty h3 {
  color: var(--green-deep);
}

.home-next-empty p {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.home-side-stack {
  display: grid;
  gap: 18px;
}

.home-status-card,
.home-pending-panel {
  display: grid;
  gap: 16px;
}

.home-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-mini-grid .metric {
  min-height: 106px;
}

.home-points-strip {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 8px 10px;
  border-color: rgba(8, 122, 85, 0.12);
  background:
    linear-gradient(135deg, rgba(8, 122, 85, 0.08), rgba(255, 255, 255, 0.84));
  color: var(--green-deep);
}

.home-points-strip span {
  margin: 0;
  color: var(--muted);
}

.home-points-strip strong {
  font-size: 24px;
  line-height: 1;
}

.home-pending-panel {
  grid-column: 1 / -1;
}

.home-pending-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-all-button {
  justify-self: start;
}

.home-empty-state {
  border: 1px dashed rgba(8, 122, 85, 0.22);
  border-radius: 18px;
  background: rgba(230, 243, 231, 0.46);
  padding: 18px;
}

.home-empty-state strong {
  color: var(--green-deep);
  font-size: 18px;
}

@media (max-width: 1080px) {
  .home-dashboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-dashboard,
  .home-side-stack {
    gap: 12px;
  }

  .home-hero-card,
  .home-status-card,
  .home-pending-panel {
    gap: 12px;
  }

  .home-hero-copy {
    display: block;
  }

  .home-hero-copy h2,
  .home-status-card h2,
  .home-pending-panel h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .home-next-card {
    gap: 12px;
    border-radius: 20px;
    padding: 18px;
  }

  .home-next-card h3 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .home-next-meta,
  .home-pending-list {
    grid-template-columns: 1fr;
  }

  .home-next-meta span {
    padding: 10px 12px;
  }

  .home-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-mini-grid .metric {
    aspect-ratio: 1 / 0.88;
    min-height: 0;
    padding: 12px;
  }

  .home-mini-grid .metric strong {
    font-size: clamp(36px, 12vw, 52px);
  }

  .home-points-strip {
    grid-template-columns: auto 1fr auto 1fr;
    padding: 12px;
  }

  .home-all-button {
    width: 100%;
  }
}

.home-dashboard-focus .home-next-empty {
  border: 1px solid rgba(8, 122, 85, 0.18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(237, 194, 78, 0.12), transparent 190px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 241, 0.94)) !important;
  color: var(--green-deep) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.home-dashboard-focus .home-next-empty::before {
  border-color: rgba(8, 122, 85, 0.08) !important;
}

.home-dashboard-focus .home-next-empty .section-kicker {
  color: var(--green) !important;
}

.home-dashboard-focus .home-next-empty h3 {
  color: var(--green-deep) !important;
}

.home-dashboard-focus .home-next-empty p {
  color: var(--muted) !important;
}

.home-dashboard-focus .home-next-empty .button-secondary {
  justify-self: start;
}
