* {
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #101211;
  --card: #1b1e1c;
  --line: #333731;
  --muted: #a9afa8;
  --lime: #c2f564;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f5f6f2;
  font: 16px/1.45 var(--sans);
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.44;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
header {
  background: #171a18;
  border-bottom: 1px solid var(--line);
}
.header-inner,
main,
footer {
  width: min(1320px, calc(100% - 9vw));
  margin: auto;
}
.header-inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font: italic 800 30px/0.9 var(--display);
  letter-spacing: -1px;
}
.brand-accent {
  color: var(--lime);
}
nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 22px;
  margin: 0 auto;
}
nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb3ae;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}
nav a[aria-current] {
  color: var(--lime);
}
nav a[aria-current]:after {
  content: "";
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--lime);
}
.icon-btn {
  border: 1px solid var(--line);
  background: #222622;
  border-radius: 8px;
  width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
}
.icon-btn:hover,
.btn:hover,
.season-row:hover {
  filter: brightness(1.16);
}
main {
  padding: 34px 0 16px;
}
.page-head,
.sec-head,
.team-top,
.squad-head,
.actions,
.dlg-head,
.dlg-foot,
.bulk-row {
  display: flex;
  align-items: center;
}
.page-head,
.sec-head,
.dlg-head,
.dlg-foot,
.bulk-row {
  justify-content: space-between;
  gap: 12px;
}
.page-head {
  margin-bottom: 23px;
}
.eyebrow,
.minor,
.hero-tag {
  font: 700 12px/1.25 var(--sans);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b1b9ad;
  overflow-wrap: anywhere;
}
.slash {
  color: var(--lime);
  font: italic 800 17px var(--display);
  letter-spacing: 0.5px;
}
.divider-dot {
  color: #626a60;
}
.page-head h1 {
  font: 700 clamp(38px, 3.9vw, 59px) / 1 var(--display);
  letter-spacing: -0.8px;
  margin: 7px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  background: #24281f;
  border: 1px solid #404735;
  color: #d4dfc8;
  border-radius: 30px;
  white-space: nowrap;
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9cc9e;
}
.live i {
  background: var(--lime);
  animation: beacon 1.5s infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(270px, 1fr);
  gap: 18px;
}
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 325px;
  border-radius: 14px;
  background: #c2f632;
  color: #141a0d;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url(batter.jpg) right 35% / cover no-repeat;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(195, 246, 60, 0.94),
    rgba(195, 246, 60, 0.7) 29%,
    transparent 58%
  );
}
.hero-inner {
  padding: 25px 31px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 1.4px;
  border: 1px solid #303e1d99;
  border-radius: 4px;
  padding: 4px 8px;
  color: #293019;
}
.hero-title {
  font: italic 800 clamp(60px, 5.3vw, 86px) / 0.85 var(--display);
  letter-spacing: -2px;
  margin: 16px 0 7px;
}
.hero-line {
  font-size: 14px;
  font-weight: 700;
  max-width: 58%;
  overflow-wrap: anywhere;
}
.hero-btn {
  margin-top: 19px;
  background: #171d13 !important;
  border-color: transparent !important;
  color: #ecf5dd !important;
}
.hero-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 43px;
  height: 9px;
  background: repeating-linear-gradient(
    -56deg,
    #ccf54d 0 4px,
    transparent 4px 8px
  );
}
.player-title {
  max-width: 60%;
  overflow-wrap: anywhere;
  animation: playerIn 0.5s ease-out both;
}
.tracker,
.team-card,
.squad-panel,
.bid-panel,
.fixtures,
.table-wrap,
.insight {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 13px;
}
.tracker {
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.minor {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d8ddd5;
  font-size: 12px;
}
.lime,
.small-link,
.quiet {
  color: var(--lime);
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 18px 0;
}
.metrics > div {
  display: grid;
  align-content: center;
  justify-items: start;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.metrics svg {
  color: #9ca498;
}
.metrics strong {
  font: 700 52px/0.99 var(--display);
  letter-spacing: -1.3px;
  margin: 4px 0;
}
.metrics span,
.tracker-bottom span,
.team-card small,
.helper,
.muted,
.empty,
.roster-row span,
.squad-head small,
.bid-panel p,
.insight small {
  color: var(--muted);
}
.metrics span,
.tracker-bottom span {
  font-size: 14px;
}
.tracker-bottom {
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.tracker-bottom > div:first-child {
  display: flex;
  justify-content: space-between;
}
.tracker-bottom b {
  font-size: 14px;
  color: var(--lime);
}
.tracker-bottom small {
  color: #939c90;
  font-size: 12px;
}
.progress {
  margin: 9px 0 5px;
  height: 6px;
  border-radius: 3px;
  background: #353a32;
  overflow: hidden;
}
.progress i {
  height: 100%;
  display: block;
  background: var(--lime);
  transition: width 0.5s;
}
section {
  margin-top: 28px;
}
.sec-head {
  margin-bottom: 14px;
}
h2,
h3 {
  font-family: var(--display);
  margin: 0;
}
h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 24px;
  line-height: 1.12;
}
.small-link,
.quiet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}
.quiet {
  background: none;
  border: 0;
  padding: 9px 0;
}
.small-link:hover,
.quiet:hover {
  text-decoration: underline;
}
.team-grid,
.bid-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.team-card {
  text-align: left;
  display: block;
  padding: 18px 20px 13px;
  color: white;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.team-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.85;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.team-top,
.squad-head {
  gap: 12px;
}
.team-top h3,
.squad-head h2 {
  overflow-wrap: anywhere;
}
.crest {
  flex: none;
}
.team-card small,
.squad-head small {
  font-size: 12px;
}
.purse-label,
.card-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.purse-label {
  margin-top: 19px;
}
.purse-num {
  font: 700 34px/1.1 var(--display);
  margin: 1px 0 14px;
  letter-spacing: -0.4px;
}
.purse-num small {
  font: 400 14px var(--sans);
  margin-left: 5px;
}
.card-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.card-foot strong {
  margin-left: auto;
  font-size: 13px;
  color: #dfe3dc;
}
.count {
  font: 700 12px var(--sans);
  color: #bfc6ba;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  vertical-align: middle;
  margin-left: 4px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 20px;
}
th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #a7b0a3;
  background: #222622;
}
td {
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.player-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.player-cell i {
  font: 700 13px var(--display);
  background: #2c322a;
  color: #cfd9c6;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #3b4138;
  border-radius: 7px;
}
.cat,
.status-text {
  font-size: 12px;
}
.cat {
  padding: 3px 7px;
  border-radius: 5px;
  background: #2f3826;
  color: #d0e5af;
}
.cat-B {
  background: #2a323a;
  color: #bad2e6;
}
.status-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-text:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #9fa99b;
  border-radius: 50%;
}
.filters,
.segments,
.search {
  display: flex;
  align-items: center;
  gap: 9px;
}
.filters {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
}
.search input {
  border: 0;
  background: transparent;
  padding: 10px 0;
  min-width: 0;
}
.segments,
.steps {
  background: #202420;
  border-radius: 8px;
  padding: 4px;
}
.segments button,
.steps button {
  background: none;
  color: #b5beb1;
  border: 0;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 14px;
}
.segments .selected,
.steps .active {
  background: #35422c;
  color: var(--lime);
}
.squad-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.squad-panel {
  margin: 0;
  padding: 22px;
}
.roster-meta,
.roster-row,
.fixture,
.season-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.roster-meta {
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.roster-row,
.season-row {
  justify-content: space-between;
  padding: 12px 0;
}
.roster-row + .roster-row,
.fixture + .fixture {
  border-top: 1px solid var(--line);
}
.roster-row {
  font-size: 14px;
}
.empty,
.helper {
  font-size: 14px;
}
.empty {
  padding: 12px 0;
}
.table-wrap .empty {
  padding: 12px 16px;
}
.fixture {
  display: grid;
  grid-template-columns: 110px 1fr 28px 1fr;
  padding: 15px 20px;
}
.fixture small {
  color: var(--muted);
}
.fixture i {
  font-size: 13px;
  color: var(--lime);
}
.btn {
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #454b40;
  border-radius: 7px;
  background: #292e27;
  color: #f2f5ef;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.primary {
  background: var(--lime);
  color: #17200d;
  border-color: var(--lime);
}
.actions {
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.bid-panel {
  padding: 22px;
}
.bid-panel h2 {
  margin-top: 7px;
}
.bid-panel p {
  margin: 5px 0;
  font-size: 14px;
}
.bid-number {
  color: var(--lime);
}
.bid-grid button {
  border: 1px solid #42483e;
  border-radius: 8px;
  background: #242922;
  padding: 12px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
}
.bid-grid span,
.season-row span {
  display: grid;
}
.bid-grid small,
.season-row small {
  font-size: 13px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 20px 0 30px;
  color: #929a8f;
  font-size: 12px;
}
footer span:first-child {
  font: 700 13px var(--display);
  letter-spacing: 1.3px;
}
footer i {
  color: var(--lime);
}
dialog {
  background: #1b201c;
  border: 1px solid #41483d;
  color: inherit;
  border-radius: 15px;
  padding: 0;
  width: min(660px, calc(100% - 24px));
  max-height: 90dvh;
  box-shadow: 0 24px 100px #0008;
}
dialog[open] {
  display: flex;
  flex-direction: column;
  animation: playerIn 0.18s ease-out;
}
dialog::backdrop {
  background: #050805bc;
  backdrop-filter: blur(4px);
}
.dlg-head,
.dlg-foot {
  padding: 18px 22px;
  flex: none;
}
.dlg-head {
  border-bottom: 1px solid var(--line);
}
.dlg-head h2 {
  margin-top: 4px;
}
.dlg-head .eyebrow {
  font-size: 11px;
  color: var(--lime);
}
.dlg-body {
  padding: 18px 22px;
  overflow: auto;
}
.dlg-body p:first-child {
  margin-top: 0;
}
.dlg-foot {
  border-top: 1px solid var(--line);
}
.steps {
  display: flex;
  gap: 4px;
  margin: 12px 20px 0;
  flex: none;
}
.steps button {
  flex: 1;
}
.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #c9d0c5;
}
input,
textarea,
select {
  max-width: 100%;
  color: #fff;
  border: 1px solid #495043;
  background: #121611;
  border-radius: 6px;
  padding: 9px 10px;
  min-width: 0;
}
select {
  padding-right: 22px;
}
textarea {
  resize: vertical;
  min-height: 75px;
}
.form-grid,
.owner-row {
  display: grid;
  gap: 14px;
}
.form-grid {
  grid-template-columns: 1fr 1fr;
}
.form-error {
  padding: 0 22px;
  color: #ffb69e;
  font-size: 14px;
}
.form-error:not(:empty) {
  padding-block: 8px;
}
.bulk-row {
  font-size: 13px;
}
.edit-list {
  margin: 8px 0 16px;
}
.edit-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 37px;
  gap: 6px;
  margin-bottom: 6px;
}
.owner-row {
  grid-template-columns: 36px 1fr 1fr;
  align-items: end;
  margin: 0 0 14px;
}
.season-row {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: white;
  width: 100%;
  text-align: left;
}
.season-row svg {
  color: var(--lime);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: #e4f3d4;
  color: #1b2316;
  border-radius: 8px;
  box-shadow: 0 8px 30px #0006;
  padding: 12px 18px;
  max-width: 90vw;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.watch header,
.watch footer,
.watch .small-link {
  display: none;
}
.watch .team-card {
  pointer-events: none;
}
.insight {
  padding: 17px;
}
.insight small {
  display: block;
}
.insight strong {
  display: block;
  font: 700 32px var(--display);
  overflow-wrap: anywhere;
}
.sale-show {
  position: fixed;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  display: grid;
  place-items: center;
  background: #08100799;
  animation: saleFade 2.2s both;
}
.sale-ticket {
  text-align: center;
  min-width: 260px;
  padding: 28px;
  background: #1a2118;
  border: 2px solid var(--accent);
  border-radius: 14px;
  box-shadow: 0 12px 70px #0008;
  animation: win 2.2s both;
}
.sale-ticket strong,
.sale-ticket b {
  display: block;
  font: italic 800 44px/0.95 var(--display);
  margin: 8px;
}
.sale-ticket small {
  font: 700 13px var(--sans);
  color: var(--accent);
  letter-spacing: 3px;
}
.sale-ticket span {
  display: block;
}
.bid-pop {
  animation: bidPop 0.5s ease-out;
}
@keyframes bidPop {
  0% {
    color: white;
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes saleFade {
  0%,
  100% {
    opacity: 0;
  }
  12%,
  82% {
    opacity: 1;
  }
}
@keyframes win {
  0% {
    transform: translateY(80px) rotate(-8deg) scale(0.78);
  }
  20%,
  78% {
    transform: none;
  }
  100% {
    transform: translateY(110px) scale(0.55);
  }
}
@keyframes playerIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes beacon {
  50% {
    box-shadow: 0 0 0 4px #c1f86624;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 350px;
  }
}
@media (max-width: 1000px) {
  .header-inner,
  main,
  footer {
    width: 92%;
  }
  nav {
    gap: 14px;
  }
  nav a {
    font-size: 13px;
  }
  nav a svg {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.65fr 1fr;
  }
  .team-card {
    padding: 15px;
  }
  .team-top {
    gap: 8px;
  }
  .team-top .crest {
    width: 38px;
  }
  .hero {
    min-height: 300px;
  }
  .hero-inner {
    padding: 24px;
  }
}
@media (max-width: 740px) {
  .header-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 0;
    justify-content: space-between;
    padding-top: 13px;
  }
  .brand {
    font-size: 27px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 9px 0 0;
    gap: 0;
    overflow: auto;
    justify-content: space-between;
  }
  nav a {
    padding: 12px 6px;
    font-size: 13px;
    white-space: nowrap;
  }
  main {
    padding-top: 22px;
  }
  .page-head {
    margin-bottom: 16px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 273px;
  }
  .hero-title {
    font-size: 68px;
  }
  .hero:before {
    background-position: right 31%;
  }
  .tracker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    padding: 17px;
  }
  .minor {
    grid-column: 1/-1;
  }
  .metrics {
    margin: 0;
  }
  .metrics svg {
    display: none;
  }
  .metrics > div + div {
    padding-left: 10px;
  }
  .metrics strong {
    font-size: 34px;
  }
  .metrics span,
  .tracker-bottom span {
    font-size: 12px;
  }
  .tracker-bottom {
    border-top: 0;
    padding: 4px 0 0 14px;
    border-left: 1px solid var(--line);
    align-self: center;
  }
  .team-grid,
  .bid-grid,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .team-card {
    padding: 14px;
  }
  .team-card h3 {
    font-size: 23px;
  }
  .purse-num {
    font-size: 31px;
  }
  .purse-label {
    margin-top: 12px;
  }
  .sec-head h2 {
    font-size: 27px;
  }
  .squad-grid {
    grid-template-columns: 1fr;
  }
  .fixture {
    grid-template-columns: 67px 1fr 16px 1fr;
    gap: 6px;
    padding: 13px 11px;
    font-size: 14px;
  }
  th,
  td {
    padding: 10px;
    font-size: 13px;
  }
  .player-cell {
    gap: 6px;
  }
  .player-cell i {
    display: none;
  }
  .chip {
    font-size: 12px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .small-link {
    font-size: 12px;
  }
  .dlg-body,
  .dlg-head,
  .dlg-foot {
    padding: 16px;
  }
  .edit-player {
    grid-template-columns: minmax(0, 1fr) 112px 32px;
  }
  .edit-player .icon-btn {
    width: 32px;
  }
  .owner-row {
    grid-template-columns: 1fr 1fr;
  }
  .owner-row .crest {
    display: none;
  }
  .steps {
    margin-inline: 12px;
  }
  .steps button {
    font-size: 12px;
  }
  .search {
    width: 100%;
  }
  .search input {
    width: 100%;
  }
  .hero-line {
    max-width: 62%;
  }
  .player-title {
    font-size: 52px;
  }
  .filters {
    gap: 12px;
  }
  .brand {
    flex: 1;
  }
}
@media (max-width: 390px) {
  .hero {
    min-height: 252px;
  }
  .hero-inner {
    padding: 19px;
  }
  .hero-title {
    font-size: 58px;
  }
  .hero-tag {
    font-size: 10px;
  }
  .tracker {
    gap: 10px;
  }
  .metrics span {
    font-size: 11px;
  }
  .team-card {
    padding: 11px;
  }
  .team-top .crest {
    width: 31px;
  }
  .team-top {
    gap: 6px;
  }
  .form-grid {
    gap: 9px;
  }
  .header-inner,
  main,
  footer {
    width: 94%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .sale-show {
    animation: none;
  }
  .sale-ticket {
    animation: none;
  }
}

.find-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #bdc5b8;
  font-size: 13px;
  padding: 8px 0;
}
.header-inner {
  gap: 18px;
}
.watch header {
  display: block;
}
.watch #settings {
  display: none;
}
.watch .team-card {
  pointer-events: auto;
}
.watch .small-link {
  display: inline-flex;
}
.spend-row,
.history-row,
.access-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
}
.spend-row + .spend-row,
.history-row + .history-row {
  border-top: 1px solid var(--line);
}
.spend-row b {
  min-width: 20%;
  overflow-wrap: anywhere;
}
.spend-row .progress {
  flex: 1;
}
.spend-row span {
  font-variant-numeric: tabular-nums;
}
.history-heading {
  margin-top: 24px;
}
.history-row {
  padding-inline: 0;
}
.history-row svg {
  color: var(--lime);
  flex: none;
}
.history-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.access-strip {
  padding: 10px 12px;
  background: #2b3626;
  border: 1px solid #44533c;
  border-radius: 7px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
}
.access-strip span {
  color: var(--lime);
}
.inline-error {
  color: #ffbcab;
  margin-top: 8px;
}
.field + .field {
  margin-top: 10px;
}
.form-grid .field + .field,
.owner-row .field + .field {
  margin: 0;
}
#lookup-result {
  margin-top: 12px;
}
.unlock {
  margin: 40px auto;
  max-width: 440px;
}
.watch .hero-btn {
  display: none;
}
footer a {
  color: var(--muted);
}
.field input,
.field select {
  width: 100%;
}
@media (max-width: 1050px) {
  .find-btn span {
    display: none;
  }
  .header-inner {
    gap: 13px;
  }
  nav {
    gap: 13px;
  }
}
@media (max-width: 740px) {
  .header-inner {
    gap: 0;
  }
  .find-btn {
    margin-right: 16px;
  }
  nav {
    gap: 7px;
  }
  nav a {
    font-size: 12px;
  }
  footer {
    gap: 8px;
  }
}
@media (max-width: 740px) {
  .hero:before {
    background-position: calc(100% + 45px) 36%;
    background-size: auto 108%;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      #c3f63c 1%,
      rgba(195, 246, 60, 0.98) 24%,
      rgba(195, 246, 60, 0.73) 42%,
      transparent 65%
    );
  }
  .hero-line {
    max-width: 54%;
  }
  .hero-inner {
    padding-block: 19px;
  }
  nav {
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar {
    display: none;
  }
}
.spectator-find {
  max-width: 560px;
  margin: 28px auto;
}
.find-only nav,
.find-only #settings,
.find-only #league-find,
.find-only footer {
  display: none;
}
.hero-title {
  white-space: normal;
}
@media (max-width: 740px) {
  body[data-phase="live"] .hero {
    min-height: 180px;
  }
  body[data-phase="live"] .hero-title {
    margin-block: 12px;
  }
  .bid-panel {
    padding: 16px;
  }
}

.rule-options {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.rule-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.rule-check input {
  width: 19px;
  height: 19px;
  accent-color: #50761c;
}
#card-value {
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
html[data-theme="day"] {
  color-scheme: light;
  --bg: #f4f6f0;
  --card: #fff;
  --line: #d3d9ce;
  --muted: #52604f;
  --lime: #40691a;
  --ink: #182118;
  --soft: #eaf0e5;
}
[data-theme="day"] body {
  color: var(--ink);
}
[data-theme="day"] :is(header, dialog) {
  background: var(--card);
  border-color: var(--line);
}
[data-theme="day"] .brand img {
  background: #1c2d15;
  border-radius: 50%;
  padding: 3px;
}
[data-theme="day"]
  :is(
    .team-card,
    .season-row,
    .card-foot strong,
    .field,
    .minor,
    .roster-row,
    .bid-grid button
  ) {
  color: var(--ink);
}
[data-theme="day"]
  :is(
    nav a,
    .eyebrow,
    .metrics svg,
    .count,
    .find-btn,
    footer,
    .tracker-bottom small,
    .steps button,
    .segments button
  ) {
  color: var(--muted);
}
[data-theme="day"] nav a[aria-current] {
  color: var(--lime);
}
[data-theme="day"]
  :is(
    .icon-btn,
    th,
    .chip,
    .player-cell i,
    .btn,
    .steps,
    .segments,
    .bid-grid button,
    .access-strip
  ) {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="day"] :is(input, textarea, select) {
  background: #fff;
  color: var(--ink);
  border-color: #9da995;
}
[data-theme="day"] .search input {
  background: transparent;
}
[data-theme="day"] .primary,
[data-theme="day"] .segments .selected,
[data-theme="day"] .steps .active {
  background: #d7f497;
  border-color: #abca77;
  color: #213319;
}
[data-theme="day"] .cat {
  color: #355914;
  background: #e6f1d4;
}
[data-theme="day"] .cat-B {
  color: #234a60;
  background: #e2eef5;
}
[data-theme="day"] .progress {
  background: #dce3d6;
}
[data-theme="day"] .chip i,
[data-theme="day"] .status-text:before {
  background: #69844e;
}
[data-theme="day"] .sale-ticket {
  color: #f4f6ef;
}
[data-theme="day"] .team-card,
[data-theme="day"] .tracker {
  box-shadow: 0 2px 5px #14201608;
}
[data-theme="day"] .team-card .crest,
[data-theme="day"] .squad-head .crest,
[data-theme="day"] .bid-grid .crest,
[data-theme="day"] .spend-row .crest,
[data-theme="day"] .owner-row .crest {
  filter: brightness(0.66) saturate(1.35);
}
[data-theme="day"] :is(.form-error, .inline-error) {
  color: #a1321a;
}
@media (max-width: 740px) {
  #theme-switch {
    margin-right: 10px;
  }
}
.ground {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #0a232a url(ground.jpg) center 57% / cover;
  color: #fff;
  box-shadow: 0 8px 30px #0b242a24;
}
.ground::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #041922dc, transparent 85%),
    linear-gradient(0deg, #071a20a8, transparent 40%);
}
.ground-band,
.ground-play,
.dugouts {
  position: relative;
}
.ground-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #05181eac;
  border-bottom: 1px solid #ffffff35;
  padding: 13px 26px;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
}
.ground-band span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #d7ffa6;
}
.ground-band i {
  width: 7px;
  height: 7px;
  background: #a9ef58;
  border-radius: 50%;
  box-shadow: 0 0 8px #adf667;
}
.ground-band b {
  color: #e6eeee;
  letter-spacing: 0.07em;
}
.ground-play {
  min-height: 330px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 22px 5%;
  gap: 18px;
}
.ground-copy {
  width: 48%;
  min-width: 0;
}
.round-tag {
  display: inline-block;
  font: 700 0.85rem var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-left: 3px solid #cbfb66;
  background: #10292dcc;
}
.ground h2 {
  font: italic 800 clamp(3rem, 7vw, 6rem) / 0.94 var(--display);
  text-transform: uppercase;
  margin: 12px 0;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 14px #00120e55;
}
.ground p {
  color: #eef8e6;
  margin: 6px 0 18px;
  font-weight: 700;
}
.pitch-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.pitch-action,
.ground-undo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d5fc7c;
  color: #1a2e12;
  border: 0;
  border-radius: 7px;
  padding: 11px 15px;
  font-weight: 700;
}
.ground-undo {
  background: #10292de5;
  border: 1px solid #cee2da77;
  color: #fff;
  font-size: 0.84rem;
}
.ground-focus {
  display: grid;
  place-items: center;
  width: 40%;
}
.wheel-housing {
  width: min(100%, 275px);
  aspect-ratio: 1;
  position: relative;
  border-radius: 50%;
  border: 6px solid #d5ecba;
  background: #163c34;
  box-shadow:
    0 0 0 4px #152e2b,
    0 0 0 6px #a1c9ae,
    0 15px 30px #0019189e;
}
.draw-wheel {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.wheel-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid #a9c4a6;
  border-radius: 50%;
  background: #14291f;
  box-shadow: 0 2px 8px #00190c88;
}
.wheel-hub img {
  width: 66%;
}
.pointer {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 32px;
  background: #f4c568;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.kit {
  width: min(145px, 80%);
  aspect-ratio: 1;
  background: linear-gradient(110deg, #91c744, #dffa82 65%, #a1cf59);
  clip-path: polygon(
    32% 4%,
    42% 0,
    50% 8%,
    58% 0,
    68% 4%,
    98% 23%,
    85% 45%,
    73% 38%,
    73% 98%,
    27% 98%,
    27% 38%,
    15% 45%,
    2% 23%
  );
  display: grid;
  place-items: center;
  color: #20361d;
  font: italic 800 38px var(--display);
  animation: playerIn 0.4s ease-out;
}
.final-cup {
  color: #ffdf87;
}
.dugouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #071c21e8;
  backdrop-filter: blur(8px);
}
.dugout {
  border: 0;
  border-top: 3px solid var(--team);
  border-right: 1px solid #fff2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  color: #fff;
  background: transparent;
  text-align: left;
  min-width: 0;
}
.dugout span {
  min-width: 0;
}
.dugout b,
.dugout small {
  display: block;
  overflow-wrap: anywhere;
}
.dugout b {
  font: 700 21px var(--display);
}
.dugout small {
  color: #cbdacc;
  font-size: 0.75rem;
}
.preview-ground {
  color: #182616;
  border: 0;
  background: none;
  text-decoration: underline;
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
}
.ground-dialog {
  padding: 10px;
}
.ground-dialog .ground-play {
  min-height: 245px;
}
@media (max-width: 740px) {
  .ground-band {
    padding: 10px 13px;
    font-size: 0.64rem;
  }
  .ground-play {
    min-height: 230px;
    padding: 17px 14px;
    gap: 8px;
  }
  .ground-copy {
    width: 48%;
  }
  .ground-focus {
    width: 47%;
  }
  .ground h2 {
    font-size: clamp(2.05rem, 8.7vw, 3.6rem);
  }
  .ground p {
    font-size: 0.82rem;
  }
  .dugouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dugout {
    padding: 8px 9px;
    gap: 6px;
  }
  .dugout b {
    font-size: 17px;
  }
  .dugout .crest {
    width: 26px;
  }
  .pitch-action,
  .ground-undo {
    padding: 9px 10px;
    font-size: 0.8rem;
  }
  .ground-dialog {
    padding: 4px;
  }
}

.sale-ticket .signing-kit {
  width: 65px;
  margin: 0 auto 8px;
  color: #162518;
  background: linear-gradient(115deg, var(--accent), #f6ffdf);
  animation: none;
}
.sale-ticket .signing-kit b {
  font: italic 800 22px var(--display);
  margin: 0;
}

/* Stadium shortcut, player photos and team-owner logins */
.stadium-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.stadium-cta div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.stadium-cta b {
  font: 800 italic 22px/1 var(--display);
  text-transform: uppercase;
}
.stadium-cta span {
  color: var(--muted);
  font-size: 14px;
}
.photo-btn {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px dashed var(--line);
  background: transparent;
  overflow: visible;
  flex: none;
  display: grid;
  place-items: center;
}
.photo-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.photo-btn i {
  font-style: normal;
}
.photo-btn em {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
  color: #10170a;
  font: 700 13px/16px var(--sans);
  font-style: normal;
  text-align: center;
}
.owner-login {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  margin-top: 10px;
}
.owner-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.owner-body > b {
  font: 700 18px/1 var(--display);
  text-transform: uppercase;
}
.codes {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.codes span {
  display: grid;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.codes b {
  font: 800 26px/1 var(--display);
  letter-spacing: 0.14em;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.crop-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
}
.crop-wrap canvas {
  width: min(280px, 100%);
  aspect-ratio: 1;
  height: auto;
  border-radius: 12px;
  touch-action: none;
  cursor: grab;
}
.crop-wrap .field {
  width: min(280px, 100%);
}
.file-pick {
  cursor: pointer;
}
