/* Blue Wave Baseball — career mode.
   Uses the palette and panel language from styles.css: navy panels, thin
   aqua borders, yellow accents, Playfair for team names. */

.career-panel {
  --cr-line: rgba(67, 177, 230, 0.42);
  --cr-panel: rgba(0, 41, 78, 0.72);
  --cr-inset: rgba(1, 29, 58, 0.66);
  --cr-text-dim: rgba(255, 255, 255, 0.66);
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 1rem 0.9rem;
  overflow-y: auto;
  color: white;
}

.career-view { min-height: 100%; }
.career-view[hidden] { display: none !important; }

/* ---- shared bits ------------------------------------------------ */

.career-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.15rem 0 0.75rem;
}

.career-heading h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.career-heading p {
  margin: 0.25rem 0 0;
  color: var(--cr-text-dim);
  font-size: 0.82rem;
}

.career-heading > small {
  flex: none;
  color: var(--yellow);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.career-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  background: var(--cr-panel);
}

.career-card > h4 {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.career-card .hint {
  color: var(--cr-text-dim);
  font-size: 0.74rem;
  line-height: 1.4;
}

.cr-primary,
.cr-secondary,
.cr-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 2.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cr-primary {
  border: 0;
  background: var(--yellow);
  color: #082b45;
  box-shadow: 0 7px 20px rgba(243, 199, 68, 0.22);
}

.cr-primary:hover:not(:disabled) { background: #ffd65a; }
.cr-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

.cr-secondary {
  border: 1px solid #7bcdf4;
  background: transparent;
  color: white;
}

.cr-secondary:hover:not(:disabled) { border-color: var(--yellow); background: rgba(16, 65, 99, 0.6); }
.cr-secondary:disabled { opacity: 0.55; cursor: not-allowed; }

.cr-link {
  padding-inline: 0.4rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.cr-link:hover { color: var(--yellow); }

.cr-primary.wide,
.cr-secondary.wide { width: 100%; margin-top: auto; }

.career-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(105, 193, 238, 0.36);
}

.career-footer p {
  margin: 0;
  color: var(--cr-text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.cr-portrait {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 2px solid rgba(243, 199, 68, 0.75);
  border-radius: 0.35rem;
  background: #d9d9d9;
  object-fit: cover;
}

.cr-portrait.empty {
  display: inline-block;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 6px, transparent 6px 12px);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.3);
}

.career-empty {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  max-width: 34rem;
  margin: clamp(1rem, 6vh, 3.5rem) auto;
  text-align: center;
}

.career-empty small {
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.career-empty h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.career-empty p { margin: 0; color: var(--cr-text-dim); font-size: 0.9rem; }
.career-empty.small { margin: 1rem auto; }
.career-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.5rem; }

.league-notice {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(243, 199, 68, 0.5);
  border-radius: 0.4rem;
  background: rgba(243, 199, 68, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- start your career ------------------------------------------ */

.career-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.cr-field { display: grid; gap: 0.35rem; }
.cr-field small { color: var(--cr-text-dim); font-size: 0.72rem; }

.cr-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#cr-team-name {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(105, 193, 238, 0.5);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  color: white;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
}

#cr-team-name:focus { outline: 0; border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(243, 199, 68, 0.45); }
#cr-team-name::placeholder { color: rgba(255, 255, 255, 0.35); font-weight: 600; }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 7.4rem));
  gap: 0.5rem;
}

.badge-option,
.color-option,
.player-card,
.lineup-rows button {
  font: inherit;
  color: white;
  cursor: pointer;
}

.badge-option {
  position: relative;
  aspect-ratio: 1;
  padding: 0.55rem;
  border: 2px solid rgba(105, 193, 238, 0.5);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}

.badge-option img { display: block; width: 100%; height: 100%; object-fit: contain; }
.badge-option:hover, .badge-option:focus-visible { border-color: var(--yellow); }
.badge-option.active { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(243, 199, 68, 0.6), 0 0 22px rgba(243, 199, 68, 0.3); }

.tick {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--yellow) center / 0.7rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082b45' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}

.badge-option.active .tick,
.color-option.active .tick { display: block; }

.color-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.color-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: 3.4rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.color-option::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 2.6rem;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.22);
}

.color-option:hover::before { border-color: rgba(255, 255, 255, 0.7); }
.color-option.active::before { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(243, 199, 68, 0.5); }
.color-option .tick { top: 0; right: 0.15rem; }
.color-option small { min-height: 0.9rem; color: var(--yellow); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.team-preview-card { justify-content: center; }
.team-preview-card > h4 { margin-bottom: auto; }
.team-preview-card .roster-note { margin-top: auto; }
.team-preview-card .create-submit { margin-top: 0; }

.team-preview {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.9rem 0.75rem 0.8rem;
  border: 1px solid rgba(105, 193, 238, 0.4);
  border-radius: 0.45rem;
  background:
    radial-gradient(circle at 50% 10%, color-mix(in srgb, var(--team) 45%, transparent), transparent 60%),
    linear-gradient(180deg, rgba(3, 52, 97, 0.85), rgba(1, 24, 48, 0.95));
  text-align: center;
}

.team-preview-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  max-width: 19rem;
  margin-bottom: 0.4rem;
}

.team-preview-badge {
  width: 100%;
  max-width: 8.5rem;
  justify-self: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.jersey { display: block; width: 100%; max-width: 8rem; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }

.team-preview strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.team-preview small {
  color: #9fdcff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roster-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(105, 193, 238, 0.4);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}

.roster-note b { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.roster-note small { display: block; color: var(--cr-text-dim); font-size: 0.74rem; }

.roster-note-icon,
.owned .people {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237bcdf4'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Ccircle cx='17' cy='9' r='2.6'/%3E%3Cpath d='M2.5 19c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6v1h-13z'/%3E%3Cpath d='M15.5 20v-1c0-1.7-.5-3.2-1.4-4.4.9-.4 1.9-.6 2.9-.6 2.7 0 4.5 1.9 4.5 4.6v1.4z'/%3E%3C/svg%3E");
}

/* ---- hub ---------------------------------------------------------- */

.hub-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: minmax(min-content, 1fr) minmax(min-content, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}
.hub-grid > .career-card { padding: 0.65rem; gap: 0.45rem; min-width: 0; min-height: 0; justify-content: space-between; }

/* Next game owns the first column outright; the four tiles share the two
   rows so their tops and bottoms line up across both columns. */
.hub-grid > .next-game  { grid-column: 1; grid-row: 1 / 3; }
.hub-grid > .market     { grid-column: 2; grid-row: 1; }
.hub-grid > .club       { grid-column: 3; grid-row: 1; }
.hub-grid > .management { grid-column: 2; grid-row: 2; }
.hub-grid > .store      { grid-column: 3; grid-row: 2; }

.next-game {
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--team, #0f5fbf) 28%, transparent), transparent 45%),
    var(--cr-panel);
}

.matchup {
  --badge: clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;          /* badges share one baseline even when a name wraps */
  gap: 0.5rem;
  padding: 0.6rem 0.4rem;
  border: 1px solid rgba(105, 193, 238, 0.32);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(1, 29, 58, 0.5), rgba(1, 29, 58, 0.85));
}

.team-side {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  min-width: 0;
  text-align: center;
}

.team-side img {
  width: var(--badge);
  height: var(--badge);
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.team-side small {
  margin-top: 0.3rem;
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-side strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;       /* long names get two lines, never a third */
  max-width: 100%;
  min-height: 2.2em;           /* ...and always reserve two, so both sides match */
  overflow: hidden;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.team-side em { color: #9fdcff; font-size: 0.7rem; font-style: normal; font-weight: 600; }

.vs {
  align-self: start;
  margin-top: calc(var(--badge) / 2 - 1rem);   /* centred on the badge row */
  padding: 0.3rem 0.5rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  color: #9fdcff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 800;
}

.venue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 700;
}

.pin {
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f3c744'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}

.lineup-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.lineup-chip {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.3rem 0.3rem;
  border: 1px solid rgba(105, 193, 238, 0.4);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}

.lineup-chip .cr-portrait { width: 100%; height: auto; aspect-ratio: 1; }
.lineup-chip b { font-size: 0.72rem; letter-spacing: 0.08em; }
.lineup-chip.missing { border-style: dashed; }

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(105, 193, 238, 0.45);
  border-radius: 0.35rem;
  background: var(--cr-inset);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill.ok { border-color: rgba(87, 214, 152, 0.6); color: #8ff0bd; }
.pill.ok::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #35c97f center / 0.5rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062a1a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.pill.warn { border-color: rgba(232, 95, 75, 0.6); color: #ffb3a6; }

/* confirmation state of the next-game tile */

.confirm-head { display: flex; align-items: center; gap: 0.75rem; }
.confirm-head img { width: 3.6rem; height: 3.6rem; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
.confirm-head small { display: block; color: var(--yellow); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.confirm-head strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; line-height: 1.1; }
.confirm-head em { display: block; color: #9fdcff; font-size: 0.72rem; font-style: normal; }

.confirm-lineup { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }

.confirm-lineup li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(105, 193, 238, 0.35);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}

.confirm-lineup li.up { border-color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.5); }
.confirm-lineup li.played { opacity: 0.75; }
.confirm-lineup small { display: block; color: var(--yellow); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.confirm-lineup strong { display: block; font-size: 0.88rem; line-height: 1.15; }
.confirm-lineup b { color: var(--yellow); font-size: 0.8rem; }

.confirm-pitcher { display: flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--cr-text-dim); font-size: 0.78rem; }
.confirm-pitcher img { width: 2rem; height: 2rem; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; object-fit: cover; }
.confirm-pitcher strong { color: white; }
.confirm-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; margin-top: auto; }

/* team management card */

.lineup-rows { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.lineup-rows button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(105, 193, 238, 0.45);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  text-align: left;
}

.lineup-rows button:hover, .lineup-rows button:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.92); }
.lineup-rows button.active { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(243, 199, 68, 0.6); }
.lineup-rows small { display: block; color: var(--yellow); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lineup-rows strong { display: block; font-size: 0.88rem; line-height: 1.15; }
.lineup-rows em { display: block; color: var(--cr-text-dim); font-size: 0.7rem; font-style: normal; }

.owned { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0.2rem 0 0; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.owned .people { width: 1.2rem; height: 1.2rem; }
.management .hint { text-align: center; }

/* store card */

.store-tabs { display: flex; gap: 0.4rem; }

.store-tabs > * {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(105, 193, 238, 0.45);
  border-radius: 0.35rem;
  background: var(--cr-inset);
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.store-tabs button { cursor: pointer; }
.store-tabs > .active { border-color: var(--yellow); color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.5); }
.store-tabs button:hover { border-color: var(--yellow); }

.store-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(105, 193, 238, 0.32);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, rgba(1, 29, 58, 0.5), rgba(1, 29, 58, 0.85));
}

.store-skin-teaser { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 14% 40%; border-radius: 0.35rem; }

.store-copy { margin: 0; text-align: center; }
.store-copy b { display: block; font-size: 0.95rem; }
.store-copy small { display: block; color: var(--cr-text-dim); font-size: 0.74rem; line-height: 1.35; }

.cash-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  align-self: center;
  min-width: 8rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(243, 199, 68, 0.6);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.cash-chip i {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #082b45;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}

/* league progress bar */

.league-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  background: var(--cr-panel);
}

.lb-label, .lb-count {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lb-next { color: var(--yellow); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.lb-track { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.25rem; }

.lb-cell {
  display: grid;
  place-items: center;
  height: 1.85rem;
  border: 1px solid rgba(105, 193, 238, 0.4);
  border-radius: 0.25rem;
  background: var(--cr-inset);
}

.lb-cell img { width: 1.35rem; height: 1.35rem; object-fit: contain; opacity: 0.55; }
.lb-cell.done { background: var(--yellow); border-color: var(--yellow); }
.lb-cell.done img { opacity: 1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
.lb-cell.now { border-color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.8), 0 0 12px rgba(243, 199, 68, 0.35); }
.lb-cell.now img { opacity: 1; }

.hub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  color: var(--cr-text-dim);
  font-size: 0.74rem;
  font-weight: 600;
}

/* ---- team management view ---------------------------------------- */

.manage-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 0.75rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.5rem;
}

.player-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.5rem;
  border: 1px solid rgba(105, 193, 238, 0.45);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  text-align: left;
}

.player-card img { grid-row: 1 / span 2; width: 3.2rem; height: 3.2rem; border: 2px solid rgba(243, 199, 68, 0.75); border-radius: 0.35rem; object-fit: cover; }
.player-card strong { display: block; font-size: 0.88rem; line-height: 1.15; }
.player-card small { display: block; color: var(--cr-text-dim); font-size: 0.68rem; }
.player-card:hover:not(:disabled), .player-card:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.92); }
.player-card.active { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(243, 199, 68, 0.6); }
.player-card.dim { opacity: 0.45; cursor: not-allowed; }

.player-card .tag {
  grid-column: 2;
  justify-self: start;
  margin-top: -0.2rem;
  padding: 0.12rem 0.4rem;
  border-radius: 0.25rem;
  background: var(--yellow);
  color: #082b45;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-card .tag.bench { background: rgba(255, 255, 255, 0.16); color: white; }

/* ---- on the field during a career game --------------------------- */

body.career-play .matchup-picker,
body.career-play .roster-toggle,
body.career-play .roster-panel {
  display: none !important;
}

/* ---- responsive --------------------------------------------------- */

@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .hub-grid .next-game { grid-column: 1 / -1; }
  .league-bar { grid-template-columns: auto 1fr; }
  .lb-next, .lb-count { grid-column: 2; }
  .lb-next { justify-self: start; }
  .lb-count { justify-self: end; margin-top: -1.3rem; }
}

@media (max-width: 920px) {
  .career-panel { overflow: visible; }
  .career-create-grid, .manage-grid, .hub-grid { grid-template-columns: 1fr; }
  .hub-grid .next-game { grid-column: auto; }
  .career-footer { grid-template-columns: 1fr; }
  .career-footer p { order: -1; }
  .career-footer .cr-primary, .career-footer .cr-secondary { width: 100%; }
  .league-bar { grid-template-columns: 1fr; gap: 0.45rem; }
  .lb-next, .lb-count { grid-column: auto; justify-self: start; margin: 0; white-space: normal; }
  .career-heading { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

@media (max-width: 560px) {
  .badge-grid { gap: 0.35rem; }
  .team-side img { width: 3.6rem; height: 3.6rem; }
  .store-teaser { grid-template-columns: 1fr 1fr; }
  .lineup-strip { gap: 0.25rem; }
  .hub-footer { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------------ *
 * Team management (player skills v1)
 *
 * One fixed page, two columns. Left: the selected player's card, which
 * is what the Train buttons act on. Right: the fielded lineup on top,
 * the whole squad as a picker grid below. Only the grid scrolls, so
 * "Back to career" is always reachable.
 *
 * Interaction: tap a squad tile to select a player, tap a lineup slot
 * to field the selected player there.
 * ------------------------------------------------------------------ */

.career-view[data-view="manage"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.career-view[data-view="manage"] .career-heading { flex: none; margin-bottom: 0.5rem; }
.career-view[data-view="manage"] .career-heading p { font-size: 0.78rem; }
.career-view[data-view="manage"] .career-footer { flex: none; margin-top: 0.55rem; padding-top: 0.5rem; }
.career-view[data-view="manage"] .career-card { gap: 0.5rem; padding: 0.7rem; }

.manage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
}

.manage-right { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 0.55rem; min-width: 0; min-height: 0; }

/* --- selected player (left) ---------------------------------------- */

.selected-panel {
  min-height: 0;
  overflow-y: auto;
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.28);
}

.selected-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.85rem; align-items: start; }
.selected-face {
  width: min(11rem, 21vh);
  aspect-ratio: 1;
  border: 1px solid var(--cr-line);
  border-radius: 0.5rem;
  object-fit: cover;
  background: var(--cr-inset);
}
.selected-id { display: grid; gap: 0.4rem; align-content: start; min-width: 0; padding-top: 0.2rem; }
.selected-id h5 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  line-height: 1.05;
}
.selected-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0; font-size: 0.82rem; }
.selected-tags span { color: var(--cr-text-dim); }
.archetype-row { margin: 0; }
.archetype {
  display: inline-block;
  padding: 0.16rem 0.55rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.3rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.74rem;
}

.selected-panel h6 {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; }
.skill-meter {
  display: grid;
  gap: 0.18rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}
.skill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.skill-head b { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.skill-head span { font-variant-numeric: tabular-nums; font-size: 0.84rem; }
.skill-meter small { color: var(--cr-text-dim); font-size: 0.66rem; line-height: 1.2; }

.skill-track {
  position: relative;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.skill-track i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
/* trained sits underneath and shows as the paler tail past the printed rating */
.skill-track .trained { background: rgba(255, 255, 255, 0.45); }
.skill-track .printed { z-index: 1; background: linear-gradient(90deg, #43b1e6, #7fd4ff); }
/* the gear bonus: a gold tail past everything else (career games) */
.skill-track .gear-tail { z-index: 2; border-radius: 0 999px 999px 0; background: linear-gradient(90deg, #f3c744, #ffe08a); }
.skill-bonus { color: var(--yellow); font-style: normal; font-weight: 800; }

/* "Gear bonus" under a hitter's name: what everything on adds to every
   hitter in career games, added up. Opens the Gear tab. */
.gear-bonus-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.1rem 0.6rem;
  width: fit-content;
  min-width: 11rem;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(243, 199, 68, 0.55);
  border-radius: 0.45rem;
  background: rgba(243, 199, 68, 0.08);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.gear-bonus-box:hover { border-color: var(--yellow); background: rgba(243, 199, 68, 0.16); }
.gear-bonus-box:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.gear-bonus-box small {
  grid-column: 1;
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gear-bonus-box em {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.7rem;
  color: var(--yellow);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 700;
}
.gear-bonus-box em b { font-weight: 900; }
.gear-bonus-box.none em { color: var(--cr-text-dim); font-size: 0.78rem; font-weight: 600; }
.gb-go { grid-column: 2; grid-row: 1 / span 2; color: rgba(255, 255, 255, 0.55); font-size: 1.25rem; font-style: normal; line-height: 1; }

.train-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 6.9rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--yellow);
  border-radius: 0.4rem;
  background: rgba(243, 199, 68, 0.12);
  color: inherit;
  cursor: pointer;
}
.train-btn:hover:not(:disabled), .train-btn:focus-visible:not(:disabled) { background: rgba(243, 199, 68, 0.24); }
.train-btn:disabled { border-color: var(--cr-line); background: var(--cr-inset); color: var(--cr-text-dim); cursor: default; }
.train-btn i {
  display: grid;
  place-items: center;
  width: 1.25rem; height: 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #06233d;
  font-style: normal;
  font-weight: 700;
  font-size: 0.76rem;
}
.train-btn span { display: grid; text-align: left; }
.train-btn small { font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
.train-btn b { font-size: 0.84rem; font-variant-numeric: tabular-nums; }

.train-note { margin: 0.15rem 0 0; color: var(--cr-text-dim); font-size: 0.7rem; text-align: center; }

/* --- fielded lineup (right, top) ------------------------------------ */

.lineup-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lineup-card {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  width: 100%;
  height: 100%;
  padding: 0.45rem 0.3rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.lineup-card:hover:not(:disabled), .lineup-card:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.92); }
.lineup-card.active { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(243, 199, 68, 0.6); }
.lineup-card.dim { opacity: 0.58; cursor: default; }
.lineup-card small { color: var(--yellow); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.lineup-card img, .lineup-card .empty-face {
  width: 2.3rem; height: 2.3rem; border-radius: 0.32rem; object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}
.lineup-card strong { font-size: 0.76rem; line-height: 1.15; }
.lineup-card em { color: var(--cr-text-dim); font-size: 0.63rem; font-style: normal; }

/* a swap moves up to two slots — make it impossible to miss */
.lineup-card.just-swapped { animation: lineup-swap 900ms ease-out 1; }
@keyframes lineup-swap {
  0%   { transform: scale(1); border-color: var(--yellow); box-shadow: 0 0 0 0 rgba(243, 199, 68, 0.85); background: rgba(243, 199, 68, 0.55); }
  35%  { transform: scale(1.06); box-shadow: 0 0 1.1rem 0.25rem rgba(243, 199, 68, 0.6); background: rgba(243, 199, 68, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(243, 199, 68, 0); background: var(--cr-inset); }
}
@media (prefers-reduced-motion: reduce) {
  .lineup-card.just-swapped { animation-duration: 1ms; }
}

/* --- the switch control, between lineup and squad ------------------- */

.switch-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  padding: 0.1rem 0;
}

.switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--yellow);
  border-radius: 999px;
  background: rgba(243, 199, 68, 0.14);
  color: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.switch-btn:hover:not(:disabled), .switch-btn:focus-visible:not(:disabled) {
  background: rgba(243, 199, 68, 0.28);
}
.switch-btn:disabled {
  border-color: var(--cr-line);
  background: var(--cr-inset);
  color: var(--cr-text-dim);
  cursor: default;
}
.switch-btn i {
  display: grid;
  place-items: center;
  width: 1.25rem; height: 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #06233d;
  font-style: normal;
  font-size: 0.82rem;
  line-height: 1;
}
.switch-btn:disabled i { background: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.7); }

.switch-bar small { color: var(--cr-text-dim); font-size: 0.7rem; text-align: center; }

/* --- the squad (right, bottom) -------------------------------------- */

.pick-panel { min-height: 0; }
.pick-panel > h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.owned-count { color: var(--cr-text-dim); font-size: 0.66rem; letter-spacing: 0.04em; }

.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr));
  gap: 0.45rem;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0 0.3rem 0 0;
  overflow-y: auto;
  align-content: start;
  list-style: none;
}

.pick-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0.4rem 0.45rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  background: var(--cr-inset);
  color: inherit;
  text-align: center;
  cursor: pointer;
}
.pick-card:hover:not(:disabled), .pick-card:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.92); }
/* wrong role for the slot on show: still readable, just not choosable */
.pick-card.dim { opacity: 0.45; cursor: default; }
.pick-card.active { border-color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(243, 199, 68, 0.6); }
.pick-card img {
  width: 3.9rem; height: 3.9rem;
  border-radius: 0.4rem;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}
.pick-card strong { margin-top: 0.15rem; font-size: 0.76rem; line-height: 1.15; }
.pick-card em { color: var(--cr-text-dim); font-size: 0.64rem; font-style: normal; }
.pick-card .slot-tag { position: absolute; top: 0.35rem; right: 0.35rem; }
.pick-stats { margin-top: 0.12rem; }

.slot-tag {
  flex: none;
  padding: 0.12rem 0.4rem;
  border-radius: 0.28rem;
  background: var(--yellow);
  color: #06233d;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.slot-tag.bench { background: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.8); }

/* "50/20" — enough to judge a swap straight from the grid */
.mini-stats {
  padding: 0.02rem 0.3rem;
  border-radius: 0.22rem;
  background: rgba(67, 177, 230, 0.22);
  color: #bfe6ff;
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .manage-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .career-view[data-view="manage"] { height: auto; }
  .switch-bar { flex-direction: column; gap: 0.35rem; }
  .pick-grid { max-height: 20rem; }
  .lineup-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selected-head { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .selected-tags { justify-content: center; }
  .archetype-row { text-align: center; }
  .gear-bonus-box { justify-self: center; }
  .skill-row { grid-template-columns: minmax(0, 1fr); }
  .train-btn { justify-content: center; }
}

/* ------------------------------------------------------------------ *
 * Player portraits.
 *
 * styles.css draws these as a sprite off fictional-player-faces-v1.png,
 * which only has eight faces on it. There are eight sheets now (64 faces,
 * cut to assets/players/faces/ by tools/prepare-assets.py), so point every
 * index at its own cut file instead. Same markup, same sizing - it just
 * stops face-8 and up falling off the end of the old sprite.
 *
 * career.css loads after styles.css, so these win. Keeping them here also
 * means a fresh styles.css from a handover cannot drop them.
 * ------------------------------------------------------------------ */

.placeholder-face {
  background-size: cover;
  background-position: center;
}

.placeholder-face.face-0 { background-image: url("assets/players/faces/face-0.png"); }
.placeholder-face.face-1 { background-image: url("assets/players/faces/face-1.png"); }
.placeholder-face.face-2 { background-image: url("assets/players/faces/face-2.png"); }
.placeholder-face.face-3 { background-image: url("assets/players/faces/face-3.png"); }
.placeholder-face.face-4 { background-image: url("assets/players/faces/face-4.png"); }
.placeholder-face.face-5 { background-image: url("assets/players/faces/face-5.png"); }
.placeholder-face.face-6 { background-image: url("assets/players/faces/face-6.png"); }
.placeholder-face.face-7 { background-image: url("assets/players/faces/face-7.png"); }
.placeholder-face.face-8 { background-image: url("assets/players/faces/face-8.png"); }
.placeholder-face.face-9 { background-image: url("assets/players/faces/face-9.png"); }
.placeholder-face.face-10 { background-image: url("assets/players/faces/face-10.png"); }
.placeholder-face.face-11 { background-image: url("assets/players/faces/face-11.png"); }
.placeholder-face.face-12 { background-image: url("assets/players/faces/face-12.png"); }
.placeholder-face.face-13 { background-image: url("assets/players/faces/face-13.png"); }
.placeholder-face.face-14 { background-image: url("assets/players/faces/face-14.png"); }
.placeholder-face.face-15 { background-image: url("assets/players/faces/face-15.png"); }
.placeholder-face.face-16 { background-image: url("assets/players/faces/face-16.png"); }
.placeholder-face.face-17 { background-image: url("assets/players/faces/face-17.png"); }
.placeholder-face.face-18 { background-image: url("assets/players/faces/face-18.png"); }
.placeholder-face.face-19 { background-image: url("assets/players/faces/face-19.png"); }
.placeholder-face.face-20 { background-image: url("assets/players/faces/face-20.png"); }
.placeholder-face.face-21 { background-image: url("assets/players/faces/face-21.png"); }
.placeholder-face.face-22 { background-image: url("assets/players/faces/face-22.png"); }
.placeholder-face.face-23 { background-image: url("assets/players/faces/face-23.png"); }
.placeholder-face.face-24 { background-image: url("assets/players/faces/face-24.png"); }
.placeholder-face.face-25 { background-image: url("assets/players/faces/face-25.png"); }
.placeholder-face.face-26 { background-image: url("assets/players/faces/face-26.png"); }
.placeholder-face.face-27 { background-image: url("assets/players/faces/face-27.png"); }
.placeholder-face.face-28 { background-image: url("assets/players/faces/face-28.png"); }
.placeholder-face.face-29 { background-image: url("assets/players/faces/face-29.png"); }
.placeholder-face.face-30 { background-image: url("assets/players/faces/face-30.png"); }
.placeholder-face.face-31 { background-image: url("assets/players/faces/face-31.png"); }
.placeholder-face.face-32 { background-image: url("assets/players/faces/face-32.png"); }
.placeholder-face.face-33 { background-image: url("assets/players/faces/face-33.png"); }
.placeholder-face.face-34 { background-image: url("assets/players/faces/face-34.png"); }
.placeholder-face.face-35 { background-image: url("assets/players/faces/face-35.png"); }
.placeholder-face.face-36 { background-image: url("assets/players/faces/face-36.png"); }
.placeholder-face.face-37 { background-image: url("assets/players/faces/face-37.png"); }
.placeholder-face.face-38 { background-image: url("assets/players/faces/face-38.png"); }
.placeholder-face.face-39 { background-image: url("assets/players/faces/face-39.png"); }
.placeholder-face.face-40 { background-image: url("assets/players/faces/face-40.png"); }
.placeholder-face.face-41 { background-image: url("assets/players/faces/face-41.png"); }
.placeholder-face.face-42 { background-image: url("assets/players/faces/face-42.png"); }
.placeholder-face.face-43 { background-image: url("assets/players/faces/face-43.png"); }
.placeholder-face.face-44 { background-image: url("assets/players/faces/face-44.png"); }
.placeholder-face.face-45 { background-image: url("assets/players/faces/face-45.png"); }
.placeholder-face.face-46 { background-image: url("assets/players/faces/face-46.png"); }
.placeholder-face.face-47 { background-image: url("assets/players/faces/face-47.png"); }
.placeholder-face.face-48 { background-image: url("assets/players/faces/face-48.png"); }
.placeholder-face.face-49 { background-image: url("assets/players/faces/face-49.png"); }
.placeholder-face.face-50 { background-image: url("assets/players/faces/face-50.png"); }
.placeholder-face.face-51 { background-image: url("assets/players/faces/face-51.png"); }
.placeholder-face.face-52 { background-image: url("assets/players/faces/face-52.png"); }
.placeholder-face.face-53 { background-image: url("assets/players/faces/face-53.png"); }
.placeholder-face.face-54 { background-image: url("assets/players/faces/face-54.png"); }
.placeholder-face.face-55 { background-image: url("assets/players/faces/face-55.png"); }
.placeholder-face.face-56 { background-image: url("assets/players/faces/face-56.png"); }
.placeholder-face.face-57 { background-image: url("assets/players/faces/face-57.png"); }
.placeholder-face.face-58 { background-image: url("assets/players/faces/face-58.png"); }
.placeholder-face.face-59 { background-image: url("assets/players/faces/face-59.png"); }
.placeholder-face.face-60 { background-image: url("assets/players/faces/face-60.png"); }
.placeholder-face.face-61 { background-image: url("assets/players/faces/face-61.png"); }
.placeholder-face.face-62 { background-image: url("assets/players/faces/face-62.png"); }
.placeholder-face.face-63 { background-image: url("assets/players/faces/face-63.png"); }


/* ------------------------------------------------------------------ *
 * Career hub — three columns.
 *
 * Next game fills the first column; the other two stack two cards each:
 * Transfer market + Team management, then Club management + Store. The
 * league progress strip sits under all of it.
 * ------------------------------------------------------------------ */


/* shared card furniture */
.card-copy { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 0.82rem; text-align: center; }
.card-copy b { font-weight: 700; }
.card-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-stat.soon { color: var(--cr-text-dim); }
.card-stat .ic { width: 0.95rem; height: 0.95rem; flex: none; background: currentColor; }
.ic.people { -webkit-mask: center / contain no-repeat var(--people); mask: center / contain no-repeat var(--people); }
.ic.tag { -webkit-mask: center / contain no-repeat var(--tag); mask: center / contain no-repeat var(--tag); }
.career-panel {
  --people: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M16 11a4 4 0 100-8 4 4 0 000 8zm-8 0a4 4 0 100-8 4 4 0 000 8zm0 2c-2.7 0-8 1.34-8 4v3h10v-3c0-1.02.4-1.9 1.05-2.62A14 14 0 008 13zm8 0c-.35 0-.74.02-1.15.06A5 5 0 0116 17v3h8v-3c0-2.66-5.3-4-8-4z'/%3E%3C/svg%3E");
  --tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21.4 11.6l-9-9A2 2 0 0011 2H4a2 2 0 00-2 2v7c0 .53.21 1.04.59 1.41l9 9a2 2 0 002.82 0l7-7a2 2 0 000-2.81zM6.5 8A1.5 1.5 0 118 6.5 1.5 1.5 0 016.5 8z'/%3E%3C/svg%3E");
}

.career-card > .pill { align-self: center; }

/* ------------------------------------------------------------------ *
 * Card header bar, "Coming soon" tag and yellow outline button.
 *
 * Shared by the career hub tiles and the Club management / Scouting
 * Center pages (academy.css): a dark bar with the card's title, then a
 * chevron when the whole bar links through, or a "Coming soon" tag.
 * ------------------------------------------------------------------ */

.club-card-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-bottom: 1px solid var(--cr-line);
  background: rgba(1, 29, 58, 0.6);
  color: white;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.club-card-head.static { cursor: default; }
.club-card-head h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.club-card-head .chev { flex: none; width: 1.3rem; height: 1.3rem; color: white; }
.club-card-head:not(.static):hover h4,
.club-card-head:not(.static):hover .chev,
.club-card-head:focus-visible h4 { color: var(--yellow); }

.ac-soon {
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cr-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.42rem 1.1rem;
  border: 2px solid var(--yellow);
  border-radius: 0.45rem;
  background: rgba(1, 29, 58, 0.55);
  color: var(--yellow);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.cr-outline:hover:not(:disabled), .cr-outline:focus-visible { background: rgba(243, 199, 68, 0.16); }
.cr-outline:disabled { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.5); cursor: default; }
.cr-outline.wide { width: 100%; }

/* ------------------------------------------------------------------ *
 * Career hub tiles
 *
 * Transfer market, Club management, Team management and Store use the
 * Club management page's card language: header bar, art on the night
 * stadium backdrop, then a foot with one status line and a yellow
 * outline button. A wide tile (tablets) puts its art beside the foot.
 * Next game gets the same header bar and keeps its own body.
 * ------------------------------------------------------------------ */

.hub-grid > .career-card { padding: 0; gap: 0; overflow: hidden; overflow: clip; }
.hub-grid .club-card-head { padding: 0.5rem 0.7rem; }
.hub-grid .club-card-head h4 {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-grid .club-card-head .ac-soon { flex: none; }
.hub-grid > .next-game .club-card-head h4 { color: var(--yellow); }

.next-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.65rem;
}

.hub-tile {
  container: hubtile / inline-size;
  background: var(--cr-panel);
}
.hub-tile-main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }

.hub-tile-art {
  position: relative;
  flex: 1 1 0;
  min-height: 6.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 62% at 50% 46%, rgba(67, 177, 230, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.25), rgba(3, 18, 38, 0.8)),
    #06213f url("assets/hub-tile-bg.png") center / cover;
}
.hub-tile.market .hub-tile-art {
  background:
    radial-gradient(ellipse 58% 60% at 50% 50%, rgba(243, 199, 68, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.25), rgba(3, 18, 38, 0.8)),
    #06213f url("assets/hub-tile-bg.png") center / cover;
}
.hub-tile.club .hub-tile-art {
  background:
    radial-gradient(ellipse 62% 58% at 50% 40%, color-mix(in srgb, var(--team, #0f5fbf) 34%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.25), rgba(3, 18, 38, 0.8)),
    #06213f url("assets/hub-tile-bg.png") center / cover;
}

/* A box inside the art that the pictures size themselves against, so they
   grow and shrink with the tile and never spill out of it. */
.hub-art-fit {
  position: absolute;
  inset: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}

.hub-art-img {
  position: absolute;
  top: 0.3rem;
  left: 0.5rem;
  width: calc(100% - 1rem);
  height: calc(100% - 0.6rem);
  object-fit: contain;
}

/* team management: the fielded lineup as four small cards */
.hub-faces { display: flex; align-items: center; justify-content: center; gap: 0.45rem; width: 100%; height: 100%; }
.hub-face {
  position: relative;
  flex: none;
  height: 4.6rem;
  height: min(100cqh, (100cqw - 1.35rem) / 4 * 1.25);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(243, 199, 68, 0.6);
  border-radius: 0.4rem;
  background: rgba(1, 29, 58, 0.75);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}
.hub-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hub-face i {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 6px, transparent 6px 12px);
}
.hub-face.missing { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); }
.hub-face b {
  position: absolute;
  bottom: 0.22rem;
  left: 50%;
  padding: 0.04rem 0.34rem;
  border-radius: 0.25rem;
  background: rgba(1, 29, 58, 0.88);
  color: var(--yellow);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

/* a tall art box fits the four cards better as two rows of two */
@container (max-aspect-ratio: 8 / 5) {
  .hub-faces { display: grid; grid-template-columns: repeat(2, auto); align-content: center; justify-content: center; }
  .hub-face { height: min((100cqh - 0.45rem) / 2, (100cqw - 0.45rem) / 2 * 1.25); }
}

/* club management: badge and kit, like the club design card */
.hub-club {
  position: absolute;
  inset: 0.55rem 0.7rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.hub-kit {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  min-height: 0;
  container-type: size;
}
.hub-kit-badge {
  flex: none;
  width: 4rem;
  width: min(100cqh, 42cqw);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}
.hub-kit .jersey { flex: none; width: 3.5rem; width: min(86cqh, 36cqw); max-width: none; margin: 0; }
.hub-club-name {
  flex: none;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-variant-numeric: lining-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* store: the rotating outfit card, as large as the art box allows */
.hub-tile .skin-cycle {
  flex: none;
  width: 12rem;
  width: min(100cqw, 100cqh * 600 / 338);
  margin: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.hub-tile-foot {
  display: grid;
  flex: none;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem 0.65rem;
  border-top: 1px solid var(--cr-line);
  background: rgba(1, 29, 58, 0.62);
}
.hub-tile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  min-height: 1.35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.76rem;
}
.hub-tile-line > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-stat {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(123, 205, 244, 0.55);
  border-radius: 999px;
  color: #9fdcff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hub-stat.ok { border-color: rgba(53, 201, 127, 0.7); background: rgba(53, 201, 127, 0.12); color: #8ff0bd; }
.hub-stat.ok::before { content: ""; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; }
.hub-stat.warn { border-color: rgba(232, 95, 75, 0.6); background: rgba(232, 95, 75, 0.12); color: #ffb3a6; }
.hub-stat.cash { border-color: rgba(243, 199, 68, 0.6); color: var(--yellow); font-size: 0.72rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.hub-stat.cash i {
  display: grid;
  place-items: center;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #082b45;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
}
.hub-grid .cr-outline { min-height: 2.25rem; padding-block: 0.3rem; }

/* the narrowest desktop tiles: tighten the header so the title fits */
@container hubtile (max-width: 19.5rem) {
  .hub-grid .club-card-head h4 { letter-spacing: 0.1em; }
  .hub-grid .club-card-head .ac-soon { padding-inline: 0.4rem; letter-spacing: 0.07em; }
}

/* wide tiles: art on the left, the foot on the right */
@container hubtile (min-width: 27rem) {
  .hub-tile-main { flex-direction: row; }
  .hub-tile-art { flex: 1 1 55%; min-height: 9rem; }
  .hub-tile-foot {
    flex: 0 0 45%;
    align-content: center;
    border-top: 0;
    border-left: 1px solid var(--cr-line);
  }
  .hub-tile-line { flex-wrap: wrap; }
  .hub-tile-line > span { white-space: normal; }
}

@media (max-width: 1100px) {
  .hub-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .hub-grid > .next-game  { grid-column: 1 / -1; grid-row: 1; }
  .hub-grid > .market     { grid-column: 1; grid-row: 2; }
  .hub-grid > .club       { grid-column: 2; grid-row: 2; }
  .hub-grid > .management { grid-column: 1; grid-row: 3; }
  .hub-grid > .store      { grid-column: 2; grid-row: 3; }
}

@media (max-width: 760px) {
  .hub-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .hub-grid > .career-card { grid-column: auto !important; grid-row: auto !important; }
}


/* The hub has to hold as one page, and Next game is the tall column, so
   trim it there rather than shrinking every card. */
.career-view[data-view="hub"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.career-view[data-view="hub"] .hub-grid { flex: 1 1 auto; min-height: min-content; }
.career-view[data-view="hub"] .league-bar,
.career-view[data-view="hub"] .league-notice { flex: none; }

/* Next game is the point of the page: warmer border, a little lift, and it
   takes the slack inside the card so the matchup breathes. */
.hub-grid > .next-game {
  border-color: rgba(243, 199, 68, 0.5);
  box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.12), 0 0.7rem 1.7rem rgba(0, 0, 0, 0.4);
}
.hub-grid > .next-game > h4 { color: var(--yellow); }

/* A `.wide` button carries margin-top:auto, which swallows ALL of a card's
   free space into the one gap above it. Inside the hub the cards are
   stretched to a shared height, so that auto margin is what turns spare
   room into a single hole. Drop it and let justify-content spread the
   slack evenly between every child instead. */
.career-view[data-view="hub"] .hub-grid .cr-primary.wide,
.career-view[data-view="hub"] .hub-grid .cr-secondary.wide { margin-top: 0; }

/* The matchup takes a share of the slack - enough to stay the biggest
   block on the page - and leaves the rest to the even gaps above. */
.career-view[data-view="hub"] .matchup {
  --badge: clamp(3.8rem, 6vw, 6.4rem);
  flex: 0.45 1 auto;
  align-content: center;
  align-items: center;
  padding: 0.55rem 0.4rem;
  gap: 0.4rem;
}
/* the strip is four full-width portraits, so a wider column made the card
   grow vertically as well - cap them and centre the row instead */
.career-view[data-view="hub"] .lineup-strip {
  grid-template-columns: repeat(4, minmax(0, 5.5rem));
  justify-content: center;
}
.career-view[data-view="hub"] .team-side strong { font-size: clamp(1.05rem, 1.8vw, 1.55rem); }
.career-view[data-view="hub"] .pill { padding: 0.24rem 0.5rem; font-size: 0.62rem; }
.career-view[data-view="hub"] .pill-row { justify-content: center; }
.career-view[data-view="hub"] .venue { margin: 0; }
.career-view[data-view="hub"] .league-bar { margin-top: 0.6rem; padding: 0.45rem 0.7rem; }


/* ------------------------------------------------------------------ *
 * Career hub — the store tile's rotating outfit card.
 * ------------------------------------------------------------------ */

.skin-cycle {
  position: relative;
  width: min(100%, 12.5rem);
  margin-inline: auto;
  aspect-ratio: 600 / 338;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  overflow: hidden;
  background: var(--cr-inset);
}
.skin-cycle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}
.skin-cycle img.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .skin-cycle img { transition: none; }
}

/* On a short laptop screen the bigger portraits and the tile art are the
   first things to give, so the hub still holds as one page. */
@media (max-height: 880px) {
  .career-view[data-view="hub"] .lineup-strip { grid-template-columns: repeat(4, minmax(0, 4.6rem)); }
  .career-view[data-view="hub"] .matchup { --badge: clamp(3.2rem, 5vw, 5.2rem); padding: 0.4rem; }
  .career-view[data-view="hub"] .hub-grid { gap: 0.5rem; }
  .career-view[data-view="hub"] .next-body { padding: 0.55rem; }
  .career-view[data-view="hub"] .league-bar { margin-top: 0.4rem; padding: 0.35rem 0.7rem; }
  .hub-grid .club-card-head { padding-block: 0.4rem; }
  .hub-tile-art { min-height: 5.5rem; }
  .hub-tile-foot { gap: 0.35rem; padding: 0.4rem 0.6rem 0.55rem; }
}

/* Phones and tablets scroll, so give the stacked tiles' art some height. */
@media (max-width: 1100px) {
  .hub-tile-art { min-height: 8.5rem; }
}

/* ------------------------------------------------------------------ *
 * Store
 *
 * One fixed page like Team management: heading, tabs + sort, then a
 * three-column tile grid that scrolls on its own so "Back to career"
 * stays in view. Each tile is a square picture on the left and the
 * item's details and single button on the right. Player packs are
 * portrait art, so they sit whole inside a square stadium frame.
 * ------------------------------------------------------------------ */

.career-view[data-view="store"] {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.shop-heading { flex: none; margin-bottom: 0.6rem; }
.shop-heading h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.shop-heading .cash-chip { min-width: 9rem; padding: 0.5rem 1.1rem; font-size: 1.25rem; }

.shop-bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  gap: 0.5rem;
  max-width: 62rem;
}

.shop-tabs button {
  min-height: 2.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(123, 205, 244, 0.75);
  border-radius: 0.35rem;
  background: var(--cr-inset);
  color: white;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.shop-tabs button:hover { border-color: var(--yellow); }
.shop-tabs button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #082b45;
  box-shadow: 0 6px 18px rgba(243, 199, 68, 0.22);
}

.shop-sort {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0 0.7rem 0 0.9rem;
  border: 1px solid rgba(123, 205, 244, 0.75);
  border-radius: 0.35rem;
  background: var(--cr-inset);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
}

.shop-sort span { color: var(--cr-text-dim); }
.shop-sort:focus-within { border-color: var(--yellow); }

.shop-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.45rem 1.3rem 0.45rem 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='white'/%3E%3C/svg%3E") right center / 0.55rem no-repeat;
  color: white;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.shop-sort select:focus { outline: none; }
.shop-sort option { background: #0a2a4c; color: white; text-transform: none; letter-spacing: 0; }

.shop-count {
  flex: none;
  margin: 0.7rem 0 0.4rem 0.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.35rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 205, 244, 0.7) transparent;
}

.shop-grid::-webkit-scrollbar { width: 6px; }
.shop-grid::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(123, 205, 244, 0.7); }

.shop-tile {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 0.75rem;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  background: var(--cr-panel);
}

.shop-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(105, 193, 238, 0.28);
  border-radius: 0.35rem;
  background: #06213f;
}

.shop-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-tile.soon .shop-art img { filter: saturate(0.9); }

/* Packs only (Rare and up bats): not listed any more (the Cosmetics Pack's
   What's inside shows them); kept for a packs-only tile should one show. */
.shop-tile.packs { background: rgba(4, 22, 44, 0.55); }
.shop-tile.packs .shop-art img { filter: grayscale(0.8) brightness(0.62); }
.shop-tile.packs .shop-info h5,
.shop-tile.packs .shop-tagline { opacity: 0.72; }

/* Packs: portrait art, shown whole, standing in a lit square. */
.shop-art.pack-frame {
  --glow: rgba(67, 177, 230, 0.55);
  background:
    radial-gradient(ellipse 72% 62% at 50% 50%, var(--glow), transparent 70%),
    linear-gradient(180deg, rgba(3, 18, 38, 0.1), rgba(3, 18, 38, 0.55)),
    #06213f url("assets/hub-tile-bg.png") center / cover;
}

.shop-art.pack-frame::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 5%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
}

.shop-art.pack-frame img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 80%;
  height: 90%;
  margin: 4% auto 0;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.55));
}

.shop-art.tier-premium { --glow: rgba(150, 215, 255, 0.7); }
.shop-art.tier-legendary { --glow: rgba(243, 199, 68, 0.72); }

.shop-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.3rem 0.2rem 0.2rem 0;
}

.shop-chip {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #9ed8f7;
  color: #082b45;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-chip.chip-pack { background: var(--yellow); }

/* Cosmetic rarity (store-catalogue.json "rarity"): grey, blue, purple, fire. */
.shop-chip.rarity-common { background: #cfd9e2; color: #1b2c3a; }
.shop-chip.rarity-rare { background: #4f9dff; color: #ffffff; }
.shop-chip.rarity-epic { background: #a66cff; color: #ffffff; }
.shop-chip.rarity-legendary {
  background: linear-gradient(90deg, #ffc043, #ff7a1c);
  color: #2b1300;
  box-shadow: 0 0 10px rgba(255, 138, 40, 0.45);
}

.shop-info h5 {
  margin: 0.15rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.1;
}

.shop-tagline {
  margin: 0;
  color: var(--cr-text-dim);
  font-size: 0.74rem;
  line-height: 1.35;
}

/* Bats: a small line saying they show in the 3D visuals. */
.shop-note {
  margin: 0;
  color: #9ed8f7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.shop-note.shop-bonus { color: var(--yellow); }

.shop-price {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: auto 0 0;
  padding-top: 0.35rem;
  font-size: 1.02rem;
}

.shop-price i {
  display: grid;
  place-items: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--yellow);
  color: #082b45;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.shop-price b { font-weight: 800; letter-spacing: 0.02em; }
.shop-price.short i { background: rgba(255, 255, 255, 0.3); }
.shop-price.short b { color: rgba(255, 255, 255, 0.62); }
.shop-price.owned i { background: #7bcdf4; }
.shop-price.packs i { background: rgba(255, 255, 255, 0.28); color: #0b2a45; font-size: 0.62rem; }
.shop-price.packs b { color: rgba(255, 255, 255, 0.72); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.shop-price.owned b { color: #bfe6fb; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }

.shop-btn {
  width: 100%;
  min-height: 2.3rem;
  margin-top: 0.3rem;
  padding: 0.4rem 0.6rem;
  border: 2px solid var(--yellow);
  border-radius: 0.4rem;
  background: rgba(1, 29, 58, 0.55);
  color: white;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.shop-btn:hover:not(:disabled) { background: rgba(243, 199, 68, 0.14); }
.shop-btn:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.shop-btn:disabled { cursor: default; }

.shop-btn.is-confirm {
  background: var(--yellow);
  color: #082b45;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(243, 199, 68, 0.3);
}
.shop-btn.is-confirm:hover:not(:disabled) { background: #ffd65a; }

.shop-btn.is-need,
.shop-btn.is-busy {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
}

.shop-btn.is-soon,
.shop-btn.is-closed,
.shop-btn.is-packs {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.shop-empty {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  flex: 1 1 auto;
  grid-column: 1 / -1;
  min-height: 10rem;
  color: var(--cr-text-dim);
  text-align: center;
}
.shop-empty p { margin: 0; }

.career-view[data-view="store"] .career-footer { flex: none; margin-top: 0.55rem; padding-top: 0.5rem; }

@media (max-width: 1250px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .career-view[data-view="store"] { height: auto; }
  .shop-grid { overflow: visible; padding-right: 0; }
  .shop-bar { flex-direction: column; align-items: stretch; }
  .shop-tabs { max-width: none; }
  .shop-sort { align-self: flex-end; }
  .shop-heading { flex-direction: row; align-items: flex-end; }
}

@media (max-width: 640px) {
  .shop-grid { grid-template-columns: 1fr; }
  .shop-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-heading .cash-chip { min-width: 0; font-size: 1.05rem; }
  .shop-tile { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .shop-sort { align-self: stretch; justify-content: space-between; }
}

/* ------------------------------------------------------------------ *
 * Player packs: store buttons, edition chips, releasing players
 * ------------------------------------------------------------------ */

.shop-btn.is-open { border-color: var(--yellow); background: rgba(243, 199, 68, 0.16); }
.shop-btn.is-full {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
}

/* Common / Rare / Chase. Starters carry no chip. */
.ed-chip {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  color: #06233d;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}
.ed-chip.ed-island { background: #7fcdf2; }
.ed-chip.ed-gold { background: var(--yellow); }
.ed-chip.ed-legend { background: linear-gradient(90deg, #ff9ad5, #c98cff, #7fd4ff); }
.archetype-row .ed-chip { margin-left: 0.4rem; }
.pick-card .ed-chip { position: absolute; top: 0.38rem; left: 0.35rem; }
.pick-card:has(.ed-legend) { border-color: rgba(201, 140, 255, 0.7); }
.pick-card:has(.ed-gold) { border-color: rgba(243, 199, 68, 0.55); }

.release-btn {
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.release-btn:hover:not(:disabled), .release-btn:focus-visible { border-color: #ff8a75; color: white; }
.release-btn.armed { border-color: #ff8a75; background: rgba(232, 95, 75, 0.22); color: #ffd0c7; }
.release-btn:disabled { opacity: 0.6; cursor: default; }

/* ------------------------------------------------------------------ *
 * Match results
 *
 * The end-of-game screen for a career match. It sits inside .game-field
 * (above .game-start, which stays behind it as a fallback) so the HUD and
 * the stadium stay in frame. It took over from the old round-summary
 * toast, which used to sit on top of the swing timing bar.
 * ------------------------------------------------------------------ */

.mr-layer {
  position: absolute;
  inset: 0;
  /* Above the HUD (z-index 6), which is a sibling of .game-field since the
     portrait mobile rework. Both live in .game-shell's stacking context. */
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  overflow-y: auto;
  color: white;
  font-family: Inter, system-ui, sans-serif;
}
.mr-layer[hidden] { display: none !important; }

.mr-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(4, 34, 62, 0.62), rgba(1, 12, 26, 0.82) 72%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.mr-panel {
  position: relative;
  width: min(100%, 40rem);
  padding: clamp(0.9rem, 2.4vw, 1.4rem);
  border: 1px solid rgba(243, 199, 68, 0.75);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(0, 45, 86, 0.97), rgba(1, 26, 52, 0.97));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: mr-pop 0.26s ease-out;
}

@keyframes mr-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.mr-head { text-align: center; }

.mr-head h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.mr-head p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.3rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mr-head p::before,
.mr-head p::after {
  content: "";
  flex: 1 1 auto;
  max-width: 4.5rem;
  height: 1px;
  background: rgba(243, 199, 68, 0.5);
}

.mr-head p span { color: var(--yellow); }

/* ---- totals ------------------------------------------------------- */

.mr-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: clamp(0.7rem, 2vw, 1rem);
}

.mr-total {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.5rem;
  border: 1px solid rgba(105, 193, 238, 0.35);
  border-radius: 0.45rem;
  background: rgba(1, 29, 58, 0.6);
  text-align: center;
}

.mr-total small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mr-total strong {
  color: var(--yellow);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
}

.mr-best {
  margin-top: 0.15rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(243, 199, 68, 0.7);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(243, 199, 68, 0.22);
}

.mr-xp {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---- player rows -------------------------------------------------- */

.mr-players { margin-top: clamp(0.7rem, 2vw, 1rem); }

.mr-players h3 {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mr-players ul { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.mr-row {
  display: grid;
  grid-template-columns: 1.9rem 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(105, 193, 238, 0.35);
  border-radius: 0.45rem;
  background: rgba(1, 29, 58, 0.6);
}

.mr-row.top {
  border-color: rgba(243, 199, 68, 0.7);
  background: linear-gradient(90deg, rgba(243, 199, 68, 0.14), rgba(1, 29, 58, 0.6) 55%);
}

.mr-rank {
  display: grid;
  justify-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.mr-row.top .mr-rank { color: var(--yellow); }

.mr-crown {
  width: 1.05rem;
  height: 0.85rem;
  margin-bottom: 0.1rem;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f3c744'%3E%3Cpath d='M2.6 7.4l4.7 3.4L12 3.4l4.7 7.4 4.7-3.4-1.9 11.2H4.5z'/%3E%3C/svg%3E");
}

.mr-face {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.4rem;
  background: rgba(5, 42, 66, 0.8);
}
.mr-face img { width: 100%; height: 100%; object-fit: cover; }
.mr-row.top .mr-face { border-color: rgba(243, 199, 68, 0.7); }

.mr-who { min-width: 0; display: grid; gap: 0.12rem; }

.mr-who strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mr-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.mr-tags b {
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(105, 193, 238, 0.55);
  border-radius: 999px;
  color: #9fdcff;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mr-tags .mr-youth { border-color: rgba(243, 199, 68, 0.6); color: var(--yellow); }

.mr-growth {
  color: #8ff0bd;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}
.mr-growth.flat { color: rgba(255, 255, 255, 0.55); font-weight: 600; }

.mr-score { display: grid; justify-items: end; gap: 0.05rem; }

.mr-score small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mr-score strong { color: var(--yellow); font-size: 1.15rem; font-weight: 900; line-height: 1; }

/* ---- foot --------------------------------------------------------- */

.mr-league {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  text-align: center;
}

.mr-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.mr-actions .cr-primary,
.mr-actions .cr-secondary { width: 100%; }

@media (max-width: 34rem) {
  .mr-row { grid-template-columns: 1.4rem 2.1rem minmax(0, 1fr) auto; gap: 0.45rem; }
  .mr-face { width: 2.1rem; height: 2.1rem; }
  .mr-who strong { font-size: 0.88rem; }
  .mr-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mr-panel { animation: none; }
}

/* A pack won as a season prize: the tile shows the shelf, not a price. */
.shop-price.saved i { background: var(--yellow); }
.shop-price.saved b { color: var(--yellow); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.shop-btn.is-saved { background: var(--yellow); color: #082b45; letter-spacing: 0.08em; box-shadow: 0 6px 18px rgba(243, 199, 68, 0.3); }
.shop-btn.is-saved:hover:not(:disabled) { background: #ffd65a; }

/* ------------------------------------------------------------------ *
 * Season screen
 *
 * One dialog with two states: the results of a season that just
 * finished, and the live progress of the one being played. Opened from
 * the league bar, or by itself on the way back from the last game.
 * ------------------------------------------------------------------ */

.league-bar {
  width: 100%;
  grid-template-columns: auto 1fr auto auto auto;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.league-bar:hover, .league-bar:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.7); }
.league-bar:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.lb-open {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--yellow);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lb-open .chev { width: 0.9rem; height: 0.9rem; }

.sn-layer {
  position: fixed;
  inset: 0;
  z-index: 91;
  display: grid;
  place-items: center;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  overflow-y: auto;
  color: white;
  font-family: Inter, system-ui, sans-serif;
}
.sn-layer[hidden] { display: none !important; }
body.sn-open { overflow: hidden; }

.sn-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(9, 50, 92, 0.9), rgba(1, 10, 24, 0.97) 70%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sn-panel {
  position: relative;
  width: min(100%, 40rem);
  max-height: 100%;
  padding: clamp(1rem, 2.6vw, 1.5rem);
  overflow-y: auto;
  border: 1px solid rgba(243, 199, 68, 0.75);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(0, 45, 86, 0.97), rgba(1, 26, 52, 0.97));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: mr-pop 0.26s ease-out;
}

.sn-close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.sn-close:hover, .sn-close:focus-visible { background: rgba(255, 255, 255, 0.12); color: white; }

.sn-head { text-align: center; }

.sn-kicker {
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sn-head h2 {
  margin: 0.15rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.05;
}

.sn-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: clamp(0.7rem, 2vw, 1rem);
}

.sn-total {
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  padding: 0.65rem 0.55rem;
  border: 1px solid rgba(105, 193, 238, 0.35);
  border-radius: 0.45rem;
  background: rgba(1, 29, 58, 0.6);
  text-align: center;
}

.sn-total small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sn-total strong { color: var(--yellow); font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 900; line-height: 1.08; }
.sn-total.prize strong { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 700; }
.sn-total .sn-nothing { color: rgba(255, 255, 255, 0.55); }
.sn-total.has-prize { border-color: rgba(243, 199, 68, 0.7); box-shadow: 0 0 22px rgba(243, 199, 68, 0.14) inset; }
.sn-sub { color: rgba(255, 255, 255, 0.66); font-size: 0.7rem; font-weight: 700; line-height: 1.3; }

.sn-ladder, .sn-best { margin-top: clamp(0.7rem, 2vw, 1rem); }

.sn-ladder h3, .sn-best h3 {
  margin: 0 0 0.45rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sn-ladder-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }

.sn-ladder-list li {
  display: grid;
  grid-template-columns: 1.15rem 7.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.6rem;
  border: 1px solid rgba(105, 193, 238, 0.3);
  border-radius: 0.4rem;
  background: rgba(1, 29, 58, 0.55);
}
.sn-ladder-list li.won { border-color: rgba(243, 199, 68, 0.6); background: linear-gradient(90deg, rgba(243, 199, 68, 0.12), rgba(1, 29, 58, 0.55) 60%); }
.sn-ladder-list li.next { border-color: rgba(123, 205, 244, 0.7); }
.sn-ladder-list li.locked { opacity: 0.55; }

.sn-tick {
  width: 1.05rem;
  height: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}
.sn-ladder-list li.won .sn-tick {
  border-color: var(--yellow);
  background: var(--yellow) center / 0.62rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082b45' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
}
.sn-ladder-list li.next .sn-tick { border-color: #7bcdf4; }

.sn-tier b { display: block; color: var(--yellow); font-size: 0.92rem; font-weight: 900; line-height: 1.1; }
.sn-tier small { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.sn-ladder-list li.locked .sn-tier b { color: rgba(255, 255, 255, 0.75); }

.sn-reward { min-width: 0; color: white; font-size: 0.78rem; font-weight: 700; line-height: 1.25; }

.sn-ladder-list em {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sn-ladder-list li.won em { color: rgba(255, 255, 255, 0.55); }
.sn-ladder-list li.current { box-shadow: 0 0 0 1px rgba(243, 199, 68, 0.55), 0 0 22px rgba(243, 199, 68, 0.16); }
.sn-ladder-list li.current em { color: var(--yellow); }
.sn-ladder-list li.next em { color: #9fdcff; }

.sn-best-head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(243, 199, 68, 0.55);
  border-radius: 0.4rem 0.4rem 0 0;
  background: rgba(243, 199, 68, 0.1);
}
.sn-best-head img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.sn-best-head small { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sn-best-head strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.sn-best-head > b { color: var(--yellow); font-size: 1.25rem; font-weight: 900; }

.sn-lineup {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid rgba(105, 193, 238, 0.3);
  border-top: 0;
  border-radius: 0 0 0.4rem 0.4rem;
  overflow: hidden;
  background: rgba(105, 193, 238, 0.18);
}

.sn-lineup li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.6rem;
  background: rgba(1, 29, 58, 0.85);
}
.sn-lineup .cr-portrait { width: 2.1rem; height: 2.1rem; }
.sn-lineup strong { display: block; font-size: 0.85rem; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-lineup small { display: block; color: rgba(255, 255, 255, 0.58); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.sn-lineup b { color: var(--yellow); font-size: 0.95rem; font-weight: 900; }

.sn-none { margin: 0; color: var(--cr-text-dim); font-size: 0.8rem; }

.sn-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: clamp(0.7rem, 2vw, 1rem);
}
.sn-actions:has(.wide) { grid-template-columns: minmax(0, 1fr); }
.sn-actions .cr-primary, .sn-actions .cr-secondary { width: 100%; margin-top: 0; }

@media (max-width: 34rem) {
  /* Narrow: the tier reads as one line, with its reward under it. */
  .sn-ladder-list li { grid-template-columns: 1.05rem minmax(0, 1fr); row-gap: 0.1rem; }
  .sn-tier { display: flex; align-items: baseline; gap: 0.45rem; }
  .sn-tier small { white-space: normal; }
  .sn-reward, .sn-ladder-list em { grid-column: 2; }
  .sn-actions { grid-template-columns: minmax(0, 1fr); }
  .league-bar { grid-template-columns: 1fr auto; row-gap: 0.4rem; }
  .lb-track { grid-column: 1 / -1; }
  .lb-next { display: none; }
}

/* ------------------------------------------------------------------ *
 * Team management: Lineup | Gear
 *
 * The Gear tab: what is on (one bat for the lineup, an outfit, and the
 * slots still to come) on the left, and everything owned on the right.
 * Bats are copies in the gear bag (grouped, xN), outfits sit outside
 * it. Equip and sell happen here; the store only sells.
 * ------------------------------------------------------------------ */

.manage-heading { align-items: flex-end; }

.manage-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(6.5rem, 1fr));
  flex: none;
  gap: 0.4rem;
}

.manage-tabs button {
  min-height: 2.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(123, 205, 244, 0.75);
  border-radius: 0.35rem;
  background: var(--cr-inset);
  color: white;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.manage-tabs button:hover { border-color: var(--yellow); }
.manage-tabs button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.manage-tabs button.active {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #082b45;
  box-shadow: 0 6px 18px rgba(243, 199, 68, 0.22);
}

.gear-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr);
  gap: 0.7rem;
  flex: 1 1 auto;
  min-height: 0;
}

.gear-on-panel { min-height: 0; overflow-y: auto; border-color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.28); }
.gear-on-panel .hint { margin: 0; }

.gear-slots { display: grid; gap: 0.45rem; }

.gear-slot {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem;
  border: 1px solid rgba(243, 199, 68, 0.5);
  border-radius: 0.45rem;
  background: rgba(243, 199, 68, 0.07);
}

.gear-slot-art,
.gear-art {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(105, 193, 238, 0.28);
  border-radius: 0.35rem;
  background: #06213f;
}
.gear-slot-art img,
.gear-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gear-art-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #0a2f55, #06213f); }

.gear-slot-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.2rem; min-width: 0; }
.gear-slot-info small {
  color: var(--yellow);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gear-slot-info strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.12;
}

.gear-later { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
.gear-later-slot {
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  padding: 0.4rem 0.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 0.4rem;
  text-align: center;
}
.gear-later-slot i { color: rgba(255, 255, 255, 0.4); font-size: 1.05rem; font-style: normal; line-height: 1; }
.gear-later-slot small { color: rgba(255, 255, 255, 0.8); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.gear-later-slot em { color: var(--cr-text-dim); font-size: 0.58rem; font-style: normal; }

.gear-bag-panel { min-height: 0; }
.gear-bag-panel > h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.owned-count.full { color: #ffb4a6; }

.gear-note {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(243, 199, 68, 0.5);
  border-radius: 0.4rem;
  background: rgba(243, 199, 68, 0.1);
  color: #ffe7a3;
  font-size: 0.74rem;
  line-height: 1.35;
}

.gear-bag-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.3rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 205, 244, 0.7) transparent;
}

.gear-group {
  margin: 0.2rem 0 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gear-group small { margin-left: 0.4rem; color: var(--cr-text-dim); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: none; }
.gear-grid + .gear-group { margin-top: 0.8rem; }

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gear-tile {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.6rem;
  height: 100%;
  padding: 0.45rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.45rem;
  background: var(--cr-inset);
}
.gear-tile.worn { border-color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.4); }
.gear-art { align-self: start; }

.gear-count {
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
  padding: 0.05rem 0.38rem;
  border-radius: 999px;
  background: rgba(1, 16, 34, 0.88);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}
.gear-worn {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  padding: 0.04rem 0.38rem;
  border-radius: 0.25rem;
  background: var(--yellow);
  color: #082b45;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* a copy on the transfer market: still in the bag, but locked */
.gear-listed {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  padding: 0.04rem 0.38rem;
  border: 1px solid rgba(243, 199, 68, 0.75);
  border-radius: 0.25rem;
  background: rgba(1, 29, 58, 0.88);
  color: var(--yellow);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.gear-btn.is-listed { border-style: dashed; border-color: rgba(243, 199, 68, 0.6); color: #ffe08a; letter-spacing: 0.08em; }

.gear-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.22rem; min-width: 0; }
.gear-info h5 {
  margin: 0.08rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  line-height: 1.12;
}
.gear-meta { margin: 0; color: var(--cr-text-dim); font-size: 0.68rem; line-height: 1.3; }

/* What a bat adds to every hitter in career games: "+1 Contact  +3 Power". */
.gear-bonus {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  margin: 0;
  color: var(--yellow);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}
.gear-bonus b { font-weight: 900; }
.gear-bonus.none { color: var(--cr-text-dim); font-size: 0.68rem; font-weight: 600; }
.gear-slot-info .gear-bonus { margin-top: 0.1rem; }

.gear-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; width: 100%; margin-top: auto; padding-top: 0.25rem; }

.gear-btn {
  flex: 1 1 5.5rem;
  min-height: 2.05rem;
  padding: 0.3rem 0.6rem;
  border: 2px solid #7bcdf4;
  border-radius: 0.4rem;
  background: rgba(1, 29, 58, 0.55);
  color: white;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.gear-btn:hover:not(:disabled) { background: rgba(123, 205, 244, 0.16); }
.gear-btn:focus-visible, .gear-sell:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.gear-btn:disabled { cursor: default; opacity: 0.75; }
.gear-btn.is-worn { border-color: rgba(243, 199, 68, 0.6); background: rgba(243, 199, 68, 0.14); color: var(--yellow); opacity: 1; }

.gear-sell {
  flex: 1 1 5.5rem;
  min-height: 2.05rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.4rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.gear-sell:hover:not(:disabled) { border-color: #ff8a75; color: white; }
.gear-sell.armed { border-color: #ff8a75; background: rgba(232, 95, 75, 0.22); color: #ffd0c7; }
.gear-sell:disabled { opacity: 0.45; cursor: default; }

.gear-empty { margin: 0.5rem 0 0; color: var(--cr-text-dim); font-size: 0.76rem; line-height: 1.4; }

@media (max-width: 960px) {
  .gear-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .gear-on-panel { overflow: visible; }
  .gear-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .manage-heading { align-items: stretch; }
  .manage-tabs { width: 100%; }
}

@media (max-width: 860px) {
  .gear-bag-scroll { overflow: visible; padding-right: 0; }
}

@media (max-width: 560px) {
  .gear-slots { grid-template-columns: minmax(0, 1fr); }
  .gear-slot { grid-template-columns: 3.8rem minmax(0, 1fr); }
  .gear-grid { grid-template-columns: minmax(0, 1fr); }
  .gear-tile { grid-template-columns: 5rem minmax(0, 1fr); }
}

/* ---- store: owned items link to the Gear tab; the Cosmetics Pack's
   "What's inside" -------------------------------------------------- */

.shop-tile.is-owned { border-color: rgba(123, 205, 244, 0.8); }
.shop-btn.is-owned { border-color: #7bcdf4; letter-spacing: 0.1em; }
.shop-btn.is-owned:hover:not(:disabled) { background: rgba(123, 205, 244, 0.16); }
.shop-btn.is-bagfull {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.1em;
}

.shop-inside {
  padding: 0;
  border: 0;
  background: none;
  color: #9ed8f7;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.shop-inside:hover, .shop-inside:focus-visible { color: white; }

/* the layer sits on <body>, outside .career-panel, so it needs the palette */
.wi-layer { --cr-text-dim: rgba(255, 255, 255, 0.66); }
.wi-panel { width: min(100%, 36rem); }
.wi-sub { max-width: 28rem; margin: 0.45rem auto 0; color: var(--cr-text-dim); font-size: 0.8rem; line-height: 1.4; }
.wi-list { display: grid; gap: 0.5rem; margin-top: clamp(0.7rem, 2vw, 1rem); }

.wi-rarity {
  padding: 0.5rem 0.6rem 0.6rem;
  border: 1px solid rgba(105, 193, 238, 0.3);
  border-radius: 0.45rem;
  background: rgba(1, 29, 58, 0.55);
}
.wi-rarity header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.45rem; }
.wi-rarity header b { color: var(--yellow); font-size: 1rem; font-weight: 900; }

.wi-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.4rem 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wi-items li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.wi-items img, .wi-items .gear-art-empty { width: 3rem; height: 3rem; border-radius: 0.3rem; object-fit: cover; }
.wi-items strong { display: block; font-size: 0.82rem; line-height: 1.15; }
.wi-items small { display: block; color: var(--cr-text-dim); font-size: 0.66rem; }
.wi-bonus { display: flex; flex-wrap: wrap; gap: 0 0.45rem; margin: 0.05rem 0 0; color: var(--yellow); font-size: 0.68rem; font-weight: 700; }
.wi-bonus b { font-weight: 900; }
.wi-bonus.none { color: var(--cr-text-dim); font-weight: 600; }
.wi-items em { color: #9ed8f7; font-style: normal; font-weight: 800; }
.wi-items .wi-none { display: block; color: var(--cr-text-dim); font-size: 0.74rem; }
.wi-foot { margin: 0.8rem 0 0; color: var(--cr-text-dim); font-size: 0.72rem; line-height: 1.4; text-align: center; }

/* ------------------------------------------------------------------ *
 * Willemstad (M4a): the Next Game popup at the stadium gate
 *
 * A small world panel about the next game only: the matchup, where and
 * against whom, the batting order, today's boosts, the league bar and one
 * Play ball button. Its Lineup tab is the Team management lineup.
 * ------------------------------------------------------------------ */

.gate {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.85rem;
}

.gate-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.7rem 0.7rem;
  border: 1px solid var(--cr-line);
  border-radius: 0.5rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--team, #0f5fbf) 34%, transparent), transparent 42%, transparent 58%, rgba(232, 95, 75, 0.2)),
    var(--cr-panel);
}

.gate-side { display: grid; justify-items: center; gap: 0.15rem; min-width: 0; text-align: center; }
.gate-side img { width: 3.6rem; height: 3.6rem; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45)); }
.gate-side strong { max-width: 100%; overflow: hidden; font: 800 1rem/1.15 "Playfair Display", Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.gate-side small { color: var(--cr-text-dim); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.gate-side.opp small { color: #9fdcff; letter-spacing: 0.04em; text-transform: none; }

.gate-vs { display: grid; justify-items: center; gap: 0.2rem; }
.gate-vs b { color: var(--yellow); font: 800 1.5rem/1 "Playfair Display", Georgia, serif; }
.gate-vs small { color: rgba(255, 255, 255, 0.8); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }

.gate-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 700;
}

.gate-where > span { display: inline-flex; align-items: center; gap: 0.35rem; }
.gate-mound { color: var(--cr-text-dim); font-weight: 600; }
.gate-mound img { width: 1.7rem; height: 1.7rem; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; object-fit: cover; }
.gate-mound strong { color: #fffaf0; }

.gate-order { display: grid; gap: 0.3rem; margin: 0; padding: 0; list-style: none; }

.gate-order li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(105, 193, 238, 0.35);
  border-radius: 0.4rem;
  background: var(--cr-inset);
}

.gate-order li.up { border-color: var(--yellow); box-shadow: inset 0 0 0 1px rgba(243, 199, 68, 0.5); }
.gate-order li.played { opacity: 0.72; }
.gate-order li.empty strong { color: #ffb4a6; }
.gate-order .cr-portrait { width: 2.2rem; height: 2.2rem; }
.gate-order small { display: block; color: var(--yellow); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.gate-order strong { display: block; font-size: 0.86rem; line-height: 1.15; }
.gate-order b { color: var(--yellow); font-size: 0.8rem; }

.gate-boosts { display: grid; gap: 0.3rem; }

.gate-boosts h5 {
  margin: 0;
  color: #9ed8f7;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gate-boosts h5 small { color: var(--cr-text-dim); font-size: 0.62rem; letter-spacing: 0.02em; text-transform: none; }

.gate-boost {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.3rem 0.55rem 0.3rem 0.3rem;
  border: 1px solid rgba(243, 199, 68, 0.45);
  border-radius: 0.4rem;
  background: var(--cr-inset);
  color: inherit;
  font: inherit;
  text-align: left;
}

button.gate-boost { cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
button.gate-boost:hover, button.gate-boost:focus-visible { border-color: var(--yellow); background: rgba(16, 65, 99, 0.7); }
button.gate-boost:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.gate-boost.soon { border-style: dashed; border-color: rgba(158, 216, 247, 0.35); opacity: 0.8; }

.gate-boost-art {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  overflow: hidden;
  border-radius: 0.3rem;
  background: radial-gradient(circle at 50% 35%, rgba(158, 216, 247, 0.25), rgba(1, 29, 58, 0.9) 70%);
}

.gate-boost-art img { width: 100%; height: 100%; object-fit: contain; }
.gate-boost-art.food::after {
  content: "";
  width: 1.7rem;
  height: 0.9rem;
  border-radius: 1.7rem 1.7rem 0.25rem 0.25rem;
  background: #e8a947;
  opacity: 0.55;
}

.gate-boost-copy small { display: block; color: var(--cr-text-dim); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.gate-boost-copy strong { display: block; overflow: hidden; font-size: 0.84rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.gate-boost-fx { color: rgba(255, 255, 255, 0.85); font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.gate-boost-fx b { color: var(--yellow); }
.gate-boost.soon .gate-boost-fx { color: var(--cr-text-dim); font-weight: 600; }
.gate-boost-go { color: var(--yellow); font-size: 1.1rem; font-style: normal; font-weight: 800; }

.gate .league-bar { margin-top: 0; grid-template-columns: 1fr auto; row-gap: 0.4rem; }
.gate .lb-label, .gate .lb-next { display: none; }
.gate .lb-track { grid-column: 1 / -1; }

.gate-play { margin-top: 0.1rem; padding-block: 0.85rem; font-size: 1rem; }

.gate-missing { display: grid; gap: 0.45rem; }
.gate-missing p { margin: 0; color: #ffb4a6; font-size: 0.8rem; font-weight: 700; text-align: center; }

.gate-done { padding-top: 1rem; }

/* The lineup as the gate's Lineup tab: no Team management title bar. */
.manage-heading.world { padding-top: 0.6rem; }
.manage-heading.world h3 { font-size: 1.15rem; }

@media (max-width: 34rem) {
  .gate-boost { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .gate-boost-fx { grid-column: 2; white-space: normal; }
  .gate-boost-go { grid-row: 1; grid-column: 3; }
}

/* The gate's food row (M4b): fed, waiting, or an Eat button. */
.gate-boost.fed { border-color: #e8a947; background: linear-gradient(90deg, rgba(232, 169, 71, 0.2), var(--cr-inset) 70%); }
.gate-boost.fed .gate-boost-copy small { color: #f3c744; }
.gate-boost .gate-boost-art img { object-fit: cover; }

.gate-eat {
  grid-column: 3 / 5;
  justify-self: end;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 0.4rem;
  background: #e8a947;
  color: #2b1300;
  font: 800 0.76rem/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}

.gate-eat small { font-weight: 700; opacity: 0.8; }
.gate-eat:hover:not(:disabled) { filter: brightness(1.06); }
.gate-eat:focus-visible { outline: 2px solid #fffaf0; outline-offset: 2px; }
.gate-eat:disabled { opacity: 0.6; cursor: default; }

/* A store item locked behind PvP winnings; the pastechi slice of a cosmetics pack */
.shop-note.shop-req { color: #ffd98a; }
.shop-note.shop-req b { color: #fff; }
.shop-note.shop-req.met { color: #9fe2b0; }
.wi-pastechi .wi-bonus { color: var(--cr-text-dim); font-weight: 600; }
