:root {
  color-scheme: dark;
  --bg: #101615;
  --panel: #18211f;
  --panel-2: #202b29;
  --line: #32413e;
  --text: #edf7f3;
  --muted: #9bb0aa;
  --accent: #68d391;
  --accent-2: #6db7ff;
  --warn: #ffcc66;
  --danger: #ff7a7a;
  --pitch: #1d6e3a;
  --pitch-2: #15552d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(104, 211, 145, .12), transparent 28rem),
    linear-gradient(135deg, #0f1514 0%, #121d1a 48%, #171718 100%);
  color: var(--text);
}
button, input, select {
  font: inherit;
}
button {
  border: 0;
  background: var(--accent);
  color: #07120e;
  padding: .72rem .95rem;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
button.secondary {
  background: #283532;
  color: var(--text);
  border: 1px solid var(--line);
}
button.danger { background: var(--danger); }
button:disabled { opacity: .45; cursor: not-allowed; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #111916;
  color: var(--text);
  padding: .72rem .8rem;
  border-radius: 8px;
  outline: none;
}
label {
  display: grid;
  gap: .4rem;
  color: var(--muted);
  font-size: .88rem;
}
table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: .58rem .45rem;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sort-head, .linkish {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0;
  font-weight: inherit;
}
.sort-head {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}
.linkish {
  color: var(--accent-2);
  text-align: left;
}
.sort-head:hover, .linkish:hover { text-decoration: underline; }
.shell {
  display: grid;
  grid-template-columns: 17rem 1fr;
  min-height: 100vh;
}
.sidebar {
  background: rgba(14, 20, 18, .88);
  border-right: 1px solid var(--line);
  padding: 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.badge {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06120d;
  font-weight: 950;
}
.fg-logo {
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 .5rem 1rem rgba(0,0,0,.28));
}
.fg-logo-sm {
  width: 2.9rem;
  height: 2.9rem;
}
.fg-logo-xl {
  width: 6.2rem;
  height: 6.2rem;
}
.brand h1 {
  font-size: 1.05rem;
  margin: 0;
}
.brand small {
  display: block;
  margin-top: .18rem;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
}
.brand span, .small {
  color: var(--muted);
  font-size: .82rem;
}
.nav {
  display: grid;
  gap: .4rem;
}
.nav button {
  display: grid;
  gap: .12rem;
  text-align: left;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  padding: .7rem .75rem;
}
.nav button small {
  color: var(--accent);
  font-size: .68rem;
  font-weight: 800;
}
.nav button.active, .nav button:hover {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}
.mobile-nav-toggle {
  display: none;
}
.content {
  padding: 1.2rem;
  max-width: 1280px;
  width: 100%;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.topbar h2 {
  margin: 0;
  font-size: 1.45rem;
}
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.pill {
  border: 1px solid var(--line);
  background: rgba(24, 33, 31, .74);
  color: var(--muted);
  border-radius: 999px;
  padding: .42rem .65rem;
  font-size: .82rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.panel {
  background: rgba(24, 33, 31, .88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  min-width: 0;
  overflow-x: auto;
}
.panel h3 {
  margin: 0 0 .7rem;
  font-size: 1rem;
}
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.auth {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 22, 21, .9);
}
.auth-art {
  min-height: 34rem;
  padding: 2rem;
  background:
    linear-gradient(rgba(10, 20, 15, .08), rgba(10, 20, 15, .68)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 7rem),
    linear-gradient(135deg, var(--pitch), var(--pitch-2));
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  align-self: flex-start;
  margin-bottom: auto;
  padding: .5rem .7rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(10, 18, 16, .58);
  color: #edf7f3;
  font-weight: 950;
  letter-spacing: .01em;
}
.auth-art:before {
  content: "";
  position: absolute;
  inset: 9% 11%;
  border: 3px solid rgba(255,255,255,.55);
  border-radius: 8px;
}
.auth-art:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 9%;
  bottom: 9%;
  border-left: 3px solid rgba(255,255,255,.5);
}
.auth-art h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  max-width: 8ch;
  line-height: .92;
}
.auth-art p {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  color: #d8f5e5;
}
.auth-form {
  padding: 2rem;
  display: grid;
  align-content: center;
  gap: .85rem;
}
.formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.kit {
  display: flex;
  gap: .5rem;
  align-items: center;
}
.team-photo-preview {
  min-height: 12rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111916;
  overflow: hidden;
  margin-bottom: .85rem;
}
.team-photo-preview img {
  width: 100%;
  height: 100%;
  max-height: 19rem;
  object-fit: cover;
}
.shirt {
  width: 2.8rem;
  height: 2.8rem;
  background: var(--kit, #68d391);
  clip-path: polygon(20% 8%, 38% 0, 62% 0, 80% 8%, 100% 30%, 82% 43%, 82% 100%, 18% 100%, 18% 43%, 0 30%);
  border: 2px solid rgba(255,255,255,.35);
}
.shirt-number {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: #26322f;
  color: #eef8f2;
  border: 2px solid rgba(255,255,255,.16);
}
.shirt-number.placed {
  background: #123d25;
  color: #a7f3bf;
  border-color: #42d67d;
}
.shirt-number.injured {
  background: #471a1a;
  color: #ffb3a6;
  border-color: #ff6b5d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: .8rem;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: 8px;
  padding: .85rem;
}
.metric {
  font-size: 1.7rem;
  font-weight: 950;
}
.bar {
  height: .55rem;
  border-radius: 999px;
  background: #111916;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar > i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pitch {
  aspect-ratio: 8 / 11;
  min-height: 34rem;
  max-height: 72vh;
  background:
    repeating-linear-gradient(0deg, var(--pitch) 0 8.5%, var(--pitch-2) 8.5% 17%),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent);
  border: 3px solid rgba(255,255,255,.42);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
.pitch-lines,
.pitch-lines i {
  position: absolute;
  pointer-events: none;
}
.pitch-lines {
  inset: 6%;
  border: 2px solid rgba(255,255,255,.58);
}
.pitch-lines .half {
  left: 0;
  right: 0;
  top: 50%;
  border-top: 2px solid rgba(255,255,255,.58);
}
.pitch-lines .center {
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.58);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-lines .box {
  left: 22%;
  width: 56%;
  border: 2px solid rgba(255,255,255,.58);
}
.pitch-lines .penalty {
  height: 18%;
}
.pitch-lines .six {
  left: 35%;
  width: 30%;
  height: 7%;
}
.pitch-lines .box.top { top: -2px; }
.pitch-lines .box.bottom { bottom: -2px; }
.pitch-lines .spot {
  left: 50%;
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  transform: translate(-50%, -50%);
}
.pitch-lines .spot.top { top: 12%; }
.pitch-lines .spot.middle { top: 50%; }
.pitch-lines .spot.bottom { top: 88%; }
.player-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  place-items: center;
  width: 3.65rem;
  min-height: 3.25rem;
  border-radius: 8px;
  background: #f6fff9;
  color: #07120e;
  font-size: .72rem;
  font-weight: 900;
  text-align: center;
  padding: .18rem;
  border: 3px solid var(--kit, #68d391);
  cursor: grab;
  touch-action: none;
}
.player-dot .avatar-sm {
  grid-row: span 2;
  width: 2rem;
  height: 2rem;
}
.player-dot strong {
  font-size: 1rem;
  line-height: 1;
}
.player-dot small {
  color: #365047;
  font-size: .62rem;
  line-height: 1;
}
.player-dot.selected { box-shadow: 0 0 0 4px var(--warn); }
.player-dot.slot-open {
  box-shadow: 0 0 0 4px rgba(109, 183, 255, .72);
}
.player-dot.drop {
  box-shadow: 0 0 0 5px rgba(255, 204, 102, .7);
  transform: translate(-50%, -50%) scale(1.05);
}
.player-dot.bad-drop {
  border-color: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 122, 122, .68);
  transform: translate(-50%, -50%) scale(1.05);
}
.player-dot.wrong-position {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 122, 122, .55);
}
.lineup-table td,
.lineup-table th {
  vertical-align: middle;
}
.lineup-table small {
  color: var(--muted);
}
.lineup-table .is-injured {
  opacity: .82;
}
.log {
  height: 18rem;
  overflow: auto;
  background: #111916;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem;
  display: flex;
  flex-direction: column-reverse;
  gap: .35rem;
}
.event {
  padding: .45rem .55rem;
  border-radius: 8px;
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
}
.matchfield {
  height: 16rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.35);
  background:
    repeating-linear-gradient(90deg, var(--pitch) 0 10%, var(--pitch-2) 10% 20%);
  position: relative;
  overflow: hidden;
}
.ball {
  position: absolute;
  left: var(--ball-x, 50%);
  top: var(--ball-y, 50%);
  width: .95rem;
  height: .95rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #101615;
  transform: translate(-50%, -50%);
  transition: left .78s linear, top .78s linear;
  z-index: 3;
}
.match-player {
  position: absolute;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-size: .64rem;
  font-weight: 950;
  border: 2px solid rgba(255,255,255,.75);
}
.match-player.home {
  background: var(--accent);
  color: #06120d;
}
.match-player.away {
  background: #ffcc66;
  color: #221400;
}
.stadium-map {
  height: 24rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255,255,255,.08), transparent 6rem),
    linear-gradient(135deg, #245c38, #1f6d3e 46%, #235338);
  position: relative;
  overflow: hidden;
  margin-bottom: .85rem;
}
.stadium-map.terrain-rough {
  background:
    radial-gradient(circle at 22% 24%, rgba(179, 139, 75, .42), transparent 8rem),
    repeating-linear-gradient(32deg, rgba(255,255,255,.06) 0 .35rem, transparent .35rem 1.8rem),
    linear-gradient(135deg, #365f2c, #74612f 48%, #254d30);
}
.stadium-map.terrain-village {
  background:
    radial-gradient(circle at 72% 18%, rgba(145, 203, 130, .24), transparent 7rem),
    linear-gradient(135deg, #27603c, #2b7a45 50%, #47602f);
}
.stadium-map.terrain-grown {
  background:
    radial-gradient(circle at 68% 24%, rgba(109,183,255,.15), transparent 8rem),
    linear-gradient(135deg, #244c36, #277244 45%, #2b5f49);
}
.stadium-map.terrain-pro {
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 11rem),
    linear-gradient(135deg, #243d35, #2f7248 44%, #263b42);
}
.map-grid {
  position: absolute;
  inset: 0;
  background: #2f7041;
}
.map-left-road {
  position: absolute;
  left: 0;
  top: 0;
  width: 14%;
  height: 100%;
  background: #858c89;
  border-right: 2px solid rgba(255,255,255,.42);
  box-shadow: inset -1rem 0 1.4rem rgba(0,0,0,.18);
}
.map-left-road:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2%;
  bottom: 2%;
  border-left: 4px dashed rgba(255,255,255,.82);
  transform: translateX(-50%);
}
.map-treebelt {
  position: absolute;
  left: -2%;
  top: -4%;
  width: 105%;
  height: 16%;
  background:
    radial-gradient(circle at 4% 70%, #154421 0 .9rem, transparent 1rem),
    radial-gradient(circle at 12% 44%, #1e5b2b 0 1rem, transparent 1.1rem),
    radial-gradient(circle at 23% 62%, #1a4c25 0 .9rem, transparent 1rem),
    radial-gradient(circle at 38% 40%, #276833 0 1rem, transparent 1.1rem),
    radial-gradient(circle at 54% 64%, #17451f 0 .95rem, transparent 1.05rem),
    radial-gradient(circle at 70% 46%, #21612e 0 1rem, transparent 1.1rem),
    radial-gradient(circle at 86% 67%, #174820 0 .9rem, transparent 1rem);
  opacity: .92;
}
.map-field-lines {
  position: absolute;
  left: 36%;
  top: 32%;
  width: 26%;
  height: 20%;
  border: 2px solid rgba(255,255,255,.38);
  border-radius: 2px;
  pointer-events: none;
}
.map-field-lines:after {
  content: "";
  position: absolute;
  inset: 27% 36%;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 999px;
}
.map-stadium, .map-parking, .map-food, .map-pitches, .map-medical, .map-clubhouse, .map-merch, .map-ads, .map-fitness, .map-bus, .map-taxi, .map-rail {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 3.6rem;
  min-height: 3rem;
  border: 0;
  border-radius: 0;
  color: #07120e;
  font-weight: 950;
  text-align: center;
  padding: 0;
  box-shadow: none;
  z-index: 1;
}
.map-stadium {
  left: 35%;
  top: 30%;
  color: #eefaf2;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.map-picture img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 .7rem .55rem rgba(0,0,0,.28));
}
.map-picture span {
  position: absolute;
  left: 50%;
  bottom: -.55rem;
  transform: translateX(-50%);
  background: rgba(16,22,21,.82);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  color: #edf7f3;
  padding: .16rem .34rem;
  font-size: .66rem;
  white-space: nowrap;
  text-shadow: none;
}
.map-clubhouse { left: 18%; top: 28%; }
.map-parking { left: 17%; top: 62%; }
.map-bus { left: 2.1%; top: 16%; height: 12%; background: transparent; }
.map-taxi { left: 2.7%; top: 43%; height: 11%; background: transparent; }
.map-rail { left: 2.1%; top: 70%; height: 12%; background: transparent; }
.map-vehicle {
  border: 0;
  min-width: 3.6rem;
  min-height: 3rem;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  color: #f7fffb;
  text-shadow: 0 1px 2px rgba(0,0,0,.7);
  z-index: 4;
}
.map-vehicle img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 .45rem .45rem rgba(0,0,0,.32));
}
.map-vehicle span {
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16,22,21,.82);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  padding: .18rem .36rem;
  font-size: .7rem;
  white-space: nowrap;
}
.map-food { left: 68%; top: 62%; }
.map-merch { left: 80%; top: 45%; }
.map-ads { left: 31%; top: 78%; }
.map-pitches { left: 55%; top: 8%; }
.map-fitness { left: 30%; top: 8%; }
.map-medical { left: 17%; top: 10%; }
.stage-empty {
  opacity: .32;
  filter: grayscale(.2);
}
.stage-rough {
  filter: saturate(.8) sepia(.12) drop-shadow(0 .45rem .45rem rgba(0,0,0,.24));
}
.stage-basic {
  filter: saturate(.95) drop-shadow(0 .5rem .5rem rgba(0,0,0,.25));
}
.stage-good {
  filter: saturate(1.1) contrast(1.03) drop-shadow(0 .65rem .55rem rgba(0,0,0,.28));
}
.stage-pro {
  filter: saturate(1.22) contrast(1.08) drop-shadow(0 .8rem .6rem rgba(0,0,0,.32));
}
.stadium-card {
  display: grid;
  gap: .55rem;
  position: relative;
}
.feature-image {
  height: 5.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: .25rem;
  overflow: hidden;
  color: #f6fff9;
  font-size: .78rem;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  background: #111916;
}
.feature-image img {
  max-width: 96%;
  max-height: 4.15rem;
  object-fit: contain;
  filter: drop-shadow(0 .45rem .45rem rgba(0,0,0,.32));
}
.feature-image span {
  justify-self: stretch;
  align-self: end;
  display: block;
  margin-top: .15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  text-shadow: none;
  font-size: .72rem;
}
.feature-image.stage-good,
.feature-image.stage-pro {
  filter: saturate(1.15) contrast(1.05);
}
.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .8rem;
}
.training-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .75rem;
}
.training-choice button {
  padding: .55rem .7rem;
}
.training-calendar {
  display: grid;
  gap: .8rem;
  max-height: 34rem;
  overflow: auto;
  padding-right: .25rem;
}
.training-day {
  display: grid;
  gap: .45rem;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.training-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
}
.training-slot {
  display: grid;
  gap: .18rem;
  min-height: 5.4rem;
  padding: .58rem;
  text-align: left;
  background: #14201d;
  color: var(--text);
  border: 1px solid var(--line);
}
.training-slot.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.training-slot span,
.training-slot small {
  color: var(--muted);
  font-size: .72rem;
}
.camp-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  padding: .75rem;
  display: grid;
  gap: .5rem;
}
.camp-card img {
  width: 100%;
  height: 6.3rem;
  object-fit: contain;
  background: #111916;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.sponsor-card {
  position: relative;
  overflow: hidden;
}
.sponsor-slot-card {
  width: 100%;
  text-align: left;
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-2);
  box-shadow: none;
}
.sponsor-strip {
  height: .55rem;
  border-radius: 999px;
  background: var(--sponsor, var(--accent));
  margin-bottom: .55rem;
  border: 1px solid rgba(255,255,255,.28);
}
.facility-tip {
  position: absolute;
  left: .75rem;
  right: .75rem;
  top: .75rem;
  z-index: 8;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(12, 18, 16, .96);
  color: var(--text);
  box-shadow: 0 1rem 2.4rem rgba(0,0,0,.36);
  opacity: 0;
  pointer-events: none;
  transform: translateY(.35rem);
  transition: opacity .16s ease, transform .16s ease;
}
.facility-tip p {
  margin: .22rem 0 .55rem;
  color: var(--muted);
  font-size: .82rem;
}
.facility-card:hover .facility-tip,
.facility-card:focus-within .facility-tip,
.facility-card:focus .facility-tip {
  opacity: 1;
  transform: translateY(0);
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 950;
}
.score {
  font-size: 2.4rem;
  color: var(--warn);
}
.player-name {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.player-name:hover,
.player-name:hover span,
.player-name:hover small {
  text-decoration: none;
}
.player-name span {
  display: grid;
  gap: .12rem;
}
.player-name .talent-stars,
.talent-stars {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .03rem;
  width: max-content;
  max-width: none;
  color: #ffcc66;
  font-size: .86rem;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  grid-auto-flow: column;
  grid-template-columns: none;
}
.player-name .talent-stars i,
.talent-stars i {
  position: relative;
  display: inline-block;
  width: .9em;
  flex: 0 0 .9em;
  font-style: normal;
  text-decoration: none;
}
.talent-stars .empty,
.talent-stars .half {
  color: rgba(255,255,255,.22);
}
.talent-stars .half:before {
  content: "★";
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: #ffcc66;
}
.talent-stars .half:before {
  content: "\2605";
}
.avatar {
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(255,255,255,.18);
  background: #101615;
}
.avatar-sm {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 8px;
}
.avatar-lg {
  width: 7rem;
  height: 7rem;
  border-radius: 14px;
}
.player-profile-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .45rem;
}
.profile-avatar-wrap {
  margin-bottom: .35rem;
}
.avatar-editor {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.avatar-editor-preview {
  display: grid;
  place-items: center;
}
.avatar-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .5rem;
}
.avatar-control {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  align-items: center;
  gap: .35rem;
}
.avatar-control span {
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.avatar-control button {
  padding: .45rem 0;
}
.finance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: .75rem;
}
.finance-list {
  display: grid;
  gap: .5rem;
}
.finance-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: .72rem .85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.finance-click {
  width: 100%;
  text-align: left;
  color: var(--text);
  box-shadow: none;
}
.finance-click:hover,
.sponsor-slot-card:hover {
  border-color: rgba(104, 211, 145, .55);
  transform: translateY(-1px);
}
.finance-row span {
  display: grid;
  gap: .12rem;
}
.finance-row small {
  color: var(--muted);
}
.finance-total {
  background: #22302d;
}
.finance-card {
  display: grid;
  gap: .35rem;
  min-height: 7.4rem;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.finance-card b {
  font-size: 1.18rem;
}
.finance-projection {
  grid-column: span 2;
}
.finance-modal {
  width: min(66rem, 100%);
}
.sponsor-manager {
  display: grid;
  gap: 1rem;
}
.sponsor-manager .finance-row {
  grid-template-columns: 1fr auto auto;
}
.sponsor-offers {
  display: grid;
  gap: .55rem;
}
.sponsor-offer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem auto;
  align-items: center;
  gap: .5rem;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
}
.sponsor-offer-row span {
  display: grid;
  gap: .1rem;
}
.sponsor-offer-row small {
  color: var(--muted);
}
.sponsor-offer-row input {
  min-width: 0;
}
.finance-ledger {
  margin-top: .8rem;
}
.money-pos {
  color: #9be7b2;
}
.money-neg {
  color: #ffb3a6;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 8, 7, .68);
  backdrop-filter: blur(3px);
}
.profile-modal {
  width: min(58rem, 100%);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.45);
  padding: 1rem;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: .8rem;
}
.modal-head h3 {
  margin: 0 0 .2rem;
}
.icon-close {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.25rem;
}
.lineup-picker {
  width: min(42rem, 100%);
}
.lineup-choice-list {
  display: grid;
  gap: .55rem;
}
.lineup-choice {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .65rem;
  text-align: left;
  border-color: var(--line);
  background: var(--panel-2);
}
.lineup-choice .avatar-sm {
  width: 2.35rem;
  height: 2.35rem;
}
.lineup-choice span {
  display: grid;
  min-width: 0;
}
.lineup-choice small,
.lineup-choice em {
  color: var(--muted);
  font-style: normal;
}
.lineup-choice.wrong-position-choice {
  border-color: rgba(255, 122, 122, .55);
}
.lineup-choice.wrong-position-choice em {
  color: #ffb3a6;
}
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: #edf7f3;
  color: #101615;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-weight: 800;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.35);
  z-index: 5;
}
.actions {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.muted { color: var(--muted); }
.right { text-align: right; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .mobile-nav-toggle {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 22;
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 .8rem 2rem rgba(0,0,0,.38);
    font-size: 1.35rem;
  }
  .sidebar {
    position: fixed;
    right: 1rem;
    bottom: 5.1rem;
    top: auto;
    z-index: 21;
    width: min(20rem, calc(100vw - 2rem));
    max-height: calc(100vh - 6.4rem);
    height: auto;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.42);
    transform: translateY(.7rem) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }
  .shell.nav-open .sidebar {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
  .finance-projection { grid-column: span 1; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { min-height: 18rem; }
}

@media (max-width: 560px) {
  .content { padding: .75rem; }
  .formrow { grid-template-columns: 1fr; }
  .finance-row { grid-template-columns: 1fr; }
  .avatar-editor { grid-template-columns: 1fr; }
  .training-slots { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: 1fr; text-align: center; }
  .pitch { min-height: 25rem; }
  .player-dot {
    width: 3.35rem;
    min-height: 3.05rem;
  }
  .lineup-choice {
    grid-template-columns: auto auto minmax(0, 1fr);
  }
  .lineup-choice em {
    grid-column: 3;
  }
  .sponsor-offer-row {
    grid-template-columns: 1fr;
  }
  .content { padding-bottom: 5rem; }
}
