html { scrollbar-gutter: auto; }
:root {
  /* Canonical GOAT chrome. The older generic names remain as compatibility
     aliases while active templates migrate, but they resolve only to the
     approved black / espresso / antique-gold / cream system. */
  --bg-top: #17150f;
  --bg-mid: #0d0c0a;
  --bg-bottom: #050403;
  --background: #050505;
  --surface: rgba(23, 21, 15, 0.88);
  --surface-solid: #17150f;
  --surface-deep: #0d0c0a;
  --surface-raised: #2a2214;
  --panel-glass: rgba(18, 16, 11, 0.82);
  --line: rgba(212, 169, 79, 0.16);
  --line-strong: rgba(212, 169, 79, 0.42);
  --text: #fbf7ef;
  --muted: #d9d1c2;
  --faint: #9b9283;
  --accent: #d4a94f;
  accent-color: var(--accent);
  --accent-hot: #f0d79b;
  --accent-cyan: #d4a94f;
  --accent-pink: #d4a94f;
  --danger: #ff808f;
  --success: #7fffd4;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --shadow-tight: 0 15px 40px rgba(0, 0, 0, 0.4);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Manrope", Inter, system-ui, sans-serif;
  --mono: "Manrope", Inter, system-ui, sans-serif;
  --prospect: #b8bec8;
  --reserve: #f2c94c;
  --squad: #55df91;
  --starter: #4d9fff;
  --prime: #aa68ff;
  --legend: #ff873d;
  --goat: #ffe99a;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --cursor-x: 50vw;
  --cursor-y: 25vh;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: var(--body);
  overflow-x: hidden;
}

body::selection {
  color: #171006;
  background: var(--goat-action-gold, #d4a94f);
}

button,
input,
select {
  font: inherit;
}

button {
  background-color: var(--surface-solid, #17150f);
  color: var(--text, #fbf7ef);
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 43%, var(--bg-bottom) 100%);
}

.world-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(212, 169, 79, 0.15), transparent 25rem),
    radial-gradient(circle at 18% 28%, rgba(240, 215, 155, 0.08), transparent 30rem),
    linear-gradient(128deg, rgba(23, 21, 15, 0.06), rgba(5, 4, 3, 0.48));
  animation: ambientShift 14s ease-in-out infinite alternate;
}

.world-grid {
  position: absolute;
  inset: -12%;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(212, 169, 79, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 169, 79, 0.10) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 83%);
  transform: perspective(700px) rotateX(58deg) translateY(23%);
  transform-origin: center bottom;
  animation: gridDrift 20s linear infinite;
}

.world-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.light-beam {
  position: absolute;
  top: -25%;
  width: 20vw;
  height: 110vh;
  filter: blur(42px);
  opacity: 0.12;
  transform: rotate(18deg);
  transform-origin: top center;
}

.beam-one {
  left: 12%;
  background: linear-gradient(to bottom, rgba(212, 169, 79, 0.66), transparent 80%);
  animation: beamSweep 11s ease-in-out infinite alternate;
}

.beam-two {
  right: 4%;
  background: linear-gradient(to bottom, rgba(240, 215, 155, 0.48), transparent 80%);
  animation: beamSweep 14s ease-in-out infinite alternate-reverse;
}

.cursor-aura {
  position: absolute;
  width: 34rem;
  height: 34rem;
  left: calc(var(--cursor-x) - 17rem);
  top: calc(var(--cursor-y) - 17rem);
  border-radius: 50%;
  opacity: 0.12;
  background: radial-gradient(circle, rgba(212, 169, 79, 0.50), transparent 68%);
  filter: blur(28px);
  transition: left 90ms linear, top 90ms linear;
}

.site-header {
  position: relative;
  z-index: 20;
  width: min(1540px, calc(100% - 48px));
  min-height: 98px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212,169,79,0.1);
}

.site-header::after {
  content: none;
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 58px;
  place-items: center;
  color: #1a1207;
  background: linear-gradient(145deg, #fbf7ef 0%, #4c3915 48%, #4c3915 100%);
  clip-path: polygon(0 0, 76% 0, 100% 22%, 100% 100%, 24% 100%, 0 78%);
  box-shadow: 0 0 36px rgba(212,169,79,0.36);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(212,169,79,0.28);
  clip-path: inherit;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

/* Canonical redesign: reuses the homepage's own wordmark declaration verbatim
   (#homeView.gd-home .gd-hero-brand span — see this file) rather than
   approximating it — same family, weight, letter-spacing and gold colour —
   so the header clearly belongs to the same site as the homepage. Only the
   size is chosen for this more compact header slot; the homepage's hero
   brand uses the same 14px for the same wide tracking. */
.brand-copy strong {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.36em;
  color: #e5c377;
}

.brand-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.69rem;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-indicator,
.connection-status {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.live-indicator i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px rgba(127, 255, 212, 0.8);
  animation: livePulse 1.8s ease-in-out infinite;
}

.connection-status {
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.38);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.connection-status.connected {
  color: var(--accent-cyan);
  border-color: rgba(212,169,79,0.32);
}

.connection-status.error {
  color: var(--danger);
}

.page-shell {
  width: min(1540px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding: 64px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  left: -20vw;
  right: -20vw;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,247,239,0.22), transparent);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.kicker-index,
.eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.13em;
}

.kicker-index {
  display: inline-grid;
  min-width: 34px;
  height: 24px;
  place-items: center;
  color: #1a1207;
  background: var(--accent-cyan);
  font-size: 0.65rem;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.eyebrow {
  margin: 0 0 10px;
  color: #fbf7ef;
  font-size: 0.7rem;
}

.hero-kicker .eyebrow {
  margin: 0;
}

.hero h1,
.profile-header h1,
.leaderboard-detail-header h1 {
  font-family: var(--display);
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(4.4rem, 8.25vw, 8.8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-wrap: balance;
  filter: drop-shadow(0 20px 45px rgba(13,12,10,0.24));
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-accent {
  margin-top: 0.08em;
  color: transparent;
  background: linear-gradient(96deg, #ffffff 0%, #fbf7ef 34%, #4c3915 68%, #4c3915 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 50px rgba(212,169,79,0.16);
}

.hero-copy {
  max-width: 680px;
  margin: 30px 0 30px;
  color: #d9d1c2;
  font-size: 1.02rem;
  line-height: 1.8;
}

.viewer-search {
  position: relative;
  display: flex;
  width: min(720px, 100%);
  min-height: 62px;
  align-items: stretch;
  border: 1px solid rgba(212,169,79,0.38);
  background: rgba(13,12,10,0.72);
  box-shadow: 0 18px 55px rgba(9,7,4,0.38), inset 0 1px 0 rgba(255,255,255,0.06);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  backdrop-filter: blur(16px);
}

.viewer-search::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-hot), transparent);
  box-shadow: 0 0 16px rgba(212,169,79,0.55);
}

.search-prefix {
  display: grid;
  width: 52px;
  place-items: center;
  color: var(--accent-cyan);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

.viewer-search input {
  flex: 1;
  min-width: 0;
  padding: 0 12px 0 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
}

.viewer-search input::placeholder,
.small-search::placeholder,
.filters-panel input::placeholder {
  color: #d9d1c2;
}

.viewer-search button,
.secondary-button {
  position: relative;
  min-width: 168px;
  padding: 0 20px;
  color: #fbf7ef;
  background: linear-gradient(145deg,#352719,#1c150e);
  border: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  overflow: hidden;
}

.viewer-search button::before,
.secondary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.52) 45%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.viewer-search button:hover::before,
.secondary-button:hover::before {
  transform: translateX(130%);
}

.viewer-search button span,
.viewer-search button b,
.secondary-button {
  position: relative;
  z-index: 1;
}

.viewer-search button b {
  margin-left: 12px;
  font-size: 1rem;
}

.message {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.83rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 24px;
}

.hero-stat {
  min-width: 155px;
  padding: 4px 22px 4px 0;
  margin-right: 22px;
  border-right: 1px solid rgba(212,169,79,0.15);
}

.hero-stat:last-child {
  margin-right: 0;
  border-right: 0;
}

.hero-stat span {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-stat small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stat-live span {
  color: var(--accent-cyan);
}

.hero-arena {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.arena-halo {
  position: absolute;
  width: min(38vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(76,57,21,0.25), transparent 58%),
    conic-gradient(from 80deg, transparent, rgba(76,57,21,0.28), transparent 32%, rgba(76,57,21,0.3), transparent 65%);
  filter: blur(4px);
  animation: haloTurn 18s linear infinite;
}

.arena-halo::before,
.arena-halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212,169,79,0.17);
}

.arena-halo::before { inset: 12%; }
.arena-halo::after { inset: 26%; }

.arena-lines {
  position: absolute;
  width: 560px;
  height: 340px;
  border: 1px solid rgba(212,169,79,0.11);
  transform: perspective(700px) rotateX(68deg) translateY(160px);
  background-image:
    linear-gradient(rgba(251,247,239,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251,247,239,0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 0 70px rgba(212,169,79,0.08) inset;
}

.card-stack {
  position: relative;
  width: 390px;
  height: 500px;
  perspective: 1300px;
  transform-style: preserve-3d;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 390px;
  padding: 24px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(212,169,79,0.3);
  background: linear-gradient(150deg, rgba(42,34,20,0.96), rgba(13,12,10,0.98));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: 0 35px 80px rgba(9,7,4,0.62);
  transform-style: preserve-3d;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,169,79,0.16);
  clip-path: inherit;
}

.hero-card-back {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0.72;
}

.hero-card-left {
  transform: translate(-72%, -48%) rotateZ(-12deg) rotateY(12deg);
  animation: cardFloatLeft 6.5s ease-in-out infinite;
}

.hero-card-right {
  transform: translate(-28%, -48%) rotateZ(12deg) rotateY(-12deg);
  animation: cardFloatRight 7.5s ease-in-out infinite;
}

.hero-card-back strong {
  font-family: var(--display);
  font-size: 6rem;
  line-height: 0.8;
  color: rgba(251,247,239,0.18);
}

.hero-card-back small,
.hero-card-code {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

.hero-card-back small {
  margin-top: 15px;
  color: #d9d1c2;
  font-size: 0.64rem;
}

.hero-card-code {
  position: absolute;
  top: 22px;
  left: 23px;
  color: var(--accent-cyan);
  font-size: 0.6rem;
}

.hero-card-front {
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(76,57,21,0.92), rgba(23,21,15,0.98) 45%, rgba(13,12,10,0.99)),
    #17150f;
  border-color: rgba(212,169,79,0.52);
  transform: translate(-50%, -50%) rotateY(-4deg) rotateX(3deg);
  animation: cardFloatFront 5.5s ease-in-out infinite;
  box-shadow:
    0 45px 100px rgba(9,7,4,0.72),
    0 0 65px rgba(212,169,79,0.18),
    inset 0 1px 0 rgba(255,255,255,0.14);
}

.hero-card-front::after {
  content: "";
  position: absolute;
  inset: -60% -35%;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.18) 49%, transparent 60%);
  transform: translateX(-65%) rotate(8deg);
  animation: cardShine 5.4s ease-in-out infinite;
}

.card-scanline {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(to bottom, transparent 0 5px, rgba(251,247,239,0.18) 6px);
}

.hero-card-season,
.hero-card-footer {
  position: relative;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.hero-card-season {
  color: #fbf7ef;
}

.hero-card-emblem {
  position: relative;
  z-index: 2;
  display: grid;
  width: 82px;
  height: 94px;
  place-items: center;
  margin: auto;
  color: #1a1207;
  background: linear-gradient(145deg, #ffffff, #4c3915 65%, #4c3915);
  clip-path: polygon(0 0, 75% 0, 100% 22%, 100% 100%, 25% 100%, 0 78%);
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
  box-shadow: 0 0 45px rgba(212,169,79,0.35);
}

.hero-card-front > strong {
  position: relative;
  z-index: 2;
  font-family: var(--display);
  font-size: 4.7rem;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9d1c2;
}

.hero-card-footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(212,169,79,0.8);
}

.arena-leader {
  position: absolute;
  z-index: 8;
  right: -6px;
  bottom: 24px;
  min-width: 230px;
  padding: 13px 18px;
  border-left: 2px solid var(--accent-cyan);
  background: linear-gradient(90deg, rgba(13,12,10,0.9), rgba(13,12,10,0.36));
  box-shadow: -20px 18px 50px rgba(9,7,4,0.28);
  backdrop-filter: blur(12px);
}

.arena-leader span,
.arena-leader small {
  display: block;
  font-family: var(--mono);
}

.arena-leader span {
  color: var(--accent-cyan);
  font-size: 0.57rem;
  letter-spacing: 0.09em;
}

.arena-leader strong {
  display: block;
  margin: 4px 0 3px;
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.arena-leader small {
  color: var(--muted);
  font-size: 0.57rem;
}

.game-loop-rail {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  border-top: 1px solid rgba(212,169,79,0.13);
  border-bottom: 1px solid rgba(212,169,79,0.13);
  background: rgba(13,12,10,0.55);
  transform: rotate(-1deg);
  backdrop-filter: blur(12px);
}

.game-loop-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
  color: #fbf7ef;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  animation: marquee 28s linear infinite;
}

.game-loop-track i {
  color: var(--accent-cyan);
  font-size: 0.42rem;
  font-style: normal;
}

.section-frame,
.dashboard-panel,
.leaderboard-table-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(23,21,15,0.74), rgba(13,12,10,0.86)),
    var(--panel-glass);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  backdrop-filter: blur(18px);
}

.section-frame::before,
.dashboard-panel::before,
.leaderboard-table-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: min(210px, 28%);
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-hot), transparent);
  box-shadow: 0 0 16px rgba(212,169,79,0.35);
}

.viewer-section,
.collection-section {
  margin: 100px 0;
  padding: clamp(24px, 4vw, 54px);
}

.section-number {
  position: absolute;
  top: 18px;
  right: 30px;
  color: rgba(251,247,239,0.055);
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.8;
  pointer-events: none;
}

.section-heading,
.collection-heading,
.panel-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading,
.collection-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.collection-heading h2,
.panel-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.section-heading h2,
.collection-heading h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.panel-heading h2 {
  font-size: clamp(2rem, 3.3vw, 3.4rem);
}

.small-search {
  width: min(310px, 100%);
  min-height: 48px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(13,12,10,0.42);
  border: 1px solid var(--line);
  outline: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.small-search:focus,
.filters-panel input:focus,
.filters-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212,169,79,0.09), 0 0 24px rgba(212,169,79,0.08);
}

.leaderboard-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.leaderboard-tabs,
.ownership-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.42);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.leaderboard-tabs button,
.ownership-tabs button {
  min-height: 39px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.leaderboard-tabs button:hover,
.ownership-tabs button:hover {
  color: var(--text);
}

.leaderboard-tabs button.active,
.ownership-tabs button.active {
  color: #1a1207;
  background: linear-gradient(135deg, #fbf7ef, #4c3915 62%, #4c3915);
  box-shadow: 0 0 24px rgba(212,169,79,0.2);
}

.leaderboard-hint {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: right;
}

.viewer-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 12px;
  min-height: 170px;
}

.viewer-card,
.player-card,
.summary-card,
.rarity-stat,
.ranking-stat,
.dominant-insight,
.best-card,
.recent-pull {
  --local-tilt-x: 0deg;
  --local-tilt-y: 0deg;
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.viewer-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 3px 12px;
  padding: 20px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.13);
  background:
    linear-gradient(145deg, rgba(42,34,20,0.32), rgba(13,12,10,0.68));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.viewer-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 42%;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

.viewer-card::after {
  content: "VIEWER";
  position: absolute;
  right: -8px;
  bottom: 6px;
  color: rgba(251,247,239,0.035);
  font-family: var(--display);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1;
}

.viewer-card:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-5px);
  border-color: rgba(212,169,79,0.46);
  background: linear-gradient(145deg, rgba(42,34,20,0.45), rgba(13,12,10,0.78));
  box-shadow: 0 20px 45px rgba(9,7,4,0.34), 0 0 28px rgba(212,169,79,0.07);
}

.rank-badge {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  color: transparent;
  background: linear-gradient(145deg, #ffffff, #4c3915);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

.viewer-card strong {
  position: relative;
  z-index: 2;
  grid-column: 1;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.viewer-card .username {
  position: relative;
  z-index: 2;
  grid-column: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
}

.leaderboard-value {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 22px;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.leaderboard-label,
.viewer-secondary {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.67rem;
}

.leaderboard-label {
  grid-column: 1 / -1;
}

.viewer-secondary {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.57rem;
}

.loading-cards,
.empty-state,
.empty-compact,
.table-loading {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.loading-cards,
.empty-state {
  grid-column: 1 / -1;
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed rgba(212,169,79,0.13);
  background: rgba(13,12,10,0.2);
}

.profile-view,
.leaderboard-detail-view {
  padding: 36px 0 80px;
}

.back-button {
  min-height: 38px;
  padding: 0 14px 0 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-button:hover {
  color: var(--accent-cyan);
}

.profile-header {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 46px 0 54px;
  border-bottom: 1px solid rgba(212,169,79,0.14);
}

.profile-title-wrap {
  position: relative;
  z-index: 2;
}

.profile-watermark {
  position: absolute;
  z-index: -1;
  left: -10px;
  bottom: -4px;
  color: rgba(251,247,239,0.038);
  font-family: var(--display);
  font-size: clamp(7rem, 18vw, 17rem);
  font-weight: 900;
  line-height: 0.65;
  pointer-events: none;
}

.profile-header h1 {
  margin: 0;
  font-size: clamp(4.5rem, 9vw, 9rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.035em;
}

.profile-handle {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.profile-actions {
  position: relative;
  z-index: 2;
  padding-bottom: 6px;
}

.secondary-button {
  min-width: 170px;
  min-height: 48px;
  color: #fbf7ef;
  clip-path: none;
  border-radius: var(--goat-button-radius,10px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 34px 0 24px;
}

.summary-card {
  position: relative;
  min-height: 145px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(42,34,20,0.42), rgba(13,12,10,0.65));
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.58;
}

.summary-card:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-3px);
  border-color: rgba(212,169,79,0.35);
}

.summary-card .label {
  display: block;
  min-height: 31px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.55rem;
  line-height: 1.45;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 0.95;
}

.summary-card small {
  display: block;
  margin-top: 9px;
  color: var(--faint);
  font-size: 0.64rem;
  line-height: 1.45;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-bottom: 14px;
}

.dashboard-panel {
  padding: clamp(22px, 3vw, 38px);
}

.rarity-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 26px;
}

.rarity-stat {
  position: relative;
  min-height: 135px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 32%, transparent);
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--rarity-color) 17%, transparent), transparent 8rem),
    rgba(8, 8, 23, 0.34);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.rarity-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--rarity-color), transparent 75%);
}

.rarity-stat:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-3px);
  border-color: color-mix(in srgb, var(--rarity-color) 58%, transparent);
  box-shadow: 0 14px 28px rgba(6,5,20,0.25), 0 0 22px color-mix(in srgb, var(--rarity-color) 10%, transparent);
}

.rarity-name {
  display: block;
  color: var(--rarity-color);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rarity-stat strong {
  display: block;
  margin-top: 25px;
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.8;
}

.rarity-stat small {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.45;
}

.collection-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dominant-insight,
.position-insight {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.28);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.dominant-insight {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dominant-insight:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-2px);
  border-color: rgba(212,169,79,0.34);
}

.insight-label {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.dominant-insight strong {
  display: block;
  margin: 18px 0 6px;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.5rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.dominant-insight small {
  color: var(--muted);
  font-size: 0.63rem;
}

.position-insight {
  grid-column: 1 / -1;
  min-height: 245px;
}

.position-chart-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 17px;
}

.position-donut {
  position: relative;
  display: grid;
  width: 170px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--position-gradient);
  box-shadow: 0 22px 45px rgba(9,7,4,0.35), 0 0 25px rgba(212,169,79,0.09);
  animation: donutBreath 4s ease-in-out infinite;
}

.position-donut::before {
  content: "";
  grid-area: 1 / 1;
  width: 59%;
  aspect-ratio: 1;
  border: 1px solid rgba(212,169,79,0.13);
  border-radius: 50%;
  background: #0d0c0a;
  box-shadow: inset 0 0 25px rgba(9,7,4,0.45);
}

.position-donut > span {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  gap: 2px;
  text-align: center;
}

.position-donut strong {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.position-donut small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.position-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.position-legend li {
  display: grid;
  grid-template-columns: 10px 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-bottom: 7px;
  color: var(--muted);
  border-bottom: 1px solid rgba(212,169,79,0.07);
  font-size: 0.65rem;
}

.position-legend li strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.position-legend li > span:last-child {
  text-align: right;
}

.position-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--position-colour);
  box-shadow: 0 0 12px color-mix(in srgb, var(--position-colour) 60%, transparent);
}

.collection-insights-empty {
  grid-column: 1 / -1;
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-align: center;
}

.rankings-grid {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.ranking-stat {
  position: relative;
  width: 100%;
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: start;
  padding: 17px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.32);
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}

.ranking-stat::after {
  content: "↗";
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.ranking-stat:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateX(4px);
  border-color: rgba(212,169,79,0.35);
  background: linear-gradient(110deg, rgba(42,34,20,0.38), rgba(13,12,10,0.38));
}

.ranking-stat:focus-visible,
.viewer-card:focus-visible,
.player-card:focus-visible,
.leaderboard-tabs button:focus-visible,
.ownership-tabs button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.ranking-label {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ranking-stat > strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: transparent;
  background: linear-gradient(145deg, #ffffff, #4c3915);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.85;
}

.ranking-stat small {
  color: var(--muted);
  font-size: 0.63rem;
}

.ranking-open {
  align-self: end;
  margin-top: 17px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-bottom: 14px;
}

.best-card,
.recent-pull {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 32%, transparent);
  background:
    radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--rarity-color) 18%, transparent), transparent 15rem),
    rgba(13,12,10,0.33);
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
}

.best-card {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(155px, 0.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-top: 26px;
  padding: 28px;
  overflow: hidden;
}

.best-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255,255,255,0.018) 27px 28px);
}

.best-card:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-3px);
  box-shadow: 0 24px 60px rgba(9,7,4,0.36), 0 0 34px color-mix(in srgb, var(--rarity-color) 10%, transparent);
}

.best-card-rating {
  position: relative;
  z-index: 2;
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: clamp(5rem, 8vw, 8.2rem);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.05em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--rarity-color) 18%, transparent);
}

.best-card > div:last-child {
  position: relative;
  z-index: 2;
}

.best-card-rarity {
  color: var(--rarity-color);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

.best-card h3 {
  margin: 12px 0 7px;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.84;
  text-transform: uppercase;
}

.best-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.card-count-badges,
.card-badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-badge-stack {
  flex-direction: column;
  align-items: flex-start;
}

.owned-copy,
.global-packed-copy,
.quantity-badge,
.global-pack-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.owned-copy,
.quantity-badge {
  color: #1a1207;
  background: var(--rarity-color);
}

.global-packed-copy,
.global-pack-badge {
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--rarity-color) 38%, transparent);
  background: rgba(13,12,10,0.34);
}

.recent-pulls {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}

.recent-pull {
  display: grid;
  grid-template-columns: 28px 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 13px 15px;
}

.recent-pull:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateX(3px);
  border-color: color-mix(in srgb, var(--rarity-color) 52%, transparent);
}

.recent-number {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.recent-rating {
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.recent-player,
.recent-meta {
  display: grid;
  gap: 3px;
}

.recent-player strong {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.recent-player small,
.recent-meta small,
.recent-meta strong {
  color: var(--muted);
  font-size: 0.58rem;
}

.recent-global-count {
  color: var(--rarity-color) !important;
  font-family: var(--mono);
  font-size: 0.52rem !important;
}

.recent-meta {
  text-align: right;
}

.recent-meta strong {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.empty-compact {
  display: grid;
  min-height: 230px;
  place-items: center;
}

.results-count {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.ownership-tabs {
  margin-bottom: 14px;
}

.filters-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.3);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.filters-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filters-panel label span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filters-panel input,
.filters-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  color: var(--text);
  background: #0d0c0a;
  border: 1px solid rgba(212,169,79,0.12);
  outline: none;
}

.filters-panel select option {
  background: #0d0c0a;
}

.wide-filter {
  grid-column: span 2;
}

.clear-button {
  align-self: end;
  min-height: 44px;
  color: var(--muted);
  background: rgba(13,12,10,0.35);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.clear-button:hover {
  color: var(--text);
  border-color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
  min-height: 240px;
}

.player-card {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  padding: 19px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 28%, rgba(255,255,255,0.08));
  background:
    radial-gradient(circle at 84% 5%, color-mix(in srgb, var(--rarity-color) 18%, transparent), transparent 11rem),
    linear-gradient(150deg, rgba(42,34,20,0.38), rgba(13,12,10,0.72));
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.player-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 42%, rgba(255,255,255,0.06) 50%, transparent 58%),
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(255,255,255,0.012) 8px);
  transform: translateX(-80%);
  transition: transform 600ms ease;
}

.player-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rarity-color), transparent 72%);
  box-shadow: 0 0 18px color-mix(in srgb, var(--rarity-color) 25%, transparent);
}

.player-card:hover {
  transform: perspective(950px) rotateX(var(--local-tilt-x)) rotateY(var(--local-tilt-y)) translateY(-6px);
  border-color: color-mix(in srgb, var(--rarity-color) 55%, transparent);
  box-shadow: 0 22px 50px rgba(9,7,4,0.42), 0 0 28px color-mix(in srgb, var(--rarity-color) 8%, transparent);
}

.player-card:hover::before {
  transform: translateX(80%);
}

.player-card.missing {
  opacity: 0.46;
  filter: saturate(0.28);
}

.player-card.legacy::after {
  content: "LEGACY";
  position: absolute;
  z-index: 4;
  top: 17px;
  right: -32px;
  bottom: auto;
  left: auto;
  width: 120px;
  height: auto;
  padding: 4px 0;
  color: #1a1207;
  background: #fbf7ef;
  box-shadow: none;
  font-family: var(--mono);
  font-size: 0.49rem;
  font-weight: 600;
  text-align: center;
  transform: rotate(42deg);
}

.card-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.rating-block {
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.position-block {
  padding: 5px 8px;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--rarity-color) 35%, transparent);
  background: rgba(13,12,10,0.28);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.player-card h3 {
  position: relative;
  z-index: 2;
  margin: 52px 0 7px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 0.87;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.card-season {
  position: relative;
  z-index: 2;
  color: var(--rarity-color);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 0.65rem;
}

.card-meta span {
  padding-top: 6px;
  border-top: 1px solid rgba(212,169,79,0.07);
}

.card-meta b {
  color: #fbf7ef;
  font-family: var(--mono);
  font-size: 0.51rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
}

.pagination button {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text);
  background: rgba(13,12,10,0.52);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.pagination button:hover:not(:disabled) {
  color: #1a1207;
  background: var(--accent);
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

#pageIndicator {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.leaderboard-detail-header {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 44px 0 48px;
  border-bottom: 1px solid var(--line);
}

.leaderboard-detail-header h1 {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.035em;
}

.leaderboard-detail-copy {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.leaderboard-table-panel {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 34px);
}

.full-leaderboard-tabs {
  margin-bottom: 18px;
}

.leaderboard-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(13,12,10,0.3);
}

.leaderboard-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(212,169,79,0.08);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table th {
  color: var(--muted);
  background: rgba(42,34,20,0.22);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.leaderboard-table tbody tr {
  transition: background 150ms ease;
}

.leaderboard-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(76,57,21,0.055), transparent);
}

.leaderboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.leaderboard-table td {
  color: #d9d1c2;
  font-size: 0.73rem;
}

.leaderboard-table td strong,
.leaderboard-table td small {
  display: block;
}

.leaderboard-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.56rem;
}

.table-rank {
  width: 76px;
  color: var(--accent-cyan);
  font-family: var(--display);
  font-size: 1.7rem !important;
  font-weight: 900;
}

.metric-active {
  background: rgba(76,57,21,0.08);
  box-shadow: inset 0 2px 0 rgba(212,169,79,0.5);
}

.leaderboard-viewer-link {
  display: grid;
  gap: 2px;
  min-width: 155px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  text-align: left;
}

.leaderboard-viewer-link strong {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
}

.leaderboard-viewer-link small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.52rem;
}

.leaderboard-viewer-link:hover strong {
  color: var(--accent-cyan);
}

.table-loading {
  height: 190px;
  text-align: center !important;
}

footer {
  width: min(1540px, calc(100% - 48px));
  min-height: 110px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

footer > span:first-child {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes ambientShift {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}

@keyframes gridDrift {
  to { background-position: 0 76px, 76px 0; }
}

@keyframes beamSweep {
  0% { transform: rotate(14deg) translateX(-8vw); opacity: 0.08; }
  100% { transform: rotate(22deg) translateX(8vw); opacity: 0.15; }
}

@keyframes livePulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes haloTurn {
  to { transform: rotate(360deg); }
}

@keyframes cardFloatFront {
  0%, 100% { transform: translate(-50%, -50%) rotateY(-4deg) rotateX(3deg) translateY(0); }
  50% { transform: translate(-50%, -50%) rotateY(2deg) rotateX(-1deg) translateY(-10px); }
}

@keyframes cardFloatLeft {
  0%, 100% { transform: translate(-72%, -48%) rotateZ(-12deg) rotateY(12deg) translateY(0); }
  50% { transform: translate(-74%, -48%) rotateZ(-10deg) rotateY(8deg) translateY(7px); }
}

@keyframes cardFloatRight {
  0%, 100% { transform: translate(-28%, -48%) rotateZ(12deg) rotateY(-12deg) translateY(0); }
  50% { transform: translate(-26%, -48%) rotateZ(10deg) rotateY(-8deg) translateY(-7px); }
}

@keyframes cardShine {
  0%, 25% { transform: translateX(-70%) rotate(8deg); }
  55%, 100% { transform: translateX(70%) rotate(8deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes donutBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@media (max-width: 1260px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 45px;
  }

  .hero h1 {
    font-size: clamp(4rem, 8vw, 7.3rem);
  }

  .card-stack {
    transform: scale(0.88);
  }

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

  .profile-dashboard {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  }

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

@media (max-width: 980px) {
  .site-header,
  .page-shell,
  footer {
    width: min(100% - 30px, 1540px);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-content {
    max-width: 850px;
  }

  .hero-arena {
    min-height: 500px;
    margin-top: -20px;
  }

  .profile-dashboard,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }

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

  .leaderboard-toolbar,
  .section-heading,
  .collection-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .leaderboard-hint {
    text-align: left;
  }

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

@media (max-width: 700px) {
  .site-header {
    min-height: 78px;
  }

  .brand-mark {
    width: 43px;
    height: 48px;
  }

  .brand-copy strong {
    font-size: 1.05rem;
  }

  .brand-copy small,
  .live-indicator {
    display: none;
  }

  .connection-status {
    padding: 7px 9px;
    font-size: 0.54rem;
  }

  .hero {
    padding: 50px 0 70px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 17vw, 6rem);
    line-height: 0.82;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-copy {
    font-size: 0.92rem;
  }

  .viewer-search {
    min-height: 57px;
  }

  .viewer-search button {
    min-width: 68px;
    padding: 0 17px;
  }

  .viewer-search button span {
    display: none;
  }

  .viewer-search button b {
    margin: 0;
    font-size: 1.2rem;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .hero-stat {
    min-width: 0;
    margin-right: 10px;
    padding-right: 10px;
  }

  .hero-stat span {
    font-size: 1.45rem;
  }

  .hero-stat small {
    font-size: 0.45rem;
  }

  .hero-arena {
    min-height: 420px;
  }

  .card-stack {
    transform: scale(0.72);
  }

  .arena-leader {
    right: 0;
    bottom: 10px;
  }

  .viewer-section,
  .collection-section {
    margin: 70px 0;
    padding: 24px 16px 28px;
  }

  .section-heading h2,
  .collection-heading h2 {
    font-size: 3.1rem;
  }

  .leaderboard-tabs,
  .ownership-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .leaderboard-tabs button,
  .ownership-tabs button {
    width: 100%;
  }

  .small-search {
    width: 100%;
  }

  .profile-header {
    min-height: 220px;
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-header h1,
  .leaderboard-detail-header h1 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  .profile-actions,
  .secondary-button {
    width: 100%;
  }

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

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

  .collection-insights {
    grid-template-columns: 1fr;
  }

  .position-insight {
    grid-column: auto;
  }

  .position-chart-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .position-legend {
    width: 100%;
  }

  .best-card {
    grid-template-columns: 1fr;
  }

  .recent-pull {
    grid-template-columns: 24px 62px minmax(0, 1fr);
  }

  .recent-meta {
    grid-column: 3;
    text-align: left;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .wide-filter {
    grid-column: auto;
  }

  footer {
    flex-wrap: wrap;
    padding: 24px 0;
  }
}

@media (max-width: 460px) {
  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-arena {
    min-height: 350px;
  }

  .card-stack {
    transform: scale(0.58);
  }

  .arena-leader {
    min-width: 200px;
  }

  .summary-grid,
  .rarity-grid,
  .position-legend {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 125px;
  }

  .card-grid,
  .viewer-list {
    grid-template-columns: 1fr;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cursor-aura {
    display: none;
  }
}

/* Final v1.3 visual calibration */
body {
  background: transparent;
}

.world-bg {
  z-index: -2;
}

.hero-content {
  z-index: 6;
}

.hero-arena {
  z-index: 2;
}

.hero-line {
  width: 119%;
  transform: scaleX(0.84);
  transform-origin: left center;
}

.summary-card:nth-child(7) strong {
  font-size: 1.55rem;
  line-height: 1.05;
}

@media (max-width: 1260px) {
  .hero-line {
    width: 122%;
    transform: scaleX(0.82);
  }
}

@media (max-width: 700px) {
  .hero-line {
    width: auto;
    transform: none;
  }
}

/* Keep the main promise on exactly two complete lines */
.hero h1 {
  font-size: clamp(4rem, 6.6vw, 7.2rem);
}

.hero-line {
  width: auto;
  transform: none;
}

@media (max-width: 1260px) {
  .hero-line {
    width: auto;
    transform: none;
  }
}

/* Wider editorial hero copy column so both promises remain complete */
.hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.55fr);
  gap: 30px;
}

.hero h1 {
  font-size: clamp(4rem, 6.3vw, 7rem);
  filter: none;
}

@media (max-width: 1260px) and (min-width: 981px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 6.4vw, 5.5rem);
  }

  .card-stack {
    transform: scale(0.78);
  }
}

/* Responsive correction after the final desktop calibration */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero-arena {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 3.35rem);
  }

  .hero-line {
    width: 133%;
    white-space: nowrap;
    transform: scaleX(0.75);
    transform-origin: left center;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    width: 100%;
    font-size: clamp(3.15rem, 14.5vw, 3.55rem);
  }

  .hero-line {
    width: 100%;
    transform: scaleX(0.70);
  }
}

.hero-content {
  min-width: 0;
}

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

  .hero-content {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    width: 143%;
    transform: scaleX(0.70);
    transform-origin: left center;
  }

  .hero-line {
    width: auto;
    transform: none;
    white-space: nowrap;
  }
}


/* v1.3.1 Chrome performance and hero polish */
:root {
  --shadow: 0 24px 65px rgba(9,7,4,0.42);
  --shadow-tight: 0 12px 30px rgba(9,7,4,0.3);
}

/* Static, composited background: visually rich without continuous full-screen repaints. */
.world-gradient,
.world-grid,
.arena-halo {
  animation: none !important;
}

.world-gradient {
  transform: none !important;
  background:
    radial-gradient(circle at 78% 8%, rgba(212, 169, 79, 0.13), transparent 25rem),
    radial-gradient(circle at 18% 28%, rgba(240, 215, 155, 0.07), transparent 30rem),
    linear-gradient(128deg, rgba(23, 21, 15, 0.03), rgba(5, 4, 3, 0.36));
}

.world-grid {
  opacity: 0.09;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.72), transparent 78%);
}

.viewer-search,
.connection-status,
.section-frame,
.dashboard-panel,
.leaderboard-table-panel,
.game-loop-rail {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Vector goat-and-trophy identity */
.brand-mark {
  width: 58px;
  height: 62px;
  padding: 5px;
  color: #fbf7ef;
  background: linear-gradient(145deg, rgba(42,34,20,0.95), rgba(23,21,15,0.98));
  border: 1px solid rgba(212,169,79,0.42);
  box-shadow: 0 0 28px rgba(212,169,79,0.24);
}

.brand-mark::before {
  border-color: rgba(212,169,79,0.14);
}

.goat-trophy-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo-trophy {
  fill: currentColor;
  opacity: 0.95;
}

.logo-horn,
.logo-ear,
.logo-detail {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-horn {
  stroke-width: 7;
}

.logo-face {
  fill: #1a1207;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
}

.logo-detail {
  stroke-width: 4;
}

/* One purposeful floating card instead of a decorative stack. */
.hero-arena {
  min-height: 560px;
  overflow: visible;
}

.arena-halo {
  width: min(35vw, 470px);
  filter: none;
  opacity: 0.85;
  background:
    radial-gradient(circle, rgba(76,57,21,0.18), transparent 58%),
    radial-gradient(circle at 30% 35%, rgba(76,57,21,0.12), transparent 44%);
}

.arena-lines {
  width: min(92%, 560px);
  opacity: 0.68;
  box-shadow: inset 0 0 45px rgba(212,169,79,0.05);
}

.hero-card.leader-card {
  position: relative;
  inset: auto;
  z-index: 4;
  width: min(340px, 82vw);
  height: 470px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(212,169,79,0.46);
  background:
    linear-gradient(150deg, rgba(42,34,20,0.98), rgba(23,21,15,0.99) 46%, rgba(13,12,10,1.0));
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  box-shadow: 0 34px 74px rgba(9,7,4,0.58), 0 0 42px rgba(212,169,79,0.13);
  transform: translate3d(0, 0, 0);
  animation: leaderCardFloat 6s ease-in-out infinite;
  will-change: transform;
}

.hero-card.leader-card::before {
  inset: 9px;
}

.hero-card.leader-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 28%),
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(251,247,239,0.035) 8px);
}

.leader-card-topline,
.leader-card-copy,
.hero-card-footer,
.hero-card-emblem {
  position: relative;
  z-index: 2;
}

.leader-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fbf7ef;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.leader-card-topline b {
  display: grid;
  width: 42px;
  height: 30px;
  place-items: center;
  color: #1a1207;
  background: var(--accent-cyan);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  font-family: var(--display);
  font-size: 1rem;
}

.hero-card-emblem {
  width: 136px;
  height: 136px;
  margin: 2px auto 0;
  padding: 15px;
  color: #fbf7ef;
  background: radial-gradient(circle at 50% 35%, rgba(76,57,21,0.28), rgba(13,12,10,0.82) 72%);
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(212,169,79,0.1), 0 0 35px rgba(212,169,79,0.08);
  clip-path: none;
}

.leader-card-copy span,
.leader-card-copy small {
  display: block;
  font-family: var(--mono);
}

.leader-card-copy span {
  margin-bottom: 7px;
  color: var(--accent-cyan);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.leader-card-copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2.45rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.leader-card-copy small {
  margin-top: 9px;
  color: #d9d1c2;
  font-size: 0.62rem;
}

.hero-card-footer {
  font-size: 0.55rem;
}

/* Straight, continuous and truly full-width game loop ticker. */
.game-loop-rail {
  transform: none !important;
  background: rgba(13,12,10,0.94);
}

.game-loop-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding: 0;
  animation: marqueeFull 30s linear infinite;
  will-change: transform;
}

.game-loop-group {
  display: flex;
  flex: 0 0 max(100vw, 900px);
  width: max(100vw, 900px);
  min-height: 46px;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  padding: 0 28px;
}

.game-loop-group span {
  flex: 0 0 auto;
  white-space: nowrap;
}

.game-loop-group i {
  flex: 0 0 auto;
  color: var(--accent-cyan);
  font-size: 0.42rem;
  font-style: normal;
}

/* Simple GPU-friendly hover movement; no pointer-tracked 3D calculations. */
.viewer-card,
.player-card,
.summary-card,
.rarity-stat,
.ranking-stat,
.dominant-insight,
.best-card,
.recent-pull {
  --local-tilt-x: 0deg !important;
  --local-tilt-y: 0deg !important;
  will-change: auto;
}

@media (hover: hover) and (pointer: fine) {
  .viewer-card:hover,
  .player-card:hover,
  .summary-card:hover,
  .rarity-stat:hover,
  .ranking-stat:hover,
  .dominant-insight:hover,
  .best-card:hover,
  .recent-pull:hover {
    transform: translateY(-3px) !important;
  }
}

@keyframes leaderCardFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}

@keyframes marqueeFull {
  to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 980px) {
  .hero-card.leader-card {
    width: min(330px, 80vw);
    height: 450px;
  }
}

@media (max-width: 700px) {
  .brand-mark {
    width: 48px;
    height: 52px;
  }

  .hero-arena {
    min-height: 440px;
  }

  .hero-card.leader-card {
    width: min(310px, 82vw);
    height: 420px;
    padding: 24px;
  }

  .hero-card-emblem {
    width: 116px;
    height: 116px;
  }

  .game-loop-group {
    flex-basis: 820px;
    width: 820px;
    min-height: 42px;
    gap: 16px;
    padding: 0 18px;
  }
}

@media (max-width: 460px) {
  .hero-arena {
    min-height: 390px;
  }

  .hero-card.leader-card {
    width: min(286px, 86vw);
    height: 390px;
  }

  .leader-card-copy strong {
    font-size: 2.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card.leader-card,
  .game-loop-track {
    animation: none !important;
  }
}

/* v1.4 progression ------------------------------------------------------- */
.progression-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(360px, 1.7fr) minmax(240px, 0.9fr);
  gap: 1px;
  margin: 28px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.24);
  background: rgba(13,12,10,0.8);
  box-shadow: 0 26px 70px rgba(9,7,4,0.3), 0 0 40px rgba(212,169,79,0.05);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.progression-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(110deg, rgba(76,57,21,0.035), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 69px, rgba(76,57,21,0.025) 70px);
}

.progression-panel > div {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px 26px;
  background: linear-gradient(150deg, rgba(42,34,20,0.44), rgba(13,12,10,0.76));
}

.progression-panel > div + div {
  border-left: 1px solid rgba(212,169,79,0.1);
}

.progression-level-block {
  display: grid;
  align-content: center;
  min-height: 180px;
}

.progression-overline {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progression-level-number {
  margin: 10px 0 4px;
  color: #fbf7ef;
  font-family: var(--display);
  font-size: clamp(4.2rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.045em;
  text-shadow: 0 0 30px rgba(212,169,79,0.22);
}

.progression-title {
  color: #d9d1c2;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.progression-level-block small,
.next-reward-block small {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
}

.progression-track-block {
  display: grid;
  align-content: center;
  min-height: 180px;
}

.progression-track-heading,
.progression-track-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.progression-track-heading span,
.progression-track-footer {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.progression-track-heading strong {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.85rem);
  line-height: 1;
}

.progression-track-heading b {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.xp-track {
  position: relative;
  height: 18px;
  margin: 25px 0 13px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  background: rgba(13,12,10,0.58);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.xp-track::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(255, 255, 255, 0.075) 10%);
}

.xp-track-fill {
  display: block;
  width: var(--xp-progress);
  height: 100%;
  background: linear-gradient(90deg, #4c3915 0%, #4c3915 42%, #4c3915 75%, #ff74d4 100%);
  box-shadow: 0 0 22px rgba(212,169,79,0.38), 0 0 42px rgba(212,169,79,0.2);
  transition: width 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.next-reward-block {
  display: grid;
  align-content: center;
  min-height: 180px;
  border-left-color: rgba(212,169,79,0.16) !important;
  background:
    radial-gradient(circle at 92% 12%, rgba(76,57,21,0.14), transparent 9rem),
    linear-gradient(150deg, rgba(42,34,20,0.52), rgba(13,12,10,0.82)) !important;
}

.next-reward-block strong {
  display: block;
  margin-top: 13px;
  color: #fbf7ef;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.next-reward-block p {
  margin: 9px 0 0;
  color: #d9d1c2;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

.next-reward-block.reward-complete strong {
  color: #ffdc75;
}

@media (max-width: 980px) {
  .progression-panel {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .next-reward-block {
    grid-column: 1 / -1;
    min-height: 130px;
    border-top: 1px solid rgba(212,169,79,0.1);
    border-left: 0 !important;
  }
}

@media (max-width: 700px) {
  .progression-panel {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .progression-panel > div {
    min-height: auto;
    padding: 22px;
  }

  .progression-panel > div + div,
  .next-reward-block {
    grid-column: auto;
    border-top: 1px solid rgba(212,169,79,0.1);
    border-left: 0 !important;
  }

  .progression-level-block {
    grid-template-columns: auto 1fr;
    column-gap: 18px;
    align-items: center;
  }

  .progression-level-block .progression-overline,
  .progression-level-block small {
    grid-column: 2;
  }

  .progression-level-number {
    grid-column: 1;
    grid-row: 1 / span 4;
    margin: 0;
    font-size: 5rem;
  }

  .progression-title {
    grid-column: 2;
  }

  .progression-track-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xp-track-fill {
    transition: none;
  }
}


/* v1.4.2 — progression balance, profile readability and leader-card flip */
.profile-header h1 {
  max-width: min(100%, 1120px);
  padding: 0.04em 0 0.12em;
  overflow: visible;
  font-size: clamp(3.8rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.profile-header h1.profile-name-long {
  font-size: clamp(3.2rem, 6.7vw, 6.8rem);
  letter-spacing: 0.012em;
}

.profile-header h1.profile-name-very-long {
  font-size: clamp(2.65rem, 5.5vw, 5.7rem);
  line-height: 0.98;
}

.best-card {
  grid-template-columns: minmax(122px, 172px) minmax(0, 1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
  min-height: 300px;
}

.best-card-rating-block {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px 16px;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--rarity-color) 42%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rarity-color) 10%, transparent), transparent);
}

.best-card-rating-icon {
  margin-bottom: 7px;
  font-size: 1.05rem;
  filter: saturate(0.9);
}

.best-card-rating {
  display: block;
  max-width: 100%;
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: clamp(4.4rem, 6.2vw, 6.5rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 0 28px color-mix(in srgb, var(--rarity-color) 18%, transparent);
}

.best-card-details {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.best-card h3 {
  max-width: 100%;
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3.35vw, 3.35rem);
  line-height: 0.94;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.hero-card.leader-card {
  padding: 0;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  box-shadow: none;
  clip-path: none;
  perspective: 1200px;
  outline: none;
}

.hero-card.leader-card::before,
.hero-card.leader-card::after {
  display: none;
}

.hero-card.leader-card:focus-visible {
  filter: drop-shadow(0 0 0.55rem rgba(76,57,21,0.62));
}

.leader-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(.2,.72,.2,1);
}

.hero-card.leader-card.is-flipped .leader-card-inner {
  transform: rotateY(180deg);
}

.leader-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(212,169,79,0.46);
  background:
    linear-gradient(150deg, rgba(42,34,20,0.98), rgba(23,21,15,0.99) 46%, rgba(13,12,10,1.0));
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
  box-shadow: 0 34px 74px rgba(9,7,4,0.58), 0 0 42px rgba(212,169,79,0.13);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.leader-card-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 28%),
    repeating-linear-gradient(to bottom, transparent 0 7px, rgba(251,247,239,0.035) 8px);
}

.leader-card-back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 74% 18%, rgba(76,57,21,0.13), transparent 36%),
    linear-gradient(150deg, rgba(42,34,20,0.99), rgba(13,12,10,0.99) 52%, rgba(13,12,10,1.0));
}

.leader-card-front > *,
.leader-card-back > * {
  position: relative;
  z-index: 2;
}

.leader-flip-hint {
  display: block;
  color: rgba(251,247,239,0.72);
  font-family: var(--mono);
  font-size: 0.48rem;
  letter-spacing: 0.09em;
  text-align: center;
}

.leader-back-heading span,
.leader-back-heading strong {
  display: block;
}

.leader-back-heading span {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}

.leader-back-heading strong {
  margin-top: 6px;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 0.95;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.leader-top-cards {
  display: grid;
  gap: 8px;
}

.leader-top-card {
  display: grid;
  grid-template-columns: 28px 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #d4a94f) 34%, transparent);
  background: rgba(13,12,10,0.43);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.leader-top-card.loading,
.leader-top-card.empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  text-align: center;
}

.leader-top-rank {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.55rem;
}

.leader-top-card > strong {
  color: var(--rarity-color, #d9d1c2);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
}

.leader-top-card b,
.leader-top-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-top-card b {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.leader-top-card small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.48rem;
}

.leader-pack-total {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(212,169,79,0.2);
}

.leader-pack-total span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

.leader-pack-total strong {
  color: var(--accent-cyan);
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: 0.8;
}

@media (max-width: 700px) {
  .profile-header h1,
  .profile-header h1.profile-name-long,
  .profile-header h1.profile-name-very-long {
    font-size: clamp(2.45rem, 13vw, 4.5rem);
    line-height: 0.98;
  }

  .best-card {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .best-card-rating-block {
    padding: 16px 8px;
  }

  .best-card-rating {
    font-size: clamp(3.4rem, 17vw, 4.7rem);
  }

  .best-card h3 {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .leader-card-inner {
    transition: none;
  }
}

/* v1.5 — Engagement & crest identity */
.goat-crest-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(91, 231, 255, 0.18));
}

.brand-mark .goat-crest-logo {
  width: 38px;
  height: 38px;
}

.hero-card-emblem .goat-crest-logo {
  width: 78%;
  height: 78%;
  margin: 11% auto;
}

.leader-card-back .leader-card-topline b {
  min-width: 44px;
  text-align: center;
  font-size: 1.35rem;
}

.leader-back-heading strong {
  max-width: 100%;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.home-engagement {
  position: relative;
  padding-top: 36px;
  padding-bottom: 54px;
}

.engagement-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.engagement-feature {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(212,169,79,0.22);
  background:
    linear-gradient(145deg, rgba(42,34,20,0.26), rgba(13,12,10,0.78));
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  overflow: hidden;
}

.engagement-feature::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(212,169,79,0.16);
  transform: rotate(35deg);
}

.engagement-feature > span {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.engagement-feature h3 {
  margin: 24px 0 9px;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2vw, 2.15rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.engagement-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.engagement-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) repeat(2, minmax(280px, 1fr));
  gap: 15px;
}

.mission-panel {
  border: 1px solid rgba(212,169,79,0.22);
  background: linear-gradient(150deg, rgba(42,34,20,0.72), rgba(13,12,10,0.92));
  padding: 22px;
  min-width: 0;
}

.mission-panel-heading span,
.mission-panel-heading b {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  color: var(--accent-cyan);
}

.mission-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.mission-panel-heading b {
  color: var(--muted);
  font-weight: 500;
}

.mission-list {
  display: grid;
  gap: 9px;
}

.mission-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 12px;
  border-left: 2px solid rgba(212,169,79,0.35);
  background: rgba(13,12,10,0.52);
}

.mission-item.complete,
.mission-item.claimed {
  border-left-color: var(--accent-cyan);
}

.mission-item.claimed {
  opacity: 0.76;
}

.mission-status {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(212,169,79,0.38);
  color: var(--accent-cyan);
  font-family: var(--display);
}

.mission-copy,
.mission-reward {
  min-width: 0;
}

.mission-copy strong,
.mission-copy small,
.mission-reward b,
.mission-reward small {
  display: block;
}

.mission-copy strong {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.mission-copy small,
.mission-reward small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.mission-reward {
  text-align: right;
  white-space: nowrap;
}

.mission-reward b {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.mission-progress {
  height: 3px;
  margin-top: 8px;
  background: rgba(76,57,21,0.13);
  overflow: hidden;
}

.mission-progress span {
  display: block;
  width: var(--mission-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
}

.mission-set-reward {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed rgba(212,169,79,0.28);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.mission-set-reward.complete {
  border-color: rgba(85, 227, 154, 0.55);
  color: #55e39a;
}

.milestone-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.milestone-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 12px;
  padding: 16px;
  border: 1px solid rgba(212,169,79,0.19);
  background: rgba(13,12,10,0.72);
}

.milestone-card.complete {
  border-color: rgba(212,169,79,0.5);
  background: linear-gradient(145deg, rgba(76,57,21,0.08), rgba(13,12,10,0.78));
}

.milestone-target {
  color: var(--accent-cyan);
  font-family: var(--display);
  font-size: 2rem;
  line-height: 0.85;
}

.milestone-card strong,
.milestone-card small {
  display: block;
}

.milestone-card strong {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.milestone-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.58rem;
}

.milestone-card .mission-progress {
  grid-column: 1 / -1;
  margin: 0;
}

.milestone-card > b {
  grid-column: 1 / -1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.53rem;
}

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

.achievement-badge {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(212,169,79,0.18);
  background: rgba(13,12,10,0.72);
}

.achievement-badge.unlocked {
  border-color: color-mix(in srgb, var(--badge-color), transparent 45%);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--badge-color), transparent 91%);
}

.achievement-badge.locked {
  filter: grayscale(0.82);
  opacity: 0.48;
}

.badge-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 46px;
  border: 1px solid var(--badge-color);
  color: var(--badge-color);
  font-family: var(--display);
  font-size: 1.3rem;
  clip-path: polygon(50% 0, 92% 24%, 92% 76%, 50% 100%, 8% 76%, 8% 24%);
}

.achievement-badge strong,
.achievement-badge small {
  display: block;
}

.achievement-badge strong {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.achievement-badge small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.4;
}

.achievement-badge > span {
  grid-column: 1 / -1;
  color: var(--badge-color);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .engagement-feature-grid,
  .milestone-track,
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engagement-dashboard {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 700px) {
  .engagement-feature-grid,
  .engagement-dashboard,
  .milestone-track,
  .badge-grid {
    grid-template-columns: 1fr;
  }

  .mission-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .mission-reward {
    grid-column: 2;
    text-align: left;
  }
}

/* THE G.O.A.T 2.0 — generated-player additions */
.generated-best-card .best-card-rating-block small,
.rating-block small,
.recent-rating small {
  display: block;
  margin-top: .15rem;
  color: #e5c377;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .08em;
}
.player-physical {
  margin-top: .8rem;
  color: rgba(251,247,239,0.72);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .035em;
}
.mini-main-stats,
.generated-main-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: .42rem;
  margin-top: 1rem;
}
.mini-main-stats span,
.generated-main-stat {
  min-width: 0;
  padding: .55rem .3rem;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 38%, transparent);
  background: rgba(13,12,10,0.48);
  text-align: center;
}
.mini-main-stats span b,
.generated-main-stat span {
  display: block;
  color: rgba(251,247,239,0.58);
  font: 600 .62rem/1 var(--mono);
  letter-spacing: .08em;
}
.mini-main-stats span,
.generated-main-stat strong {
  color: #fff;
  font-size: 1rem;
}
.generated-player-card {
  overflow: visible;
}
.generated-player-card .rating-block {
  font-size: 2.8rem;
  line-height: .88;
}
.generated-player-card .card-meta {
  min-height: 8.2rem;
}
.side-stat-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45rem;
  margin-top: .75rem;
}
.side-stat-row span {
  padding: .55rem;
  border: 1px solid rgba(212,169,79,0.25);
  background: rgba(13,12,10,0.52);
  color: rgba(251,247,239,0.62);
  text-align: center;
  font: 600 .68rem/1 var(--mono);
}
.side-stat-row b { color: #fff; margin-left: .25rem; }
.player-details {
  margin-top: .75rem;
  border-top: 1px solid rgba(212,169,79,0.22);
  padding-top: .65rem;
}
.player-details summary {
  cursor: pointer;
  color: #e5c377;
  font: 600 .68rem/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.player-details ul {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .25rem .8rem;
  margin: .8rem 0 0;
  padding: 0;
  list-style: none;
}
.player-details li {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  color: rgba(251,247,239,0.58);
  font-size: .72rem;
}
.player-details li b { color: #fff; }
@media (max-width: 760px) {
  .mini-main-stats,.generated-main-grid { grid-template-columns: repeat(3,1fr); }
  .player-details ul { grid-template-columns: 1fr; }
}

/* v2.1 — generated portraits, age model and full player profiles -------- */
.return-loop .section-heading,
.engagement-section .collection-heading,
.achievement-section .collection-heading,
.club-calendar-section .collection-heading {
  padding-top: 14px;
  padding-left: clamp(18px, 2.2vw, 34px);
}

.leader-back-heading strong {
  max-width: 100%;
  font-size: clamp(1.15rem, 2.2vw, 1.72rem);
  line-height: 1;
  white-space: normal;
  text-overflow: clip;
  text-wrap: balance;
}

.leader-top-label {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: 0.47rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(212,169,79,0.58);
}

.leader-top-card {
  width: 100%;
  grid-template-columns: 24px 10px 48px minmax(0, 1fr);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
}

.leader-top-card:hover,
.leader-top-card:focus-visible {
  border-color: var(--rarity-color, var(--accent-cyan));
  background: color-mix(in srgb, var(--rarity-color, var(--accent-cyan)) 9%, rgba(13,12,10,0.72));
  outline: none;
}

.leader-rarity-dot,
.card-rarity-dot,
.player-profile-rarity i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rarity-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--rarity-color) 78%, transparent);
}

.profile-header h1 {
  font-size: clamp(4.2rem, 9vw, 9rem);
}

.profile-handle {
  color: rgba(251,247,239,0.82);
  font-size: .78rem;
}

.generated-player-card,
.generated-best-card,
.recent-pull {
  appearance: none;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.generated-player-card {
  display: grid;
  grid-template-rows: 245px 1fr;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 46%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 76% 2%, color-mix(in srgb, var(--rarity-color) 19%, transparent), transparent 36%),
    linear-gradient(155deg, color-mix(in srgb, var(--rarity-color) 8%, #17150f), #0d0c0a 55%, #0d0c0a);
}

.generated-card-portrait {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--rarity-color) 38%, transparent);
  background: color-mix(in srgb, var(--rarity-color) 13%, #121222);
}

.generated-card-portrait::after,
.best-player-portrait::after,
.player-profile-portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8,8,20,.88), transparent);
}

.generated-card-portrait img,
.best-player-portrait img,
.player-profile-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.generated-card-content {
  min-width: 0;
  padding: 18px;
}

.generated-player-card .card-topline {
  margin-top: -52px;
  position: relative;
  z-index: 2;
}

.generated-player-card .rating-block,
.generated-player-card .position-block {
  color: #fff;
  text-shadow: 0 2px 15px rgba(0,0,0,.75);
}

.generated-player-card .card-season {
  display: flex;
  align-items: center;
  gap: 7px;
}

.generated-player-card .card-meta {
  min-height: 0;
  grid-template-columns: 1fr 1fr;
}

.open-player-profile {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.generated-player-card:hover,
.generated-player-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--rarity-color);
  box-shadow: 0 24px 54px rgba(9,7,4,0.48), 0 0 28px color-mix(in srgb, var(--rarity-color) 17%, transparent);
  outline: none;
}

.best-card {
  grid-template-columns: minmax(150px, 210px) minmax(105px, 145px) minmax(0, 1fr);
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 42%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--rarity-color) 10%, #17150f), #0d0c0a);
}

.best-player-portrait {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-right: 1px solid color-mix(in srgb, var(--rarity-color) 36%, transparent);
}

.best-card-rating-block {
  border-right: 1px solid color-mix(in srgb, var(--rarity-color) 36%, transparent);
}

.best-card-details {
  padding: 26px 26px 26px 0;
}

.best-card:hover,
.best-card:focus-visible {
  border-color: var(--rarity-color);
  outline: none;
}

.recent-pull {
  grid-template-columns: 62px 30px 72px minmax(0,1fr) auto;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 26%, transparent);
}

.recent-player-portrait {
  width: 58px;
  height: 70px;
  object-fit: cover;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.recent-pull:hover,
.recent-pull:focus-visible {
  border-color: var(--rarity-color);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

/* Player dossiers opened from another modal must sit above that parent while
   leaving the parent mounted so closing returns to the exact prior context. */
.player-modal.stacked-modal {
  z-index: 1700;
}

.player-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(13,12,10,0.84);
  backdrop-filter: blur(10px);
}

.player-profile-sheet {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(212,169,79,0.34);
  background: linear-gradient(145deg, #17150f, #0d0c0a 58%, #0d0c0a);
  box-shadow: 0 42px 120px rgba(0,0,0,.7);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.player-modal-close {
  position: sticky;
  top: 14px;
  z-index: 5;
  float: right;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px 0;
  color: #fff;
  border: 1px solid rgba(212,169,79,0.25);
  background: rgba(13,12,10,0.76);
  font-size: 1.8rem;
  line-height: 1;
}

.player-modal-content {
  clear: both;
}

.player-modal-loading {
  min-height: 420px;
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-family: var(--mono);
}

.player-profile-hero {
  display: grid;
  grid-template-columns: minmax(300px, 42%) minmax(0, 1fr);
  min-height: 470px;
  border-bottom: 1px solid color-mix(in srgb, var(--rarity-color) 40%, transparent);
  background:
    radial-gradient(circle at 22% 20%, color-mix(in srgb, var(--rarity-color) 25%, transparent), transparent 40%),
    linear-gradient(135deg, color-mix(in srgb, var(--rarity-color) 8%, #2a2214), #0d0c0a 65%);
}

.player-profile-portrait {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.player-profile-identity {
  align-self: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 70px);
}

.player-profile-rarity {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--rarity-color);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.player-profile-rating {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.player-profile-rating strong {
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: .72;
  text-shadow: 0 0 36px color-mix(in srgb, var(--rarity-color) 24%, transparent);
}

.player-profile-rating span {
  padding: 7px 11px;
  color: #1a1207;
  background: var(--rarity-color);
  font-family: var(--mono);
  font-weight: 800;
}

.player-profile-identity h2 {
  margin: 24px 0 6px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: .88;
  text-transform: uppercase;
  text-wrap: balance;
}

.player-profile-identity > p {
  color: var(--muted);
  font-size: .9rem;
}

.player-profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
  margin-top: 28px;
}

.player-profile-facts span {
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 28%, transparent);
  background: rgba(13,12,10,0.46);
  color: #fff;
  font-family: var(--mono);
  font-size: .82rem;
}

.player-profile-facts b {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .57rem;
  letter-spacing: .09em;
}

.player-owner-line {
  margin-top: 20px;
  color: rgba(251,247,239,0.7);
  font-size: .8rem;
}

.player-attributes-panel {
  padding: clamp(28px, 4vw, 55px);
}

.player-attributes-heading span {
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .12em;
}

.player-attributes-heading h3 {
  margin: 7px 0 28px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: .9;
  text-transform: uppercase;
}

.player-attribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px 34px;
}

.player-attribute-group {
  min-width: 0;
}

.attribute-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.25rem;
}

.attribute-heading b {
  padding: 4px 8px;
  color: #1a1207;
  background: var(--rarity-color);
  font-family: var(--mono);
  font-size: .8rem;
}

.attribute-track {
  height: 7px;
  margin: 7px 0 14px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}

.attribute-track span {
  display: block;
  width: var(--attribute-value);
  height: 100%;
  background: linear-gradient(90deg, var(--rarity-color), color-mix(in srgb, var(--rarity-color) 50%, #fff));
  box-shadow: 0 0 16px color-mix(in srgb, var(--rarity-color) 45%, transparent);
}

.player-attribute-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-attribute-group li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(251,247,239,0.58);
  font-size: .78rem;
}

.player-attribute-group li b {
  color: #fff;
}

@media (max-width: 980px) {
  .best-card { grid-template-columns: 170px 120px minmax(0,1fr); }
  .player-profile-hero { grid-template-columns: 40% minmax(0,1fr); }
  .player-profile-facts { grid-template-columns: repeat(3,1fr); }
  .player-attribute-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .return-loop .section-heading,
  .engagement-section .collection-heading,
  .achievement-section .collection-heading { padding-left: 12px; padding-top: 10px; }
  .leader-card-face { padding: 22px; }
  .leader-back-heading strong { font-size: 1.2rem; }
  .leader-top-card { grid-template-columns: 20px 8px 38px minmax(0,1fr); min-height: 58px; padding: 8px; }
  .leader-top-card small { font-size: .48rem; }
  .generated-player-card { grid-template-rows: 220px 1fr; }
  .best-card { grid-template-columns: 1fr; }
  .best-player-portrait { min-height: 300px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--rarity-color) 36%, transparent); }
  .best-card-rating-block { min-height: 150px; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--rarity-color) 36%, transparent); }
  .best-card-details { padding: 24px; }
  .recent-pull { grid-template-columns: 54px 24px 58px minmax(0,1fr); }
  .recent-meta { grid-column: 4; }
  .player-modal { padding: 8px; }
  .player-profile-sheet { max-height: calc(100vh - 16px); }
  .player-profile-hero { grid-template-columns: 1fr; }
  .player-profile-portrait { min-height: 390px; }
  .player-profile-identity { padding: 28px 22px 36px; }
  .player-profile-facts { grid-template-columns: repeat(2,1fr); }
  .player-attribute-grid { grid-template-columns: 1fr; }
}

/* v2.1.1 — Professional player-card and profile repair ------------------ */

/* The artwork is now only artwork; all card data is placed by HTML. */
.footballer-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 72%, rgba(255,255,255,.18));
  background: #101122;
  box-shadow:
    0 22px 52px rgba(2,3,14,.52),
    0 0 28px color-mix(in srgb, var(--rarity-color) 16%, transparent);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}
.footballer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 2px solid color-mix(in srgb, var(--rarity-color) 52%, transparent);
  clip-path: inherit;
}
.footballer-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 46%;
  background: linear-gradient(to top, rgba(5,6,18,.98) 8%, rgba(5,6,18,.82) 45%, transparent);
  pointer-events: none;
}
.footballer-card-glow {
  position: absolute;
  z-index: 0;
  width: 78%;
  aspect-ratio: 1;
  top: -14%;
  right: -20%;
  border-radius: 50%;
  background: var(--rarity-color);
  opacity: .18;
  filter: blur(35px);
}
.footballer-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.footballer-card-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footballer-card-rating {
  position: absolute;
  z-index: 4;
  top: 8%;
  left: 7%;
  display: grid;
  justify-items: center;
  line-height: 1;
  text-shadow: 0 3px 18px rgba(0,0,0,.7);
}
.footballer-card-rating strong {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 900;
  color: #fff;
}
.footballer-card-rating span {
  margin-top: 3px;
  padding: 4px 7px;
  color: #080915;
  background: var(--rarity-color);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 900;
}
.footballer-card-potential {
  position: absolute;
  z-index: 4;
  top: 8%;
  right: 7%;
  padding: 6px 8px;
  color: var(--rarity-color);
  border: 1px solid color-mix(in srgb, var(--rarity-color) 50%, transparent);
  background: rgba(6,7,20,.7);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.footballer-card-name {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 8%;
  bottom: 12%;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.85rem);
  font-weight: 900;
  line-height: .9;
  text-align: left;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 4px 22px rgba(0,0,0,.9);
}
.footballer-card-footer {
  position: absolute;
  z-index: 4;
  left: 8%;
  right: 8%;
  bottom: 4.8%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(244,246,255,.76);
  font-family: var(--mono);
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footballer-card-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rarity-color);
  box-shadow: 0 0 9px var(--rarity-color);
}

/* Homepage flip-card back: three compact, contained player rows. */
.leader-card-back {
  overflow: hidden;
}
.leader-back-heading {
  margin: 4px 0 2px;
}
.leader-back-heading strong {
  display: block;
  max-height: 2.1em;
  overflow: hidden;
  font-size: clamp(1.05rem, 2vw, 1.55rem) !important;
  line-height: 1.03;
  text-overflow: ellipsis;
}
.leader-top-label {
  display: block;
  margin: 2px 0 5px;
  font-size: .43rem !important;
}
.leader-top-cards {
  display: grid;
  gap: 7px;
  min-height: 0;
}
.leader-top-card {
  display: grid !important;
  grid-template-columns: 24px 8px 42px minmax(0,1fr) !important;
  align-items: center;
  min-height: 56px !important;
  padding: 7px 9px !important;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 34%, rgba(255,255,255,.06));
  background: linear-gradient(100deg, color-mix(in srgb, var(--rarity-color) 8%, #0d0c0a), rgba(13,12,10,0.94));
}
.leader-top-card > span,
.leader-top-card > b,
.leader-top-card div { min-width: 0; }
.leader-top-card > b {
  font-size: 1.08rem !important;
  color: var(--rarity-color);
}
.leader-top-card div strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-size: .78rem !important;
  line-height: 1;
}
.leader-top-card div small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .45rem !important;
}
.leader-pack-total {
  margin-top: 7px !important;
  padding-top: 8px !important;
}
.leader-flip-hint { bottom: 9px !important; }

/* Best player: actual card on the left, clean information on the right. */
.best-card-panel,
.recent-panel { min-width: 0; }
.best-player-showcase {
  display: grid;
  grid-template-columns: minmax(190px, 245px) minmax(0,1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  width: 100%;
  min-height: 390px;
  padding: clamp(18px, 2vw, 28px);
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 38%, rgba(255,255,255,.08));
  background:
    radial-gradient(circle at 9% 12%, color-mix(in srgb, var(--rarity-color) 14%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(23,21,15,0.88), rgba(13,12,10,0.96));
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
.best-player-showcase:hover,
.best-player-showcase:focus-visible {
  border-color: var(--rarity-color);
  outline: none;
  box-shadow: 0 20px 55px rgba(9,7,4,0.4), 0 0 28px color-mix(in srgb, var(--rarity-color) 14%, transparent);
}
.best-footballer-card { max-width: 245px; justify-self: center; }
.best-player-copy { min-width: 0; padding-right: 8px; }
.best-player-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rarity-color);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.best-player-kicker i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rarity-color); box-shadow: 0 0 12px var(--rarity-color);
}
.best-player-copy h3 {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  line-height: .88;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: keep-all;
}
.best-player-copy > p { color: var(--muted); font-size: .82rem; }
.best-player-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}
.best-player-facts span {
  padding: 7px 9px;
  border: 1px solid rgba(212,169,79,0.16);
  background: rgba(13,12,10,0.38);
  font-family: var(--mono);
  font-size: .58rem;
}
.best-player-stats,
.squad-main-stats {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 5px;
  margin-top: 18px;
}
.best-player-stats span,
.squad-main-stats span {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 3px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 25%, rgba(255,255,255,.06));
  background: rgba(13,12,10,0.38);
  font-family: var(--mono);
  font-size: .62rem;
}
.best-player-stats b,
.squad-main-stats b { color: var(--rarity-color); font-size: .48rem; }

/* Recent pulls are compact rows with no wasted empty height. */
.recent-pulls { display: grid; gap: 10px; }
.recent-pull-v2 {
  display: grid;
  grid-template-columns: 34px 58px 62px minmax(0,1fr) auto 22px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 9px 13px;
  overflow: hidden;
  color: inherit;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 32%, rgba(255,255,255,.06));
  background: linear-gradient(100deg, color-mix(in srgb, var(--rarity-color) 8%, #17150f), rgba(13,12,10,0.96) 58%);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
}
.recent-pull-v2:hover,
.recent-pull-v2:focus-visible { border-color: var(--rarity-color); outline: none; }
.recent-rank { color: rgba(251,247,239,0.48); font-family: var(--mono); font-size: .68rem; }
.recent-art {
  display: block;
  width: 58px;
  height: 70px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 46%, transparent);
  background: #0d0c0a;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.recent-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recent-score { display: grid; line-height: 1; }
.recent-score strong { color: var(--rarity-color); font-family: var(--display); font-size: 2.1rem; }
.recent-score small { color: var(--accent-cyan); font-family: var(--mono); font-size: .5rem; }
.recent-identity { min-width: 0; display: grid; gap: 5px; }
.recent-identity strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-size: 1.18rem;
  text-transform: uppercase;
}
.recent-identity small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .62rem; }
.recent-identity i { width: 7px; height: 7px; border-radius: 50%; background: var(--rarity-color); }
.recent-pack { display: grid; justify-items: end; gap: 4px; min-width: 82px; }
.recent-pack strong { font-family: var(--mono); font-size: .57rem; }
.recent-pack small { color: var(--muted); font-size: .55rem; }
.recent-arrow { color: var(--accent-cyan); font-size: 1rem; }

/* Generated squad uses consistent compact collectible cards. */
.card-grid {
  grid-template-columns: repeat(auto-fill, minmax(245px,1fr));
  gap: clamp(18px, 2vw, 28px);
}
.squad-player-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
  width: 100%;
  padding: 14px;
  color: inherit;
  border: 1px solid rgba(212,169,79,0.13);
  background: linear-gradient(150deg, rgba(23,21,15,0.76), rgba(13,12,10,0.93));
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.squad-player-tile:hover,
.squad-player-tile:focus-visible { border-color: var(--rarity-color); transform: translateY(-4px); outline: none; }
.squad-footballer-card { max-width: 260px; justify-self: center; }
.squad-player-info { min-width: 0; }
.squad-player-info > div:first-child { display: grid; gap: 3px; }
.squad-player-info > div:first-child strong { font-size: .84rem; }
.squad-player-info > div:first-child small { color: var(--muted); font-size: .62rem; }
.squad-main-stats { margin-top: 12px; }

/* Full player profile: one-screen dashboard, no giant portrait. */
.player-modal { padding: 18px; }
.player-modal-backdrop { backdrop-filter: blur(5px); }
.player-profile-sheet {
  width: min(1420px, calc(100vw - 36px));
  height: min(860px, calc(100vh - 36px));
  max-height: none;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #d4a94f) 34%, rgba(255,255,255,.12));
  background:
    radial-gradient(circle at 78% 9%, rgba(76,57,21,0.2), transparent 34%),
    linear-gradient(145deg, #17150f, #0d0c0a 58%, #0d0c0a);
}
.player-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  float: none;
  margin: 0;
  border-radius: 0;
}
.player-modal-content { height: 100%; overflow: auto; }
.player-profile-v2 { min-height: 100%; padding: 22px 26px 26px; }
.player-profile-header-v2 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 0 54px 16px 0;
  border-bottom: 1px solid rgba(212,169,79,0.14);
}
.player-profile-header-v2 h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: .88;
  text-transform: uppercase;
}
.player-profile-header-v2 p { margin: 6px 0 0; color: var(--muted); font-size: .72rem; }
.player-profile-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.player-profile-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 35%, rgba(255,255,255,.08));
  background: rgba(13,12,10,0.5);
  font-family: var(--mono);
  font-size: .57rem;
  text-transform: uppercase;
}
.player-profile-badges i { width: 7px; height: 7px; border-radius: 50%; background: var(--rarity-color); box-shadow: 0 0 10px var(--rarity-color); }
.player-profile-dashboard {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 28px;
  padding-top: 22px;
}
.player-profile-side { min-width: 0; }
.profile-footballer-card { width: 250px; max-width: 100%; margin-inline: auto; }
.profile-fact-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 14px;
}
.profile-fact-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(212,169,79,0.13);
  background: rgba(13,12,10,0.42);
  color: #fff;
  font-family: var(--mono);
  font-size: .62rem;
}
.profile-fact-list b { color: var(--muted); font-size: .5rem; text-transform: uppercase; }
.player-profile-data { min-width: 0; }
.profile-rating-strip {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.profile-rating-strip > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(212,169,79,0.14);
  background: rgba(13,12,10,0.46);
}
.profile-rating-strip span { display: block; color: var(--muted); font-family: var(--mono); font-size: .5rem; text-transform: uppercase; }
.profile-rating-strip strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2.4rem);
  line-height: .9;
}
.profile-rating-strip > div:nth-child(-n+3) strong { color: var(--rarity-color); }
.profile-data-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 235px;
  gap: 22px;
  align-items: stretch;
}
.player-profile-v2 .player-attribute-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px 22px;
}
.player-profile-v2 .player-attribute-group {
  padding: 13px;
  border: 1px solid rgba(212,169,79,0.12);
  background: rgba(13,12,10,0.33);
}
.player-profile-v2 .attribute-heading { font-size: 1rem; }
.player-profile-v2 .attribute-track { height: 6px; margin: 7px 0 10px; }
.player-profile-v2 .player-attribute-group ul { gap: 5px; }
.player-profile-v2 .player-attribute-group li { font-size: .64rem; }
.radar-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding: 16px 10px;
  border: 1px solid rgba(212,169,79,0.12);
  background: rgba(13,12,10,0.38);
}
.radar-panel > span { color: var(--accent-cyan); font-family: var(--mono); font-size: .54rem; letter-spacing: .12em; }
.radar-panel > small { color: var(--muted); font-size: .54rem; }
.player-radar { width: 205px; max-width: 100%; height: auto; overflow: visible; }
.player-radar line { stroke: rgba(251,247,239,0.15); stroke-width: 1; }
.player-radar .radar-outer { fill: rgba(255,255,255,.025); stroke: rgba(251,247,239,0.25); stroke-width: 1.2; }
.player-radar .radar-value { fill: color-mix(in srgb, var(--rarity-color) 32%, transparent); stroke: var(--rarity-color); stroke-width: 2; filter: drop-shadow(0 0 7px color-mix(in srgb, var(--rarity-color) 35%, transparent)); }
.player-radar text { fill: rgba(251,247,239,0.78); font-family: var(--mono); font-size: 7px; font-weight: 700; }
.player-radar text tspan:last-child { fill: var(--rarity-color); }

@media (max-width: 1180px) {
  .best-player-showcase { grid-template-columns: 210px minmax(0,1fr); }
  .player-profile-dashboard { grid-template-columns: 245px minmax(0,1fr); gap: 20px; }
  .profile-data-grid { grid-template-columns: 1fr; }
  .radar-panel { display: none; }
  .player-profile-v2 .player-attribute-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .leader-top-card { min-height: 52px !important; grid-template-columns: 20px 7px 36px minmax(0,1fr) !important; }
  .leader-top-card div strong { font-size: .7rem !important; }
  .best-player-showcase { grid-template-columns: 1fr; }
  .best-footballer-card { width: min(240px, 78vw); }
  .best-player-copy { padding: 0 4px 4px; }
  .recent-pull-v2 { grid-template-columns: 24px 50px 52px minmax(0,1fr) 18px; gap: 8px; min-height: 80px; padding: 7px 9px; }
  .recent-art { width: 50px; height: 62px; }
  .recent-pack { display: none; }
  .recent-score strong { font-size: 1.7rem; }
  .recent-identity strong { font-size: 1rem; }
  .card-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
  .player-modal { padding: 7px; }
  .player-profile-sheet { width: calc(100vw - 12px); height: calc(100vh - 12px); }
  .player-profile-v2 { padding: 18px 14px 24px; }
  .player-profile-header-v2 { display: grid; padding-right: 42px; align-items: start; }
  .player-profile-badges { justify-content: flex-start; }
  .player-profile-dashboard { grid-template-columns: 1fr; }
  .profile-footballer-card { width: min(245px,78vw); }
  .profile-fact-list { max-width: 480px; margin-inline: auto; }
  .profile-rating-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-profile-v2 .player-attribute-grid { grid-template-columns: 1fr; }
}

/* Small final refinements. */
.leader-card-copy strong {
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 3.2vw, 3.7rem);
  line-height: .88;
}
.player-profile-sheet {
  height: auto;
  min-height: min(610px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
}
@media (max-width: 760px) {
  .player-profile-sheet { min-height: calc(100vh - 12px); max-height: calc(100vh - 12px); }
}


/* v2.1.2 — readable typography and metadata cleanup --------------------- */
:root { --mono: "Manrope", Inter, system-ui, sans-serif; }
.hero-content { padding-top: clamp(16px, 2vw, 28px); }
.profile-handle {
  font-family: var(--body);
  font-size: clamp(.82rem, 1vw, .98rem);
  font-weight: 600;
  letter-spacing: .01em;
}
.eyebrow,
.label,
.progression-overline,
.insight-label,
.ranking-label,
.engagement-kicker,
.panel-heading span,
.collection-toolbar label,
.player-profile-badges span,
.profile-rating-strip span,
.radar-panel > span,
.footballer-card-footer,
.footballer-card-potential,
.recent-pack strong,
.recent-score small,
.open-player-profile {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: .045em;
}
.summary-card .label,
.summary-card small,
.rarity-stat small,
.ranking-stat small,
.dominant-insight small,
.position-legend,
.squad-player-info small,
.best-player-copy p,
.best-player-facts,
.recent-identity small,
.recent-pack small {
  font-family: var(--body);
  line-height: 1.45;
}
.player-profile-badges span { font-size: .66rem; }
.profile-fact-list span { font-family: var(--body); font-size: .74rem; }
.profile-fact-list b { font-family: var(--body); font-size: .59rem; letter-spacing: .035em; }
.profile-rating-strip span { font-size: .62rem; letter-spacing: .035em; }
.player-profile-header-v2 p { font-size: .82rem; line-height: 1.5; }
.player-profile-v2 .player-attribute-group li {
  font-family: var(--body);
  font-size: .76rem;
  line-height: 1.35;
}
.player-profile-v2 .attribute-heading b { font-family: var(--body); font-size: .82rem; }
.recent-identity small { font-size: .7rem; }
.recent-pack strong { font-size: .64rem; }
.recent-pack small { font-size: .62rem; }
.recent-rank { font-family: var(--body); font-weight: 700; font-size: .72rem; }
.radar-panel > span, .radar-panel > small { font-family: var(--body); font-size: .62rem; }
.player-radar text { font-family: var(--body); font-size: 8px; }
@media (max-width: 760px) {
  .player-profile-v2 .player-attribute-group li { font-size: .8rem; }
  .profile-handle { font-size: .82rem; }
}

/* v2.2 — club navigation, scouting ranges and professional cards -------- */
.profile-nav-row {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  margin: 0 0 24px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(212,169,79,0.14);
  background: linear-gradient(180deg, rgba(13,12,10,0.96), rgba(13,12,10,0.86));
  backdrop-filter: blur(10px);
}
.profile-nav-row .back-button { margin: 0; flex: 0 0 auto; }
.profile-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}
.profile-tabs button {
  position: relative;
  min-height: 40px;
  padding: 9px 18px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.profile-tabs button:hover,
.profile-tabs button:focus-visible { color: #fff; border-color: rgba(212,169,79,0.28); outline: none; }
.profile-tabs button.active {
  color: #fff;
  border-color: rgba(212,169,79,0.4);
  background: linear-gradient(135deg, rgba(76,57,21,0.11), rgba(76,57,21,0.13));
  box-shadow: inset 0 -2px 0 var(--accent-cyan), 0 0 18px rgba(212,169,79,0.08);
}
.profile-tab-panel { display: none; }
.profile-tab-panel.active { display: block; animation: profilePanelIn .22s ease-out both; }
@keyframes profilePanelIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.overview-best-player { margin: 24px 0 0; }
.overview-best-player .best-card-panel { width: 100%; }
.squad-recent-section { margin: 0 0 24px; }
#profileSquadPanel .collection-section,
#profileObjectivesPanel .engagement-section,
#profileLegacyPanel .achievement-section { margin-top: 0; }

.country-inline,
.card-country {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.country-flag {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 1.05em;
  line-height: 1;
}

/* One coherent card surface: artwork, identity and all main stats. */
.footballer-card {
  aspect-ratio: 3 / 4.35;
  min-height: 0;
  border-width: 1px;
}
.footballer-card::after { height: 58%; background: linear-gradient(to top, rgba(5,6,18,.99) 6%, rgba(5,6,18,.93) 48%, rgba(5,6,18,.18) 88%, transparent); }
.footballer-card-art img { object-position: center 18%; }
.footballer-card-rating {
  top: 6.5%;
  left: 7%;
  justify-items: start;
}
.footballer-card-rating strong { font-size: clamp(2.45rem, 4.6vw, 4.4rem); }
.footballer-card-rating small {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-family: var(--body);
  font-size: clamp(.48rem, .72vw, .64rem);
  font-weight: 800;
  letter-spacing: .035em;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.footballer-card-position {
  position: absolute;
  z-index: 5;
  top: 7%;
  right: 7%;
  min-width: 42px;
  padding: 7px 9px;
  color: #070815;
  background: var(--rarity-color);
  font-family: var(--display);
  font-size: clamp(.85rem, 1.5vw, 1.2rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--rarity-color) 34%, transparent);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}
.footballer-card-identity {
  position: absolute;
  z-index: 5;
  left: 8%;
  right: 8%;
  bottom: 22.5%;
  min-width: 0;
}
.footballer-card-name {
  position: static;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(1.36rem, 2.55vw, 2.55rem);
  line-height: .9;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.footballer-card-name.name-long { font-size: clamp(1.12rem, 2.15vw, 2.05rem); line-height: .94; }
.footballer-card-name.name-very-long { font-size: clamp(.98rem, 1.85vw, 1.72rem); line-height: .98; }
.card-country {
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: rgba(251,247,239,0.84);
  font-family: var(--body);
  font-size: clamp(.54rem, .82vw, .7rem);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}
.footballer-card-stats {
  position: absolute;
  z-index: 5;
  left: 7%;
  right: 7%;
  bottom: 7.2%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 3px;
}
.card-main-stat {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 5px 1px;
  border-top: 2px solid var(--stat-color);
  background: rgba(13,12,10,0.68);
  font-family: var(--body);
  line-height: 1;
}
.card-main-stat b { color: rgba(251,247,239,0.62); font-size: clamp(.38rem,.55vw,.5rem); }
.card-main-stat strong { color: #fff; font-size: clamp(.63rem,.9vw,.82rem); }
.stat-high { --stat-color: #72f5a0; }
.stat-medium { --stat-color: #f1c94a; }
.stat-low { --stat-color: #ff5e6d; }
.footballer-card-footer {
  bottom: 2.1%;
  justify-content: center;
  color: rgba(242,244,255,.68);
  font-size: clamp(.42rem,.58vw,.52rem);
}
.footballer-card-potential { display: none; }

/* Keep outer squad tiles concise because the card now contains the stats. */
.squad-player-tile { grid-template-columns: minmax(190px, 250px) minmax(0,1fr); }
.squad-player-info { align-content: center; }
.squad-main-stats { display: none; }

/* Attribute colour thresholds: green 70+, yellow 50–69, red below 50. */
.player-attribute-group .attribute-heading b { color: var(--stat-color) !important; }
.player-attribute-group .attribute-track span {
  background: linear-gradient(90deg, color-mix(in srgb, var(--stat-color) 76%, white 6%), var(--stat-color)) !important;
  box-shadow: 0 0 12px color-mix(in srgb, var(--stat-color) 25%, transparent);
}
.player-attribute-group.stat-low { border-color: rgba(255,94,109,.22); }
.player-attribute-group.stat-medium { border-color: rgba(241,201,74,.22); }
.player-attribute-group.stat-high { border-color: rgba(114,245,160,.18); }
.profile-fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-fact-grid span { min-height: 45px; }

/* Clear visual completion language. */
.mission-item.complete {
  border-color: rgba(87, 235, 144, .56) !important;
  box-shadow: inset 0 0 24px rgba(87,235,144,.07), 0 0 18px rgba(87,235,144,.05);
}
.mission-item.complete .mission-status {
  color: #07130c;
  background: #57eb90;
  border-color: #57eb90;
  font-size: 1rem;
  font-weight: 900;
}
.mission-item.complete .mission-reward small { color: #70f1a1; font-weight: 800; }
.mission-set-reward.complete { border-color: rgba(87,235,144,.62) !important; box-shadow: inset 0 0 24px rgba(87,235,144,.08); }
.milestone-card.complete,
.achievement-badge.unlocked {
  border-color: rgba(87,235,144,.72) !important;
  box-shadow: inset 0 0 28px rgba(87,235,144,.08), 0 0 18px rgba(87,235,144,.06) !important;
}
.milestone-card.complete::after,
.achievement-badge.unlocked::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #07130c;
  border-radius: 50%;
  background: #57eb90;
  font-size: .75rem;
  font-weight: 900;
}
.milestone-card,
.achievement-badge { position: relative; }

@media (max-width: 900px) {
  .profile-nav-row { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 0 12px; }
  .profile-tabs { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .profile-tabs button { flex: 0 0 auto; padding-inline: 14px; }
  .squad-player-tile { grid-template-columns: 1fr; }
  .squad-footballer-card { width: min(260px, 80vw); }
}
@media (max-width: 560px) {
  .footballer-card-stats { gap: 2px; left: 5.5%; right: 5.5%; }
  .card-main-stat { padding: 4px 0; }
  .profile-fact-grid { grid-template-columns: 1fr 1fr; }
}

/* v2.2.2 — squad card polish and profile navigation cleanup ----------- */

/* Give the second hero line a little more breathing room so descenders
   never touch the clipping edge in Chrome at any zoom level. */
.hero h1 { padding-bottom: .10em; }
.hero-accent {
  position: relative;
  top: -.045em;
  margin-top: .035em;
  padding-bottom: .045em;
}

/* Keep the page itself transparent. Only the menu receives a restrained,
   rounded translucent surface. */
.profile-nav-row {
  min-height: 62px;
  margin-bottom: 24px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}
.profile-tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 15px;
  background: rgba(23,21,15,0.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.profile-tabs button {
  min-height: 38px;
  padding: 8px 17px;
  border-radius: 10px;
}
.profile-tabs button.active {
  border-color: rgba(212,169,79,0.33);
  background: linear-gradient(135deg, rgba(76,57,21,0.12), rgba(76,57,21,0.14));
  box-shadow: inset 0 0 0 1px rgba(212,169,79,0.05), 0 0 18px rgba(212,169,79,0.06);
}
.manager-label { color: var(--accent-cyan); font-weight: 800; }
.country-flag { display: none !important; }
.country-inline,
.card-country { gap: 0; }

/* The latest-activity heading was too close to the frame edge. */
.squad-recent-section .collection-heading {
  padding: 13px 0 3px 18px;
}

/* Standalone collectible cards: no secondary information panel beneath. */
.squad-player-tile {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  place-items: center;
  gap: 0;
  padding: 12px;
  border-radius: 14px;
}
.squad-player-info,
.squad-main-stats,
.squad-player-tile .open-player-profile { display: none !important; }
.squad-footballer-card { width: min(100%, 260px); max-width: 260px; }

/* Keep the rating and scouting range together on one line. */
.footballer-card-rating {
  min-width: 82px;
  align-items: start;
}
.footballer-card-rating small {
  width: max-content;
  max-width: none;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  background: rgba(5,6,18,.72);
  white-space: nowrap;
  line-height: 1;
}

/* Cards use surnames only, so the identity stays strong and readable. */
.footballer-card-name {
  -webkit-line-clamp: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: .96;
}
.footballer-card-name.name-long { font-size: clamp(1.12rem, 2.05vw, 1.95rem); }
.footballer-card-name.name-very-long { font-size: clamp(.96rem, 1.75vw, 1.58rem); }

/* Stat labels remain readable; values become black text on a rounded
   threshold-colour chip: green 70+, yellow 50–69, red below 50. */
.card-main-stat {
  gap: 4px;
  padding: 4px 1px;
  border-top: 0;
  background: rgba(13,12,10,0.44);
}
.card-main-stat b {
  color: rgba(251,247,239,0.8);
  font-weight: 800;
}
.card-main-stat strong {
  min-width: 27px;
  padding: 4px 5px 3px;
  color: #1a1207;
  border-radius: 7px;
  background: var(--stat-color);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: 0 0 10px color-mix(in srgb, var(--stat-color) 16%, transparent);
}

/* Physical data and playstyle stay inside the opened player profile. */
.best-player-facts,
.best-player-stats { display: none !important; }
.best-player-copy > p { margin-top: 8px; }

/* Side-profile scores use the same rating thresholds. */
.profile-fact-list em.profile-score {
  color: var(--stat-color);
  font-family: var(--body);
  font-style: normal;
  font-weight: 900;
}
.profile-fact-list em.profile-score.stat-high { --stat-color: #72f5a0; }
.profile-fact-list em.profile-score.stat-medium { --stat-color: #f1c94a; }
.profile-fact-list em.profile-score.stat-low { --stat-color: #ff5e6d; }

@media (max-width: 900px) {
  .profile-tabs { border-radius: 13px; }
  .squad-recent-section .collection-heading { padding-left: 10px; }
}

/* v2.3 — Discovery, inventory and claimable rewards */
.hero-stat-link {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
}
.hero-stat-link em {
  display: block;
  margin-top: 6px;
  color: var(--accent-cyan);
  font-family: var(--body);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
}
.hero-stat-link:hover em,
.hero-stat-link:focus-visible em { opacity: 1; transform: none; }
.hero-stat-link:focus-visible { outline: 2px solid rgba(212,169,79,0.72); outline-offset: -2px; }

.viewer-search { position: relative; z-index: 12; }
.viewer-suggestions {
  position: absolute;
  z-index: 30;
  width: min(640px, calc(100% - 28px));
  max-height: 350px;
  margin-top: -3px;
  overflow-y: auto;
  border: 1px solid rgba(212,169,79,0.28);
  border-radius: 0 0 16px 16px;
  background: rgba(13,12,10,0.98);
  box-shadow: 0 24px 60px rgba(9,7,4,0.52);
}
.viewer-suggestions button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  width: 100%;
  gap: 3px 18px;
  padding: 13px 16px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid rgba(212,169,79,0.1);
  background: transparent;
  font-family: var(--body);
}
.viewer-suggestions button:hover,
.viewer-suggestions button:focus-visible { background: rgba(76,57,21,0.08); outline: none; }
.viewer-suggestions strong { font-size: .9rem; }
.viewer-suggestions span { color: var(--accent-cyan); font-size: .78rem; font-weight: 700; }
.viewer-suggestions small { grid-column: 1 / -1; color: var(--muted); font-size: .69rem; }
.suggestion-empty { display: block; padding: 15px; color: var(--muted); font-size: .8rem; }

.hero-card-carousel {
  position: relative;
  z-index: 5;
  width: min(380px, 88vw);
  height: 500px;
  overflow: hidden;
  touch-action: pan-y;
}
.hero-card-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform .55s cubic-bezier(.22,.78,.22,1);
  will-change: transform;
}
.hero-card-slide {
  display: grid;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  place-items: center;
  padding: 15px 20px;
}
.hero-card-carousel .hero-card.leader-card { width: min(340px, 100%); height: 470px; animation: none; }
.hero-carousel-arrow {
  position: absolute;
  z-index: 8;
  top: 50%;
  display: grid;
  width: 34px;
  height: 48px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(212,169,79,0.28);
  border-radius: 12px;
  background: rgba(13,12,10,0.75);
  font-size: 1.7rem;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}
.hero-carousel-previous { left: 0; }
.hero-carousel-next { right: 0; }
.hero-carousel-dots {
  position: absolute;
  z-index: 9;
  bottom: 1px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.hero-carousel-dots button {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(251,247,239,0.25);
}
.hero-carousel-dots button.active { background: var(--accent-cyan); box-shadow: 0 0 12px rgba(212,169,79,0.55); }
.elite-card-heading span,
.elite-card-heading strong,
.elite-card-heading small { display: block; }
.elite-card-heading span { color: var(--accent-cyan); font-size: .52rem; font-weight: 800; letter-spacing: .09em; }
.elite-card-heading strong { margin-top: 4px; font-family: var(--display); font-size: 1.72rem; line-height: .95; }
.elite-card-heading small { margin-top: 5px; color: var(--muted); font-size: .58rem; }
.elite-player-list { gap: 5px; }
.elite-player-list .leader-top-card {
  grid-template-columns: 20px 8px 42px minmax(0,1fr);
  min-height: 48px;
  padding: 6px 8px;
  gap: 7px;
}
.elite-player-list .leader-top-card > span { color: var(--faint); font-size: .52rem; }
.elite-player-list .leader-top-card > b { color: var(--rarity-color); font-family: var(--display); font-size: 1.25rem; }
.elite-player-list .leader-top-card strong { display: block; overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.elite-player-list .leader-top-card small { font-size: .42rem; }
.leader-rarity-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rarity-color); box-shadow: 0 0 8px var(--rarity-color); }

.directory-view { min-height: 70vh; }
.directory-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.directory-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
}
.directory-header h1 { margin: 5px 0 8px; font-family: var(--display); font-size: clamp(2.4rem,5vw,5.2rem); line-height: .9; text-transform: uppercase; }
.directory-header p:last-child { max-width: 760px; color: var(--muted); }
.directory-search { display: grid; min-width: min(390px,100%); gap: 7px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.directory-search input { width: 100%; min-height: 46px; padding: 0 14px; color: #fff; border: 1px solid rgba(212,169,79,0.22); border-radius: 10px; background: rgba(13,12,10,0.62); font: 600 .82rem var(--body); }
.directory-table-panel { margin-top: 22px; padding: 28px; }
.directory-table-wrap { width: 100%; overflow-x: auto; }
.directory-table { min-width: 980px; }
.directory-table th { white-space: nowrap; }
.directory-table td { vertical-align: middle; }
.directory-sort {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  text-transform: inherit;
}
.directory-sort span { color: var(--faint); }
.directory-sort.active { color: var(--accent-cyan); }
.directory-link { display: grid; gap: 2px; padding: 0; color: #fff; text-align: left; border: 0; background: transparent; font-family: var(--body); }
.directory-link strong { font-size: .84rem; }
.directory-link small { color: var(--muted); font-size: .66rem; }
.directory-link:hover strong { color: var(--accent-cyan); }
.directory-potential { display: block; width: max-content; margin-top: 4px; font-size: .64rem; font-weight: 900; }
.attribute-sort-menu { display: flex; gap: 5px; margin-top: 6px; }
.attribute-sort-menu button { padding: 3px 5px; color: var(--muted); border: 1px solid rgba(212,169,79,0.16); border-radius: 5px; background: rgba(13,12,10,0.6); font-size: .54rem; }
.attribute-sort-menu button:hover { color: #fff; border-color: rgba(212,169,79,0.45); }
.directory-attributes { display: flex; flex-wrap: wrap; gap: 5px; min-width: 285px; }
.directory-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  color: #1a1207;
  border: 0;
  border-radius: 7px;
  background: var(--stat-color);
  font-size: .6rem;
  font-weight: 900;
}
.directory-stat b,.directory-stat span { color: #1a1207; }
.directory-stat.stat-high { --stat-color:#72f5a0; }
.directory-stat.stat-medium { --stat-color:#f1c94a; }
.directory-stat.stat-low { --stat-color:#ff5e6d; }

.profile-tabs button { overflow: visible; }
.inventory-alert {
  position: absolute;
  top: -7px;
  right: 5px;
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid #d4a94f;
  border-radius: 50%;
  background: #ffd447;
  box-shadow: 0 0 13px rgba(255,212,71,.65);
}
.inventory-alert::after { content:"!"; display:grid; height:100%; place-items:center; color:#1a1207; font-size:.64rem; font-weight:1000; }
#inventoryTabButton.has-items .inventory-alert { display: block; }
.inventory-section { margin-top: 0; }
.inventory-pack-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.inventory-pack {
  position: relative;
  min-height: 230px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(42,34,20,0.42),rgba(13,12,10,0.9));
}
.inventory-pack::after { content:""; position:absolute; inset:auto -30px -55px auto; width:150px; height:150px; border-radius:50%; background:radial-gradient(circle,rgba(76,57,21,0.18),transparent 70%); }
.inventory-pack > * { position:relative; z-index:1; display:block; }
.inventory-pack > span { color:var(--accent-cyan); font-size:.7rem; font-weight:900; letter-spacing:.08em; }
.inventory-pack > strong { margin:22px 0 8px; font-family:var(--display); font-size:5rem; line-height:.8; }
.inventory-pack p { color:var(--muted); font-size:.78rem; }
.inventory-pack code { width:max-content; margin-top:22px; padding:7px 10px; color:#1a1207; border-radius:7px; background:#fff; font-weight:900; }
.inventory-pack.empty { opacity:.54; filter:saturate(.5); }
.inventory-help { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; padding:18px 20px; border:1px solid rgba(212,169,79,0.14); border-radius:14px; background:rgba(13,12,10,0.5); }
.inventory-help span { display:flex; gap:8px; }
.inventory-help code { padding:6px 9px; border-radius:6px; color:var(--accent-cyan); background:rgba(76,57,21,0.08); }

.milestone-card.claimable { border-color: rgba(255,212,71,.65); box-shadow: 0 0 20px rgba(255,212,71,.09); }
.milestone-card.claimed { border-color: rgba(114,245,160,.45); }
.milestone-claim-button { padding:8px 11px; color:#1a1207; border:0; border-radius:8px; background:#ffd447; font:900 .68rem var(--body); white-space:nowrap; }
.milestone-claim-button:hover { filter:brightness(1.08); transform:translateY(-1px); }
.milestone-claim-button:disabled { opacity:.55; transform:none; }

.attribute-heading .attribute-score {
  min-width: 38px;
  padding: 5px 9px;
  color: #1a1207 !important;
  border-radius: 8px;
  background: var(--stat-color) !important;
  text-align: center;
}
.attribute-heading .attribute-score.stat-high { --stat-color:#72f5a0; }
.attribute-heading .attribute-score.stat-medium { --stat-color:#f1c94a; }
.attribute-heading .attribute-score.stat-low { --stat-color:#ff5e6d; }
.potential-yellow { color:#f1c94a !important; }
.potential-blue { color:#46a2ff !important; }
.potential-purple { color:#b56cff !important; }
.potential-gold { color:#ffd447 !important; text-shadow:0 0 12px rgba(255,212,71,.22); }
.footballer-card-rating small { border-radius: 6px; }
.potential-profile-score { width:max-content; }

@media (max-width: 900px) {
  .directory-header { align-items:stretch; flex-direction:column; }
  .directory-search { min-width:0; }
  .inventory-pack-grid { grid-template-columns:1fr; }
  .hero-card-carousel { width:min(370px,96vw); }
}
@media (max-width: 620px) {
  .directory-nav-row { align-items:stretch; flex-direction:column; }
  .directory-tabs { justify-content:flex-start; }
  .hero-carousel-arrow { display:none; }
  .viewer-suggestions { width:calc(100% - 20px); }
  .inventory-help { align-items:flex-start; flex-direction:column; }
}


/* v2.3.1 — homepage and profile visual polish ------------------------- */
/* Restore the original clean stat row. Only the yellow number is a link. */
.hero-stat-number {
  display: block;
  width: max-content;
  margin: 0;
  padding: 0;
  color: #ffd447;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font: inherit;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.hero-stat-number span { color: #ffd447; transition: color .18s ease, text-shadow .18s ease, transform .18s ease; }
.hero-stat-number:hover span,
.hero-stat-number:focus-visible span {
  color: #ffe482;
  text-shadow: 0 0 14px rgba(255,212,71,.42);
  transform: translateY(-1px);
}
.hero-stat-number:focus-visible { outline: 2px solid rgba(255,212,71,.65); outline-offset: 4px; }
.hero-stat-link { width: auto; background: transparent; }

/* The carousel disabled the established floating motion; restore it safely. */
.hero-card-carousel {
  width: min(440px, 96vw);
}
.hero-card-carousel .hero-card.leader-card {
  animation: leaderCardFloat 6s ease-in-out infinite;
  will-change: transform;
}
#heroEliteCard { animation-delay: -1.7s; }
.hero-carousel-arrow {
  opacity: .34;
  border-color: rgba(212,169,79,0.16);
  background: rgba(13,12,10,0.45);
  backdrop-filter: none;
  transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}
.hero-carousel-arrow:hover,
.hero-carousel-arrow:focus-visible {
  opacity: .82;
  border-color: rgba(212,169,79,0.38);
  background: rgba(13,12,10,0.72);
  outline: none;
}
.hero-carousel-previous { left: 4px; }
.hero-carousel-next { right: 4px; }

/* Add breathing room below the moving game-loop rail. */
.home-engagement { margin-top: 70px; }

/* Match Inventory heading alignment to Objectives and Legacy. */
.inventory-section .collection-heading {
  padding-top: 14px;
  padding-left: clamp(18px, 2.2vw, 34px);
}

/* Detailed profile values remain readable on every threshold colour. */
.attribute-heading .attribute-score {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.62);
}

@media (max-width: 620px) {
  .hero-card-carousel { width: min(380px, 96vw); }
  .home-engagement { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card-carousel .hero-card.leader-card { animation: none; }
}


/* v2.3.2 — profile clarity, inventory spacing and Store placeholder ----- */
/* Earlier attribute rules used a more specific !important selector. This
   final rule deliberately wins so every score is unmistakably white. */
.player-profile-v2 .player-attribute-group .attribute-heading b.attribute-score {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.82), 0 0 1px rgba(0,0,0,.9) !important;
}

/* Give the radar caption its own readable line below the chart. */
.radar-panel .radar-caption {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 15px;
  padding: 0 8px 3px;
  color: rgba(251,247,239,0.82);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
}

/* Inventory content needs more air at both outer edges. */
#profileInventoryPanel .inventory-section {
  padding-right: clamp(28px, 3.4vw, 52px);
  padding-left: clamp(28px, 3.4vw, 52px);
}
#profileInventoryPanel .collection-heading {
  padding-right: 10px;
  padding-left: 0;
}
#profileInventoryPanel #inventoryTotal {
  margin-right: 10px;
  color: #ffd447;
  font-weight: 800;
}
#profileInventoryPanel .inventory-pack-grid {
  gap: clamp(22px, 2.2vw, 34px);
  padding: 0 8px 10px;
}
#profileInventoryPanel .inventory-pack {
  padding: clamp(27px, 2.3vw, 36px);
}

/* Public Store remains a placeholder; Dev Mode exposes the private Player Trade test flow. */
.store-tab-button { color: #ffd447 !important; }
.store-tab-button:hover,
.store-tab-button:focus-visible {
  color: #fff !important;
  border-color: rgba(255,212,71,.42) !important;
  background: rgba(255,212,71,.08) !important;
}
.store-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  contain: layout paint;
}
.store-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13,12,10,0.9);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.store-modal-card {
  position: relative;
  z-index: 2;
  width: min(430px, 92vw);
  padding: 52px 38px 44px;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,212,71,.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,212,71,.18), transparent 46%),
    linear-gradient(145deg, rgba(42,34,20,0.98), rgba(13,12,10,0.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 40px rgba(255,212,71,.08);
  text-align: center;
  contain: layout paint;
  transform: translateZ(0);
}
.store-modal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.055) 48%, transparent 70%);
}
.store-modal-close {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  background: rgba(13,12,10,0.48);
  font-size: 1.35rem;
  line-height: 1;
}
.store-modal-kicker {
  color: #ffd447;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.store-modal-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 24px auto 18px;
  place-items: center;
  color: #1a1207;
  border-radius: 22px;
  background: linear-gradient(145deg,#ffe57c,#ffd447);
  box-shadow: 0 0 30px rgba(255,212,71,.28);
  font-size: 2rem;
}
.store-modal-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: .95;
  text-transform: uppercase;
}
.store-modal-card p {
  margin: 14px 0 0;
  color: rgba(251,247,239,0.72);
  font-size: .9rem;
}


/* v3.0A.50.29.51 — public Player Trade Store layout correction ----------- */
 .store-modal.trade-store-active {
  padding: 22px;
}
.store-modal.trade-store-active .store-modal-card {
  width: min(1240px, 96vw);
  height: min(860px, 92vh);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-color: rgba(212,169,79,0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(76,57,21,0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(76,57,21,0.12), transparent 28%),
    linear-gradient(180deg, rgba(23,21,15,0.985), rgba(13,12,10,0.995));
  box-shadow: 0 36px 110px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.store-modal.trade-store-active .store-modal-card::after {
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 18%, transparent 82%, rgba(255,255,255,.018));
  opacity: .9;
}
.store-coming-soon-view { position: relative; z-index: 1; }
.trade-store-view {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  height: 100%;
  min-height: 0;
}
.trade-store-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 78px 22px 30px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}
.trade-store-heading h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: .96;
}
.trade-heading-back {
  display: inline-flex;
  margin-top: 12px;
  color: rgba(251,247,239,0.72);
}
.trade-heading-back:hover,.trade-heading-back:focus-visible { color: #fff; }
.trade-dev-badge {
  flex: 0 0 auto;
  margin-top: 8px;
  padding: 8px 12px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.32);
  border-radius: 999px;
  background: rgba(76,57,21,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.trade-store-body {
  min-height: 0;
  padding: 24px 28px 44px;
  overflow: auto;
}
.trade-store-body.trade-pack-mode {
  padding-bottom: 24px;
  overflow: hidden;
}
.trade-store-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}
.trade-store-intro p,
.trade-store-intro > span {
  flex: 1 1 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015);
}
.trade-store-intro p {
  width: 100%;
  max-width: none;
  color: #fbf7ef;
  font-size: .96rem;
  line-height: 1.6;
}
.trade-store-intro > span {
  max-width: 420px;
  color: rgba(251,247,239,0.72);
  font-size: .78rem;
  line-height: 1.6;
}
.trade-pack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.trade-pack-card {
  display: grid;
  min-width: 0;
  padding: 0;
  overflow: visible;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
}
.trade-pack-card:focus-visible {
  outline: 1px solid rgba(212,169,79,0.55);
  outline-offset: 6px;
}
.trade-pack-art {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 3;
  min-height: 0;
  padding: 16px 16px 0;
  background: transparent;
}
.trade-pack-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.4));
  transition: transform .18s ease, filter .18s ease;
}
.trade-pack-card:hover .trade-pack-art img,
.trade-pack-card:focus-visible .trade-pack-art img {
  transform: translateY(-6px) scale(1.025);
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.5));
}
.trade-pack-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 16px 18px 18px;
  border-top: 0;
  text-align: center;
}
.trade-pack-copy > * { width: 100%; text-align: center; }
.trade-pack-copy strong {
  font-family: var(--display);
  font-size: 1.34rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.trade-pack-copy > span { color: #fbf7ef; font-size: .8rem; font-weight: 800; }
.trade-pack-copy small { color: rgba(251,247,239,0.58); font-size: .67rem; }
.trade-pack-detail {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  gap: 24px;
  align-items: start;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
}
.trade-pack-sidebar {
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 14px;
  height: auto;
  padding: 0 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.trade-back-button,
.trade-warning-reset {
  justify-self: start;
  padding: 0;
  color: #fbf7ef;
  border: 0;
  background: transparent;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}
.trade-back-button:hover,.trade-back-button:focus-visible,.trade-warning-reset:hover,.trade-warning-reset:focus-visible { color: #fff; }
.trade-pack-sidebar > img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.4));
}
.trade-rule-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(42,34,20,0.16), rgba(42,34,20,0.09));
}
.trade-rule-card span,.trade-player-picker header span,.trade-selection-footer span {
  color: #d9d1c2;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.trade-rule-card strong { font-size: .9rem; }
.trade-rule-card small { color: rgba(251,247,239,0.6); font-size: .68rem; }
.trade-pack-sidebar p { margin: 0; padding: 0 2px; color: rgba(251,247,239,0.62); font-size: .74rem; line-height: 1.55; }
.trade-player-picker {
  display: flex;
  align-self: stretch;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 18px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}
.trade-player-picker > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 15px;
  padding: 3px 2px 12px;
}
.trade-player-picker > header div { display: grid; gap: 4px; }
.trade-player-picker > header strong { font-size: 1.16rem; }
.trade-player-picker > header > small { color: rgba(251,247,239,0.62); font-size: .72rem; }
.trade-protection-note {
  margin-bottom: 12px;
  padding: 11px 13px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 12px;
  background: rgba(42,34,20,0.1);
  font-size: .68rem;
}
.trade-player-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 8px;
  min-height: 0;
  max-height: none;
  padding-right: 4px;
  overflow: auto;
  scrollbar-width: thin;
}
.trade-player-row {
  display: grid;
  grid-template-columns: 27px 42px minmax(160px,1fr) 172px 112px;
  grid-template-areas: "check portrait name stats status";
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 8px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018));
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}
.trade-player-check { grid-area: check; }
.trade-player-row > img { grid-area: portrait; }
.trade-player-name { grid-area: name; }
.trade-player-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: 52px 68px 48px;
  gap: 2px;
  align-items: center;
}
.trade-registration { grid-area: status; }
.trade-player-row:hover:not(:disabled),.trade-player-row:focus-visible {
  border-color: rgba(212,169,79,0.34);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(42,34,20,0.08));
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.trade-player-row.selected {
  border-color: rgba(212,169,79,0.56);
  background: linear-gradient(90deg, rgba(76,57,21,0.22), rgba(23,21,15,0.28));
  box-shadow: inset 3px 0 0 #d4a94f, 0 10px 22px rgba(0,0,0,.2);
}
.trade-player-row:disabled { cursor: wait; opacity: .7; }
.trade-player-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  color: #1a1207;
  background: rgba(255,255,255,.04);
  font-size: .7rem;
  font-weight: 1000;
}
.trade-player-row.selected .trade-player-check { border-color: #d4a94f; background: #4c3915; }
.trade-player-row > img { width: 42px; height: 42px; object-fit: cover; object-position: top center; border-radius: 10px; background: #17150f; }
.trade-player-name { display: grid; min-width: 0; gap: 3px; }
.trade-player-name strong { overflow: hidden; font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.trade-player-name small { color: rgba(251,247,239,0.52); font-size: .62rem; }
.trade-player-stat { display: grid; gap: 2px; text-align: center; }
.trade-player-stat small { color: rgba(251,247,239,0.5); font-size: .54rem; font-weight: 800; }
.trade-player-stat strong { font-size: .86rem; }
.trade-registration {
  justify-self: end;
  padding: 6px 8px;
  color: #d9d1c2;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 999px;
  background: rgba(251,247,239,0.08);
  font-size: .58rem;
  font-weight: 800;
  white-space: nowrap;
}
.trade-registration.registered { color: #ffe486; border-color: rgba(255,212,71,.25); background: rgba(255,212,71,.08); }
.trade-registration.u17_exempt { color: #aeeccc; border-color: rgba(105,223,158,.28); background: rgba(105,223,158,.08); }
.trade-selection-footer {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: 95px 145px minmax(0,1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: 0 -10px 30px rgba(0,0,0,.15);
}
.trade-selection-count,.trade-selection-average { display: grid; gap: 3px; }
.trade-selection-count strong,.trade-selection-average strong { font-size: 1.08rem; }
.trade-selection-average small { color: rgba(251,247,239,0.5); font-size: .58rem; }
.trade-selection-average.valid strong { color: #9ee4bc; }
.trade-selection-average.invalid strong { color: #ffaaa9; }
.trade-selection-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.trade-submit-button {
  min-width: 180px;
  padding: 12px 17px;
  color: #1a1207;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf7ef, #4c3915);
  font-size: .7rem;
  font-weight: 1000;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(212,169,79,0.28);
}
.trade-submit-button:disabled { color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); box-shadow: none; cursor: not-allowed; }
.trade-threshold-error { margin-top: 8px; padding: 9px 11px; color: #ffb6b5; border-radius: 10px; background: rgba(205,63,70,.1); font-size: .67rem; }
.trade-api-error { border: 1px solid rgba(255,106,111,.2); }
.trade-empty,.trade-store-loading,.trade-store-error {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  color: rgba(251,247,239,0.6);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.015);
  text-align: center;
}
.trade-empty strong,.trade-store-error strong { color: #fff; }
.trade-empty span,.trade-store-error span { font-size: .73rem; }
.trade-store-loading span { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.14); border-top-color: #d4a94f; border-radius: 50%; animation: trade-spin .7s linear infinite; }
.trade-store-error button { margin-top: 8px; padding: 9px 13px; color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; background: rgba(255,255,255,.05); }
@keyframes trade-spin { to { transform: rotate(360deg); } }
.trade-confirm-panel { position: absolute; z-index: 12; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(13,12,10,0.9); }
.trade-confirm-card {
  width: min(500px,100%);
  padding: 32px;
  color: #fff;
  border: 1px solid rgba(255,108,111,.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(41,24,36,.98), rgba(13,12,10,0.995));
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  text-align: center;
}
.trade-confirm-icon { display: grid; width: 52px; height: 52px; margin: 0 auto 14px; place-items: center; color: #18090c; border-radius: 16px; background: #ff8d91; font-weight: 1000; }
.trade-confirm-card h3 { margin: 10px 0 0; font-family: var(--display); font-size: 1.75rem; text-transform: uppercase; }
.trade-confirm-card p { margin: 12px auto 20px; max-width: 420px; color: rgba(251,247,239,0.74); font-size: .8rem; line-height: 1.55; }
.trade-confirm-skip { display: flex; justify-content: center; align-items: center; gap: 8px; color: rgba(251,247,239,0.68); font-size: .7rem; cursor: pointer; }
.trade-confirm-skip input { accent-color: #d4a94f; }
.trade-confirm-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.trade-confirm-actions button { min-width: 150px; }
.trade-result {
  display: grid;
  grid-template-columns: minmax(210px,320px) minmax(0,1fr);
  gap: 34px;
  align-items: center;
  min-height: 640px;
  max-width: 880px;
  margin: 0 auto;
}
.trade-result-pack {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
}
.trade-result-pack img { width: 100%; max-height: 520px; object-fit: contain; filter: drop-shadow(0 20px 35px rgba(0,0,0,.45)); }
.trade-result-reveal { display: grid; justify-items: center; text-align: center; }
.trade-result-kicker { color: #d9d1c2; font-size: .66rem; font-weight: 900; letter-spacing: .14em; }
.trade-result-player-card { width: min(340px,100%); margin-top: 14px; text-align: left; }
.trade-result-player-card .footballer-card-shell { width: 100%; }
.trade-result-player-card .footballer-card { box-shadow: 0 26px 58px rgba(0,0,0,.46),0 0 34px color-mix(in srgb,var(--rarity-color) 20%,transparent); }
.trade-result-player-card .footballer-card-shell,
.trade-result-player-card .footballer-card{
  transform:none!important;
  transform-style:flat!important;
  perspective:none!important;
  transition:none!important;
  will-change:auto!important;
}
.trade-result-warning { max-width: 460px; margin-top: 16px; padding: 10px 12px; color: #ffc4c2; border: 1px solid rgba(255,108,111,.25); border-radius: 10px; background: rgba(205,63,70,.09); font-size: .68rem; }
.trade-result-actions { display: flex; gap: 10px; margin-top: 22px; }
@media (max-width: 1000px) {
  .trade-pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trade-pack-art { aspect-ratio: 2 / 3; }
  .trade-player-row { grid-template-columns: 27px 40px minmax(110px,1fr) 145px 100px; }
  .trade-player-stats { grid-template-columns: 43px 59px 39px; }
}
@media (max-width: 720px) {
  .store-modal.trade-store-active { padding: 0; }
  .trade-store-view { height: auto; min-height: 100%; }
  .trade-store-body.trade-pack-mode { padding-bottom: 24px; overflow: auto; }
  .store-modal.trade-store-active .store-modal-card { width: 100vw; height: 100dvh; max-height: 100dvh; padding: 22px 14px; border: 0; border-radius: 0; }
  .trade-store-heading { padding-right: 40px; }
  .trade-dev-badge { display: none; }
  .trade-store-intro { display: grid; align-items: start; }
  .trade-store-intro > span { max-width: none; text-align: left; }
  .trade-pack-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .trade-pack-art { aspect-ratio: 2 / 3; padding-inline: 5px; }
  .trade-pack-copy { padding: 11px; }
  .trade-pack-copy strong { font-size: 1rem; }
  .trade-pack-detail { grid-template-columns: 1fr; height: auto; min-height: 0; padding-bottom: 18px; }
  .trade-pack-sidebar { display: grid; grid-template-columns: 125px minmax(0,1fr); align-items: center; padding-bottom: 22px; }
    .trade-pack-sidebar > img { width: 125px; height: auto; aspect-ratio: 2 / 3; }
  .trade-pack-sidebar p { grid-column: 1/-1; }
  .trade-player-picker { height: auto; min-height: 0; padding-bottom: 24px; overflow: visible; }
  .trade-player-list { flex: none; max-height: none; }
  .trade-player-row {
    grid-template-columns: 24px 38px minmax(0,1fr) minmax(86px,auto);
    grid-template-areas: "check portrait name status" ". . stats stats";
    gap: 7px;
    padding-inline: 7px;
  }
  .trade-player-stats { grid-template-columns: repeat(3,minmax(38px,1fr)); justify-self: stretch; width: min(190px,100%); }
  .trade-selection-footer { grid-template-columns: 1fr 1fr; position: sticky; bottom: -1px; z-index: 5; }
  .trade-selection-actions { grid-column: 1/-1; }
  .trade-submit-button { width: 100%; }
  .trade-warning-reset { white-space: nowrap; }
  .trade-result { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .trade-result-pack img { max-height: 250px; }
  .trade-result-player-card { width: min(290px,86vw); }
}
@media (max-width: 430px) {
  .trade-pack-grid { grid-template-columns: 1fr; }
  .trade-pack-art { aspect-ratio: 2 / 3; }
  .trade-player-row { grid-template-columns: 22px 36px minmax(0,1fr) minmax(78px,auto); }
  .trade-player-stats { width: min(174px,100%); }
  .trade-result-actions,.trade-confirm-actions { flex-direction: column; width: 100%; }
  .trade-result-actions button,.trade-confirm-actions button { width: 100%; }
}

@media (max-width: 900px) {
  #profileInventoryPanel .inventory-section { padding-inline: 20px; }
  #profileInventoryPanel .inventory-pack-grid { padding-inline: 0; }
}

/* v2.3.3 — seasonal identity rules and rating clarity ------------------ */
/* Detailed profile score pills: dark numerals are clearest on bright fills. */
#playerModal .player-profile-v2 .player-attribute-group .attribute-heading b.attribute-score {
  color: #1a1207 !important;
  -webkit-text-fill-color: #070811 !important;
  text-shadow: none !important;
}

/* Main-attribute thresholds. Elite 90+ values now have a distinct orange tier. */
.card-main-stat.stat-elite,
.directory-stat.stat-elite,
.attribute-heading .attribute-score.stat-elite { --stat-color: #ff9f2f; }
.card-main-stat.stat-elite strong,
.card-main-stat.stat-elite b { color: #070811 !important; }

/* Current rating and potential colours use the same scouting language. */
.score-yellow { color: #f1c94a !important; }
.score-green { color: #67e49a !important; }
.score-blue { color: #53a9ff !important; }
.score-purple { color: #b86cff !important; }
.score-orange { color: #ff9f2f !important; text-shadow: 0 0 14px rgba(255,159,47,.25); }
.potential-yellow { color: #f1c94a !important; }
.potential-green { color: #67e49a !important; }
.potential-blue { color: #53a9ff !important; }
.potential-purple { color: #b86cff !important; }
.potential-orange { color: #ff9f2f !important; text-shadow: 0 0 14px rgba(255,159,47,.25); }

/* The database uses one aligned column per attribute instead of a crowded
   group in a single cell. This makes every stat sortable and uses the width. */
.directory-view-players .directory-table { min-width: 1260px; table-layout: fixed; }
.directory-view-players .directory-table th,
.directory-view-players .directory-table td { padding-right: 14px; padding-left: 14px; }
.directory-view-players .directory-table th:nth-child(1),
.directory-view-players .directory-table td:nth-child(1) { width: 220px; }
.directory-view-players .directory-table th:nth-child(2),
.directory-view-players .directory-table td:nth-child(2) { width: 190px; }
.directory-view-players .directory-table th:nth-child(3),
.directory-view-players .directory-table td:nth-child(3) { width: 105px; }
.directory-view-players .directory-table th:nth-child(4),
.directory-view-players .directory-table td:nth-child(4),
.directory-view-players .directory-table th:nth-child(5),
.directory-view-players .directory-table td:nth-child(5) { width: 76px; text-align: center; }
.directory-view-players .directory-table th:nth-child(n+6),
.directory-view-players .directory-table td:nth-child(n+6) { width: 72px; text-align: center; }
.directory-view-players .directory-table th:nth-child(n+6) .directory-sort { justify-content: center; width: 100%; }
.directory-stat-cell .directory-stat {
  display: inline-grid;
  min-width: 43px;
  min-height: 34px;
  place-items: center;
  padding: 5px 8px;
}
.directory-stat-cell .directory-stat span { color: #1a1207 !important; font-size: .7rem; }
.directory-rating { display: block; width: max-content; font-size: 1rem; font-weight: 900; line-height: 1; }
.directory-potential { white-space: nowrap; }

/* Player Database: keep position-specific abbreviations together in one
   properly aligned grid so goalkeepers and outfield players both read well. */
.directory-view-players .directory-table { min-width: 1240px; table-layout: fixed; }
.directory-view-players .directory-table th:nth-child(1),
.directory-view-players .directory-table td:nth-child(1) { width: 210px; text-align: left; }
.directory-view-players .directory-table th:nth-child(2),
.directory-view-players .directory-table td:nth-child(2) { width: 180px; text-align: left; }
.directory-view-players .directory-table th:nth-child(3),
.directory-view-players .directory-table td:nth-child(3) { width: 100px; text-align: left; }
.directory-view-players .directory-table th:nth-child(4),
.directory-view-players .directory-table td:nth-child(4),
.directory-view-players .directory-table th:nth-child(5),
.directory-view-players .directory-table td:nth-child(5) { width: 72px; text-align: center; }
.directory-view-players .directory-table th:nth-child(6),
.directory-view-players .directory-table td:nth-child(6) { width: 520px; text-align: left; }
.directory-attributes-heading > span { display: block; margin-bottom: 10px; text-align: left; }
.attribute-sort-menu { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.attribute-sort-menu button.active { color: #1a1207; border-color: var(--accent-cyan); background: var(--accent-cyan); }
.directory-attributes-cell { padding-right: 18px !important; }
.directory-attributes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 6px;
}
.directory-attributes .directory-stat {
  display: grid;
  min-width: 0;
  min-height: 34px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
}
.directory-attributes .directory-stat b,
.directory-attributes .directory-stat span { color: #1a1207 !important; }




/* Player database filters */
.directory-filters {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(212,169,79,0.12);
}
.directory-filter-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  width: 100%;
}
.directory-filters label {
  display: grid;
  gap: 6px;
}
.directory-filters label span {
  color: rgba(251,247,239,0.78);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.directory-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 12px;
  background: rgba(13,12,10,0.86);
  font: inherit;
}
.directory-filters .ghost-button {
  min-height: 42px;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .directory-filters { flex-direction: column; align-items: stretch; }
  .directory-filter-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .directory-filter-group { grid-template-columns: 1fr; }
}

/* Make collectible cards visually match their rarity colour, not just the frame. */
.rarity-prospect.footballer-card {
  background: linear-gradient(145deg, rgba(231,236,242,.92) 0%, rgba(168,176,189,.88) 44%, rgba(19,24,39,.98) 100%);
}
.rarity-reserve.footballer-card {
  background: linear-gradient(145deg, rgba(255,232,132,.96) 0%, rgba(242,201,76,.88) 42%, rgba(23,19,8,.98) 100%);
}
.rarity-squad.footballer-card {
  background: linear-gradient(145deg, rgba(123,244,177,.95) 0%, rgba(85,223,145,.88) 42%, rgba(7,24,20,.98) 100%);
}
.rarity-starter.footballer-card {
  background: linear-gradient(145deg, rgba(123,184,255,.96) 0%, rgba(77,159,255,.88) 42%, rgba(8,18,37,.98) 100%);
}
.rarity-prime.footballer-card {
  background: linear-gradient(145deg, rgba(205,154,255,.96) 0%, rgba(170,104,255,.88) 42%, rgba(18,9,33,.98) 100%);
}
.rarity-legend.footballer-card {
  background: linear-gradient(145deg, rgba(255,183,118,.96) 0%, rgba(255,135,61,.9) 42%, rgba(36,16,6,.98) 100%);
}
.rarity-prospect .footballer-card-glow { opacity: .16; }
.rarity-reserve .footballer-card-glow,
.rarity-squad .footballer-card-glow,
.rarity-starter .footballer-card-glow,
.rarity-prime .footballer-card-glow,
.rarity-legend .footballer-card-glow { opacity: .22; }
.rarity-prospect.footballer-card::before,
.rarity-reserve.footballer-card::before,
.rarity-squad.footballer-card::before,
.rarity-starter.footballer-card::before,
.rarity-prime.footballer-card::before,
.rarity-legend.footballer-card::before {
  border-color: color-mix(in srgb, var(--rarity-color) 65%, rgba(255,255,255,.16));
}
.rarity-prospect.footballer-card::after,
.rarity-reserve.footballer-card::after,
.rarity-squad.footballer-card::after,
.rarity-starter.footballer-card::after,
.rarity-prime.footballer-card::after,
.rarity-legend.footballer-card::after {
  background: linear-gradient(to top, rgba(5,6,18,.97) 6%, rgba(5,6,18,.88) 42%, rgba(5,6,18,.14) 86%, transparent);
}
.rarity-prospect .footballer-card-position,
.rarity-reserve .footballer-card-position,
.rarity-squad .footballer-card-position,
.rarity-starter .footballer-card-position,
.rarity-prime .footballer-card-position,
.rarity-legend .footballer-card-position,
.rarity-goat .footballer-card-position {
  color: #060812;
}
/* v2.4 seven-tier rarity system */
.rarity-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.score-grey, .potential-grey { color: #b8bec8 !important; }
.score-yellow, .potential-yellow { color: #f2c94c !important; }
.score-green, .potential-green { color: #55df91 !important; }
.score-blue, .potential-blue { color: #4d9fff !important; }
.score-purple, .potential-purple { color: #aa68ff !important; }
.score-orange, .potential-orange { color: #ff873d !important; }
.score-goat, .potential-goat {
  color: #fff4bf !important;
  text-shadow: 0 0 10px rgba(255,226,120,.55);
}
/* The overall rating printed on collectible cards is always white. */
.footballer-card-rating > strong,
.squad-player-rating,
.best-card-rating-block > strong,
.recent-score > strong { color: #fff !important; }
/* GOAT tier must feel more premium than the orange Legend tier. */
.rarity-goat.footballer-card,
.rarity-goat.squad-player-tile,
.rarity-goat.best-player-showcase,
.rarity-goat.recent-pull-v2 {
  --rarity-color: #ffe99a;
  border-color: rgba(255,235,157,.92) !important;
  background:
    radial-gradient(circle at 24% 8%, rgba(255,255,255,.32), transparent 30%),
    linear-gradient(145deg, rgba(255,250,225,.25), rgba(130,94,18,.12) 42%, rgba(12,12,28,.96) 74%) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 0 30px rgba(255,213,80,.22), 0 24px 55px rgba(3,4,16,.45);
}
.rarity-goat.footballer-card::after,
.rarity-goat.squad-player-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255,255,255,.22) 45%, transparent 60%);
  transform: translateX(-100%);
  animation: goat-card-shine 5.5s ease-in-out infinite;
}
@keyframes goat-card-shine { 0%,72%{transform:translateX(-110%)} 92%,100%{transform:translateX(110%)} }
@media (max-width: 1200px) { .rarity-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 720px) { .rarity-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* v2.4.2 — portrait backgrounds, ordered filters and exact stat alignment */
.directory-filters .ghost-button {
  min-height: 42px;
  padding: 0 18px;
  color: rgba(251,247,239,0.88);
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(76,57,21,0.14), rgba(13,12,10,0.42));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.directory-filters .ghost-button:hover,
.directory-filters .ghost-button:focus-visible {
  color: #fff;
  border-color: rgba(212,169,79,0.52);
  background: linear-gradient(145deg, rgba(76,57,21,0.16), rgba(76,57,21,0.18));
  outline: none;
}

.directory-attributes-heading,
.directory-attributes-cell { padding-left: 12px !important; padding-right: 12px !important; }
.attribute-sort-menu,
.directory-attributes {
  display: grid !important;
  grid-template-columns: repeat(var(--attribute-columns, 6), minmax(0, 1fr)) !important;
  width: 100%;
  gap: 6px !important;
}
.attribute-sort-menu button,
.directory-attributes .directory-stat {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 8px;
}
.attribute-sort-menu button {
  display: grid;
  place-items: center;
  color: rgba(251,247,239,0.72);
  border: 1px solid rgba(212,169,79,0.16);
  background: rgba(13,12,10,0.68);
  font-family: var(--body);
  font-size: .68rem;
  font-weight: 800;
}
.directory-attributes .directory-stat {
  grid-template-columns: 1fr auto;
  gap: 3px;
  font-size: .67rem;
}
.directory-attributes .directory-stat b,
.directory-attributes .directory-stat span { font-size: .67rem; }
.goalkeeper-attributes-hint {
  display: block;
  width: 100%;
  padding: 9px 12px;
  color: rgba(251,247,239,0.58);
  border: 1px dashed rgba(212,169,79,0.16);
  border-radius: 9px;
  background: rgba(13,12,10,0.32);
  font-size: .68rem;
}

/* The SVG is now transparent, so these are the true visible card surfaces. */
.footballer-card-art img { background: transparent !important; }
.rarity-prospect.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.24), transparent 32%),
    linear-gradient(145deg, #d9dde7 0%, #aeb5c0 45%, #252b38 100%) !important;
}
.rarity-reserve.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(145deg, #ffe884 0%, #f2c94c 45%, #302507 100%) !important;
}
.rarity-squad.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.17), transparent 32%),
    linear-gradient(145deg, #7bf4b1 0%, #55df91 45%, #092a20 100%) !important;
}
.rarity-starter.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(145deg, #7bb8ff 0%, #4d9fff 45%, #10244a 100%) !important;
}
.rarity-prime.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(145deg, #cd9aff 0%, #aa68ff 45%, #30104d 100%) !important;
}
.rarity-legend.footballer-card {
  background:
    radial-gradient(circle at 48% 21%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(145deg, #ffb776 0%, #ff873d 45%, #4a1d08 100%) !important;
}
.rarity-goat.footballer-card {
  background:
    radial-gradient(circle at 48% 18%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(145deg, #fffdf0 0%, #ffe99a 42%, #9a7421 72%, #251d09 100%) !important;
}

/* v3.0A Twitch login and authenticated club dashboard */
.header-account { display:flex; align-items:center; gap:14px; }
.twitch-login-button,.dashboard-button,.logout-button {
  display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:42px; padding:0 16px;
  font-family:var(--body); font-size:.76rem; font-weight:800; text-decoration:none; cursor:pointer;
}
.dashboard-button,.logout-button {
  color:#fff; border:1px solid rgba(212,169,79,0.55); border-radius:13px;
  background:linear-gradient(135deg,rgba(76,57,21,0.92),rgba(42,34,20,0.92));
  box-shadow:0 10px 25px rgba(212,169,79,0.2);
}
.twitch-login-button {
  min-height:46px;
  padding:0 25px;
  border:1px solid rgba(229,195,119,.72);
  border-radius:999px;
  background:rgba(8,6,3,.78);
  color:#f0d79b;
  font:700 12px/1 "Inter",ui-sans-serif,system-ui,sans-serif;
  letter-spacing:.11em;
  text-transform:uppercase;
  box-shadow:inset 0 0 0 1px rgba(229,195,119,.08),0 12px 28px rgba(0,0,0,.35);
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.twitch-login-button:hover,
.twitch-login-button:focus-visible {
  background:linear-gradient(180deg,#f0d79b,#c08f34);
  color:#1a1207;
}
.twitch-login-button:focus-visible {
  outline:2px solid #e5c377;
  outline-offset:3px;
}
.dashboard-button { appearance:none; background:rgba(13,12,10,0.8); }
.dashboard-button.has-alert { position: relative; }
.dashboard-button.has-alert::after { content:"!"; position:absolute; top:-6px; right:-5px; display:grid; place-items:center; width:18px; height:18px; color:#1a1207; border-radius:999px; background:linear-gradient(135deg,#f7ff8f,#4c3915); box-shadow:0 8px 16px rgba(212,169,79,0.35); font-size:.72rem; font-weight:1000; }
.dashboard-button img { width:26px; height:26px; object-fit:cover; border-radius:50%; border:1px solid rgba(255,255,255,.3); }
.dashboard-mode .profile-nav-row { position:sticky; top:76px; z-index:20; backdrop-filter:blur(14px); }
.dashboard-mode .profile-tabs { flex-wrap:wrap; }
.dashboard-mode #profileHandle::before { content:"AUTHENTICATED CLUB · "; color:var(--accent-cyan); }
.dashboard-placeholder { text-align:center; }
.dashboard-placeholder h2 { margin:.2rem 0 1rem; font-family:var(--display); font-size:clamp(2rem,4vw,3.5rem); text-transform:uppercase; }
.placeholder-pitch {
  display:grid; grid-template-columns:repeat(5,1fr); gap:16px; max-width:720px; min-height:360px; margin:24px auto;
  padding:36px; border:1px solid rgba(82,224,255,.2); border-radius:22px;
  background:linear-gradient(rgba(18,93,72,.22),rgba(7,32,31,.45)),repeating-linear-gradient(90deg,transparent 0 19.8%,rgba(255,255,255,.035) 20%);
}
.placeholder-pitch span { align-self:center; justify-self:center; width:46px; height:46px; display:grid; place-items:center; border-radius:50%; color:#071019; background:var(--accent-cyan); font-size:.68rem; font-weight:900; box-shadow:0 0 18px rgba(82,224,255,.25); }
.placeholder-pitch span:first-child { grid-column:3; }
.placeholder-pitch span:nth-child(2) { grid-column:1; }
.placeholder-pitch span:nth-child(3) { grid-column:3; }
.placeholder-pitch span:nth-child(4) { grid-column:5; }
.placeholder-pitch span:nth-child(5) { grid-column:2; }
.placeholder-pitch span:nth-child(6) { grid-column:4; }
.placeholder-pitch span:last-child { grid-column:3; }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.settings-grid article { display:grid; gap:7px; padding:20px; border:1px solid rgba(212,169,79,0.13); border-radius:16px; background:rgba(13,12,10,0.62); }
.settings-grid span { color:var(--accent-cyan); font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.settings-grid strong { font-size:1.05rem; }
.settings-grid small { color:var(--muted); line-height:1.5; }
.logout-button { border-color:rgba(255,91,112,.4); background:rgba(126,30,50,.42); }
@media(max-width:780px){ .header-status{display:none}.twitch-login-button{padding:0 11px;font-size:.68rem}.settings-grid{grid-template-columns:1fr}.placeholder-pitch{padding:18px;gap:8px;min-height:300px}.dashboard-mode .profile-nav-row{top:62px}.header-account{gap:8px} }


/* v3.0A.1 dashboard UX hotfix */
.dashboard-mode #profileHandle::before { content:none !important; }
.dashboard-mode .profile-nav-row { position:fixed; left:0; right:0; top:76px; z-index:70; padding:10px max(20px,calc((100vw - 1440px)/2)); background:rgba(13,12,10,0.94); border-bottom:1px solid rgba(212,169,79,0.12); backdrop-filter:blur(18px); }
.dashboard-mode #profileView { padding-top:82px; }
.placeholder-pitch { grid-template-columns:repeat(9,1fr); grid-template-rows:repeat(5,1fr); gap:8px 0; }
.placeholder-pitch .pos-st { grid-column:5; grid-row:1; }
.placeholder-pitch .pos-lw { grid-column:1; grid-row:2; }
.placeholder-pitch .pos-cam { grid-column:5; grid-row:2; }
.placeholder-pitch .pos-rw { grid-column:9; grid-row:2; }
.placeholder-pitch .pos-cdm-left { grid-column:4; grid-row:3; }
.placeholder-pitch .pos-cdm-right { grid-column:6; grid-row:3; }
.placeholder-pitch .pos-lb { grid-column:1; grid-row:4; }
.placeholder-pitch .pos-cb-left { grid-column:4; grid-row:4; }
.placeholder-pitch .pos-cb-right { grid-column:6; grid-row:4; }
.placeholder-pitch .pos-rb { grid-column:9; grid-row:4; }
.placeholder-pitch .pos-gk { grid-column:5; grid-row:5; }
.settings-section > .collection-heading { padding-left:0; margin-left:0; }
.settings-editor form { display:flex; gap:10px; align-items:center; }
.settings-editor input,.settings-editor select { min-width:0; flex:1; border:1px solid rgba(212,169,79,0.22); border-radius:10px; background:rgba(13,12,10,0.75); color:var(--text); padding:11px 12px; font:inherit; }
.settings-editor button:not([data-disconnect-discord]) { border:1px solid rgba(212,169,79,0.35); border-radius:10px; padding:11px 15px; background:rgba(76,57,21,0.14); color:var(--accent-cyan); font-weight:850; cursor:pointer; }
.settings-editor button:disabled,.settings-editor input:disabled,.settings-editor select:disabled { opacity:.55; cursor:not-allowed; }
.settings-message { min-height:22px; margin-top:12px; color:var(--accent-cyan); font-weight:700; }
.monthly-mission-panel { grid-column:1/-1; }
body.onboarding-required { overflow: hidden; }
.onboarding-modal { position:fixed; inset:0; z-index:200; display:grid; place-items:center; padding:20px; }
.onboarding-modal.hidden { display:none; }
.onboarding-backdrop { position:absolute; inset:0; background:rgba(13,12,10,0.82); backdrop-filter:blur(12px); }
.onboarding-card { position:relative; width:min(560px,100%); padding:34px; border:1px solid rgba(212,169,79,0.25); border-radius:24px; background:linear-gradient(145deg,rgba(23,21,15,0.98),rgba(13,12,10,0.98)); box-shadow:0 30px 90px rgba(0,0,0,.55); }
.onboarding-card h2 { margin:.25rem 0 .8rem; font-family:var(--display); font-size:clamp(2rem,5vw,3.4rem); text-transform:uppercase; }
.onboarding-card > p:not(.eyebrow) { color:var(--muted); line-height:1.6; }
.onboarding-form { display:grid; gap:16px; margin-top:24px; }
.onboarding-form label { display:grid; gap:7px; }
.onboarding-form label span { color:var(--accent-cyan); font-size:.72rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.onboarding-form input,.onboarding-form select { width:100%; border:1px solid rgba(212,169,79,0.22); border-radius:12px; background:rgba(13,12,10,0.78); color:var(--text); padding:13px 14px; font:inherit; }
@media(max-width:780px){ .dashboard-mode .profile-nav-row{top:62px;padding:8px 12px}.dashboard-mode #profileView{padding-top:112px}.placeholder-pitch{padding:16px 8px;min-height:330px}.placeholder-pitch span{width:40px;height:40px}.settings-editor form{align-items:stretch;flex-direction:column}.monthly-mission-panel{grid-column:auto}.onboarding-card{padding:24px} }

/* v3.0A.2b — consistent owner navigation and structured objectives */
.dashboard-mode .profile-nav-row {
  position: sticky;
  left: auto;
  right: auto;
  top: 76px;
  z-index: 70;
  min-height: 62px;
  margin-bottom: 24px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.dashboard-mode #profileView {
  padding-top: 0;
}

.dashboard-mode .profile-tabs {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}

/* Weekly and monthly objectives share the available dashboard width. */
.engagement-dashboard {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

@media (max-width: 760px) {
  .dashboard-mode .profile-nav-row {
    top: 62px;
    padding: 8px 0;
  }

  .dashboard-mode #profileView {
    padding-top: 0;
  }

  .dashboard-mode .profile-tabs {
    flex-wrap: nowrap;
  }

  .engagement-dashboard {
    grid-template-columns: 1fr;
  }

}


/* v3.0A.2c — formation stability and club identity layout */
.profile-handle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-manager-line {
  display: block;
}

.profile-club-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  color: var(--muted);
  font-size: .86rem;
}

.profile-club-meta span + span::before {
  content: "•";
  margin: 0 7px;
  color: rgba(255,255,255,.35);
}

/* Use explicit position classes only. This prevents older nth-child rules
   from moving the 4-2-3-1 markers when dashboard CSS is updated. */
.placeholder-pitch {
  display: grid;
  width: min(100%, 620px);
  min-height: 500px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(72px, 1fr));
  align-items: center;
  justify-items: center;
}

.placeholder-pitch > .pos-st { grid-column: 5 !important; grid-row: 1 !important; }
.placeholder-pitch > .pos-lw { grid-column: 2 !important; grid-row: 2 !important; }
.placeholder-pitch > .pos-cam { grid-column: 5 !important; grid-row: 2 !important; }
.placeholder-pitch > .pos-rw { grid-column: 8 !important; grid-row: 2 !important; }
.placeholder-pitch > .pos-cdm-left { grid-column: 4 !important; grid-row: 3 !important; }
.placeholder-pitch > .pos-cdm-right { grid-column: 6 !important; grid-row: 3 !important; }
.placeholder-pitch > .pos-lb { grid-column: 2 !important; grid-row: 4 !important; }
.placeholder-pitch > .pos-cb-left { grid-column: 4 !important; grid-row: 4 !important; }
.placeholder-pitch > .pos-cb-right { grid-column: 6 !important; grid-row: 4 !important; }
.placeholder-pitch > .pos-rb { grid-column: 8 !important; grid-row: 4 !important; }
.placeholder-pitch > .pos-gk { grid-column: 5 !important; grid-row: 5 !important; }

@media (max-width: 760px) {
  .profile-club-meta {
    gap: 3px 0;
    font-size: .8rem;
  }
  .profile-club-meta span + span::before {
    margin: 0 6px;
  }
  .placeholder-pitch {
    width: min(100%, 500px);
    min-height: 420px;
    grid-template-rows: repeat(5, minmax(62px, 1fr));
  }
}


/* v3.0A.3 — live refresh, responsive identity and elite-stat repairs */
.stat-elite { --stat-color: #ff873d; }
.card-main-stat.stat-elite { border-top-color: var(--stat-color); }
.card-main-stat.stat-elite b { color: #ffb07a; }
.player-attribute-group.stat-elite { border-color: rgba(255,135,61,.30); }
.profile-score.stat-elite { color: #ff873d !important; }
.player-attribute-group .attribute-track span { min-width: 2px; max-width: 100%; }

#heroLeaderName.name-long { font-size: clamp(1.45rem, 3.2vw, 2.55rem); }
#heroLeaderName.name-very-long { font-size: clamp(1.15rem, 2.55vw, 2rem); overflow-wrap: anywhere; }

.leader-card-face { padding-bottom: 38px; }
.leader-flip-hint { bottom: 2px !important; line-height: 1.15; }
.elite-player-list .leader-top-card div small { color: rgba(251,247,239,0.78); font-family: var(--body); font-size: .52rem; font-weight: 700; letter-spacing: .01em; }

.club-stars-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.club-stars-grid .best-player-showcase { min-width: 0; grid-template-columns: minmax(150px,210px) minmax(0,1fr); }
.club-stars-grid .best-footballer-card { width: 100%; }
.club-star-empty { display: grid; place-content: center; min-height: 280px; padding: 24px; border: 1px dashed rgba(212,169,79,0.2); text-align: center; }
.club-star-empty span { color: var(--accent-cyan); font-family: var(--mono); font-size: .58rem; text-transform: uppercase; }
.club-star-empty strong { margin-top: 8px; color: var(--muted); }

.profile-manager-stat strong { overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: anywhere; font-size: clamp(1rem,1.8vw,1.75rem); line-height: 1.05; padding-bottom: .08em; }
.profile-manager-line { overflow: visible; line-height: 1.25; padding-bottom: 2px; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .club-stars-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .club-stars-grid .best-player-showcase { grid-template-columns: 1fr; }
  .leader-card-face { padding-bottom: 34px; }
}


/* v3.0A.4 — stream feedback hotfix */
/* Keep labels readable on 90+ orange attribute chips. */
.card-main-stat.stat-elite b {
  color: #ffd4b8 !important;
  -webkit-text-fill-color: #ffd4b8 !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.85) !important;
}
.card-main-stat.stat-elite strong {
  color: #070811 !important;
  -webkit-text-fill-color: #070811 !important;
}

/* Give long current-G.O.A.T usernames more room and scale sooner. */
#heroLeaderName {
  max-width: 100%;
  overflow: visible;
  line-height: .94;
  word-break: normal;
}
#heroLeaderName.name-long { font-size: clamp(1.2rem, 2.65vw, 2.1rem); letter-spacing: -.035em; }
#heroLeaderName.name-very-long { font-size: clamp(.96rem, 2.1vw, 1.62rem); letter-spacing: -.045em; white-space: nowrap; }

/* Place the flip instruction below the player rows instead of across them. */
.leader-card-face { padding-bottom: 46px; }
.leader-flip-hint {
  position: absolute !important;
  left: 24px;
  right: 24px;
  bottom: 7px !important;
  margin: 0;
}
@media (max-width: 760px) {
  .leader-card-face { padding-bottom: 42px; }
  .leader-flip-hint { left: 18px; right: 18px; bottom: 6px !important; }
}

/* v3.0A.5 — club identity, logo and colour clarity */
#heroLeaderName {
  width: 100%;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  transform: none;
  line-height: 1;
}
#heroLeaderName.name-long,
#heroLeaderName.name-very-long { font-size: inherit; letter-spacing: inherit; }
.card-main-stat.stat-elite b {
  color: rgba(235,238,255,.62) !important;
  -webkit-text-fill-color: rgba(235,238,255,.62) !important;
  text-shadow: none !important;
}
.card-main-stat.stat-elite strong { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.footballer-card-position { color: #fff !important; -webkit-text-fill-color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,.85); }
.score-yellow,.potential-yellow { color: #ffe34f !important; }
.rarity-reserve { --rarity-color: #ffe34f; }
#profileName { display: flex; align-items: center; gap: 16px; }
.club-profile-logo { width: clamp(52px,7vw,82px); height: clamp(52px,7vw,82px); flex: 0 0 auto; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.club-logo-setting form { flex-wrap: wrap; }
.club-logo-setting input[type=file] { min-width: min(100%,260px); color: var(--muted); }
.logo-remove-button { border-color: rgba(255,91,112,.45) !important; color: #ff9dac !important; }
@media (max-width:620px){ #profileName { gap:10px; } .club-profile-logo { border-radius:12px; } }


/* v3.0A.6 — settings interaction and card alignment polish */
/* Elite stat values use the same black text treatment as the other coloured chips. */
.card-main-stat.stat-elite strong {
  color: #070811 !important;
  -webkit-text-fill-color: #070811 !important;
}

/* Position badge remains white, but sits on a darker rarity-tinted surface. */
.footballer-card-position {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: color-mix(in srgb, var(--rarity-color) 58%, #080914 42%) !important;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 66%, rgba(255,255,255,.18)) !important;
}

/* Rating and potential range share the same measured width. */
.footballer-card-rating {
  width: 82px;
  min-width: 82px;
}
.footballer-card-rating > strong,
.footballer-card-rating > small {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.footballer-card-rating > small {
  max-width: 100% !important;
  overflow: hidden;
  text-overflow: clip;
}

/* Settings heading follows the same inset as the other dashboard sections. */
.settings-section > .collection-heading {
  padding-left: 20px !important;
  padding-right: 20px !important;
  margin-left: 0 !important;
}

/* Replace the browser file control with a matching in-app button. */
.club-logo-setting form {
  display: grid;
  grid-template-columns: auto minmax(90px,1fr) auto auto;
  gap: 10px;
  align-items: center;
}
.club-logo-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.file-picker-button,
.club-logo-setting button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 10px;
  padding: 11px 15px;
  background: rgba(76,57,21,0.14);
  color: var(--accent-cyan) !important;
  font-size: .78rem !important;
  font-weight: 850;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
.club-logo-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: .72rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep the inventory alert above the navigation bar rather than clipped inside it. */
#inventoryTabButton {
  position: relative;
  overflow: visible !important;
}
.inventory-alert {
  z-index: 12;
  top: -10px !important;
  right: -3px !important;
  overflow: visible !important;
}
.profile-tabs,
.profile-nav-row {
  overflow: visible !important;
}

@media (max-width: 760px) {
  .settings-section > .collection-heading { padding-left: 0 !important; padding-right: 0 !important; }
  .club-logo-setting form { grid-template-columns: 1fr 1fr; }
  .club-logo-file-name { grid-column: 1 / -1; grid-row: 2; }
}


/* v3.0A.7 — card consistency, logo cropper and dashboard navigation polish */
/* Every attribute label uses one consistent neutral colour, regardless of value. */
.card-main-stat b,
.card-main-stat.stat-elite b {
  color: rgba(235,238,255,.62) !important;
  -webkit-text-fill-color: rgba(235,238,255,.62) !important;
  text-shadow: none !important;
}

/* Potential range sits inside exactly the same box width as rating and closer to it. */
.footballer-card-rating { width: 82px !important; min-width: 82px !important; }
.footballer-card-rating > small {
  display: block;
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  margin-top: -1px !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
  box-sizing: border-box !important;
  white-space: nowrap;
}

/* Settings heading aligns exactly with the other section headings. */
.settings-section > .collection-heading {
  padding: 0 !important;
  margin: 0 0 24px !important;
  transform: none !important;
}
.settings-section > .collection-heading .eyebrow { margin-top: 0 !important; }

/* Public Home and the profile tabs appear only at the top and no longer follow scrolling. */
.dashboard-mode .profile-nav-row {
  position: relative !important;
  top: auto !important;
  z-index: 20;
  backdrop-filter: none !important;
}

/* Give the Twitch pack instruction breathing room above the inventory bottom edge. */
#profileInventoryPanel .inventory-help { margin-bottom: 18px; transform: translateY(-5px); }

/* Legacy receives the same reward-ready alert treatment as Inventory. */
#legacyTabButton { position: relative; overflow: visible !important; }
#legacyTabButton .legacy-alert { display: none; }
#legacyTabButton.has-items .legacy-alert { display: block; }

/* Club logo cropper. */
.logo-crop-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.logo-crop-modal.hidden { display: none; }
.logo-crop-backdrop { position: absolute; inset: 0; background: rgba(13,12,10,0.86); backdrop-filter: blur(12px); }
.logo-crop-card { position: relative; width: min(560px,100%); padding: 30px; border: 1px solid rgba(212,169,79,0.25); border-radius: 22px; background: linear-gradient(145deg,rgba(23,21,15,0.99),rgba(13,12,10,0.99)); box-shadow: 0 30px 90px rgba(0,0,0,.58); }
.logo-crop-card h2 { margin: .2rem 0 .6rem; font-family: var(--display); font-size: clamp(2rem,5vw,3.2rem); text-transform: uppercase; }
.logo-crop-card > p:not(.eyebrow) { color: var(--muted); }
.logo-crop-stage { width: min(390px,100%); aspect-ratio: 1; margin: 20px auto; overflow: hidden; border: 2px solid rgba(212,169,79,0.5); border-radius: 22px; background: #0d0c0a; box-shadow: 0 0 0 999px rgba(0,0,0,.08) inset; cursor: grab; touch-action: none; }
.logo-crop-stage:active { cursor: grabbing; }
.logo-crop-stage canvas { display: block; width: 100%; height: 100%; }
.logo-crop-zoom { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; color: var(--accent-cyan); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.logo-crop-zoom input { width: 100%; accent-color: var(--accent-cyan); }
.logo-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 620px) { .logo-crop-card { padding: 22px; } .logo-crop-actions { flex-direction: column; } }

/* v3.0A.8 — precise card sizing, section alignment and cascading squad filters */
/* Potential background only: narrower than the rating, centred, and slightly closer. */
.footballer-card-rating > small {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  align-self: center;
  margin: -4px auto 0 !important;
}

/* Match the Legacy heading inset: a little farther right and lower. */
.settings-section > .collection-heading {
  padding: 13px 0 3px 18px !important;
  margin: 0 0 24px !important;
}

/* Return/public-home control stays at the page top; section tabs keep following scroll. */
.profile-return-row {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 0 8px;
}
.profile-return-row .back-button { margin: 0; }
.dashboard-mode .profile-nav-row,
.profile-nav-row {
  position: sticky !important;
  top: 76px !important;
  z-index: 70;
  justify-content: flex-end;
  background: linear-gradient(180deg, rgba(13,12,10,0.97), rgba(13,12,10,0.9));
  backdrop-filter: blur(14px) !important;
}
@media (max-width: 760px) {
  .settings-section > .collection-heading { padding: 10px 0 3px 12px !important; }
  .dashboard-mode .profile-nav-row,
  .profile-nav-row { top: 62px !important; }
}

/* v3.0A.9 — connected player database filters and final visual polish */
/* Potential chip is exactly 66px and remains centred beneath the 82px rating. */
.footballer-card-rating > small {
  width: 66px !important;
  min-width: 66px !important;
  max-width: 66px !important;
  align-self: center !important;
  margin: -4px auto 0 !important;
}

/* Keep the section tabs sticky without a full-width or pill-shaped dark bar. */
.dashboard-mode .profile-nav-row,
.profile-nav-row,
.profile-tabs {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Homepage leaderboard title always stays on a single line. */
.leaderboard-heading h2 {
  white-space: nowrap;
  font-size: clamp(1rem, 4.6vw, 5.2rem);
  letter-spacing: -.035em;
}

/* Player names sit directly on the card artwork without a backing plate. */
.footballer-card-identity,
.footballer-card-name,
.footballer-card-name::before,
.footballer-card-name::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.footballer-card-name { padding: 0 !important; }
.footballer-card-name::before,
.footballer-card-name::after { content: none !important; }
/* The old lower-card veil stopped behind the name; only the stats/footer retain contrast. */
.footballer-card:not(.rarity-goat)::after {
  height: 19% !important;
  background: linear-gradient(to top, rgba(5,6,18,.97), rgba(5,6,18,.72) 58%, transparent) !important;
}

/* Six connected database filters: position, club, nationality, age, rarity, season. */
.directory-filter-group {
  grid-template-columns: repeat(6, minmax(118px, 1fr));
}
@media (max-width: 1220px) {
  .directory-filter-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .directory-filter-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaderboard-heading h2 { font-size: clamp(1rem, 4.45vw, 2.2rem); }
}
@media (max-width: 480px) {
  .directory-filter-group { grid-template-columns: 1fr; }
}

/* v3.0A.10 — manager-name fit, card-stat label pills and restored tab surface */
/* Give the manager field extra room in the detailed player profile. Long
   Twitch names may wrap naturally instead of being clipped or ellipsised. */
.profile-rating-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, 1.45fr);
}
.profile-manager-stat strong {
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: clamp(.82rem, 1.45vw, 1.5rem) !important;
  line-height: 1.05 !important;
}

/* Remove the shared translucent black plate from labels and values. Only the
   attribute label receives a compact rounded dark backing; the value keeps
   its existing coloured threshold chip. */
.card-main-stat {
  background: transparent !important;
}
.card-main-stat b,
.card-main-stat.stat-elite b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 6px;
  background: rgba(5, 6, 18, .64) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

/* Keep the sticky row itself clear, but restore the rounded translucent menu
   container used before v3.0A.9. */
.dashboard-mode .profile-nav-row,
.profile-nav-row {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.profile-tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(212,169,79,0.16) !important;
  border-radius: 17px !important;
  background: rgba(23,21,15,0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.profile-tabs button {
  border-radius: 11px;
}

@media (max-width: 760px) {
  .profile-rating-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-manager-stat {
    grid-column: 1 / -1;
  }
  .profile-manager-stat strong {
    font-size: clamp(.9rem, 4.4vw, 1.35rem) !important;
  }
  .profile-tabs {
    border-radius: 15px !important;
  }
}

/* v3.0A.11 — aligned profile navigation, four-band ratings and card identity cleanup */
/* Keep the return control at the page top while placing the sticky section menu
   on the same initial horizontal level. The two elements occupy one grid row,
   but only the menu continues to follow scrolling. */
.profile-view:not(.hidden) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.profile-return-row {
  grid-column: 1;
  grid-row: 1;
  min-height: 62px;
  margin: 0 0 24px;
  padding: 8px 0;
  align-items: center;
}
.dashboard-mode .profile-nav-row,
.profile-nav-row {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  min-height: 62px;
  margin: 0 0 24px;
  padding: 8px 0;
}
.profile-tab-panel {
  grid-column: 1 / -1;
}
.profile-tabs {
  max-width: 100%;
  margin-left: auto;
}

/* Current player ratings use four clear bands everywhere they are rendered:
   below 60 red, 60–69 yellow, 70–89 green and 90+ purple. */
.score-red { color: #ff5e6d !important; }
.score-yellow { color: #ffe34f !important; }
.score-green { color: #55df91 !important; }
.score-purple { color: #aa68ff !important; }
.footballer-card-rating > strong.score-red,
.recent-score > strong.score-red { color: #ff5e6d !important; }
.footballer-card-rating > strong.score-yellow,
.recent-score > strong.score-yellow { color: #ffe34f !important; }
.footballer-card-rating > strong.score-green,
.recent-score > strong.score-green { color: #55df91 !important; }
.footballer-card-rating > strong.score-purple,
.recent-score > strong.score-purple { color: #aa68ff !important; }

/* Move the combined rating/potential unit closer to the card corner and give
   the rating a modest size increase without changing the 66px potential chip. */
.footballer-card-rating {
  top: 4.2% !important;
  left: 4.5% !important;
}
.footballer-card-rating > strong {
  font-size: clamp(2.68rem, 5vw, 4.72rem) !important;
  line-height: .88 !important;
}

/* Remove the final lower-card veil from the player identity. Attribute labels
   retain their own rounded pills, while values and identity sit on the artwork. */
.footballer-card:not(.rarity-goat)::after {
  content: none !important;
  height: 0 !important;
  background: transparent !important;
}
.footballer-card-identity,
.footballer-card-name,
.card-country {
  background: transparent !important;
  box-shadow: none !important;
}
.footballer-card-name,
.card-country {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .88);
}

@media (max-width: 760px) {
  .profile-view:not(.hidden) {
    column-gap: 8px;
  }
  .profile-return-row,
  .dashboard-mode .profile-nav-row,
  .profile-nav-row {
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .profile-return-row .back-button {
    padding-right: 4px;
    font-size: .6rem;
  }
  .profile-tabs {
    width: 100%;
    margin-left: 0;
  }
}

/* v3.0A.12 — restored rating scale, four-band attributes and card rating spacing */
/* Restore the original seven-tier rating scale used before v3.0A.11. These
   colours apply to rating displays in profiles, leaderboards and the database. */
.score-grey { color: #b8bec8 !important; }
.score-yellow { color: #f2c94c !important; }
.score-green { color: #55df91 !important; }
.score-blue { color: #4d9fff !important; }
.score-purple { color: #aa68ff !important; }
.score-orange { color: #ff873d !important; text-shadow: 0 0 14px rgba(255,135,61,.25); }
.score-goat {
  color: #fff4bf !important;
  text-shadow: 0 0 10px rgba(255,226,120,.55);
}

/* Player stats and attributes now use four bands everywhere statTone is used:
   below 60 red, 60–69 yellow, 70–89 green and 90+ purple. */
.stat-low { --stat-color: #ff5e6d !important; }
.stat-medium { --stat-color: #f2c94c !important; }
.stat-high { --stat-color: #55df91 !important; }
.stat-elite { --stat-color: #aa68ff !important; }
.player-attribute-group.stat-low { border-color: rgba(255,94,109,.24) !important; }
.player-attribute-group.stat-medium { border-color: rgba(242,201,76,.24) !important; }
.player-attribute-group.stat-high { border-color: rgba(85,223,145,.22) !important; }
.player-attribute-group.stat-elite { border-color: rgba(170,104,255,.30) !important; }
.profile-score.stat-low { color: #ff5e6d !important; }
.profile-score.stat-medium { color: #f2c94c !important; }
.profile-score.stat-high { color: #55df91 !important; }
.profile-score.stat-elite { color: #aa68ff !important; }

/* The collectible-card rating remains white, grows again, and has a small
   visible gap before the centred 66px Potential range chip. */
.footballer-card .footballer-card-rating > strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(3.05rem, 5.7vw, 5.25rem) !important;
  line-height: .84 !important;
}
.footballer-card-rating > small {
  margin: 4px auto 0 !important;
}



/* v3.0A.14 — selective card upgrade on the restored v3.0A.12 base */
/* Keep the existing v3.0A.12 card styling and apply only the requested taller
   collectible proportion. No rarity textures, pop-out duplicate or new glow
   layers from the experimental v3.0A.13 build are included. */
.footballer-card {
  aspect-ratio: 208 / 308 !important;
}

/* Enlarge the transparent portrait inside the existing card and give the
   player silhouette depth without changing the card's established layout. */
.footballer-card-art img {
  position: absolute;
  right: -6%;
  bottom: -4%;
  display: block;
  width: 112% !important;
  height: 112% !important;
  max-width: none;
  object-fit: contain !important;
  object-position: center 18% !important;
  filter: drop-shadow(0 7px 9px rgba(2, 3, 14, .34));
}

/* Names and countries sit directly on the portrait artwork. */
.footballer-card-identity,
.footballer-card-name,
.card-country {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.footballer-card-name,
.card-country {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .88);
}


/* v3.0A.16 — portrait-free cards with Collection DNA surface only -------- */
/* The v3.0A.14 layout, 208:308 silhouette, attribute grid, labels and stat
   colours remain unchanged. Only the artwork is removed and the visible card
   surface adopts the existing Collection DNA treatment. */
.footballer-card[class*="rarity-"] {
  overflow: hidden !important;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 32%, transparent) !important;
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--rarity-color) 17%, transparent), transparent 8rem),
    rgba(8, 8, 23, .34) !important;
  box-shadow:
    0 16px 36px rgba(6, 5, 20, .28),
    0 0 22px color-mix(in srgb, var(--rarity-color) 8%, transparent) !important;
}
.footballer-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 1 !important;
  width: 3px !important;
  height: 100% !important;
  border: 0 !important;
  background: linear-gradient(to bottom, var(--rarity-color), transparent 75%) !important;
  clip-path: none !important;
  pointer-events: none;
}
.footballer-card::after {
  content: none !important;
  display: none !important;
}
.footballer-card-glow,
.footballer-card-art,
.footballer-card-art img,
.recent-art,
.recent-art img {
  display: none !important;
}
.footballer-card[class*="rarity-"]:hover,
.footballer-card[class*="rarity-"]:focus-visible {
  border-color: color-mix(in srgb, var(--rarity-color) 58%, transparent) !important;
  box-shadow:
    0 20px 42px rgba(9,7,4,0.34),
    0 0 26px color-mix(in srgb, var(--rarity-color) 12%, transparent) !important;
}

/* Keep the v3.0A.15 position badge treatment without moving any other card
   content or changing the established card silhouette. */
.footballer-card-position {
  top: 8% !important;
  right: 8% !important;
  min-width: 42px !important;
  padding: 7px 9px !important;
  color: var(--rarity-color) !important;
  -webkit-text-fill-color: var(--rarity-color) !important;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 42%, transparent) !important;
  background: color-mix(in srgb, var(--rarity-color) 7%, transparent) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Potential keeps the v3.0A.15 66px outlined style. Its text, border and tint
   follow the colour band of the range's highest value, supplied by potentialTone. */
.footballer-card-rating > small.potential-grey   { --potential-chip-color: #b8bec8; }
.footballer-card-rating > small.potential-yellow { --potential-chip-color: #ffe34f; }
.footballer-card-rating > small.potential-green  { --potential-chip-color: #55df91; }
.footballer-card-rating > small.potential-blue   { --potential-chip-color: #4d9fff; }
.footballer-card-rating > small.potential-purple { --potential-chip-color: #aa68ff; }
.footballer-card-rating > small.potential-orange { --potential-chip-color: #ff873d; }
.footballer-card-rating > small.potential-goat   { --potential-chip-color: #fff4bf; }
.footballer-card-rating > small {
  width: 66px !important;
  min-width: 66px !important;
  max-width: 66px !important;
  margin: 6px auto 0 !important;
  padding: 4px 5px !important;
  color: var(--potential-chip-color, #fff) !important;
  -webkit-text-fill-color: var(--potential-chip-color, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--potential-chip-color, #fff) 38%, transparent) !important;
  background: color-mix(in srgb, var(--potential-chip-color, #fff) 7%, transparent) !important;
  border-radius: 0 !important;
  text-shadow: none !important;
}

/* Preserve the country typography and clean v3.0A.15 presentation. */
.card-country {
  margin-top: 8px !important;
  color: rgba(251,247,239,0.72) !important;
  font-family: var(--body) !important;
  font-size: clamp(.54rem, .82vw, .7rem) !important;
  font-weight: 700 !important;
  background: transparent !important;
  text-shadow: none !important;
}

/* Removing the portrait also removes its reserved column from recent pulls;
   all other recent-pull typography and ordering remain untouched. */
.recent-pull-v2[class*="rarity-"] {
  grid-template-columns: 34px 62px minmax(0, 1fr) auto 22px !important;
}

/* v3.0A.18 — stable nationality portrait library ------------------------ */
/* Restore the transparent player artwork while keeping the v3.0A.16
   Collection DNA surface, card silhouette, labels, attributes and colours. */
.footballer-card .footballer-card-art {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
.footballer-card .footballer-card-art img {
  position: absolute !important;
  right: -6% !important;
  bottom: -4% !important;
  display: block !important;
  width: 112% !important;
  height: 112% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center 18% !important;
  background: transparent !important;
  filter: drop-shadow(0 7px 9px rgba(2, 3, 14, .34)) !important;
}
.footballer-card::before {
  z-index: 2 !important;
}
.footballer-card-rating,
.footballer-card-position,
.footballer-card-identity,
.footballer-card-stats,
.footballer-card-footer {
  z-index: 4 !important;
}

/* v3.0A.19 — portrait grounding and top-only pop-out ------------------- */
/* Reserve headroom so the portrait can extend above the clipped card
   without overlapping the row above. */
.footballer-card-shell {
  position: relative;
  display: block;
  width: 100%;
  padding-top: clamp(10px, 4.4%, 20px);
  overflow: visible;
}
.footballer-card-shell .footballer-card {
  width: 100%;
}

/* Keep the main portrait anchored to the bottom of the card so the torso
   starts from the base rather than appearing cut off. */
.footballer-card .footballer-card-art {
  overflow: hidden !important;
}
.footballer-card .footballer-card-art img {
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  top: auto !important;
  display: block !important;
  width: 122% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  transform: translateX(-50%) !important;
  background: transparent !important;
  filter: drop-shadow(0 10px 14px rgba(2, 3, 14, .38)) !important;
}

/* Duplicate only the upper part of the transparent portrait outside the
   card to create a subtle 3D effect. Sides and bottom remain hidden. */
.footballer-card-popout {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 122%;
  height: auto;
  max-width: none;
  display: block;
  pointer-events: none;
  transform: translateX(-50%);
  clip-path: inset(0 11% 73% 11%);
  filter: drop-shadow(0 10px 14px rgba(2, 3, 14, .30));
}

/* Keep all text chrome above both portrait layers. */
.footballer-card::before {
  z-index: 2 !important;
}
.footballer-card-rating,
.footballer-card-position,
.footballer-card-identity,
.footballer-card-stats,
.footballer-card-footer {
  z-index: 4 !important;
}

/* v3.0A.21 — portrait and potential repositioning ----------------------- */
/* Move both portrait layers 10px back to the left from v3.0A.20 while
   keeping them aligned with each other. */
.footballer-card .footballer-card-art img {
  transform: translateX(calc(-50% + 20px)) !important;
}
.footballer-card-popout {
  transform: translateX(calc(-50% + 20px)) !important;
}

/* Let the top-only pop-out sit in front of the top frame so the border no
   longer cuts through the head, while the rating stays above everything. */
.footballer-card-shell .footballer-card {
  position: relative;
  z-index: 2;
}
.footballer-card-popout {
  z-index: 3 !important;
}
.footballer-card-rating {
  z-index: 6 !important;
}

/* Keep the Potential range 15px left, but move it 30px up from the v3.0A.20
   position. The main rating remains unchanged. */
.footballer-card-rating > small {
  transform: translate(-15px, 30px) !important;
}


/* v3.0A.22 — rating overlay, portrait mist and final alignment ---------- */
/* The rating is a shell-level overlay so no part of the portrait can cover
   it, including the top-only pop-out layer. */
.footballer-card-shell {
  --card-headroom: clamp(10px, 4.4%, 20px);
  padding-top: var(--card-headroom);
}
.footballer-card-shell > .footballer-card-rating {
  position: absolute !important;
  z-index: 8 !important;
  top: calc(var(--card-headroom) + 6.5%) !important;
  left: 7% !important;
  pointer-events: none;
}

/* Keep the Potential chip naturally just below the rating while preserving
   its established 15px left offset. */
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-15px, 0) !important;
}

/* Move both aligned portrait layers another 4px left from v3.0A.21. */
.footballer-card .footballer-card-art img,
.footballer-card-popout {
  transform: translateX(calc(-50% + 16px)) !important;
}

/* A gentle bottom mist: the portrait is slightly transparent at the base,
   becomes progressively stronger through the attribute area, and is fully
   opaque above the attribute labels. */
.footballer-card .footballer-card-art img {
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, .20) 0%,
    rgba(0, 0, 0, .38) 5%,
    rgba(0, 0, 0, .72) 11%,
    #000 18%,
    #000 100%
  ) !important;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, .20) 0%,
    rgba(0, 0, 0, .38) 5%,
    rgba(0, 0, 0, .72) 11%,
    #000 18%,
    #000 100%
  ) !important;
}


/* v3.0A.23 — pop-out seam fix, white ratings, stronger mist and glow ----- */
/* Remove the visible seam through the face by replacing the hard pop-out
   cutoff with a soft fade while keeping the effect only on the top area. */
.footballer-card-popout {
  transform: translateX(calc(-50% + 12px)) !important;
  clip-path: inset(0 11% 0 11%) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, .92) 61%,
    rgba(0, 0, 0, .58) 68%,
    rgba(0, 0, 0, .18) 75%,
    transparent 82%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, .92) 61%,
    rgba(0, 0, 0, .58) 68%,
    rgba(0, 0, 0, .18) 75%,
    transparent 82%,
    transparent 100%
  ) !important;
}

/* Nudge both portrait layers 4px left from v3.0A.22. */
.footballer-card .footballer-card-art img {
  transform: translateX(calc(-50% + 12px)) !important;
}

/* Keep reserve, squad and prime card ratings white on the card face. */
.rarity-reserve .footballer-card-rating > strong,
.rarity-squad .footballer-card-rating > strong,
.rarity-prime .footballer-card-rating > strong {
  color: #fff !important;
}

/* Bring the Potential chip much closer to the rating so it sits just below it. */
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-15px, -18px) !important;
}

/* Stronger bottom mist that is clearly visible up to the attribute labels,
   while the portrait remains fully solid above them. */
.footballer-card .footballer-card-art img {
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .05) 6%,
    rgba(0, 0, 0, .16) 12%,
    rgba(0, 0, 0, .34) 18%,
    rgba(0, 0, 0, .58) 24%,
    rgba(0, 0, 0, .82) 30%,
    #000 37%,
    #000 100%
  ) !important;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .05) 6%,
    rgba(0, 0, 0, .16) 12%,
    rgba(0, 0, 0, .34) 18%,
    rgba(0, 0, 0, .58) 24%,
    rgba(0, 0, 0, .82) 30%,
    #000 37%,
    #000 100%
  ) !important;
}

/* Stronger centre glow based on the rating colour family. */
.footballer-card .footballer-card-glow {
  position: absolute !important;
  z-index: 0 !important;
  width: 96% !important;
  aspect-ratio: 1 !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  border-radius: 50% !important;
  transform: translate(-50%, -42%) !important;
  opacity: .58 !important;
  filter: blur(32px) !important;
  background: radial-gradient(circle, var(--rating-glow-color, rgba(255,255,255,.42)) 0%, color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.42)) 50%, transparent) 38%, transparent 74%) !important;
  mix-blend-mode: screen !important;
}
.footballer-card .footballer-card-glow.glow-grey   { --rating-glow-color: rgba(184, 190, 200, .70); }
.footballer-card .footballer-card-glow.glow-yellow { --rating-glow-color: rgba(255, 227, 79, .82); }
.footballer-card .footballer-card-glow.glow-green  { --rating-glow-color: rgba(85, 223, 145, .78); }
.footballer-card .footballer-card-glow.glow-blue   { --rating-glow-color: rgba(77, 159, 255, .78); }
.footballer-card .footballer-card-glow.glow-purple { --rating-glow-color: rgba(170, 104, 255, .82); }
.footballer-card .footballer-card-glow.glow-orange { --rating-glow-color: rgba(255, 135, 61, .82); }
.footballer-card .footballer-card-glow.glow-goat   { --rating-glow-color: rgba(255, 244, 191, .92); }


/* v3.0A.24 — rating restoration, solid identity, portrait fit and glow ---- */
/* Restore the shell-level rating to the same placement and visual size it had
   before the v3.0A.23 adjustment. */
.footballer-card-shell > .footballer-card-rating {
  top: calc(var(--card-headroom) + 4.2%) !important;
  left: 4.5% !important;
}
.footballer-card-shell > .footballer-card-rating > strong {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(3.05rem, 5.7vw, 5.25rem) !important;
  line-height: .84 !important;
}
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-15px, 0) !important;
}

/* Keep name and country fully solid white again. */
.footballer-card-name,
.card-country {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .88) !important;
}

/* Pull portraits slightly back inside the card so they do not escape on the
   right side. The in-card portrait stays behind the frame, while the pop-out
   remains visible only at the top. */
.footballer-card .footballer-card-art img,
.footballer-card-popout {
  width: 118% !important;
}
.footballer-card .footballer-card-art img {
  transform: translateX(calc(-50% + 8px)) !important;
}
.footballer-card-popout {
  transform: translateX(calc(-50% + 8px)) !important;
  clip-path: inset(0 14% 0 14%) !important;
}

/* Make the surface glow much brighter and more obvious from the centre of the
   card. */
.footballer-card .footballer-card-glow {
  width: 112% !important;
  opacity: .82 !important;
  filter: blur(24px) !important;
  transform: translate(-50%, -40%) !important;
  background: radial-gradient(circle, var(--rating-glow-color, rgba(255,255,255,.68)) 0%, color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.68)) 72%, transparent) 34%, color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.68)) 32%, transparent) 52%, transparent 76%) !important;
}


/* v3.0A.25 — actual centred rating glow ------------------------------- */
/* Remove the old Collection DNA corner flare. That was the small glow in
   the top-right corner and was unrelated to the new centred rating glow. */
.footballer-card[class*="rarity-"] {
  background: rgba(8, 8, 23, .40) !important;
}

/* The old portrait-free card rules hid .footballer-card-glow with
   display:none. Explicitly restore it and render a strong centred halo. */
.footballer-card .footballer-card-glow {
  display: block !important;
  position: absolute !important;
  z-index: 0 !important;
  left: 50% !important;
  top: 46% !important;
  right: auto !important;
  width: 126% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  transform: translate(-50%, -50%) !important;
  opacity: 1 !important;
  filter: blur(18px) !important;
  background: radial-gradient(
    circle,
    var(--rating-glow-color, rgba(255,255,255,.82)) 0%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.82)) 70%, transparent) 25%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.82)) 36%, transparent) 46%,
    transparent 72%
  ) !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
}

/* Match the halo to the player's rating band. */
.footballer-card .footballer-card-glow.glow-grey   { --rating-glow-color: rgba(184, 190, 200, .92); }
.footballer-card .footballer-card-glow.glow-yellow { --rating-glow-color: rgba(255, 227, 79, .96); }
.footballer-card .footballer-card-glow.glow-green  { --rating-glow-color: rgba(85, 223, 145, .94); }
.footballer-card .footballer-card-glow.glow-blue   { --rating-glow-color: rgba(77, 159, 255, .94); }
.footballer-card .footballer-card-glow.glow-purple { --rating-glow-color: rgba(170, 104, 255, .96); }
.footballer-card .footballer-card-glow.glow-orange { --rating-glow-color: rgba(255, 135, 61, .96); }
.footballer-card .footballer-card-glow.glow-goat   { --rating-glow-color: rgba(255, 244, 191, 1); }


/* v3.0A.26 — controlled glow, solid identity and rating consistency ------- */
/* Stop the centred glow before it reaches the name area. The halo remains
   visible through the player's transparent lower body, but fades out before
   the identity block. */
.footballer-card .footballer-card-glow {
  top: 40% !important;
  width: 118% !important;
  filter: blur(16px) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 50%,
    rgba(0, 0, 0, .88) 58%,
    rgba(0, 0, 0, .44) 65%,
    rgba(0, 0, 0, .14) 71%,
    transparent 76%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 50%,
    rgba(0, 0, 0, .88) 58%,
    rgba(0, 0, 0, .44) 65%,
    rgba(0, 0, 0, .14) 71%,
    transparent 76%,
    transparent 100%
  ) !important;
}

/* Keep name and country fully white, fully opaque and above both portrait
   layers and the glow. */
.footballer-card-identity,
.footballer-card-name,
.card-country {
  position: relative !important;
  z-index: 7 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.footballer-card-name,
.card-country {
  text-shadow: 0 2px 8px rgba(0, 0, 0, .92) !important;
}

/* Force the shell-level rating block to have identical placement and visual
   size across all cards. */
.footballer-card-shell > .footballer-card-rating {
  position: absolute !important;
  z-index: 8 !important;
  top: calc(var(--card-headroom) + 4.2%) !important;
  left: 4.5% !important;
  width: 82px !important;
  min-width: 82px !important;
  display: grid !important;
  justify-items: start !important;
  align-content: start !important;
  gap: 4px !important;
  pointer-events: none !important;
}
.footballer-card-shell > .footballer-card-rating > strong {
  font-size: clamp(3.05rem, 5.7vw, 5.25rem) !important;
  line-height: .84 !important;
}

/* Move the potential range slightly right to leave a small gap to the card
   frame while keeping it just below the rating. */
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-10px, 0) !important;
}


/* v3.0A.27 — restore identity visibility and disperse the centre glow ----- */
/* Make the player name and country unambiguously visible again and keep them
   in front of the portrait. */
.footballer-card-identity {
  position: absolute !important;
  z-index: 9 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.footballer-card-name,
.card-country {
  position: static !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  mix-blend-mode: normal !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .94) !important;
}
.card-country {
  margin-top: 8px !important;
}

/* Replace the visible circular top edge with a larger, softer elliptical glow
   that disperses naturally and fades out before the player name area. */
.footballer-card .footballer-card-glow {
  top: 44% !important;
  width: 144% !important;
  height: 78% !important;
  aspect-ratio: auto !important;
  border-radius: 50% !important;
  filter: blur(30px) !important;
  transform: translate(-50%, -50%) !important;
  background: radial-gradient(
    ellipse at center,
    var(--rating-glow-color, rgba(255,255,255,.90)) 0%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 82%, transparent) 20%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 58%, transparent) 42%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 24%, transparent) 62%,
    transparent 88%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, .92) 60%,
    rgba(0, 0, 0, .50) 66%,
    rgba(0, 0, 0, .12) 72%,
    transparent 77%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 54%,
    rgba(0, 0, 0, .92) 60%,
    rgba(0, 0, 0, .50) 66%,
    rgba(0, 0, 0, .12) 72%,
    transparent 77%,
    transparent 100%
  ) !important;
}


/* v3.0A.28 — final text whiteness and fully dispersed glow -------------- */
/* Root cause fix for the name/country colour: enforce solid white on the
   exact nested selectors used by the card, not only on the generic classes. */
.footballer-card .footballer-card-identity {
  position: absolute !important;
  z-index: 9 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
}
.footballer-card .footballer-card-identity .footballer-card-name,
.footballer-card .footballer-card-identity .card-country {
  display: block !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .96) !important;
}
.footballer-card .footballer-card-identity .card-country {
  margin-top: 8px !important;
}

/* Root cause fix for the visible top circle: the previous mask stayed fully
   opaque at the very top, leaving the upper rim visible. Fade the glow in at
   the top, enlarge it, and blur it more so no circle edge remains. */
.footballer-card .footballer-card-glow {
  top: 46% !important;
  width: 152% !important;
  height: 92% !important;
  opacity: .96 !important;
  filter: blur(42px) !important;
  background: radial-gradient(
    ellipse at center,
    var(--rating-glow-color, rgba(255,255,255,.94)) 0%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.94)) 86%, transparent) 18%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.94)) 60%, transparent) 38%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.94)) 28%, transparent) 56%,
    transparent 84%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, .10) 8%,
    rgba(0, 0, 0, .36) 16%,
    rgba(0, 0, 0, .76) 24%,
    #000 32%,
    #000 54%,
    rgba(0, 0, 0, .78) 61%,
    rgba(0, 0, 0, .34) 68%,
    rgba(0, 0, 0, .10) 73%,
    transparent 78%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, .10) 8%,
    rgba(0, 0, 0, .36) 16%,
    rgba(0, 0, 0, .76) 24%,
    #000 32%,
    #000 54%,
    rgba(0, 0, 0, .78) 61%,
    rgba(0, 0, 0, .34) 68%,
    rgba(0, 0, 0, .10) 73%,
    transparent 78%,
    transparent 100%
  ) !important;
}


/* v3.0A.29 — final identity stacking fix and softer top glow ----------- */
/* Root cause for the name still looking wrong: the identity content needed to
   be explicitly positioned within its own stacking context above the portrait
   and glow. Force the real nested text nodes to render as solid white. */
.footballer-card .footballer-card-identity {
  position: absolute !important;
  z-index: 20 !important;
  isolation: isolate !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.footballer-card .footballer-card-identity .footballer-card-name,
.footballer-card .footballer-card-identity .card-country {
  position: relative !important;
  z-index: 21 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  transform: none !important;
  text-shadow: 0 0 1px rgba(255,255,255,.35), 0 2px 8px rgba(0, 0, 0, .96) !important;
}

/* Disperse the top of the glow more strongly so no circular upper rim is
   visible. The glow now fades in more gradually from the top and uses a larger
   softer ellipse. */
.footballer-card .footballer-card-glow {
  top: 48% !important;
  width: 160% !important;
  height: 108% !important;
  opacity: .92 !important;
  filter: blur(50px) !important;
  background: radial-gradient(
    ellipse at center,
    var(--rating-glow-color, rgba(255,255,255,.92)) 0%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.92)) 88%, transparent) 16%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.92)) 62%, transparent) 36%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.92)) 24%, transparent) 58%,
    transparent 90%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 12%,
    rgba(0, 0, 0, .10) 20%,
    rgba(0, 0, 0, .34) 28%,
    rgba(0, 0, 0, .68) 38%,
    #000 48%,
    #000 58%,
    rgba(0, 0, 0, .72) 65%,
    rgba(0, 0, 0, .30) 72%,
    rgba(0, 0, 0, .08) 77%,
    transparent 82%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 12%,
    rgba(0, 0, 0, .10) 20%,
    rgba(0, 0, 0, .34) 28%,
    rgba(0, 0, 0, .68) 38%,
    #000 48%,
    #000 58%,
    rgba(0, 0, 0, .72) 65%,
    rgba(0, 0, 0, .30) 72%,
    rgba(0, 0, 0, .08) 77%,
    transparent 82%,
    transparent 100%
  ) !important;
}


/* v3.0A.30 — restore original identity layout and true white text -------- */
/* Deep fix: restore the identity block to its original card placement and
   explicitly restyle the actual nested name/country nodes so they render as
   true white text instead of a dimmed/grey appearance. */
.footballer-card .footballer-card-identity {
  position: absolute !important;
  z-index: 20 !important;
  left: 8% !important;
  right: 8% !important;
  bottom: 22.5% !important;
  min-width: 0 !important;
  isolation: isolate !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.footballer-card .footballer-card-identity .footballer-card-name {
  position: static !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-family: var(--display) !important;
  font-size: clamp(1.36rem, 2.55vw, 2.55rem) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  transform: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.60) !important;
}
.footballer-card .footballer-card-identity .footballer-card-name.name-long {
  font-size: clamp(1.12rem, 2.05vw, 1.95rem) !important;
}
.footballer-card .footballer-card-identity .footballer-card-name.name-very-long {
  font-size: clamp(.96rem, 1.75vw, 1.58rem) !important;
}
.footballer-card .footballer-card-identity .card-country {
  position: static !important;
  display: block !important;
  max-width: 100% !important;
  margin-top: 7px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-family: var(--body) !important;
  font-size: clamp(.54rem, .82vw, .7rem) !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  transform: none !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.60) !important;
}

/* Disperse the top of the centred glow further so the upper circular rim is
   no longer visible. The glow is larger, softer, and fades in more gradually
   at the top while still fading out before the name area. */
.footballer-card .footballer-card-glow {
  top: 50% !important;
  width: 168% !important;
  height: 118% !important;
  opacity: .88 !important;
  filter: blur(58px) !important;
  background: radial-gradient(
    ellipse at center,
    var(--rating-glow-color, rgba(255,255,255,.90)) 0%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 88%, transparent) 14%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 62%, transparent) 34%,
    color-mix(in srgb, var(--rating-glow-color, rgba(255,255,255,.90)) 28%, transparent) 56%,
    transparent 92%
  ) !important;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, .08) 28%,
    rgba(0, 0, 0, .28) 36%,
    rgba(0, 0, 0, .58) 46%,
    rgba(0, 0, 0, .90) 56%,
    #000 62%,
    rgba(0, 0, 0, .65) 70%,
    rgba(0, 0, 0, .24) 76%,
    rgba(0, 0, 0, .06) 80%,
    transparent 84%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 20%,
    rgba(0, 0, 0, .08) 28%,
    rgba(0, 0, 0, .28) 36%,
    rgba(0, 0, 0, .58) 46%,
    rgba(0, 0, 0, .90) 56%,
    #000 62%,
    rgba(0, 0, 0, .65) 70%,
    rgba(0, 0, 0, .24) 76%,
    rgba(0, 0, 0, .06) 80%,
    transparent 84%,
    transparent 100%
  ) !important;
}


/* v3.0A.31 — structural identity overlay fix ---------------------------- */
/* The apparent grey/transparent name was not a colour-rule problem. The
   shell-level portrait pop-out was a sibling above the entire card stacking
   context, so it physically covered most of the name. Moving the identity to
   a shell-level overlay lets it sit genuinely above the portrait. */
.footballer-card-shell > .footballer-card-identity {
  position: absolute !important;
  z-index: 12 !important;
  left: 8% !important;
  right: 8% !important;
  bottom: 22.5% !important;
  min-width: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  isolation: isolate !important;
}
.footballer-card-shell > .footballer-card-identity > .footballer-card-name {
  position: static !important;
  z-index: 13 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-family: var(--display) !important;
  font-size: clamp(1.36rem, 2.55vw, 2.55rem) !important;
  font-weight: 900 !important;
  line-height: .96 !important;
  text-transform: uppercase !important;
  color: rgb(255, 255, 255) !important;
  -webkit-text-fill-color: rgb(255, 255, 255) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .96) !important;
}
.footballer-card-shell > .footballer-card-identity > .footballer-card-name.name-long {
  font-size: clamp(1.12rem, 2.05vw, 1.95rem) !important;
}
.footballer-card-shell > .footballer-card-identity > .footballer-card-name.name-very-long {
  font-size: clamp(.96rem, 1.75vw, 1.58rem) !important;
}
.footballer-card-shell > .footballer-card-identity > .card-country {
  position: static !important;
  z-index: 13 !important;
  display: block !important;
  max-width: 100% !important;
  margin-top: 7px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  font-family: var(--body) !important;
  font-size: clamp(.54rem, .82vw, .7rem) !important;
  font-weight: 700 !important;
  color: rgb(255, 255, 255) !important;
  -webkit-text-fill-color: rgb(255, 255, 255) !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .96) !important;
}

/* Keep the rating above the shell-level identity and portrait layers. */
.footballer-card-shell > .footballer-card-rating {
  z-index: 14 !important;
}

/* v3.0A.40.3 — compact chat spacing and PACKS watermark --------------- */
#profileInventoryPanel .inventory-help {
  margin-bottom: 0;
}
.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  align-items: start;
  gap: clamp(22px, 2.2vw, 34px);
}
.inventory-packs-column {
  min-width: 0;
}
.inventory-chat-card {
  position: relative;
  width: 100%;
  margin: 18px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(76,57,21,0.14), transparent 34%),
    linear-gradient(145deg, rgba(42,34,20,0.38), rgba(13,12,10,0.94));
  box-shadow: 0 20px 55px rgba(9,7,4,0.24), inset 0 1px rgba(255,255,255,.035);
}
.inventory-chat-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -70px;
  bottom: -100px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,169,79,.10), transparent 70%);
  pointer-events: none;
}
.inventory-chat-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 2px 11px;
}
.inventory-chat-title {
  min-width: 0;
}
.inventory-chat-heading .eyebrow {
  margin-bottom: 3px;
}
.inventory-chat-heading h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.inventory-chat-watermark {
  min-width: 0;
  overflow: hidden;
  color: rgba(251,247,239,0.095);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: .8;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.inventory-chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 999px;
  color: rgba(251,247,239,0.78);
  background: rgba(13,12,10,0.56);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.inventory-chat-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4c3915;
  box-shadow: 0 0 10px rgba(212,169,79,0.72);
}
.inventory-chat-frame {
  position: relative;
  z-index: 1;
  height: clamp(325px, 36vh, 360px);
  min-height: 325px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 12px;
  background: #18181b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.22);
}
.inventory-chat-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #18181b;
}
@media (max-width: 980px) {
  .inventory-layout {
    grid-template-columns: 1fr;
  }
  .inventory-chat-card {
    width: min(100%, 420px);
    margin: 12px 0 0;
    justify-self: end;
  }
}
@media (max-width: 620px) {
  .inventory-chat-card {
    width: 100%;
    margin-top: 10px;
    justify-self: stretch;
    padding: 12px;
    border-radius: 15px;
  }
  .inventory-chat-heading {
    grid-template-columns: auto minmax(52px, 1fr) auto;
    min-height: 48px;
    padding-bottom: 10px;
  }
  .inventory-chat-watermark {
    font-size: 1.45rem;
  }
  .inventory-chat-frame {
    height: 350px;
    min-height: 350px;
    border-radius: 11px;
  }
}


/* Official Pre-season layout -------------------------------------------- */
.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-inline: auto;
  padding: 5px;
  border: 1px solid rgba(212,169,79,0.12);
  border-radius: 14px;
  background: rgba(13,12,10,0.38);
}
.site-menu button,
.site-menu a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font-family: var(--body);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.site-menu button small,
.site-menu a small {
  margin-left: 6px;
  color: #ffe77a;
  font-size: .52rem;
  letter-spacing: .08em;
}
.site-menu button:hover,
.site-menu button:focus-visible,
.site-menu a:hover,
.site-menu a:focus-visible {
  color: #fff;
  border-color: rgba(212,169,79,0.24);
  outline: none;
}
.site-menu button.active,
.site-menu a.active {
  color: #fff;
  border-color: rgba(212,169,79,0.32);
  background: linear-gradient(135deg, rgba(76,57,21,0.19), rgba(76,57,21,0.08));
  box-shadow: inset 0 0 18px rgba(212,169,79,0.08);
}

.preseason-view {
  --preseason-section-pad: clamp(30px, 4vw, 54px);
  display: grid;
  gap: 24px;
  padding: 40px 0 84px;
}
.preseason-view > .section-frame {
  padding: var(--preseason-section-pad);
}
.preseason-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 36px;
  align-items: center;
  min-height: 285px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(76,57,21,0.12), transparent 34%),
    linear-gradient(145deg, rgba(23,21,15,0.96), rgba(13,12,10,0.98));
}
.preseason-hero-copy { position: relative; z-index: 2; max-width: 850px; }
.preseason-hero h1 {
  margin: 5px 0 14px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .86;
  text-transform: uppercase;
}
.preseason-hero-copy > p:last-child {
  max-width: 760px;
  color: #d9d1c2;
  font-size: clamp(.92rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}
.preseason-status-card {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 165px;
  align-content: center;
  justify-items: center;
  padding: 22px;
  border: 1px solid rgba(212,169,79,0.26);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background: rgba(13,12,10,0.62);
  box-shadow: inset 0 0 36px rgba(212,169,79,0.05);
}
.preseason-status-card span,
.preseason-status-card small { color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.preseason-status-card strong { margin: 8px 0 4px; color: var(--accent-cyan); font-family: var(--display); font-size: 2.5rem; line-height: 1; text-transform: uppercase; }


.preseason-rules { padding: var(--preseason-section-pad); }
.preseason-points-legend {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}
.preseason-points-legend article {
  position: relative;
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 28%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--rarity-color) 10%, transparent), rgba(13,12,10,0.58));
}
.preseason-points-legend article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--rarity-color);
  box-shadow: 0 0 12px var(--rarity-color);
}
.preseason-points-legend span,
.preseason-points-legend small { display: block; overflow: hidden; color: var(--muted); font-size: .58rem; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.preseason-points-legend strong { display: block; margin: 7px 0 1px; color: var(--rarity-color); font-family: var(--display); font-size: 2rem; line-height: 1; }
.preseason-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.preseason-rule-grid article {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 18px;
  border: 1px solid rgba(212,169,79,0.11);
  background: rgba(13,12,10,0.35);
  text-align: center;
}
.preseason-rule-grid article p { max-width: 310px; margin-inline: auto; }
.preseason-rule-grid span { color: var(--accent-cyan); font-size: .59rem; font-weight: 800; letter-spacing: .09em; }
.preseason-rule-grid strong { display: block; margin: 5px 0 8px; color: #fff; font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.preseason-rule-grid p,
.preseason-formation-line { color: var(--muted); font-size: .75rem; line-height: 1.55; }
.preseason-formation-line { margin: 18px 0 0; padding: 13px 15px; border-left: 2px solid var(--accent-cyan); background: rgba(76,57,21,0.035); }
.preseason-formation-line b { color: #fff; }

.preseason-table-panel {
  min-width: 0;
  padding: var(--preseason-section-pad);
}
.preseason-table th:last-child,
.preseason-table td:last-child {
  padding-right: clamp(24px, 3vw, 38px);
}
.preseason-table th:last-child { white-space: nowrap; }
.preseason-table-heading { align-items: end; }
.preseason-table { min-width: 940px; }
.preseason-table td { vertical-align: middle; }
.preseason-points-cell strong { color: #ffe77a; font-family: var(--display); font-size: 1.45rem; }
.projected-division,
.qualification-status {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(76,57,21,0.1);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.projected-division.division-1 { color: #ffe77a; border-color: rgba(255, 231, 122, .38); background: rgba(255, 214, 74, .08); }
.qualification-status { color: #ffadad; border-color: rgba(255, 107, 126, .28); background: rgba(255, 107, 126, .06); }
.preseason-unqualified-panel { opacity: .94; }

@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; padding: 16px 0; gap: 12px; }
  .site-menu { order: 3; width: 100%; }
  .preseason-points-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .preseason-view { --preseason-section-pad: 22px; padding-top: 22px; }
  .preseason-hero { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .preseason-status-card { min-height: 120px; }
  .preseason-rule-grid { grid-template-columns: 1fr; }
  .preseason-points-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preseason-table-heading { align-items: stretch; }
  .preseason-table-heading .small-search { width: 100%; }
}


/* Pre-season leaderboard identity polish -------------------------------- */
.preseason-rule-grid span {
  font-size: .76rem;
  line-height: 1.2;
}
.preseason-rule-grid strong {
  font-size: 1.68rem;
}
.preseason-table-note {
  width: 100%;
  max-width: none;
  margin: 0 0 10px;
  text-align: right;
}
.preseason-table {
  min-width: 1080px;
}
.preseason-country-cell {
  min-width: 118px;
  white-space: nowrap;
}
.preseason-country-cell {
  vertical-align: middle;
}
.preseason-country-flag-wrap,
.preseason-country-fallback {
  display: inline-block;
  width: 26px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
}
.preseason-country-flag-wrap {
  position: relative;
}
.preseason-country-flag-wrap .preseason-country-fallback {
  margin-right: 0;
}
.preseason-country-flag {
  position: absolute;
  inset: 0;
  display: block;
  width: 26px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14);
}
.preseason-country-fallback {
  text-align: center;
  line-height: 20px;
}
.preseason-country-cell > span:last-child {
  vertical-align: middle;
}
.preseason-club-link {
  min-width: 190px;
}
.preseason-club-name {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.preseason-club-name > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.preseason-club-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid rgba(183, 191, 255, .2);
  border-radius: 7px;
  background: rgba(7, 8, 24, .72);
  object-fit: contain;
}
.preseason-manager-label {
  color: var(--accent-cyan);
  font-weight: 800;
}
@media (max-width: 760px) {
  .preseason-table-note { text-align: left; }
}

/* Pre-season image-based country flags ---------------------------------- */


/* Pre-season separate UK home-nation flags ------------------------------ */


/* v3.0A.42 official — projected divisions use existing rarity colours ---- */
.preseason-table tbody tr[class*="preseason-division-"] {
  --division-color: var(--accent);
  position: relative;
  background: linear-gradient(90deg, color-mix(in srgb, var(--division-color) 5%, transparent), transparent 28%);
}
.preseason-table tbody tr[class*="preseason-division-"] > td:first-child {
  border-left: 3px solid color-mix(in srgb, var(--division-color) 72%, transparent);
}
.preseason-table tbody tr[class*="preseason-division-"]:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--division-color) 9%, transparent), rgba(255,255,255,.012) 42%, transparent);
}
.preseason-table tbody tr.preseason-division-start td {
  border-top: 2px solid color-mix(in srgb, var(--division-color) 48%, transparent);
}
.preseason-table tbody tr.preseason-division-end td {
  border-bottom: 2px solid color-mix(in srgb, var(--division-color) 55%, transparent);
  box-shadow: 0 7px 14px -12px var(--division-color);
}
.preseason-division-1, .projected-division.division-1 { --division-color: var(--goat); }
.preseason-division-2, .projected-division.division-2 { --division-color: var(--legend); }
.preseason-division-3, .projected-division.division-3 { --division-color: var(--prime); }
.preseason-division-4, .projected-division.division-4 { --division-color: var(--starter); }
.preseason-division-5, .projected-division.division-5 { --division-color: var(--squad); }
.preseason-division-6, .projected-division.division-6 { --division-color: var(--reserve); }
.preseason-division-7, .projected-division.division-7 { --division-color: var(--prospect); }
.projected-division[class*="division-"] {
  color: var(--division-color);
  border-color: color-mix(in srgb, var(--division-color) 44%, transparent);
  background: color-mix(in srgb, var(--division-color) 9%, rgba(13,12,10,0.86));
  box-shadow: inset 0 0 14px color-mix(in srgb, var(--division-color) 5%, transparent), 0 0 12px color-mix(in srgb, var(--division-color) 7%, transparent);
}

/* v3.0A.43.5 compact penalty-role controls beneath the existing formation board */
.penalty-tactics-form {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
  text-align: left;
}
.penalty-tactics-form label {
  display: grid;
  gap: 7px;
}
.penalty-tactics-form label > span {
  color: var(--accent-cyan);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.penalty-tactics-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--text);
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 10px;
  background: rgba(13,12,10,0.75);
  font: inherit;
}
.penalty-tactics-form button {
  grid-column: 1 / -1;
  justify-self: end;
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 10px;
  padding: 11px 15px;
  background: rgba(76,57,21,0.14);
  color: var(--accent-cyan);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.penalty-tactics-form button:hover {
  border-color: var(--accent-cyan);
  background: rgba(76,57,21,0.2);
}
.penalty-tactics-form button:disabled,
.penalty-tactics-form select:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.penalty-tactics-message {
  width: min(100%, 620px);
  margin: 10px auto 0;
  text-align: right;
}
@media (max-width: 760px) {
  .penalty-tactics-form {
    grid-template-columns: 1fr;
  }
  .penalty-tactics-form button {
    width: 100%;
    justify-self: stretch;
  }
  .penalty-tactics-message {
    text-align: left;
  }
}

/* v3.0A.43.8 — homepage rebuild from the working v3.0A.43.6.1 design */
.home-rebuild .home-stadium-hero {
  min-height: clamp(650px, 74vh, 760px);
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  margin-top: 18px;
  padding: clamp(42px, 5vw, 72px) clamp(28px, 4vw, 58px) clamp(34px, 4vw, 54px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(212,169,79,0.18);
  background-image: url('/gd2-hero.webp');
  background-size: cover;
  background-position: 50% center;
  box-shadow: 0 34px 95px rgba(9,7,4,0.52), inset 0 1px rgba(255,255,255,.04);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}
.home-rebuild .home-stadium-hero::before {
  inset: 0;
  z-index: 0;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, rgba(13,12,10,0.96) 0%, rgba(13,12,10,0.86) 28%, rgba(13,12,10,0.36) 50%, rgba(13,12,10,0.22) 67%, rgba(13,12,10,0.64) 100%),
    linear-gradient(180deg, rgba(13,12,10,0.14) 0%, rgba(13,12,10,0.04) 50%, rgba(13,12,10,0.8) 100%);
  pointer-events: none;
}
.home-rebuild .home-stadium-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(circle at 15% 14%, rgba(76,57,21,0.12), transparent 24rem),
    linear-gradient(90deg, transparent 48%, rgba(76,57,21,0.06) 72%, transparent 100%);
  pointer-events: none;
}
.home-rebuild .hero-content,
.home-rebuild .hero-arena { z-index: 2; }
.home-rebuild .hero-content { max-width: 650px; padding-top: 0; }
.home-rebuild .hero-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  color: var(--accent-cyan);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.home-rebuild .hero-kicker span {
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  box-shadow: 0 0 12px rgba(212,169,79,0.5);
}
.home-rebuild .hero h1 {
  max-width: 650px;
  font-size: clamp(4.15rem, 6.35vw, 7.1rem);
  line-height: .80;
  filter: drop-shadow(0 15px 36px rgba(13,12,10,0.65));
}
.home-rebuild .hero-copy {
  max-width: 590px;
  margin: 26px 0 24px;
  color: rgba(251,247,239,0.78);
  font-size: .93rem;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(9,7,4,0.85);
}
.home-rebuild .viewer-search {
  width: min(620px, 100%);
  min-height: 58px;
  background: rgba(13,12,10,0.82);
  backdrop-filter: blur(12px);
}
.home-rebuild .hero-search-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 11px 0 0;
  color: rgba(251,247,239,0.62);
  font-size: .63rem;
}
.home-rebuild .hero-search-notes span:first-child { color: rgba(127,255,212,.72); }
.home-rebuild .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  gap: 10px;
  width: min(650px, 100%);
  margin-top: 23px;
}
.home-rebuild .hero-stat {
  min-width: 0;
  margin: 0;
  padding: 14px 15px 13px;
  border: 1px solid rgba(212,169,79,0.18);
  background: rgba(13,12,10,0.64);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 28px rgba(9,7,4,0.2);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  backdrop-filter: blur(10px);
}
.home-rebuild .hero-stat:last-child { border-right: 1px solid rgba(212,169,79,0.18); }
.home-rebuild .hero-stat span,
.home-rebuild .hero-stat-number span {
  color: var(--accent);
  font-size: 1.75rem;
  text-shadow: 0 0 15px rgba(212,169,79,0.34);
}
.home-rebuild .hero-stat:nth-child(1) span { color: var(--accent-cyan); }
.home-rebuild .hero-stat:nth-child(4) span { color: var(--goat); }
.home-rebuild .hero-stat small { font-size: .5rem; }
.home-rebuild .hero-arena {
  min-height: 535px;
  align-self: center;
}
.home-rebuild .arena-halo,
.home-rebuild .arena-lines { display: none; }
.home-rebuild .hero-card-carousel {
  width: min(370px, 100%);
  height: 510px;
  filter: drop-shadow(0 24px 38px rgba(13,12,10,0.55));
}
.home-rebuild .hero-card-carousel .hero-card.leader-card {
  width: min(335px, 100%);
  height: 472px;
}
.home-rebuild .leader-card-face {
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--accent-hot) 16%, transparent), transparent 14rem),
    linear-gradient(145deg, rgba(23,21,15,0.88), rgba(13,12,10,0.95));
  backdrop-filter: blur(14px);
}
.home-rebuild .hero-carousel-arrow { background: rgba(13,12,10,0.76); }

.home-live-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  gap: 18px;
  margin: 24px 0 28px;
}
.home-featured-panel,
.home-activity-panel {
  min-width: 0;
  padding: 22px;
  overflow: hidden;
}
.home-showcase-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.home-showcase-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: .95;
  text-transform: uppercase;
}
.home-showcase-heading > span {
  color: var(--faint);
  font-size: .58rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.home-showcase-heading.compact { margin-bottom: 17px; }
.home-showcase-heading.compact h2 { font-size: 1.65rem; }
.home-featured-players {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
  align-items: end;
}
.home-featured-player {
  display: block;
  min-width: 0;
  padding: 0;
  color: inherit;
  border: 0;
  background: transparent;
  transition: transform .2s ease, filter .2s ease;
}
/* The flat lift this used to apply has been replaced by the pointer-tracked
   tilt further down the file. It is removed rather than overridden because
   :hover outranks the tilt's base rule and would have pinned the card flat for
   exactly as long as the cursor was on it. */
.home-featured-player:hover {
  outline: none;
}
.home-featured-footballer-card { width: 100%; }
.home-featured-footballer-card > .footballer-card-rating {
  top: calc(var(--card-headroom) + 5%) !important;
  left: 5% !important;
  width: 54px !important;
  min-width: 54px !important;
}
.home-featured-footballer-card > .footballer-card-rating > strong {
  font-size: clamp(2rem, 2.7vw, 2.8rem) !important;
}
.home-featured-footballer-card > .footballer-card-rating > small {
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  padding: 3px !important;
  font-size: .38rem !important;
  transform: none !important;
}
.home-featured-footballer-card .footballer-card-position {
  min-width: 32px !important;
  padding: 5px 6px !important;
  font-size: .7rem !important;
}
.home-featured-footballer-card > .footballer-card-identity {
  left: 7% !important;
  right: 7% !important;
  bottom: 22% !important;
}
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name,
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name.name-long,
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name.name-very-long {
  font-size: clamp(.72rem, 1.15vw, 1.05rem) !important;
  line-height: .95 !important;
}
.home-featured-footballer-card > .footballer-card-identity > .card-country {
  margin-top: 4px !important;
  font-size: .43rem !important;
}
.home-featured-footballer-card .footballer-card-stats {
  left: 7% !important;
  right: 7% !important;
  bottom: 7.5% !important;
  gap: 2px !important;
}
.home-featured-footballer-card .card-main-stat { padding: 3px 1px !important; }
.home-featured-footballer-card .card-main-stat b { font-size: .34rem !important; }
.home-featured-footballer-card .card-main-stat strong { font-size: .58rem !important; }
.home-featured-footballer-card .footballer-card-footer { display: none !important; }
.home-featured-loading,
.home-activity-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-size: .75rem;
}
.home-activity-feed { display: grid; gap: 8px; }
.home-activity-row {
  display: grid;
  grid-template-columns: 8px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 49px;
  padding: 9px 10px;
  color: rgba(251,247,239,0.78);
  text-align: left;
  border: 1px solid rgba(212,169,79,0.13);
  background: rgba(13,12,10,0.52);
  font-size: .63rem;
  transition: border-color .18s ease, background .18s ease;
}
.home-activity-row:hover,
.home-activity-row:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--activity-color) 48%, transparent);
  background: rgba(13,12,10,0.78);
}
.home-activity-row > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--activity-color);
  box-shadow: 0 0 9px var(--activity-color);
}
.home-activity-row strong { color: #fff; }
.home-activity-row time { color: var(--faint); font-size: .52rem; }

@media (max-width: 1180px) {
  .home-rebuild .home-stadium-hero { grid-template-columns: minmax(0,1fr) 340px; padding-inline: 34px; }
  .home-rebuild .hero h1 { font-size: clamp(3.7rem, 6.6vw, 6rem); }
  .home-rebuild .hero-stats { grid-template-columns: repeat(2,minmax(130px,1fr)); max-width: 480px; }
  .home-live-showcase { grid-template-columns: 1fr; }
  .home-featured-players { grid-template-columns: repeat(5, minmax(145px,1fr)); overflow-x: auto; padding: 8px 2px 14px; }
  .home-activity-feed { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .home-rebuild .home-stadium-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background-position: 56% top;
    padding: 52px 24px 36px;
  }
  .home-rebuild .home-stadium-hero::before {
    background: linear-gradient(180deg, rgba(13,12,10,0.9) 0%, rgba(13,12,10,0.64) 46%, rgba(13,12,10,0.9) 100%);
  }
  .home-rebuild .hero-content { max-width: 650px; }
  .home-rebuild .hero-arena { min-height: 510px; }
  .home-rebuild .hero-card-carousel { width: min(380px, 96vw); }
}
@media (max-width: 620px) {
  .home-rebuild .home-stadium-hero { margin-top: 8px; padding: 42px 17px 28px; background-position: 57% top; }
  .home-rebuild .hero h1 { font-size: clamp(3rem, 14vw, 4.65rem); }
  .home-rebuild .hero-copy { font-size: .82rem; }
  .home-rebuild .viewer-search { min-height: 54px; }
  .home-rebuild .viewer-search button { min-width: 126px; padding-inline: 12px; font-size: .82rem; }
  .home-rebuild .hero-search-notes { display: grid; }
  .home-rebuild .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .home-rebuild .hero-stat { padding: 12px; }
  .home-rebuild .hero-arena { min-height: 480px; }
  .home-rebuild .hero-card-carousel { height: 480px; }
  .home-rebuild .hero-card-carousel .hero-card.leader-card { height: 445px; }
  .home-featured-panel,
  .home-activity-panel { padding: 18px 14px; }
  .home-showcase-heading { display: block; }
  .home-showcase-heading > span { display: block; margin-top: 8px; }
  .home-featured-players { grid-template-columns: repeat(5, 150px); }
  .home-activity-feed { grid-template-columns: 1fr; }
}

/* v3.0A.43.8 visual fit pass */
@media (min-width: 861px) {
  .home-rebuild .hero-content { max-width: 760px; }
  .home-rebuild .hero h1 {
    max-width: 760px;
    font-size: clamp(3.9rem, 5.45vw, 5.85rem);
  }
}


/* v3.0A.43.8.1 — stadium is the homepage background, not a hero card */
body.home-background .world-bg {
  background:
    #0d0c0a url('/gd2-hero.webp') center top / cover no-repeat;
}
body.home-background .world-gradient {
  background:
    linear-gradient(90deg,
      rgba(13,12,10,0.94) 0%,
      rgba(13,12,10,0.82) 25%,
      rgba(13,12,10,0.34) 50%,
      rgba(13,12,10,0.2) 66%,
      rgba(13,12,10,0.6) 100%),
    linear-gradient(180deg,
      rgba(13,12,10,0.08) 0%,
      rgba(13,12,10,0.12) 48%,
      rgba(13,12,10,0.82) 100%),
    radial-gradient(circle at 18% 16%, rgba(76,57,21,0.1), transparent 30rem);
  animation: none;
}
body.home-background .world-grid {
  opacity: .045;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
}
body.home-background .site-header {
  background: linear-gradient(180deg, rgba(13,12,10,0.55), rgba(13,12,10,0.08));
  backdrop-filter: blur(5px);
}
body.home-background .page-shell {
  position: relative;
}
.home-rebuild .home-stadium-hero {
  min-height: clamp(650px, 78vh, 820px);
  margin-top: 0;
  padding: clamp(50px, 6vw, 88px) 0 clamp(42px, 5vw, 70px);
  overflow: visible;
  isolation: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
.home-rebuild .home-stadium-hero::before,
.home-rebuild .home-stadium-hero::after {
  display: none;
}
.home-rebuild .hero-content,
.home-rebuild .hero-arena {
  position: relative;
  z-index: 2;
}
.home-rebuild .hero-card-carousel {
  filter: drop-shadow(0 25px 42px rgba(13,12,10,0.7));
}
body.home-background .home-live-showcase,
body.home-background .home-view > .section-frame,
body.home-background .home-view > section:not(.home-stadium-hero) {
  position: relative;
  z-index: 2;
}
body.home-background .home-live-showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -80px -50vw -140px;
  background: linear-gradient(180deg, transparent, rgba(13,12,10,0.24) 12%, rgba(13,12,10,0.72) 65%, rgba(13,12,10,0.88));
  pointer-events: none;
}
@media (max-width: 860px) {
  body.home-background .world-bg { background-position: 56% top; }
  body.home-background .world-gradient {
    background:
      linear-gradient(180deg, rgba(13,12,10,0.76) 0%, rgba(13,12,10,0.46) 38%, rgba(13,12,10,0.88) 100%),
      linear-gradient(90deg, rgba(13,12,10,0.7), rgba(13,12,10,0.18) 58%, rgba(13,12,10,0.48));
  }
  .home-rebuild .home-stadium-hero {
    padding: 52px 0 38px;
    background: transparent;
  }
}
@media (max-width: 620px) {
  body.home-background .world-bg { background-position: 57% top; }
  .home-rebuild .home-stadium-hero {
    margin-top: 0;
    padding: 40px 0 28px;
  }
}

/* v3.0A.43.8.2 — homepage polish and universal player-card flags */
body.home-background .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
body.home-background .site-header::after {
  left: 0;
  width: 150px;
  background: linear-gradient(90deg, #d4a94f, rgba(212,169,79,.30), transparent);
  box-shadow: 0 0 20px rgba(212,169,79,.55);
}

.twitch-search-logo {
  display: block;
  width: 22px;
  height: 22px;
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 7px rgba(91,231,255,.38));
}

/* Only registered viewers use the gold database accent. */
.hero-stat-number span {
  color: var(--accent-cyan);
}
.hero-stat-number:hover span,
.hero-stat-number:focus-visible span {
  color: #d9d1c2;
  text-shadow: 0 0 14px rgba(212,169,79,0.42);
}
.registered-viewers-stat .hero-stat-number span {
  color: #ffd447;
}
.registered-viewers-stat .hero-stat-number:hover span,
.registered-viewers-stat .hero-stat-number:focus-visible span {
  color: #ffe482;
  text-shadow: 0 0 14px rgba(255,212,71,.48);
}

/* Let more of the stadium show through the two swipeable feature cards. */
.home-rebuild .leader-card-face {
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--accent-hot) 12%, transparent), transparent 14rem),
    linear-gradient(145deg, rgba(23,21,15,0.69), rgba(13,12,10,0.82));
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

/* Featured cards float directly over the stadium rather than inside a panel. */
.home-featured-panel {
  padding: 8px 0 18px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-featured-heading {
  margin: 0 0 12px;
}
.home-featured-heading h2 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(9,7,4,0.88);
}
.home-featured-player {
  animation: homeFeaturedCardFloat 5.8s ease-in-out infinite;
  filter: drop-shadow(0 18px 22px rgba(13,12,10,0.4));
  will-change: transform, translate;
}
.home-featured-player:nth-child(2) { animation-delay: -1.1s; }
.home-featured-player:nth-child(3) { animation-delay: -2.3s; }
.home-featured-player:nth-child(4) { animation-delay: -3.4s; }
.home-featured-player:nth-child(5) { animation-delay: -4.6s; }
.home-featured-player:hover,
.home-featured-player:focus-visible {
  animation-play-state: paused;
  filter: brightness(1.08) drop-shadow(0 24px 30px rgba(13,12,10,0.52));
}
/* The idle float animates `translate`, not `transform`. They are separate
   properties that compose, so the drift keeps running underneath while the
   pointer-tracked tilt owns `transform`. On `transform` the animation would
   have won the cascade outright and the tilt would never have shown at all. */
@keyframes homeFeaturedCardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* The same image-based country flag treatment used by Pre-season. */
.player-country-flag-wrap {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 20px;
  flex: 0 0 26px;
  overflow: hidden;
  border-radius: 3px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255,255,255,.17), 0 2px 7px rgba(0,0,0,.30);
}
.player-country-flag,
.player-country-flag-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.player-country-flag {
  object-fit: cover;
}
.player-country-flag-fallback {
  background: rgba(7,8,24,.82);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
}
.player-country-flag-wrap.has-flag-image .player-country-flag-fallback {
  visibility: hidden !important;
  opacity: 0 !important;
}
.player-country-flag-wrap.has-flag-fallback .player-country-flag-fallback {
  visibility: visible !important;
  opacity: 1 !important;
}
.footballer-card-shell > .footballer-card-identity > .card-country {
  display: flex !important;
  align-items: center !important;
  min-height: 20px;
  overflow: visible !important;
}
.home-featured-footballer-card > .footballer-card-identity > .card-country {
  min-height: 15px;
}
.home-featured-footballer-card .player-country-flag-wrap {
  width: 20px;
  height: 15px;
  flex-basis: 20px;
  border-radius: 2px;
}
.home-featured-footballer-card .player-country-flag-fallback {
  font-size: 11px;
  line-height: 15px;
}
.best-player-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}
.best-player-meta .compact-player-flag {
  width: 24px;
  height: 18px;
  flex-basis: 24px;
}
.best-player-meta .player-country-flag-fallback {
  font-size: 13px;
  line-height: 18px;
}
.recent-player-flag {
  width: 18px;
  height: 14px;
  flex-basis: 18px;
  margin: 0 2px;
  border-radius: 2px;
  vertical-align: -3px;
}
.recent-player-flag .player-country-flag-fallback {
  font-size: 10px;
  line-height: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .home-featured-player { animation: none; }
}


/* THE_GOAT_INVENTORY_CHAT_API_V1 — first-party Twitch chat composer -------------------------- */
.inventory-chat-composer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}
.inventory-chat-composer input {
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 10px;
  color: var(--text);
  background: rgba(13,12,10,0.78);
  font: inherit;
  outline: none;
}
.inventory-chat-composer input:focus {
  border-color: rgba(212,169,79,0.72);
  box-shadow: 0 0 0 3px rgba(212,169,79,0.14);
}
.inventory-chat-composer input:disabled {
  color: rgba(251,247,239,0.45);
  cursor: not-allowed;
}
.inventory-chat-composer button {
  min-width: 72px;
  height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg,#4c3915,#4c3915);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.inventory-chat-composer button:disabled {
  opacity: .42;
  cursor: not-allowed;
}
.inventory-chat-account-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  padding: 7px 2px 0;
  color: rgba(251,247,239,0.58);
  font-size: .63rem;
  line-height: 1.35;
}
.inventory-chat-account-row a {
  flex: 0 0 auto;
  color: #d9d1c2;
  font-weight: 800;
  text-decoration: none;
}
.inventory-chat-account-row a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 420px) {
  .inventory-chat-composer { grid-template-columns: 1fr; }
  .inventory-chat-composer button { width: 100%; }
  .inventory-chat-account-row { align-items: flex-start; }
}


/* THE_GOAT_INVENTORY_CHAT_LOGIN_HOTFIX_V1_1 */
.inventory-chat-account-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(212,169,79,0.58);
  border-radius: 9px;
  background: rgba(76,57,21,0.14);
  white-space: nowrap;
}
.inventory-chat-account-row a:hover {
  background: rgba(76,57,21,0.25);
  text-decoration: none;
}

/* v3.0A.43.8.5 — squad filters, player navigation and card legibility ------- */
/* Nudge the position badge slightly higher and farther toward the right edge. */
.footballer-card-shell .footballer-card-position {
  top: 5.5% !important;
  right: 5.5% !important;
}

/* Keep the coloured potential text while placing it on a darker glass chip so
   portrait details cannot reduce the range's readability. */
.footballer-card-shell > .footballer-card-rating > small {
  background: rgba(4, 6, 16, .82) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .42) !important;
  backdrop-filter: blur(5px);
}

/* The extra scouting controls remain compact and align with existing filters. */
#profileSquadPanel .filters-panel {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#profileSquadPanel .sub-attribute-min {
  max-width: 112px;
}
#profileSquadPanel .sub-attribute-min input {
  font-family: var(--mono);
  font-weight: 800;
  text-align: center;
}
#profileSquadPanel .sub-attribute-select select {
  text-overflow: ellipsis;
}

/* Previous/next controls for the detailed player sheet. */
.player-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 72px;
  padding: 0;
  transform: translateY(-50%);
  color: #fff;
  border: 1px solid rgba(212,169,79,0.28);
  border-radius: 14px;
  background: rgba(13,12,10,0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: 2.35rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.player-modal-previous { left: max(8px, calc(50% - 770px)); }
.player-modal-next { right: max(8px, calc(50% - 770px)); }
.player-modal-nav:hover,
.player-modal-nav:focus-visible {
  border-color: rgba(212,169,79,0.72);
  background: rgba(23,21,15,0.96);
  outline: none;
}
.player-modal-nav:hover { transform: translateY(-50%) scale(1.04); }
.player-modal-nav:disabled {
  opacity: .24;
  cursor: default;
  transform: translateY(-50%);
}

@media (max-width: 1180px) {
  #profileSquadPanel .filters-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #profileSquadPanel .sub-attribute-min { max-width: none; }
}
@media (max-width: 760px) {
  #profileSquadPanel .filters-panel { grid-template-columns: 1fr; }
  #profileSquadPanel .wide-filter { grid-column: auto; }
  .player-modal-nav {
    top: auto;
    bottom: 14px;
    width: 46px;
    height: 46px;
    transform: none;
    border-radius: 50%;
    font-size: 1.8rem;
  }
  .player-modal-previous { left: 18px; }
  .player-modal-next { right: 18px; }
  .player-modal-nav:hover,
  .player-modal-nav:disabled { transform: none; }
}


/* v3.0A.43.8.6 — rating alignment, featured names and immutable homepage image */
/* Every two-digit overall uses tabular lining numerals inside the same measured
   box. This removes visual drift from narrow glyphs such as the 1 in 81. */
.footballer-card-rating > strong,
.squad-player-rating,
.best-card-rating,
.best-card-rating-block > strong,
.recent-rating,
.recent-score > strong {
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  font-kerning: none !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}
.footballer-card-shell > .footballer-card-rating > strong {
  display: inline-grid !important;
  place-items: center !important;
  inline-size: 2.25ch !important;
  min-inline-size: 2.25ch !important;
  margin-inline: auto !important;
}

/* Restore the stronger name hierarchy on Featured Elite Players. */
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name {
  font-size: clamp(.96rem, 1.42vw, 1.30rem) !important;
  line-height: .92 !important;
}
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name.name-long {
  font-size: clamp(.84rem, 1.25vw, 1.12rem) !important;
  line-height: .94 !important;
}
.home-featured-footballer-card > .footballer-card-identity > .footballer-card-name.name-very-long {
  font-size: clamp(.74rem, 1.08vw, .98rem) !important;
  line-height: .96 !important;
}


/* v3.0A.43.8.7 — supplied training-ground image as the Pre-season page background */
body.preseason-background .world-bg {
  background: #0d0c0a url('/preseason-bg-v4387.png') center top / cover no-repeat;
}
body.preseason-background .world-gradient {
  background:
    linear-gradient(90deg,
      rgba(13,12,10,0.94) 0%,
      rgba(13,12,10,0.78) 25%,
      rgba(13,12,10,0.3) 50%,
      rgba(13,12,10,0.24) 69%,
      rgba(13,12,10,0.68) 100%),
    linear-gradient(180deg,
      rgba(13,12,10,0.1) 0%,
      rgba(13,12,10,0.16) 46%,
      rgba(13,12,10,0.86) 100%),
    radial-gradient(circle at 17% 16%, rgba(76,57,21,0.11), transparent 30rem);
  animation: none;
}
body.preseason-background .world-grid {
  opacity: .045;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 78%);
}
body.preseason-background .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
body.preseason-background .site-header::after {
  left: 0;
  width: 150px;
  background: linear-gradient(90deg, #d4a94f, rgba(212,169,79,.30), transparent);
  box-shadow: 0 0 20px rgba(212,169,79,.55);
}
body.preseason-background .page-shell {
  position: relative;
}
body.preseason-background .preseason-view {
  position: relative;
  z-index: 2;
  padding-top: 0;
}
body.preseason-background .preseason-hero {
  min-height: clamp(560px, 68vh, 720px);
  margin-top: 0;
  padding: clamp(52px, 6vw, 88px) 0 clamp(42px, 5vw, 70px);
  overflow: visible;
  isolation: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
}
body.preseason-background .preseason-hero::before {
  display: none;
}
body.preseason-background .preseason-hero-copy,
body.preseason-background .preseason-status-card {
  position: relative;
  z-index: 2;
}
body.preseason-background .preseason-hero-copy {
  max-width: 720px;
  text-shadow: 0 14px 38px rgba(9,7,4,0.72);
}
body.preseason-background .preseason-status-card {
  background: rgba(13,12,10,0.7);
  box-shadow: inset 0 0 36px rgba(212,169,79,0.07), 0 22px 45px rgba(9,7,4,0.36);
}
body.preseason-background .preseason-view > section:not(.preseason-hero) {
  position: relative;
  z-index: 2;
}
body.preseason-background .preseason-rules::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -120px -50vw auto;
  height: 220px;
  background: linear-gradient(180deg, transparent, rgba(13,12,10,0.72) 72%, rgba(13,12,10,0.88));
  pointer-events: none;
}
@media (max-width: 860px) {
  body.preseason-background .world-bg { background-position: 57% top; }
  body.preseason-background .world-gradient {
    background:
      linear-gradient(180deg, rgba(13,12,10,0.72) 0%, rgba(13,12,10,0.45) 38%, rgba(13,12,10,0.9) 100%),
      linear-gradient(90deg, rgba(13,12,10,0.72), rgba(13,12,10,0.18) 58%, rgba(13,12,10,0.52));
  }
  body.preseason-background .preseason-hero {
    min-height: 540px;
    padding: 52px 0 38px;
  }
}
@media (max-width: 620px) {
  body.preseason-background .world-bg { background-position: 57% top; }
  body.preseason-background .preseason-hero {
    min-height: 500px;
    padding: 40px 0 28px;
  }
}


/* v3.0A.43.8.9 — page continuity, faster Pre-season and softened club profile */
/* Move the whole Pre-season introduction to the upper portion of the supplied
   training-ground image. Both columns share the same top alignment. */
body.preseason-background .preseason-hero {
  align-items: start;
  padding-top: clamp(16px, 1.8vw, 28px);
}
body.preseason-background .preseason-hero-copy,
body.preseason-background .preseason-status-card {
  transform: translateY(-10px);
}
body.preseason-background .preseason-rules {
  background:
    linear-gradient(145deg, rgba(23,21,15,0.62), rgba(13,12,10,0.74)),
    rgba(13,12,10,0.42);
}
/* The experimental mist layers were removed entirely. */
body.preseason-background .world-bg::before,
body.preseason-background .world-bg::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

/* Restore the original framed game-loop ticker. */
body.home-background .game-loop-rail {
  border-top: 1px solid rgba(212,169,79,0.13) !important;
  border-bottom: 1px solid rgba(212,169,79,0.13) !important;
  background: rgba(13,12,10,0.55) !important;
  box-shadow: none !important;
}
body.home-background .game-loop-track {
  text-shadow: none;
}

/* Replace the short showcase-only veil with one uninterrupted lower-page fade.
   It starts beneath the hero and continues past the last Home section into the
   footer, preventing a visible horizontal end line while scrolling. */
body.home-background .home-view {
  position: relative;
  isolation: isolate;
}
body.home-background .home-live-showcase::before {
  display: none !important;
}
body.home-background .home-view::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: clamp(560px, 64vh, 700px);
  bottom: -150px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(13,12,10,0.2) 7%,
    rgba(13,12,10,0.62) 22%,
    rgba(13,12,10,0.82) 48%,
    rgba(13,12,10,0.9) 74%,
    rgba(13,12,10,0.94) 100%);
}
body.home-background .home-view > * {
  position: relative;
  z-index: 1;
}
body.home-background footer {
  position: relative;
  z-index: 2;
}

/* Blur only the locker-room photograph. The gradient and interface remain
   sharp, and the oversized image layer prevents blurred edges from showing. */
body.profile-background .world-bg {
  /* This is the first profile surface painted while a section is changing.
     It was the source of the brief navy flash before the section artwork
     class is applied. Keep the section artwork rules below intact. */
  background: #050505;
}
body.profile-background .world-bg::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #050403;
  filter: none;
  transform: none;
  transform-origin: center top;
}
body.profile-background .world-gradient,
body.profile-background .world-grid {
  z-index: 1;
}
body.profile-background .world-gradient {
  background:
    linear-gradient(90deg,
      rgba(13,12,10,0.8) 0%,
      rgba(13,12,10,0.45) 30%,
      rgba(13,12,10,0.2) 53%,
      rgba(13,12,10,0.46) 78%,
      rgba(13,12,10,0.76) 100%),
    linear-gradient(180deg,
      rgba(13,12,10,0.1) 0%,
      rgba(13,12,10,0.22) 42%,
      rgba(13,12,10,0.84) 100%),
    radial-gradient(circle at 50% 16%, rgba(76,57,21,0.1), transparent 31rem);
  animation: none;
}
body.profile-background .world-grid {
  opacity: .035;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.48), transparent 78%);
}
body.profile-background .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
body.profile-background .site-header::after {
  left: 0;
  width: 150px;
  background: linear-gradient(90deg, #d4a94f, rgba(212,169,79,.30), transparent);
  box-shadow: 0 0 20px rgba(212,169,79,.55);
}
body.profile-background .page-shell,
body.profile-background .profile-view {
  position: relative;
  z-index: 2;
}
body.profile-background .profile-header {
  text-shadow: 0 14px 38px rgba(9,7,4,0.75);
}

@media (max-width: 860px) {
  body.preseason-background .preseason-hero {
    padding-top: 8px;
  }
  body.preseason-background .preseason-hero-copy,
  body.preseason-background .preseason-status-card {
    transform: translateY(-6px);
  }
  body.home-background .home-view::before {
    top: 470px;
    bottom: -130px;
  }
  body.profile-background .world-bg::before {
    background-position: 52% top;
    filter: blur(3.5px) brightness(.96);
  }
  body.profile-background .world-gradient {
    background:
      linear-gradient(180deg, rgba(13,12,10,0.66) 0%, rgba(13,12,10,0.4) 38%, rgba(13,12,10,0.9) 100%),
      linear-gradient(90deg, rgba(13,12,10,0.62), rgba(13,12,10,0.14) 58%, rgba(13,12,10,0.54));
  }
}
@media (max-width: 620px) {
  body.preseason-background .preseason-hero {
    padding-top: 2px;
  }
  body.preseason-background .preseason-hero-copy,
  body.preseason-background .preseason-status-card {
    transform: translateY(-2px);
  }
  body.home-background .home-view::before {
    top: 430px;
    bottom: -120px;
  }
  body.profile-background .world-bg::before {
    background-position: 52% top;
  }
}

/* v3.0A.43.8.12 — official logo crop and position correction.
   The official logo asset is tightly cropped, so both placements can use
   true geometric centering without stretching or transparent-canvas drift. */
.brand-mark,
.hero-card-emblem {
  overflow: hidden;
}

.brand-mark .goat-crest-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 75%;
  height: 75%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.hero-card-emblem .goat-crest-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: 112%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

/* v3.0A.43.8.13 — Current G.O.A.T emblem fill polish. */


/* v3.0A.43.8.17 — card consistency, squad paging and club-profile polish */
/* Club Stars uses the same full collectible-card footprint as the Squad grid. */
.club-stars-grid .best-player-showcase {
  grid-template-columns: minmax(240px, 260px) minmax(0, 1fr) !important;
}
.club-stars-grid .best-footballer-card {
  width: min(260px, 100%) !important;
  min-width: 240px !important;
  max-width: 260px !important;
}

/* Make the overall numerals slimmer and taller without moving their top edge.
   The potential range follows the extra visual height and remains just below. */
.footballer-card-shell > .footballer-card-rating > strong {
  transform: scaleX(.84) scaleY(1.10) !important;
  transform-origin: 50% 0 !important;
}
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-10px, 7px) !important;
}

/* Two- and three-digit club levels need clear separation in the condensed display face. */
.progression-level-number {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-kerning: none;
  letter-spacing: .025em !important;
}

/* The Squad watermark now contains the club name and handles long identities. */
.profile-squad-watermark {
  max-width: min(58%, 760px);
  overflow: hidden;
  white-space: nowrap;
  text-align: right;
  text-overflow: ellipsis;
  font-size: clamp(2.7rem, 6.2vw, 6.8rem);
}

/* Four complete five-card rows per page on wide squad layouts. */
#profileSquadPanel .card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* First/last navigation sits alongside the existing previous/next controls. */
#profileSquadPanel .pagination {
  flex-wrap: wrap;
}
#profileSquadPanel .pagination button {
  min-width: 92px;
}

@media (max-width: 1500px) {
  #profileSquadPanel .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .club-stars-grid .best-player-showcase { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important; }
  .club-stars-grid .best-footballer-card { width: min(250px, 100%) !important; min-width: 220px !important; }
  #profileSquadPanel .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  #profileSquadPanel .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .club-stars-grid .best-player-showcase { grid-template-columns: 1fr !important; }
  .club-stars-grid .best-footballer-card { width: min(260px, 78vw) !important; min-width: 0 !important; }
  #profileSquadPanel .card-grid { grid-template-columns: 1fr; }
  .profile-squad-watermark { max-width: 68%; font-size: clamp(2rem, 12vw, 4rem); }
  #profileSquadPanel .pagination button { min-width: 76px; padding-inline: 9px; }
}


/* v3.0A.43.8.18 — 20-character club-name standard */
/* The watermark is guaranteed to display every allowed character. JS assigns
   length classes so 20-character names scale down instead of being ellipsised. */
.profile-squad-watermark {
  max-width: calc(100% - 60px) !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip !important;
  font-size: clamp(2.6rem, 6.0vw, 6.5rem) !important;
  letter-spacing: -.025em;
}
.profile-squad-watermark.club-name-medium {
  font-size: clamp(2.3rem, 5.1vw, 5.6rem) !important;
}
.profile-squad-watermark.club-name-long {
  font-size: clamp(1.9rem, 4.45vw, 4.9rem) !important;
  letter-spacing: -.035em;
}
.profile-squad-watermark.club-name-max {
  font-size: clamp(1.55rem, 3.9vw, 4.3rem) !important;
  letter-spacing: -.045em;
}
@media (max-width: 620px) {
  .profile-squad-watermark { max-width: calc(100% - 32px) !important; }
  .profile-squad-watermark.club-name-medium { font-size: clamp(1.65rem, 8.3vw, 3.2rem) !important; }
  .profile-squad-watermark.club-name-long { font-size: clamp(1.42rem, 7.1vw, 2.8rem) !important; }
  .profile-squad-watermark.club-name-max { font-size: clamp(1.16rem, 5.8vw, 2.35rem) !important; }
}


/* v3.0A.43.8.19 — OVR restoration, watermark descenders and detail labels */
/* Restore the proven v3.0A.43.8.17 single-text OVR rendering. Per-digit cells
   caused the numeral to collapse into a tiny badge on collectible cards. */
.footballer-card-shell > .footballer-card-rating > strong {
  display: block !important;
  inline-size: auto !important;
  min-inline-size: 0 !important;
  transform: scaleX(.84) scaleY(1.10) !important;
  transform-origin: 50% 0 !important;
  font-variant-numeric: proportional-nums lining-nums !important;
  font-feature-settings: "pnum" 1, "lnum" 1 !important;
  font-kerning: normal !important;
}
.footballer-card-shell > .footballer-card-rating > small {
  transform: translate(-10px, 7px) !important;
}

/* The display font has deep descenders. Give g, j and y enough line-box room
   while preserving horizontal clipping for the 20-character watermark. */
.profile-squad-watermark {
  line-height: 1.08 !important;
  padding-bottom: .16em;
  box-sizing: content-box;
}


/* v3.0A.43.8.20 — aligned OVR typography and attribute-detail polish */
/* Keep the rating as one stable text node, but use tabular numeral widths so
   81, 79 and every other two-digit OVR begin at exactly the same inset. The
   transform is anchored to the left edge to prevent the narrow glyph “1”
   from shifting the whole number inward. */
.footballer-card-shell > .footballer-card-rating {
  left: 5.35% !important;
  width: 82px !important;
  min-width: 82px !important;
}
.footballer-card-shell > .footballer-card-rating > strong {
  display: block !important;
  width: 82px !important;
  min-width: 82px !important;
  box-sizing: border-box !important;
  text-align: left !important;
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
  font-kerning: none !important;
  letter-spacing: -.025em !important;
  transform: scaleX(.84) scaleY(1.10) !important;
  transform-origin: 0 0 !important;
}


/* v3.0A.44.0 world preview — official-site integration */
body.goat-world-background .world-gradient {
  background:
    radial-gradient(circle at 52% 14%, rgba(76,57,21,0.12), transparent 25rem),
    radial-gradient(circle at 75% 35%, rgba(76,57,21,0.14), transparent 30rem),
    linear-gradient(128deg, rgba(13,12,10,0.08), rgba(13,12,10,0.6));
}
.goat-world-view { padding-bottom: 36px; }
.goat-world-heading {
  display:flex;align-items:flex-end;justify-content:space-between;gap:28px;
  padding:28px 0 12px;
}
.goat-world-heading h1 { margin:0;font-family:var(--display);font-size:clamp(3.6rem,8vw,7rem);line-height:.8;letter-spacing:-.035em; }
.goat-world-heading > div:first-child > p:last-child { max-width:720px;margin:16px 0 0;color:var(--muted);line-height:1.55; }
.goat-world-summary { display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end; }
.goat-world-summary span { display:grid;gap:3px;min-width:145px;padding:11px 14px;border:1px solid var(--line);border-radius:13px;background:rgba(13,12,10,0.58);color:var(--muted);font-size:.64rem;font-weight:900;letter-spacing:.12em; }
.goat-world-summary strong { color:var(--text);font-family:var(--display);font-size:1.05rem;letter-spacing:.06em; }
.goat-world-map-section { position:relative; }
.goat-world-map { position:relative;width:min(1510px,100%);aspect-ratio:1672/941;margin:0 auto; }
.goat-world-map > img { display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 32px 42px rgba(13,12,10,0.48));user-select:none; }
.goat-world-building-overlay,.goat-world-manager-layer { position:absolute;inset:0;width:100%;height:100%; }
.goat-world-building-glow { opacity:0;pointer-events:none;transition:opacity .16s ease;filter:brightness(1.55) saturate(1.35) drop-shadow(0 0 .6px rgba(255,255,255,.95)) drop-shadow(0 0 1.7px rgba(91,231,255,.95)) drop-shadow(0 0 3.2px rgba(145,162,255,.85)); }
.goat-world-building-glow.active { opacity:.92; }
.goat-world-building-hit { fill:rgba(255,255,255,.001);stroke:transparent;pointer-events:all;cursor:pointer;outline:none; }
.goat-world-manager-layer { pointer-events:none; }
.goat-world-manager { position:absolute;transform:translate(-50%,-100%);display:grid;justify-items:center;gap:1px;padding:0;border:0;background:transparent;color:var(--text);pointer-events:auto;transition:left .35s ease,top .35s ease; }
.goat-world-manager img { display:block;width:31px;height:auto;filter:drop-shadow(0 7px 5px rgba(0,0,0,.5)); }
/* User tag over the manager sprite: black/gold, not the old cyan pill. */
.goat-world-manager span { padding:3px 7px;border:1px solid rgba(212,169,79,.4);border-radius:999px;background:rgba(8,7,6,.82);color:#f0d79b;font-size:.57rem;font-weight:900;letter-spacing:.06em;box-shadow:0 4px 10px rgba(0,0,0,.4); }
/* SELECT ACTION popup: black/espresso with a gold hairline, replacing the
   indigo/purple glass panel. */
.goat-world-action-menu { position:absolute;z-index:12;width:290px;padding:17px;border:1px solid rgba(212,169,79,.32);border-radius:19px;background:linear-gradient(160deg,rgba(23,21,15,.97),rgba(8,7,6,.98));backdrop-filter:blur(18px);box-shadow:0 24px 50px rgba(0,0,0,.4); }
.goat-world-action-menu h2 { margin:0;font-family:var(--display);font-size:1.65rem;letter-spacing:.02em;color:#fbf7ef; }
.goat-world-action-menu > p:not(.eyebrow) { margin:7px 0 14px;color:#d9d1c2;font-size:.79rem;line-height:1.45; }
.goat-world-action-close { position:absolute;right:10px;top:10px;width:30px;height:30px;border:1px solid rgba(212,169,79,.24);border-radius:50%;background:rgba(255,255,255,.04);color:#d9d1c2; }
.goat-world-action-close:hover,.goat-world-action-close:focus-visible { border-color:rgba(212,169,79,.5);color:#fbf7ef;outline:none; }
.goat-world-action-buttons { display:grid;grid-template-columns:1fr 1fr;gap:9px; }
.goat-world-action-buttons button { min-height:42px; }
.goat-world-instance-picker { display:flex;gap:6px; }
.goat-world-instance-picker button {
  min-height:30px;padding:5px 10px;border:1px solid var(--line);
  border-radius:999px;background:rgba(255,255,255,.04);color:var(--muted);
  font:inherit;font-size:.68rem;
}
.goat-world-instance-picker button.active {
  border-color:var(--accent);background:rgba(197,157,70,.14);color:var(--text);
}
.goat-world-action-availability { color:var(--accent) !important;font-weight:700; }
.goat-world-rename-pitch { margin-top:8px; }
.goat-world-rename-pitch form { display:flex;gap:7px;align-items:center;flex-wrap:wrap; }
.goat-world-rename-pitch input {
  width:min(270px,100%);min-height:38px;border:1px solid var(--line);
  border-radius:10px;background:rgba(255,255,255,.05);color:var(--text);padding:7px 10px;
}
.goat-world-season-usage {
  margin-top:12px;padding-top:10px;border-top:1px solid var(--line);
}
.goat-world-season-usage h5 { margin:0 0 7px;font-size:.68rem;letter-spacing:.09em;color:var(--muted); }
.goat-world-season-usage p { margin:4px 0 !important;font-size:.7rem !important; }
.goat-world-help-row { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:-10px;padding:10px 16px;border-top:1px solid rgba(212,169,79,0.08);color:var(--muted);font-size:.76rem; }
.goat-world-help-row span { display:flex;align-items:center;gap:8px; }
.goat-world-help-row i { width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 12px var(--success); }
.goat-world-modal-shell { position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:24px; }
.goat-world-modal-backdrop { position:absolute;inset:0;border:0;background:rgba(5,5,4,.8);backdrop-filter:blur(11px); }
.goat-world-interior-modal,.goat-world-club-profile-modal { position:relative;z-index:1;width:min(1420px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:22px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(180deg,rgba(23,21,15,0.98),rgba(13,12,10,0.98));box-shadow:var(--shadow); }
.goat-world-club-profile-modal { width:min(1100px,100%); }
.goat-world-modal-header { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px; }
.goat-world-modal-header h2 { margin:0;font-family:var(--display);font-size:2.25rem; }
.goat-world-modal-header p:last-child { margin:7px 0 0;color:var(--muted); }
.goat-world-modal-close { flex:0 0 auto;width:42px;height:42px;border:1px solid rgba(212,169,79,.24);border-radius:50%;background:rgba(255,255,255,.04);color:#d9d1c2;font-size:1.5rem;transition:border-color .2s ease,color .2s ease; }
.goat-world-modal-close:hover,.goat-world-modal-close:focus-visible { border-color:rgba(212,169,79,.5);color:#fbf7ef;outline:none; }
.goat-world-interior-layout { display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start; }
.goat-world-interior-stage-wrap,.goat-world-squad-picker { border:1px solid rgba(212,169,79,0.1);border-radius:22px;background:rgba(255,255,255,.025); }
.goat-world-interior-stage-wrap { padding:14px; }
.goat-world-interior-stage { position:relative;width:100%; }
.goat-world-interior-stage > img { display:block;width:100%;height:auto;border-radius:16px; }
.goat-world-interior-slots { position:absolute;inset:0; }
.goat-world-plus-slot,.goat-world-placed-player { position:absolute;transform:translate(-50%,-50%); }
.goat-world-plus-slot { display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid rgba(212,169,79,.55);border-radius:50%;background:rgba(10,9,8,.84);color:#fff;font-size:1rem;font-weight:900;box-shadow:0 6px 13px rgba(0,0,0,.3); }
.goat-world-plus-slot:hover { border-color:#d4a94f;background:rgba(212,169,79,.22);box-shadow:0 0 16px rgba(212,169,79,.45); }
.goat-world-placed-player { display:grid;justify-items:center;padding:0;border:0;background:transparent;color:var(--text); }
.goat-world-placed-player img { display:block;width:43px;height:auto;transform:rotate(var(--player-rotation)) scale(var(--player-scale));transform-origin:center bottom;filter:drop-shadow(0 7px 5px rgba(0,0,0,.45)); }
.goat-world-placed-player span { margin-top:3px;padding:2px 5px;border-radius:999px;background:rgba(13,12,10,0.7);font-size:.5rem;white-space:nowrap; }
.goat-world-squad-picker { position:sticky;top:0;padding:17px; }
.goat-world-squad-picker h3 { margin:0;font-family:var(--display);font-size:1.55rem; }
.goat-world-picker-copy { margin:6px 0 12px;color:var(--muted);font-size:.75rem;line-height:1.45; }
.goat-world-picker-list { display:grid;gap:7px;max-height:62vh;overflow:auto;padding-right:3px; }
.goat-world-picker-player { display:grid;grid-template-columns:34px 1fr;grid-template-areas:"image name" "image meta";column-gap:10px;width:100%;padding:9px;text-align:left;border:1px solid rgba(212,169,79,.14);border-radius:13px;background:rgba(255,255,255,.02);color:#fbf7ef; }
.goat-world-picker-player img { grid-area:image;width:31px;height:42px;object-fit:contain;align-self:center; }
.goat-world-picker-player span { grid-area:name;align-self:end;font-weight:800;font-size:.78rem; }
.goat-world-picker-player small { grid-area:meta;color:#d9d1c2;font-size:.65rem;text-transform:capitalize; }
.goat-world-picker-player:hover,.goat-world-picker-player.active { border-color:rgba(212,169,79,.45);background:rgba(212,169,79,.08); }
.goat-world-picker-player:disabled { opacity:.32;cursor:not-allowed; }
.goat-world-remove-player { display:block;color:var(--danger); }
.goat-world-profile-banner { display:flex;align-items:center;gap:18px;margin-bottom:16px;padding:18px;border:1px solid rgba(212,169,79,0.1);border-radius:20px;background:linear-gradient(135deg,rgba(76,57,21,0.12),rgba(76,57,21,0.08)); }
.goat-world-profile-banner img { width:68px;height:68px;object-fit:contain; }
.goat-world-profile-banner span,.goat-world-profile-banner strong,.goat-world-profile-banner small { display:block; }
.goat-world-profile-banner span { color:var(--accent-cyan);font-size:.64rem;font-weight:900;letter-spacing:.14em; }
.goat-world-profile-banner strong { font-family:var(--display);font-size:2rem; }
.goat-world-profile-banner small { color:var(--muted); }
.goat-world-building-levels { display:grid;grid-template-columns:repeat(3,1fr);gap:11px; }
.goat-world-building-levels article { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border:1px solid rgba(212,169,79,0.1);border-radius:17px;background:rgba(255,255,255,.025); }
.goat-world-building-levels p,.goat-world-building-levels strong,.goat-world-building-levels small { display:block;margin:0; }
.goat-world-building-levels p { color:var(--muted);font-size:.68rem; }
.goat-world-building-levels strong { font-family:var(--display);font-size:1.35rem; }
.goat-world-building-levels small { color:var(--faint);font-size:.65rem; }
.goat-world-building-levels button { min-width:96px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:rgba(76,57,21,0.1);color:var(--text);font-weight:800; }
.goat-world-building-levels button:disabled { opacity:.3;cursor:not-allowed; }
.goat-world-tier-rule { margin:15px 0 0;padding:12px 14px;border:1px solid rgba(255,197,101,.15);border-radius:13px;background:rgba(255,197,101,.045);color:var(--muted);font-size:.76rem; }
@media(max-width:980px){
  .goat-world-heading{align-items:flex-start;flex-direction:column}.goat-world-summary{justify-content:flex-start}.goat-world-interior-layout{grid-template-columns:1fr}.goat-world-squad-picker{position:relative}.goat-world-building-levels{grid-template-columns:1fr 1fr}.goat-world-help-row{align-items:flex-start;flex-direction:column}.goat-world-action-menu{width:260px}
}
@media(max-width:640px){
  .goat-world-heading h1{font-size:4rem}.goat-world-building-levels{grid-template-columns:1fr}.goat-world-modal-shell{padding:8px}.goat-world-interior-modal,.goat-world-club-profile-modal{padding:15px;border-radius:20px}.goat-world-manager img{width:25px}.goat-world-plus-slot{width:21px;height:21px}.goat-world-placed-player img{width:35px}
}

/* v3.0A.44.0 world preview v16.2 — official page background + inline facilities */
body.goat-world-background .world-bg {
  background: #0a0908;
  overflow: hidden;
}
body.goat-world-background .world-bg::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18px;
  background: #0a0908;
  transform-origin: center center;
}
body.goat-world-background .world-gradient,
body.goat-world-background .world-grid {
  z-index: 1;
}
body.goat-world-background .world-gradient {
  background:
    linear-gradient(90deg, rgba(13,12,10,0.8) 0%, rgba(13,12,10,0.34) 28%, rgba(13,12,10,0.18) 52%, rgba(13,12,10,0.4) 78%, rgba(13,12,10,0.78) 100%),
    linear-gradient(180deg, rgba(13,12,10,0.18) 0%, rgba(13,12,10,0.3) 48%, rgba(13,12,10,0.88) 100%),
    radial-gradient(circle at 52% 28%, rgba(76,57,21,0.1), transparent 34rem);
  animation: none;
}
body.goat-world-background .world-grid {
  opacity: .025;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.36), transparent 78%);
}
body.goat-world-background .site-header {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom-color: transparent !important;
}
body.goat-world-background .site-header::after {
  left: 0;
  width: 150px;
  background: linear-gradient(90deg, #d4a94f, rgba(212,169,79,.30), transparent);
  box-shadow: 0 0 20px rgba(212,169,79,.55);
}
body.goat-world-background .page-shell,
body.goat-world-background .goat-world-view {
  position: relative;
  z-index: 2;
}
.header-account { position: relative; }
.goat-world-header-summary {
  display: none;
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 12px);
  gap: 8px;
  min-width: max-content;
}
body.goat-world-background .goat-world-header-summary { display: flex; }
/* Canonical redesign: these three info windows (and the WORLD button below,
   .goat-world-status-card) shared their cool navy/blue-white glass look with
   the rest of the legacy UI. Restyled as smaller modules from the same
   family as the top .site-menu bar — same warm dark-glass gradient, gold
   hairline, cream text — rather than plain gold-bordered rectangles. */
.goat-world-header-summary span {
  display: grid;
  gap: 2px;
  min-width: 132px;
  padding: 9px 12px;
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 55%,rgba(212,169,79,.06)),
    rgba(8,7,6,.6);
  color: rgba(217,209,194,.72);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 12px 30px rgba(1,1,1,.32), inset 0 1px 0 rgba(255,255,255,.08);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .11em;
}
.goat-world-header-summary strong {
  color: #fbf7ef;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: .96rem;
  letter-spacing: .02em;
}
.goat-world-view { padding: 54px 0 42px; }
.goat-world-map-section { position: relative; }
.goat-world-map {
  position: relative;
  width: min(1540px, 100%);
  aspect-ratio: 1672 / 941;
  margin: 0 auto;
}
.goat-world-map > img {
  filter: drop-shadow(0 34px 46px rgba(13,12,10,0.56));
}
.goat-world-building-glow {
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, filter .15s ease;
  filter:
    brightness(1.72)
    saturate(1.48)
    drop-shadow(0 0 .8px rgba(255,255,255,.98))
    drop-shadow(0 0 2.4px rgba(91,231,255,.98))
    drop-shadow(0 0 5px rgba(145,162,255,.92));
}
.goat-world-building-glow.active { opacity: 1; }
.goat-world-building-hit {
  fill: rgba(255,255,255,.001);
  stroke: transparent;
  pointer-events: all;
  cursor: pointer;
  outline: none;
}
.goat-world-inline-interior {
  min-height: calc(100vh - 150px);
  padding-top: 8px;
}
.goat-world-inline-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 22px;
  margin-bottom: 18px;
}
.goat-world-inline-header .back-button {
  margin-top: 3px;
  white-space: nowrap;
}
.goat-world-inline-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: .92;
  letter-spacing: -.025em;
}
.goat-world-inline-header p:last-child {
  max-width: 760px;
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.5;
}
.goat-world-inline-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
}
.goat-world-inline-stage-wrap {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.goat-world-inline-stage-wrap .goat-world-interior-stage > img {
  border-radius: 0;
  filter: drop-shadow(0 28px 38px rgba(13,12,10,0.48));
}
.goat-world-inline-picker {
  top: 28px;
  border-color: rgba(212,169,79,0.12);
  background: rgba(13,12,10,0.66);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 18px 48px rgba(9,7,4,0.28);
}
@media (max-width: 980px) {
  .goat-world-header-summary { top: calc(100% + 8px); }
  .goat-world-view { padding-top: 70px; }
  .goat-world-inline-layout { grid-template-columns: 1fr; }
  .goat-world-inline-picker { position: relative; top: auto; }
}
@media (max-width: 760px) {
  .goat-world-header-summary { display: none !important; }
  .goat-world-view { padding-top: 18px; }
  .goat-world-inline-header { grid-template-columns: 1fr; gap: 12px; }
  .goat-world-choice-grid { grid-template-columns: 1fr; }
  .goat-world-choice-card { padding: 19px; border-radius: 19px; }
  .goat-world-choice-actions { justify-content: stretch; }
  .goat-world-choice-actions button { width: 100% !important; }
}


/* v3.0A.44.0 world preview v16.3 — background, status placement and contextual squad stats */
body.goat-world-background .world-bg::before {
  inset: -8px;
  background-image: url('/world-background-v164.png');
  filter: blur(2px) brightness(.55) saturate(.96);
  transform: scale(1.012);
}
body.goat-world-background .world-gradient {
  background:
    linear-gradient(90deg, rgba(5,5,4,.72) 0%, rgba(5,5,4,.28) 28%, rgba(5,5,4,.14) 52%, rgba(5,5,4,.32) 78%, rgba(5,5,4,.72) 100%),
    linear-gradient(180deg, rgba(5,5,4,.12) 0%, rgba(5,5,4,.24) 48%, rgba(5,5,4,.84) 100%),
    radial-gradient(circle at 52% 28%, rgba(212,169,79,.09), transparent 34rem);
}
.goat-world-view {
  position: relative;
  padding-top: 82px;
}
.goat-world-header-summary {
  display: none;
  position: absolute;
  z-index: 30;
  left: 0;
  right: auto;
  top: 18px;
  gap: 8px;
  min-width: max-content;
}
body.goat-world-background .goat-world-header-summary { display: flex; }
.goat-world-action-buttons .secondary-button,
.goat-world-action-buttons .primary-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}
.goat-world-status-card {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 8px;
  min-width: 132px;
  padding: 9px 12px;
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.01) 55%,rgba(212,169,79,.06)),
    rgba(8,7,6,.6);
  color: rgba(217,209,194,.72);
  text-align: left;
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: 0 12px 30px rgba(1,1,1,.32), inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.goat-world-header-summary .goat-world-status-card > span {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: .58rem;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.goat-world-status-card strong { grid-row: 2; font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 700; font-size: .96rem; color: #fbf7ef; }
.goat-world-status-card small { grid-row: 2; color: #d9d1c2; font-size: .62rem; font-weight: 700; }
.goat-world-status-card:hover,.goat-world-status-card:focus-visible { border-color: rgba(212,169,79,.5); box-shadow: 0 12px 30px rgba(1,1,1,.32), inset 0 1px 0 rgba(255,255,255,.08), 0 0 16px rgba(212,169,79,.18); outline: none; }
.goat-world-view.is-interior .goat-world-header-summary { display: none !important; }
.goat-world-queue-status { color: #e5c377 !important; font-weight: 700; }

/* World/Facilities shared-class scoping. .eyebrow, .secondary-button and
   .back-button are global classes reused site-wide (settings, mail, other
   modals, leaderboard/directory back links, ...); a site-wide recolour of
   any of them is a separate, larger migration (see DESIGN.md's own phased
   roadmap) that touches routes this task never asked for or checked. Scoping
   to body.goat-world-background gives World and every facility interior
   (which render inside the same #worldView) the black/gold treatment —
   PLAYER DETAILS/YOUR SQUAD/SELECT ACTION eyebrows, the ENTER/FOCUS/Cancel/
   Confirm session/repeat-session/Edit name buttons, and "← Back to world" —
   without touching any other page.

   Buttons specifically: .secondary-button/.primary-button's own site-wide
   definition is a Barlow-Condensed, chamfered-corner shape (clip-path
   polygon) with a lavender gradient — a different button *family* from the
   homepage, not just a different colour. Recolouring it in place last pass
   left the chamfer and font behind, which is why it still read as visually
   foreign. This instead reproduces the homepage's actual button spec
   (#homeView.gd-home .gd-btn / .gd-btn-primary / .gd-btn-secondary, see
   above in this file, straight from DESIGN.md's Buttons section) so every
   World/Facilities button is the same pill/hairline family, just addressed
   through the class names this feature already uses. */
body.goat-world-background .eyebrow { color: #e5c377; }
body.goat-world-background .secondary-button,
body.goat-world-background .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  clip-path: none;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
body.goat-world-background .secondary-button {
  font-weight: 600;
  color: #f0d79b;
  background: rgba(212,169,79,.06);
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 6px;
}
body.goat-world-background .secondary-button:hover,
body.goat-world-background .secondary-button:focus-visible {
  border-color: rgba(212,169,79,.5);
  box-shadow: 0 0 12px rgba(212,169,79,.28);
  outline: none;
}
body.goat-world-background .goat-world-action-buttons .secondary-button::before,
body.goat-world-background .goat-world-action-buttons .primary-button::before {
  content: none;
  display: none;
}
body.goat-world-background .primary-button {
  font-weight: 700;
  color: #1a1207;
  background: linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.45);
}
body.goat-world-background .primary-button:hover,
body.goat-world-background .primary-button:focus-visible {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 26px rgba(212,169,79,.35);
  outline: none;
}
body.goat-world-background .secondary-button:active,
body.goat-world-background .primary-button:active { transform: scale(.985); }
body.goat-world-background .back-button:hover { color: #e5c377; }
.goat-world-rename-pitch input { border-color: rgba(212,169,79,.18) !important; background: rgba(255,255,255,.04) !important; }
.goat-world-season-usage { border-top-color: rgba(212,169,79,.16) !important; }
.goat-world-choice-card {
  position: relative;
  z-index: 1;
  width: min(560px,100%);
  padding: 24px;
  border: 1px solid rgba(212,169,79,.28);
  border-radius: 24px;
  background: linear-gradient(180deg,rgba(23,21,15,.99),rgba(8,7,6,.99));
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.goat-world-choice-card > .goat-world-modal-close { position: absolute; top: 16px; right: 16px; }
.goat-world-choice-card h2 { margin: 3px 50px 8px 0; font-family: var(--display); font-size: 2rem; color: #fbf7ef; }
.goat-world-choice-card > p:not(.eyebrow) { margin: 0 0 18px; color: #d9d1c2; line-height: 1.5; }
.goat-world-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.goat-world-choice-option {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(212,169,79,.16);
  border-radius: 15px;
  background: rgba(255,255,255,.03);
  color: #fbf7ef;
  text-align: left;
}
.goat-world-choice-option.is-current { border-color: #d4a94f; background: rgba(212,169,79,.1); }
.goat-world-choice-option span { color: #d9d1c2; font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
.goat-world-choice-option strong { font-family: var(--display); font-size: 1.25rem; }
.goat-world-choice-option small { color: #d9d1c2; }
.goat-world-choice-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; flex-wrap: wrap; }
/* Compact variant for buttons living inside the World dialogs' tight footer
   row — same pill/hairline family as body.goat-world-background above
   (which still supplies colour/border/font/radius here), just shorter. */
.goat-world-choice-actions button,.world-compact-action {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 20px !important;
  flex: 0 0 auto;
}
.goat-world-sub-attribute-toggle {
  width: 100%;
  margin: 8px 0 6px;
  padding: 8px 11px;
  border: 1px solid rgba(212,169,79,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: #d9d1c2;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.goat-world-sub-attribute-toggle:hover,
.goat-world-sub-attribute-toggle:focus-visible {
  border-color: #d4a94f;
  color: #fbf7ef;
}
.danger-button { color: var(--danger) !important; }
.goat-world-rename-pitch form .world-compact-action { font-size: .72rem; }
.goat-league-calendar {
  width:min(1180px,100%);
  margin:20px auto 0;
  padding:22px;
  border:1px solid rgba(212,169,79,0.13);
  border-radius:24px;
  background:linear-gradient(145deg,rgba(13,12,10,0.95),rgba(13,12,10,0.88));
  box-shadow:0 24px 60px rgba(9,7,4,0.32);
}
.club-calendar-section .goat-league-calendar { width:100%;margin:16px 0 0; }
.goat-calendar-season-header { display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid rgba(212,169,79,0.1); }
.goat-calendar-season-copy { min-width:0; }
.goat-calendar-title-row { display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:2px; }
.goat-calendar-title-row h2 { margin:0;font-family:var(--display);font-size:clamp(1.65rem,3vw,2.35rem);line-height:1; }
.goat-calendar-season-header small { display:block;margin-top:8px;color:var(--muted);font-size:.68rem; }
.goat-calendar-status-pill { padding:7px 10px;border:1px solid rgba(212,169,79,0.25);border-radius:999px;background:rgba(76,57,21,0.08);color:var(--accent-cyan);font-size:.62rem;letter-spacing:.08em;white-space:nowrap; }
.goat-calendar-season-nav { display:flex;gap:8px;flex:0 0 auto; }
.goat-calendar-season-nav button { padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.035);color:var(--text);font-size:.64rem;font-weight:900; }
.goat-calendar-season-nav button:hover:not(:disabled) { border-color:rgba(212,169,79,0.45);background:rgba(76,57,21,0.07); }
.goat-calendar-season-nav button:disabled { opacity:.3;cursor:not-allowed; }

.goat-calendar-spotlight { display:grid;grid-template-columns:minmax(190px,.75fr) minmax(330px,1.5fr) minmax(190px,.75fr);gap:10px;margin-top:16px; }
.goat-calendar-spotlight article { min-width:0;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025); }
.goat-calendar-side-card { display:grid;align-content:center;gap:6px;padding:15px; }
.goat-calendar-side-card > span,.goat-calendar-side-card > small { color:var(--muted);font-size:.58rem;letter-spacing:.08em; }
.goat-calendar-side-card > strong { overflow:hidden;font-family:var(--display);font-size:.9rem;line-height:1.25;text-overflow:ellipsis; }
.goat-calendar-next-card { position:relative;overflow:hidden;display:grid;gap:8px;padding:18px 20px;border-color:rgba(212,169,79,0.28)!important;background:linear-gradient(135deg,rgba(76,57,21,0.12),rgba(76,57,21,0.09))!important; }
.goat-calendar-next-card::after { content:"";position:absolute;right:-45px;bottom:-70px;width:180px;height:180px;border-radius:50%;background:rgba(76,57,21,0.07); }
.goat-calendar-next-card > div { position:relative;z-index:1;display:flex;justify-content:space-between;gap:12px; }
.goat-calendar-next-card span,.goat-calendar-next-card b,.goat-calendar-next-card small { font-size:.6rem;letter-spacing:.08em; }
.goat-calendar-next-card span,.goat-calendar-next-card small { color:var(--muted); }
.goat-calendar-next-card b { color:var(--accent-cyan); }
.goat-calendar-next-card > strong { position:relative;z-index:1;font-family:var(--display);font-size:clamp(1.15rem,2vw,1.55rem);line-height:1.2; }
.goat-calendar-next-card > small { position:relative;z-index:1; }

.goat-calendar-track-shell,.goat-calendar-milestone-shell,.goat-calendar-schedule-panel,.goat-calendar-date-detail { margin-top:14px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.018); }
.goat-calendar-track-shell,.goat-calendar-milestone-shell { padding:15px; }
.goat-calendar-track-shell > header,.goat-calendar-milestone-shell > header,.goat-calendar-list-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:12px; }
.goat-calendar-track-shell h3,.goat-calendar-milestone-shell h3,.goat-calendar-list-heading h3 { margin:1px 0 0;font-family:var(--display);font-size:1rem; }
.goat-calendar-track-shell header > small,.goat-calendar-milestone-shell header > small,.goat-calendar-list-heading > small { color:var(--muted);font-size:.6rem;text-align:right; }
.goat-calendar-list-toggle { padding:8px 10px;border:1px solid rgba(212,169,79,0.24);border-radius:9px;background:rgba(76,57,21,0.07);color:var(--accent-cyan);font-size:.56rem;font-weight:900;letter-spacing:.04em;white-space:nowrap; }
.goat-calendar-list-toggle:hover { border-color:rgba(212,169,79,0.55);background:rgba(76,57,21,0.11); }
.goat-calendar-timeline { display:grid;gap:9px; }
.goat-calendar-matchday-row { display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px; }
.goat-calendar-matchday-row button { display:grid;place-items:center;gap:2px;min-width:0;min-height:52px;padding:7px 3px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.025);color:var(--text); }
.goat-calendar-matchday-row button b { font-family:var(--display);font-size:.83rem; }
.goat-calendar-matchday-row button span { color:var(--muted);font-size:.52rem;white-space:nowrap; }
.goat-calendar-matchday-row button.is-completed { border-color:rgba(128,221,166,.2);background:rgba(128,221,166,.05); }
.goat-calendar-matchday-row button.is-completed b { color:#80dda6; }
.goat-calendar-matchday-row button.is-next { border-color:rgba(212,169,79,0.7);background:rgba(76,57,21,0.11);box-shadow:0 0 0 2px rgba(212,169,79,0.07); }
.goat-calendar-matchday-row button.is-next b { color:var(--accent-cyan); }
.goat-calendar-matchday-row button:hover,.goat-calendar-matchday-row button.is-selected { border-color:rgba(212,169,79,0.58);transform:translateY(-1px); }
.goat-calendar-window-break { display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px dashed rgba(212,169,79,0.38);border-radius:11px;background:rgba(76,57,21,0.07);color:var(--text);text-align:left; }
.goat-calendar-window-break span,.goat-calendar-window-break small { color:var(--muted);font-size:.56rem;letter-spacing:.07em; }
.goat-calendar-window-break strong { font-size:.68rem; }
.goat-calendar-window-break:hover,.goat-calendar-window-break.is-selected { border-color:rgba(212,169,79,0.75);background:rgba(76,57,21,0.12); }

.goat-calendar-milestones { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px; }
.goat-calendar-milestones button { display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025);color:var(--text);text-align:left; }
.goat-calendar-milestones button span { overflow:hidden;color:var(--muted);font-size:.53rem;letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap; }
.goat-calendar-milestones button strong { flex:0 0 auto;font-size:.62rem; }
.goat-calendar-milestones button.is-registration { border-left:3px solid rgba(212,169,79,0.8); }
.goat-calendar-milestones button.is-start { border-left:3px solid rgba(212,169,79,0.8); }
.goat-calendar-milestones button.is-finish { border-left:3px solid rgba(128,221,166,.8); }
.goat-calendar-milestones button.is-offseason { border-left:3px solid rgba(212,169,79,0.38); }
.goat-calendar-milestones button:hover,.goat-calendar-milestones button.is-selected { border-color:rgba(212,169,79,0.5);background:rgba(76,57,21,0.07); }

.goat-calendar-layout { display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:12px;align-items:start; }
.goat-calendar-schedule-panel { padding:15px; }
.goat-league-schedule { display:grid;gap:6px; }
.goat-calendar-fixture-row { display:grid;grid-template-columns:48px 76px 58px minmax(0,1fr) 72px;align-items:center;gap:10px;width:100%;padding:9px 10px;border:1px solid transparent;border-radius:12px;background:rgba(255,255,255,.025);color:var(--text);text-align:left; }
.goat-calendar-fixture-row:hover,.goat-calendar-fixture-row.is-selected { border-color:rgba(212,169,79,0.42);background:rgba(76,57,21,0.06); }
.goat-calendar-fixture-row.is-next { border-color:rgba(212,169,79,0.25);background:linear-gradient(90deg,rgba(76,57,21,0.1),rgba(76,57,21,0.025)); }
.goat-calendar-fixture-row.is-completed { opacity:.72; }
.goat-calendar-md-badge { display:grid;place-items:center;min-height:40px;border-radius:9px;background:rgba(255,255,255,.045); }
.goat-calendar-md-badge small { color:var(--muted);font-size:.48rem;letter-spacing:.08em; }
.goat-calendar-md-badge b { font-family:var(--display);font-size:.83rem; }
.goat-calendar-fixture-date { display:grid;gap:2px; }
.goat-calendar-fixture-date strong { font-size:.68rem; }
.goat-calendar-fixture-date small,.goat-calendar-opponent small { color:var(--muted);font-size:.54rem; }
.goat-calendar-side-pill { display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:50px;padding:5px 7px;border-radius:999px;font-size:.52rem;font-weight:950;letter-spacing:.07em; }
.goat-calendar-side-pill.is-home { background:rgba(76,57,21,0.1);color:var(--accent-cyan); }
.goat-calendar-side-pill.is-away { background:rgba(76,57,21,0.12);color:#d9d1c2; }
.goat-calendar-opponent { display:flex;align-items:baseline;gap:7px;min-width:0; }
.goat-calendar-opponent strong { overflow:hidden;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap; }
.goat-calendar-row-status { justify-self:end;color:var(--muted);font-size:.5rem;font-weight:900;letter-spacing:.06em; }
.goat-calendar-fixture-row.is-next .goat-calendar-row-status { color:var(--accent-cyan); }

.goat-calendar-date-detail { position:sticky;top:88px;display:grid;gap:9px;min-height:260px;padding:17px;background:linear-gradient(160deg,rgba(13,12,10,0.96),rgba(13,12,10,0.88)); }
.goat-calendar-date-detail h3 { margin:0;font-family:var(--display);font-size:1.12rem;line-height:1.2; }
.goat-calendar-date-detail > p:last-child,.goat-calendar-empty-detail { color:var(--muted);font-size:.66rem;line-height:1.55; }
.goat-calendar-detail-heading { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.goat-calendar-match-card { display:grid;gap:12px;margin-top:3px;padding:15px;border:1px solid rgba(212,169,79,0.22);border-radius:14px;background:linear-gradient(135deg,rgba(76,57,21,0.09),rgba(76,57,21,0.055)); }
.goat-calendar-match-card > span,.goat-calendar-match-card > small { color:var(--muted);font-size:.56rem;letter-spacing:.06em; }
.goat-calendar-match-card > div { display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px; }
.goat-calendar-match-card > div strong { font-family:var(--display);font-size:.83rem;line-height:1.25; }
.goat-calendar-match-card > div strong:last-child { text-align:right; }
.goat-calendar-match-card > div b { color:var(--accent-cyan);font-size:.55rem; }
.goat-calendar-detail-event-list { display:grid;gap:7px; }
.goat-calendar-detail-event { display:grid;gap:4px;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:rgba(255,255,255,.025); }
.goat-calendar-detail-event span,.goat-calendar-detail-event small { color:var(--muted);font-size:.55rem; }
.goat-calendar-detail-event strong { font-size:.68rem;line-height:1.35; }
.goat-calendar-detail-event.is-registration { border-left:3px solid rgba(212,169,79,0.8); }
.goat-calendar-detail-event.is-start { border-left:3px solid rgba(212,169,79,0.8); }
.goat-calendar-detail-event.is-finish { border-left:3px solid rgba(128,221,166,.8); }
.goat-calendar-all-fixtures { margin-top:2px;border-top:1px solid rgba(212,169,79,0.1); }
.goat-calendar-all-fixtures summary { padding:12px 1px 4px;color:var(--muted);font-size:.58rem;font-weight:900;cursor:pointer; }
.goat-calendar-all-fixtures > div { display:grid;gap:4px;margin-top:7px; }
.goat-calendar-all-fixtures p { display:grid;grid-template-columns:1fr auto 1fr;gap:6px;margin:0;padding:7px 8px;border-radius:8px;background:rgba(255,255,255,.022);font-size:.59rem; }
.goat-calendar-all-fixtures p span:last-child { text-align:right; }
.goat-calendar-all-fixtures p b { color:var(--muted);font-size:.5rem; }
.goat-calendar-all-fixtures p.is-user-fixture { background:rgba(76,57,21,0.07);color:var(--accent-cyan);font-weight:800; }

@media (max-width:980px) {
  .goat-calendar-spotlight { grid-template-columns:1fr 1fr; }
  .goat-calendar-next-card { grid-column:1 / -1;grid-row:1; }
  .goat-calendar-milestones { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .goat-calendar-layout { grid-template-columns:1fr; }
  .goat-calendar-date-detail { position:static;min-height:0; }
}
@media (max-width:760px) {
  .goat-league-calendar { padding:14px;border-radius:18px; }
  .goat-calendar-season-header { align-items:flex-start;flex-direction:column; }
  .goat-calendar-season-nav { width:100%; }
  .goat-calendar-season-nav button { flex:1; }
  .goat-calendar-spotlight { grid-template-columns:1fr; }
  .goat-calendar-next-card { grid-column:auto;grid-row:auto; }
  .goat-calendar-progress-card { display:none!important; }
  .goat-calendar-track-shell > header,.goat-calendar-milestone-shell > header,.goat-calendar-list-heading { align-items:flex-start;flex-direction:column; }
  .goat-calendar-track-shell header > small,.goat-calendar-milestone-shell header > small,.goat-calendar-list-heading > small { text-align:left; }
  .goat-calendar-matchday-row { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .goat-calendar-window-break { grid-template-columns:1fr; }
  .goat-calendar-milestones { grid-template-columns:1fr 1fr; }
  .goat-calendar-fixture-row { grid-template-columns:42px 62px 52px minmax(0,1fr);gap:7px;padding:8px; }
  .goat-calendar-row-status { display:none; }
  .goat-calendar-opponent { display:grid;gap:1px; }
}
@media (max-width:460px) {
  .goat-calendar-title-row { align-items:flex-start;flex-direction:column; }
  .goat-calendar-milestones { grid-template-columns:1fr; }
  .goat-calendar-matchday-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .goat-calendar-fixture-row { grid-template-columns:40px 56px minmax(0,1fr); }
  .goat-calendar-fixture-row .goat-calendar-side-pill { grid-column:3;grid-row:2; }
  .goat-calendar-opponent { grid-column:3;grid-row:1; }
  .goat-calendar-match-card > div { grid-template-columns:1fr; }
  .goat-calendar-match-card > div strong:last-child { text-align:left; }
}

.goat-world-inline-header h2 { display: none; }
.goat-world-inline-header {
  align-items: start;
  margin-bottom: 16px;
}
.goat-world-inline-header p:last-child {
  margin-top: 6px;
  max-width: 840px;
}
.goat-world-picker-player {
  grid-template-areas: "image name" "image meta" "stats stats";
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}
.goat-world-picker-stats {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-3px);
  transition: max-height .22s ease, margin-top .22s ease, opacity .18s ease, transform .22s ease;
}
.goat-world-picker-player:hover .goat-world-picker-stats,
.goat-world-picker-player:focus-visible .goat-world-picker-stats,
.goat-world-picker-player.active .goat-world-picker-stats {
  max-height: 90px;
  margin-top: 8px;
  opacity: 1;
  transform: translateY(0);
}
.goat-world-picker-stats > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  padding: 5px 3px;
  border: 1px solid rgba(212,169,79,0.09);
  border-radius: 8px;
  background: rgba(13,12,10,0.42);
}
.goat-world-picker-stats b {
  color: var(--muted);
  font-size: .53rem;
  letter-spacing: .05em;
}
.goat-world-picker-stats strong {
  color: var(--text);
  font-family: var(--display);
  font-size: .82rem;
}
.goat-world-picker-stats-bars {
  grid-template-columns: 1fr;
}
.goat-world-picker-stats-bars > span {
  grid-template-columns: 54px 1fr 26px;
  justify-items: stretch;
  align-items: center;
  gap: 6px;
}
.goat-world-picker-stats-bars i {
  position: relative;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(251,247,239,0.1);
}
.goat-world-picker-stats-bars em {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg,var(--accent-cyan),var(--accent));
}
.goat-world-picker-medical {
  grid-template-columns: 1.3fr .8fr .8fr;
}
@media (max-width: 760px) {
  .goat-world-header-summary { display: flex !important; position: relative; top: auto; left: auto; margin-bottom: 12px; min-width: 0; flex-wrap: wrap; }
  .goat-world-view { padding-top: 18px; }
}

/* v3.0A.44.0 world preview v16.4 — cache-safe final corrections */
body.goat-world-background .world-bg::before {
  inset: -6px !important;
  background-image: url('/world-background-v164.png') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  filter: blur(2px) brightness(.56) saturate(.98) !important;
  transform: scale(1.01) !important;
}

/* Status belongs in the upper-left of the World page, below the official menu. */
.goat-world-view {
  position: relative !important;
  padding-top: 80px !important;
}
body.goat-world-background .goat-world-header-summary {
  display: flex !important;
  position: absolute !important;
  top: 14px !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  gap: 8px !important;
  z-index: 35 !important;
}

/* Keep the action selector compact and contain both actions inside the card. */
.goat-world-action-menu {
  width: 320px !important;
  max-width: calc(100% - 32px) !important;
  overflow: hidden !important;
}
.goat-world-action-buttons {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
}
.goat-world-action-buttons .secondary-button,
.goat-world-action-buttons .primary-button {
  flex: 0 0 104px !important;
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 12px !important;
  font-size: .82rem !important;
}

/* The facility view shows only the compact facility/level eyebrow and benefit copy. */
.goat-world-inline-header h2 {
  display: none !important;
}
.goat-world-inline-header #goatWorldInteriorEyebrow {
  margin-bottom: 5px !important;
}
.goat-world-inline-header #goatWorldInteriorCopy {
  margin: 0 !important;
  max-width: 900px !important;
}

/* Make the precise building-mask hover visibly react without showing polygon frames. */
.goat-world-building-glow {
  opacity: 0 !important;
  transition: opacity .12s ease, filter .12s ease !important;
  filter:
    brightness(1.82)
    saturate(1.35)
    drop-shadow(0 0 1px rgba(255,255,255,1))
    drop-shadow(0 0 3px rgba(240,215,155,1))
    drop-shadow(0 0 7px rgba(212,169,79,.9)) !important;
}
.goat-world-building-glow.active { opacity: 1 !important; }
.goat-world-building-hit {
  fill: rgba(255,255,255,.001) !important;
  stroke: transparent !important;
  pointer-events: all !important;
}

@media (max-width: 760px) {
  body.goat-world-background .goat-world-header-summary {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    flex-wrap: wrap !important;
    margin-bottom: 12px !important;
  }
  .goat-world-view { padding-top: 18px !important; }
  .goat-world-action-menu { width: 280px !important; }
  .goat-world-action-buttons .secondary-button,
  .goat-world-action-buttons .primary-button {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
  }
}

/* v3.0A.44.0 world preview v16.5 — centred facilities, detailed player hover cards and brighter art */

/* Keep the facility artwork centred in the viewport by balancing the squad picker
   with an equally sized player-detail rail on the left. */
.goat-world-inline-layout {
  display: grid !important;
  grid-template-columns: 320px minmax(0, 1fr) 320px !important;
  gap: 20px !important;
  align-items: start !important;
}
.goat-world-player-detail-rail {
  grid-column: 1;
  position: sticky;
  top: 28px;
  min-width: 0;
}
.goat-world-inline-stage-wrap {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  justify-self: center;
}
.goat-world-inline-picker {
  grid-column: 3;
  width: 100%;
  min-width: 0;
}
.goat-world-inline-stage-wrap .goat-world-interior-stage {
  width: 100%;
  margin: 0 auto;
}

/* Art should remain atmospheric, but not look muted or underexposed. */
.goat-world-map > img {
  filter: brightness(1.08) saturate(1.06) contrast(1.015) drop-shadow(0 34px 46px rgba(13,12,10,0.56)) !important;
}
.goat-world-inline-stage-wrap .goat-world-interior-stage > img {
  filter: brightness(1.09) saturate(1.06) contrast(1.015) drop-shadow(0 28px 38px rgba(13,12,10,0.48)) !important;
}

/* Compact building title and level remain the only heading, now more readable. */
.goat-world-inline-header #goatWorldInteriorEyebrow {
  margin-bottom: 7px !important;
  font-size: .92rem !important;
  line-height: 1.2 !important;
  letter-spacing: .13em !important;
}
.goat-world-inline-header #goatWorldInteriorCopy {
  font-size: .86rem !important;
  line-height: 1.55 !important;
}

/* Detailed player-card rail shown when a squad row is hovered or focused. */
.goat-world-player-detail-card {
  min-height: 240px;
  max-height: calc(100vh - 210px);
  overflow: auto;
  padding: 17px;
  border: 1px solid rgba(212,169,79,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.015);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 18px 48px rgba(0,0,0,.3);
}
.goat-world-player-detail-card > h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
}
.goat-world-player-detail-empty {
  margin: 7px 0 0;
  color: #d9d1c2;
  font-size: .78rem;
  line-height: 1.5;
}
.goat-world-detail-player-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(212,169,79,0.1);
}
.goat-world-detail-player-head > img {
  width: 50px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(0,0,0,.35));
}
.goat-world-detail-player-head p,
.goat-world-detail-player-head h3,
.goat-world-detail-player-head small {
  display: block;
  margin: 0;
}
.goat-world-detail-player-head p {
  color: #e5c377;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.goat-world-detail-player-head h3 {
  margin-top: 2px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.05;
}
.goat-world-detail-player-head small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .62rem;
}
.goat-world-detail-overall {
  display: grid;
  justify-items: center;
  min-width: 48px;
  padding: 8px 7px;
  border: 1px solid rgba(212,169,79,.3);
  border-radius: 13px;
  background: linear-gradient(145deg,rgba(212,169,79,.18),rgba(212,169,79,.06));
}
.goat-world-detail-overall span {
  color: var(--muted);
  font-size: .48rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.goat-world-detail-overall strong {
  font-family: var(--display);
  font-size: 1.42rem;
  line-height: 1;
}
.goat-world-detail-main-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 5px;
  margin-top: 12px;
}
.goat-world-detail-main-stats > span {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 2px;
  border: 1px solid rgba(212,169,79,.14);
  border-radius: 9px;
  background: rgba(8,7,6,.5);
}
.goat-world-detail-main-stats b {
  color: var(--muted);
  font-size: .46rem;
  letter-spacing: .05em;
}
.goat-world-detail-main-stats strong,
.goat-world-detail-group strong,
.goat-world-detail-focus-rating strong {
  color: var(--text);
  font-family: var(--display);
}
.goat-world-player-detail-card strong.elite { color: #ffe69a; }
.goat-world-player-detail-card strong.great { color: #e5c377; }
.goat-world-player-detail-card strong.good { color: #8affbd; }
.goat-world-player-detail-card strong.base { color: #fbf7ef; }
.goat-world-detail-focus-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid rgba(212,169,79,.2);
  border-radius: 13px;
  background: linear-gradient(135deg,rgba(212,169,79,.1),rgba(212,169,79,.05));
}
.goat-world-detail-focus-rating span {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.goat-world-detail-focus-rating strong { font-size: 1.7rem; }
.goat-world-detail-all-groups {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.goat-world-detail-group {
  padding: 10px;
  border: 1px solid rgba(212,169,79,.14);
  border-radius: 13px;
  background: rgba(8,7,6,.4);
}
.goat-world-detail-group h5,
.goat-world-detail-recovery h5 {
  margin: 0 0 8px;
  color: #e5c377;
  font-size: .56rem;
  letter-spacing: .10em;
}
.goat-world-detail-group > div {
  display: grid;
  gap: 5px;
}
.goat-world-detail-group > div > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: .64rem;
}
.goat-world-detail-group > div > span strong { font-size: .8rem; }
.goat-world-detail-recovery {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(212,169,79,.14);
  border-radius: 14px;
  background: rgba(8,7,6,.42);
}
.goat-world-detail-meter {
  display: grid;
  grid-template-columns: 55px 1fr 28px;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .64rem;
}
.goat-world-detail-meter i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(212,169,79,.12);
}
.goat-world-detail-meter em {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg,#9c7128,#d4a94f);
}
.goat-world-detail-meter strong { text-align: right; font-size: .76rem; }
.goat-world-detail-recovery p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .65rem;
  line-height: 1.45;
}
.goat-world-injury-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255,99,118,.06);
  color: var(--muted);
  font-size: .63rem;
}
.goat-world-injury-time strong { color: #ff97a5; }

/* Picker rows now act as compact launch points for the full hover card. */
.goat-world-picker-player {
  grid-template-areas: "image name" "image meta" !important;
  overflow: visible !important;
}
.goat-world-picker-player .goat-world-picker-stats { display: none !important; }

@media (max-width: 1380px) {
  .goat-world-inline-layout {
    grid-template-columns: 280px minmax(0,1fr) 280px !important;
    gap: 14px !important;
  }
}
@media (max-width: 1120px) {
  .goat-world-inline-layout {
    grid-template-columns: minmax(0,1fr) 310px !important;
  }
  .goat-world-player-detail-rail {
    grid-column: 1 / -1;
    position: relative;
    top: auto;
    order: 3;
  }
  .goat-world-inline-stage-wrap { grid-column: 1; }
  .goat-world-inline-picker { grid-column: 2; }
  .goat-world-player-detail-card { max-height: none; }
}
@media (max-width: 760px) {
  .goat-world-inline-layout { grid-template-columns: 1fr !important; }
  .goat-world-inline-stage-wrap,
  .goat-world-inline-picker,
  .goat-world-player-detail-rail { grid-column: 1; }
  .goat-world-player-detail-rail { order: 3; }
}

/* Club World activities — preserves the official v16.5 visual language. */
.world-squad-player {
  grid-template-columns: 36px minmax(0,1fr) auto !important;
  grid-template-areas: "image name status" "image name queue" !important;
  align-items: center;
  gap: 8px;
}
.world-squad-player > span {
  display: grid;
  gap: 2px;
}
.world-squad-player > span small {
  display: block;
  color: var(--muted);
  font-size: .6rem;
  font-weight: 600;
}
.world-squad-player > b {
  grid-area: status;
  color: var(--muted);
  font-size: .56rem;
  text-align: right;
}
.world-squad-player > em {
  grid-area: queue;
  justify-self: end;
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(76,57,21,0.18);
  color: var(--accent-cyan);
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}
.world-squad-player.active {
  border-color: rgba(127,255,212,.54) !important;
  background: rgba(127,255,212,.08) !important;
}
.world-squad-player.queued {
  border-color: rgba(212,169,79,0.48) !important;
  background: rgba(76,57,21,0.08) !important;
}
.world-squad-player.unavailable {
  opacity: .45;
}
.world-duration-label {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: #d9d1c2;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.world-duration-label select,
.world-dev-editor select,
.world-dev-editor input {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(212,169,79,.18);
  border-radius: 10px;
  background: rgba(8,7,6,.88);
  color: #fbf7ef;
  font: inherit;
}
.world-duration-label select:focus-visible,
.world-dev-editor select:focus-visible,
.world-dev-editor input:focus-visible {
  border-color: rgba(212,169,79,.6);
  outline: 2px solid rgba(212,169,79,.2);
  outline-offset: 1px;
}
.world-activity-note {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(212,169,79,.16);
  border-radius: 11px;
  background: rgba(212,169,79,.06);
  color: #d9d1c2;
  font-size: .65rem;
}

/* ---------------------------------------------------------------------- */
/* Shared custom select — Session duration / Position / Potential and any   */
/* other World/Facilities filter select (see gwEnhanceSelect in            */
/* world-activities.js). The plain <select>'s open option list cannot be   */
/* restyled cross-browser (it renders as native/OS chrome — grey background,*/
/* system blue selected row — no matter what CSS is applied to the closed   */
/* control), so gwEnhanceSelect keeps the real <select> as the functional   */
/* source of truth (hidden here) and builds this trigger + listbox on top   */
/* of it. Styling follows design.md's input spec (inset surface, 4px       */
/* radius, gold hairline, gold focus ring) for the closed control, and the  */
/* same black/espresso + gold family for the open menu. */
.goat-select { position: relative; }
.goat-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.goat-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(212,169,79,.18);
  border-radius: 10px;
  background: rgba(8,7,6,.88);
  color: #fbf7ef;
  font: inherit;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.goat-select-trigger:hover { border-color: rgba(212,169,79,.36); }
.goat-select-trigger:focus-visible,
.goat-select.is-open .goat-select-trigger {
  border-color: rgba(212,169,79,.6);
  outline: 2px solid rgba(212,169,79,.2);
  outline-offset: 1px;
}
.goat-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goat-select-caret {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1px solid #d4a94f;
  border-bottom: 1px solid #d4a94f;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.goat-select.is-open .goat-select-caret { transform: rotate(225deg) translateY(-1px); }
/* Rendered as a portal (appended to document.body by gwEnhanceSelect, not
   left inside .goat-select) and positioned with `fixed` from the trigger's
   own getBoundingClientRect() in JS — see world-activities.js. A select
   living inside a scrollable panel (Settings, Lineup, Tactics, ...) would
   otherwise have its menu clipped by that panel's own overflow, or painted
   underneath a sibling card's stacking context; escaping to <body> avoids
   both regardless of which scrollable ancestor it's opened from. */
.goat-select-menu {
  position: fixed;
  z-index: 10050;
  max-height: 258px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid rgba(212,169,79,.28);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(23,21,15,.99), rgba(8,7,6,.99));
  box-shadow: 0 20px 46px rgba(0,0,0,.55);
  scrollbar-color: rgba(192,143,52,.72) #080603;
  scrollbar-width: thin;
}
.goat-select-menu::-webkit-scrollbar { width: 8px; }
.goat-select-menu::-webkit-scrollbar-track { background: #080603; }
.goat-select-menu::-webkit-scrollbar-thumb { background: rgba(192,143,52,.72); border-radius: 99px; }
.goat-select-option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d9d1c2;
  font: inherit;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8rem;
  text-align: left;
  cursor: pointer;
}
.goat-select-option.is-focused { background: rgba(212,169,79,.14); color: #fbf7ef; }
.goat-select-option.is-selected {
  background: rgba(212,169,79,.16);
  color: #f0d79b;
  font-weight: 700;
}
.goat-select-option.is-selected.is-focused { background: rgba(212,169,79,.24); }
.goat-select-option:disabled { opacity: .4; cursor: not-allowed; }
.world-activity-message {
  min-height: 1.1em;
  margin: 7px 0;
  color: var(--accent-cyan);
  font-size: .62rem;
}
.world-target-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.world-target-control label {
  color: var(--muted);
  font-size: .63rem;
}
.world-target-control input {
  grid-column: 1 / -1;
  width: 100%;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  accent-color: var(--goat-action-gold);
  cursor: pointer;
}
.world-target-control input::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 999px;
  background: linear-gradient(90deg,var(--goat-action-gold) 0 var(--world-target-fill,100%),#292720 var(--world-target-fill,100%) 100%);
}
.world-target-control input::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6px;
  -webkit-appearance: none;
  border: 2px solid #ead095;
  border-radius: 50%;
  background: #8f6925;
}
.world-target-control input::-moz-range-track {
  height: 6px;
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 999px;
  background: #292720;
}
.world-target-control input::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--goat-action-gold);
}
.world-target-control input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 2px solid #ead095;
  border-radius: 50%;
  background: #8f6925;
}
.world-target-control input:focus-visible {
  outline: 2px solid var(--goat-control-focus);
  outline-offset: 3px;
}
.world-target-control .secondary-button {
  grid-column: 2;
  grid-row: 1;
  min-width: 52px;
  padding: 6px 9px;
  font-size: .6rem;
}
.world-error {
  color: var(--danger) !important;
}
.goat-world-manager,
.goat-world-placed-player {
  animation: none !important;
}
.goat-world-manager.is-own-manager span {
  border-color: #d4a94f;
  color: #f0d79b;
}
.goat-world-manager-sleep {
  position: absolute;
  z-index: 2;
  top: -9px;
  right: -15px;
  color: var(--accent-cyan);
  font-family: var(--display);
  font-size: .72rem;
  font-style: italic;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 0 0 9px rgba(212,169,79,0.72), 0 2px 4px rgba(0,0,0,.9);
  transform: rotate(-8deg);
}

/* Development-only editors are injected only after the local server confirms
   development mode and the matching query parameter is present. */
.world-dev-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 18px;
  background: linear-gradient(135deg,rgba(13,12,10,0.96),rgba(23,21,15,0.94));
  box-shadow: 0 16px 40px rgba(9,7,4,0.3);
}
.world-dev-editor > div {
  flex: 1 1 260px;
}
.world-dev-editor p,
.world-dev-editor strong {
  display: block;
  margin: 0;
}
.world-dev-editor strong {
  margin-top: 3px;
  font-size: .75rem;
}
.world-dev-editor label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.world-dev-editor button {
  min-height: 35px;
  padding: 8px 11px;
  border: 1px solid rgba(212,169,79,0.28);
  border-radius: 10px;
  background: rgba(76,57,21,0.09);
  color: var(--text);
  font-size: .62rem;
  font-weight: 800;
}
.world-dev-editor button:hover {
  border-color: var(--accent-cyan);
  background: rgba(76,57,21,0.12);
}
.world-dev-editor [data-editor-status] {
  flex: 1 0 100%;
  color: var(--accent-cyan);
  font-size: .62rem;
}
.world-editor-character,
.world-editor-interior-character {
  cursor: grab;
  touch-action: none;
  transition: none !important;
}
.world-editor-character:active,
.world-editor-interior-character:active {
  cursor: grabbing;
}
.world-editor-character span,
.world-editor-interior-character span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--accent-cyan);
  border-radius: 50%;
  background: rgba(13,12,10,0.92);
  color: #fff;
  font-size: .65rem;
}
.world-editor-interior-character.selected span {
  background: var(--accent-cyan);
  color: #1a1207;
}

.world-editor-json-panel {
  position: fixed;
  z-index: 140;
  inset: 50% auto auto 50%;
  width: min(680px, calc(100vw - 2rem));
  transform: translate(-50%, -50%);
  padding: 1rem;
  border: 1px solid rgba(212,169,79,0.6);
  border-radius: 14px;
  background: rgba(13,12,10,0.98);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
  color: #fbf7ef;
}
.world-editor-json-panel p,
.world-editor-json-panel small {
  display: block;
  margin: 0.4rem 0;
  color: #d9d1c2;
}
.world-editor-json-panel textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 8px;
  background: #0d0c0a;
  color: #fbf7ef;
  font: 0.75rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.world-editor-json-panel div {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.goat-world-loading {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 6, 3, 0.82);
  backdrop-filter: blur(10px);
}
.goat-world-loading.hidden {
  display: none;
}
.goat-world-loading-card {
  display: grid;
  justify-items: center;
  width: min(390px, 100%);
  padding: 30px 24px;
  border: 1px solid rgba(212, 169, 79, 0.34);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(212, 169, 79, 0.13), transparent 42%), linear-gradient(145deg, rgba(31, 25, 15, 0.98), rgba(10, 8, 5, 0.99));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  color: #fbf7ef;
  text-align: center;
}
.goat-world-loading-card strong {
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  letter-spacing: 0.04em;
}
.goat-world-loading-card .eyebrow { color: #e5c377; }
.goat-world-loading-ball {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 3px solid rgba(212, 169, 79, 0.20);
  border-top-color: #e5c377;
  border-radius: 50%;
  animation: goat-world-loading-spin 0.75s linear infinite;
}
@keyframes goat-world-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .world-dev-editor {
    align-items: stretch;
  }
  .world-dev-editor label,
  .world-dev-editor button {
    flex: 1 1 130px;
  }
}

/* v3.0A.44.1 account menu, player sharing and profile performance */
.profile-account-menu-wrap {
  position: relative;
}
.dashboard-button[aria-expanded="true"] {
  border-color: rgba(212,169,79,0.72);
  background: rgba(23,21,15,0.98);
}
.account-menu-chevron {
  margin-left: 2px;
  color: rgba(251,247,239,0.72);
  font-size: .9rem;
  transition: transform .16s ease;
}
.dashboard-button[aria-expanded="true"] .account-menu-chevron {
  transform: rotate(180deg);
}
.profile-account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 250;
  display: grid;
  width: min(230px, calc(100vw - 28px));
  max-height: min(320px, calc(100vh - 100px));
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(212,169,79,0.25);
  border-radius: 15px;
  background: #0d0c0a;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .48);
}
.profile-account-menu.hidden { display: none; }
.profile-account-menu button,
.profile-account-menu > a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 13px;
  color: #fbf7ef;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 800 .76rem/1 var(--body);
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.profile-account-menu button:hover,
.profile-account-menu button:focus-visible,
.profile-account-menu > a:hover,
.profile-account-menu > a:focus-visible {
  color: #fff;
  outline: none;
  background: rgba(76,57,21,0.18);
}
.profile-account-menu > .logout-button {
  margin-top: 5px;
  border-top: 1px solid rgba(212,169,79,0.14);
  border-radius: 0 0 10px 10px;
  color: #ffb7c4;
}
.profile-account-menu > .logout-button:hover,
.profile-account-menu > .logout-button:focus-visible {
  color: #ffd6de;
  background: rgba(255, 83, 116, .12);
}

.goat-world-player-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.goat-world-player-filters label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.goat-world-player-filters select {
  min-width: 0;
  height: 36px;
  padding: 0 9px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 9px;
  background: #0d0c0a;
  font: 700 .7rem/1 var(--body);
}
.goat-world-player-filters select:focus-visible {
  border-color: rgba(212,169,79,0.55);
  outline: none;
}
@media (max-width: 760px) {
  .goat-world-player-filters { grid-template-columns: 1fr; }
}
.profile-account-menu .inventory-alert {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  margin-left: 10px;
  border-color: #d4a94f;
}

.player-profile-header-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}
.player-share-button {
  min-height: 34px;
  padding: 0 13px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.35);
  border-radius: 9px;
  background: rgba(23,21,15,0.72);
  font: 800 .67rem/1 var(--body);
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.player-share-button:hover,
.player-share-button:focus-visible {
  border-color: rgba(212,169,79,0.8);
  outline: none;
  background: rgba(42,34,20,0.92);
}

/* The profile sheet is opaque, so painting and blurring the full animated site
   underneath it only wastes GPU time and can make video playback stutter. */
body.player-profile-open .world-bg,
body.player-profile-open .site-header,
body.player-profile-open .page-shell,
body.player-profile-open .site-footer,
body.player-profile-open > footer {
  display: none !important;
}
body.player-profile-open .player-modal-backdrop {
  background: #0d0c0a !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
body.player-profile-open .player-profile-sheet {
  contain: layout paint style;
}

@media (max-width: 760px) {
  .profile-account-menu { right: -42px; }
  .player-profile-header-actions { justify-items: start; }
  .player-profile-badges { justify-content: flex-start; }
}

@media (min-width: 980px) { #profileInventoryPanel .inventory-pack-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* v3.0A.44.2 — onboarding, account closure and inline player sharing */
.onboarding-form .primary-button {
  min-height: 50px;
  border: 1px solid rgba(212,169,79,0.52);
  border-radius: 12px;
  background: linear-gradient(135deg, #4c3915 0%, #4c3915 52%, #4c3915 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(212,169,79,0.32), inset 0 1px 0 rgba(255,255,255,.16);
  font: 900 .78rem/1 var(--body);
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.onboarding-form .primary-button:hover,
.onboarding-form .primary-button:focus-visible {
  outline: none;
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(212,169,79,0.42), 0 0 24px rgba(212,169,79,0.12);
}

.settings-danger-zone {
  border-color: rgba(255, 96, 132, .28) !important;
  background: linear-gradient(145deg, rgba(86, 22, 48, .2), rgba(13,12,10,0.76)) !important;
}
.settings-danger-zone > strong { color: #ff9ab4; }
.danger-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 104, 139, .5);
  border-radius: 10px;
  background: rgba(174, 38, 77, .18);
  color: #ffb0c4;
  font: 900 .7rem/1 var(--body);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.danger-button:hover,
.danger-button:focus-visible {
  outline: none;
  border-color: rgba(255, 125, 157, .9);
  background: rgba(196, 42, 86, .3);
}
.danger-button:disabled { opacity: .4; cursor: not-allowed; }

.close-account-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 20px;
}
.close-account-modal.hidden { display: none; }
.close-account-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(13,12,10,0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.close-account-card {
  position: relative;
  width: min(560px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 103, 138, .34);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(47, 17, 38, .98), rgba(13,12,10,0.99));
  box-shadow: 0 30px 90px rgba(0,0,0,.65), 0 0 34px rgba(255,70,120,.08);
}
.close-account-card h2 {
  margin: .25rem 0 .8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.3rem);
  text-transform: uppercase;
}
.close-account-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.close-account-card label { display: grid; gap: 8px; margin-top: 22px; }
.close-account-card label span { color: #ff9ab4; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.close-account-card input {
  width: 100%;
  border: 1px solid rgba(255, 103, 138, .32);
  border-radius: 11px;
  background: rgba(13,12,10,0.82);
  color: #fff;
  padding: 13px 14px;
  font: 850 .9rem/1 var(--mono);
  letter-spacing: .08em;
}
.close-account-card input:focus { outline: none; border-color: rgba(255, 132, 161, .82); box-shadow: 0 0 0 3px rgba(255,82,126,.1); }
.close-account-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

.player-profile-badges .player-share-button {
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid rgba(212,169,79,0.42);
  border-radius: 0;
  background: rgba(23,21,15,0.72);
  font-family: var(--mono);
  font-size: .57rem;
  line-height: normal;
}

@media (max-width: 620px) {
  .close-account-card { padding: 24px; }
  .close-account-actions { align-items: stretch; flex-direction: column-reverse; }
}


/* v3.0A.44.6 — facility player profile link */
.goat-world-detail-player-name {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: left;
  cursor: pointer;
}
.goat-world-detail-player-name:hover,
.goat-world-detail-player-name:focus-visible {
  color: #e5c377;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

/* v3.0A.44.8 — manager status animations adapted from the approved preview. */
.goat-world-manager-sprite {
  position: relative;
  display: block;
  width: 31px;
  transform-origin: 50% 100%;
  will-change: transform, filter, opacity;
}
.goat-world-manager-sprite > img {
  width: 100%;
}
.goat-world-manager.is-idle-focus .goat-world-manager-sprite,
.goat-world-manager.is-offline-focused .goat-world-manager-sprite {
  animation: goat-manager-breathe 2.4s ease-in-out infinite !important;
}
@keyframes goat-manager-breathe {
  0%,100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(-1.5px) scaleY(1.012); }
}
.goat-world-manager.is-spawning .goat-world-manager-sprite {
  animation: goat-manager-spawn 1.15s ease-out both !important;
}
.goat-world-manager.is-spawning .goat-world-manager-sprite::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -2px;
  width: 35px;
  height: 9px;
  border: 2px solid rgba(212,169,79,.95);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212,169,79,.85);
  transform: translateX(-50%) scale(.2);
  animation: goat-manager-spawn-ring 1.15s ease-out both;
}
@keyframes goat-manager-spawn {
  0% { opacity:0; transform:translateY(-14px) scale(.35); filter:brightness(2.4) blur(3px); }
  48% { opacity:1; transform:translateY(0) scale(1.08); filter:brightness(1.5) blur(0); }
  75%,100% { opacity:1; transform:translateY(0) scale(1); filter:none; }
}
@keyframes goat-manager-spawn-ring {
  0% { opacity:0; transform:translateX(-50%) scale(.2); }
  35% { opacity:1; }
  100% { opacity:0; transform:translateX(-50%) scale(1.55); }
}
.goat-world-manager.is-training-focus .goat-world-manager-sprite {
  animation: goat-manager-dribble-body .72s ease-in-out infinite !important;
}
.goat-world-manager-ball {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: -4px;
  display: block;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.6));
  animation: goat-manager-dribble-ball .72s ease-in-out infinite;
}
@keyframes goat-manager-dribble-body {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes goat-manager-dribble-ball {
  0%,100% { transform:translate(0,0) rotate(0); }
  50% { transform:translate(-9px,-3px) rotate(120deg); }
}
.goat-world-manager.is-medical-focus .goat-world-manager-sprite {
  animation: goat-manager-heal-pulse 1.6s ease-in-out infinite !important;
}
.goat-world-manager-heal {
  position: absolute;
  z-index: 3;
  top: -5px;
  right: -7px;
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #5ef3b5;
  color: #0a3123;
  font-family: var(--display);
  font-size: 13px;
  font-style: normal;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 0 11px rgba(94,243,181,.9);
  animation: goat-manager-heal-cross 1.6s ease-in-out infinite;
}
@keyframes goat-manager-heal-pulse {
  0%,100% { filter:drop-shadow(0 0 0 rgba(94,243,181,0)); }
  50% { filter:drop-shadow(0 0 7px rgba(94,243,181,.95)); }
}
@keyframes goat-manager-heal-cross {
  0%,100% { transform:scale(.75); opacity:.45; }
  50% { transform:scale(1.15); opacity:1; }
}
.goat-world-manager-sleep {
  top: 4px !important;
  right: 1px !important;
  font-size: .65rem !important;
  transform: rotate(-8deg) translateY(-100%) !important;
  animation: goat-manager-zzz 2s ease-in-out infinite;
}
@keyframes goat-manager-zzz {
  0% { opacity:.25; transform:rotate(-8deg) translate(0,-45%) scale(.8); }
  55% { opacity:1; }
  100% { opacity:.25; transform:rotate(-8deg) translate(4px,-80%) scale(1.05); }
}
.settings-discord-card .settings-link-button,
.settings-discord-card > button:not([data-disconnect-discord]) {
  justify-self: start;
  width: auto;
  margin-top: 5px;
}
.settings-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(212,169,79,0.55);
  border-radius: 10px;
  background: linear-gradient(180deg,rgba(76,57,21,0.92),rgba(76,57,21,0.92));
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(212,169,79,0.24);
}
.settings-link-button:hover { border-color: rgba(212,169,79,0.95); transform: translateY(-1px); }
.settings-discord-card.is-unavailable { opacity: .72; }
@media (prefers-reduced-motion: reduce) {
  .goat-world-manager-sprite,
  .goat-world-manager-sprite::after,
  .goat-world-manager-ball,
  .goat-world-manager-heal,
  .goat-world-manager-sleep { animation: none !important; }
}

/* 3.0A.46 preview — public visual lineup builder and saved squad presets */
.lineup-builder {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(212,169,79,0.2);
  background:
    radial-gradient(circle at 12% 0%, rgba(76,57,21,0.1), transparent 30%),
    radial-gradient(circle at 90% 12%, rgba(76,57,21,0.13), transparent 34%),
    linear-gradient(145deg, rgba(13,12,10,0.94), rgba(23,21,15,0.91));
  box-shadow: 0 26px 80px rgba(9,7,4,0.34), inset 0 1px 0 rgba(255,255,255,.04);
}
.lineup-heading,
.lineup-side-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.lineup-heading h2,
.lineup-side-heading h3 { margin: .12rem 0 .38rem; }
.lineup-heading > div:first-child { max-width: 760px; }
.lineup-heading > div:first-child > p:last-child { margin: 0; color: rgba(251,247,239,0.7); line-height: 1.55; }
.lineup-public-status {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 999px;
  color: rgba(251,247,239,0.68);
  background: rgba(13,12,10,0.58);
  font-size: .78rem;
  font-weight: 850;
}
.lineup-public-status.is-public {
  color: #fbf7ef;
  border-color: rgba(212,169,79,0.42);
  box-shadow: 0 0 24px rgba(212,169,79,0.1);
}
.lineup-owner-controls {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(170px, 1fr) minmax(130px, .65fr) auto;
  gap: 12px;
  align-items: end;
  margin: 24px 0 12px;
  padding: 14px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 16px;
  background: rgba(13,12,10,0.48);
}
.lineup-owner-controls label,
.lineup-role-controls label,
.lineup-search { display: grid; gap: 6px; min-width: 0; }
.lineup-owner-controls label > span,
.lineup-role-controls label > span,
.lineup-search > span {
  color: var(--accent-cyan);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lineup-owner-controls input,
.lineup-owner-controls select,
.lineup-role-controls select,
.lineup-search input {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 11px;
  padding: 9px 11px;
  color: #fff;
  background: rgba(13,12,10,0.82);
  font: inherit;
}
.lineup-control-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.danger-soft { border-color: rgba(255,94,109,.25) !important; color: #ffc8ce !important; }
.lineup-message {
  position: relative;
  z-index: 47;
  min-height: 1.35em;
  margin: 13px 0 14px;
  padding: 3px 2px 1px;
  color: rgba(251,247,239,0.76);
  font-weight: 700;
  line-height: 1.45;
}
.lineup-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}
.lineup-pitch-column { min-width: 0; }
.lineup-pitch {
  position: relative;
  width: min(100%, 780px);
  aspect-ratio: 0.74;
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(220,255,247,.42);
  border-radius: 26px;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(230,255,249,.24) 49.7% 50.3%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(230,255,249,.24) 49.7% 50.3%, transparent 50.3%),
    repeating-linear-gradient(0deg, rgba(27,112,92,.84) 0 12.5%, rgba(22,96,80,.84) 12.5% 25%),
    linear-gradient(180deg, #153d41, #102c35);
  box-shadow: inset 0 0 80px rgba(2,10,18,.38), 0 28px 70px rgba(2,3,14,.32);
}
.lineup-pitch::before,
.lineup-pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  border: 2px solid rgba(230,255,249,.27);
}
.lineup-pitch::before { top: 0; width: 42%; height: 15%; border-top: 0; }
.lineup-pitch::after { bottom: 0; width: 42%; height: 15%; border-bottom: 0; }
.lineup-slot {
  position: absolute;
  left: var(--slot-x);
  top: var(--slot-y);
  width: clamp(82px, 14vw, 118px);
  min-height: 70px;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 15px;
  outline: none;
  transition: transform .16s ease, filter .16s ease;
}
.lineup-slot:focus-visible,
.lineup-slot.selected { z-index: 8; transform: translate(-50%, -50%) scale(1.045); filter: drop-shadow(0 0 15px rgba(76,57,21,0.4)); }
.lineup-slot.empty {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px dashed rgba(229,255,249,.46);
  background: rgba(13,12,10,0.44);
  cursor: pointer;
}
.lineup-slot.empty:hover,
.lineup-slot.empty:focus-visible { border-color: var(--accent-cyan); background: rgba(76,57,21,0.12); }
.lineup-slot-label {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  color: #fbf7ef;
  background: rgba(13,12,10,0.76);
  font-size: .63rem;
  font-weight: 950;
  letter-spacing: .06em;
}
.lineup-empty-slot { color: rgba(229,255,249,.74); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.lineup-mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(23,21,15,0.94), rgba(13,12,10,0.96));
  box-shadow: 0 11px 25px rgba(9,7,4,0.24), inset 0 1px 0 rgba(255,255,255,.045);
}
.lineup-mini-card[draggable="true"] { cursor: grab; }
.lineup-mini-card[draggable="true"]:active { cursor: grabbing; }
.lineup-card-visual {
  position: relative;
  width: 58px;
  height: 76px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(155deg, rgba(76,57,21,0.23), rgba(76,57,21,0.3));
}
.lineup-card-visual img { position: absolute; inset: 17px 0 0; width: 100%; height: calc(100% - 17px); object-fit: contain; object-position: bottom center; }
.lineup-card-visual strong { position: absolute; z-index: 2; top: 4px; left: 6px; color: #fff; font-size: .98rem; line-height: 1; }
.lineup-card-visual > span:not(.lineup-position-warning) { position: absolute; z-index: 2; top: 5px; right: 5px; color: #fbf7ef; font-size: .57rem; font-weight: 950; }
.lineup-position-warning {
  position: absolute;
  z-index: 4;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #1a1207;
  background: #ffd447;
  font-size: .72rem;
  font-weight: 1000;
  box-shadow: 0 0 0 2px rgba(9,7,4,0.6);
}
.lineup-card-copy { display: grid; align-content: center; gap: 3px; min-width: 0; }
.lineup-card-copy b { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.lineup-card-copy small { color: rgba(251,247,239,0.66); font-size: .69rem; }
.lineup-card-copy em { font-style: normal; }
.lineup-eligibility { color: #79efb0; font-size: .64rem; font-weight: 850; }
.lineup-eligibility.unavailable { color: #ff8b97; }

/* Injured or suspended reads as a red card state on the pitch whether or not
   the player is still technically selectable: a manager should see at a glance
   that picking him is a risk. The wording inside the banner is what separates
   "Eligible with risk" from "Not eligible". */
.lineup-eligibility.is-status-blocked,
.lineup-eligibility.is-status-risk { color: #ffd7dc; }
.lineup-mini-card.lineup-status-flagged {
  border-color: rgba(208,36,54,.85) !important;
  background: linear-gradient(180deg, #7e1725, #3c0d15) !important;
  box-shadow: inset 0 0 0 1px rgba(208,36,54,.55), 0 0 14px rgba(208,36,54,.22) !important;
}
.lineup-mini-card.lineup-pitch-card.lineup-status-flagged .lineup-card-visual {
  box-shadow: inset 0 0 0 2px rgba(208,36,54,.9), 0 0 16px rgba(208,36,54,.35);
}
.lineup-mini-card.lineup-pitch-card.lineup-status-flagged .lineup-player-name { color: #102019; }
/* The rarity treatment (Squad through GOAT) fills .lineup-card-visual on the
   bench/picker card and .lineup-card-front on the pitch card -- the actual
   dominant surface a manager sees, well above where the outer article's own
   background shows through. Several later, more specific rarity rules (some
   scoped under #profileLineupPanel) painted that same surface without
   !important, so an injured/suspended card kept its rarity colour there even
   though the outer card and its ring already read red. This is the one rule
   that must always win regardless of rarity or where the card is rendered. */
.lineup-mini-card.lineup-status-flagged .lineup-card-visual,
.lineup-mini-card.lineup-pitch-card.lineup-status-flagged .lineup-card-front {
  background: linear-gradient(155deg, rgba(208,36,54,.62), rgba(94,10,20,.92)) !important;
}
.lineup-status-banner {
  margin-top: 3px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #d02436;
  color: #fff;
  font-size: .5rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .015em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-status-banner.is-status-risk { background: #c2571b; }

.lineup-suitability.warning { color: #ffd86a !important; }
.lineup-mini-card.is-unavailable { opacity: .62; filter: grayscale(.2); }
.lineup-card-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.lineup-card-action {
  min-height: 28px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 8px;
  padding: 4px 8px;
  color: rgba(251,247,239,0.8);
  background: rgba(13,12,10,0.68);
  font-size: .64rem;
  font-weight: 850;
  cursor: pointer;
}
.lineup-card-action:hover,
.lineup-card-action:focus-visible { color: #fff; border-color: rgba(212,169,79,0.55); outline: none; }
.lineup-card-action.primary { color: #fbf7ef; border-color: rgba(212,169,79,0.42); }
.lineup-slot .lineup-mini-card { display: block; width: 100%; padding: 5px; }
.lineup-slot .lineup-card-visual { width: 100%; height: 84px; }
.lineup-slot .lineup-card-copy { margin-top: 5px; text-align: center; }
.lineup-slot .lineup-card-copy small,
.lineup-slot .lineup-card-copy em { display: none; }
.lineup-slot .lineup-card-copy b { display: block; font-size: .68rem; }
.lineup-slot .lineup-card-actions { display: none; position: absolute; left: 50%; top: calc(100% + 5px); width: max-content; max-width: 180px; transform: translateX(-50%); justify-content: center; padding: 5px; border-radius: 9px; background: rgba(13,12,10,0.94); box-shadow: 0 8px 22px rgba(0,0,0,.36); }
.lineup-slot:hover .lineup-card-actions,
.lineup-slot:focus-within .lineup-card-actions,
.lineup-slot.selected .lineup-card-actions { display: flex; }
.lineup-owner-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 14px; }
.lineup-side-panel { display: grid; gap: 16px; min-width: 0; }
.lineup-bench-panel,
.lineup-roles-panel,
.lineup-available-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 17px;
  background: rgba(13,12,10,0.52);
}
.lineup-side-heading > span { color: rgba(251,247,239,0.72); font-size: .78rem; font-weight: 900; }
.lineup-side-heading small { display: block; color: rgba(251,247,239,0.58); line-height: 1.45; }
.lineup-player-list { display: grid; gap: 9px; min-height: 92px; margin-top: 11px; }
.lineup-role-controls { display: grid; gap: 10px; margin-top: 12px; }
.lineup-role-summary { display: grid; gap: 8px; margin-top: 12px; }
.lineup-role-summary article { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 10px; background: rgba(13,12,10,0.58); }
.lineup-role-summary span { color: rgba(251,247,239,0.58); font-size: .72rem; }
.lineup-role-summary strong { text-align: right; font-size: .76rem; }
.lineup-available-panel { margin-top: 22px; }
.lineup-search { width: min(270px,100%); }
.lineup-available-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
  min-height: 120px;
  margin-top: 14px;
}
.lineup-empty-state { display: grid; place-items: center; min-height: 80px; padding: 15px; color: rgba(251,247,239,0.55); text-align: center; }
body.lineup-dragging .lineup-drop-zone,
body.lineup-dragging .lineup-slot { outline: 1px dashed rgba(212,169,79,0.48); outline-offset: 3px; }

@media (max-width: 1050px) {
  .lineup-workspace { grid-template-columns: 1fr; }
  .lineup-side-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lineup-owner-controls { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lineup-control-actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .lineup-builder { padding: 15px 10px; border-radius: 17px; }
  .lineup-heading { display: grid; }
  .lineup-public-status { justify-self: start; }
  .lineup-owner-controls { grid-template-columns: 1fr; padding: 11px; }
  .lineup-control-actions > button { flex: 1 1 90px; }
  .lineup-pitch { min-height: 590px; border-radius: 18px; }
  .lineup-slot { width: 72px; }
  .lineup-slot .lineup-card-visual { height: 68px; }
  .lineup-slot .lineup-card-copy b { font-size: .59rem; }
  .lineup-slot-label { top: -16px; font-size: .55rem; }
  .lineup-side-panel { grid-template-columns: 1fr; }
  /* Narrow screens give each control its own full-width row, still centred. */
  .lineup-owner-actions { justify-content: center; }
  .lineup-owner-actions button { flex: 1 1 100%; width: 100%; }
  .lineup-side-heading { display: grid; }
  .lineup-search { width: 100%; }
  .lineup-available-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .lineup-pitch { min-height: 560px; }
  .lineup-slot { width: 64px; }
  .lineup-slot .lineup-card-visual { height: 61px; }
  .lineup-slot .lineup-card-copy b { font-size: .54rem; }
  .lineup-slot .lineup-card-actions { max-width: 150px; }
  .lineup-card-action { font-size: .58rem; padding-inline: 6px; }
}

/* 3.0A.46-preview.2 — compact lineup pitch, condition display and Pre-Match menu */
.profile-tab-menu { position: relative; flex: 0 0 auto; }
.profile-tab-menu-trigger { display: inline-flex !important; align-items: center; gap: 7px; }
.profile-tab-menu-trigger > span { font-size: .75rem; transition: transform .16s ease; }
.profile-tab-menu-trigger[aria-expanded="true"] > span { transform: rotate(180deg); }
.profile-tab-menu-options {
  position: absolute;
  z-index: 120;
  left: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 155px;
  padding: 7px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 13px;
  background: rgba(13,12,10,0.98);
  box-shadow: 0 18px 44px rgba(0,0,0,.46);
}
.profile-tab-menu-options button { width: 100%; justify-content: flex-start; text-align: left; }
.profile-tab-menu.active .profile-tab-menu-trigger,
.profile-tab-menu-trigger.active { color: #fff !important; border-color: rgba(212,169,79,0.5) !important; background: rgba(76,57,21,0.1) !important; }
.profile-tabs { overflow: visible !important; }

.danger-soft { color: #ff5968 !important; }
#lineupSaveButton { color: inherit; }
.lineup-workspace {
  grid-template-columns: minmax(220px, .72fr) minmax(430px, 1.5fr) minmax(245px, .78fr);
  gap: clamp(13px, 1.8vw, 22px);
}
.lineup-workspace.public-view { display: flex; justify-content: center; }
.lineup-workspace.public-view .lineup-pitch-column { width: min(100%, 650px); }
.lineup-pitch-column { min-width: 0; }
.lineup-pitch {
  width: min(100%, 580px);
  min-height: 0;
  max-height: 720px;
  aspect-ratio: .80;
  overflow: visible;
  border-radius: 20px;
  background:
    repeating-linear-gradient(0deg, rgba(30,117,88,.92) 0 12.5%, rgba(25,105,80,.92) 12.5% 25%),
    linear-gradient(180deg, #1d755c, #155442);
  box-shadow: inset 0 0 72px rgba(2,18,13,.32), 0 22px 58px rgba(2,3,14,.3);
}
.lineup-pitch::before,
.lineup-pitch::after { content: none !important; }
.lineup-pitch-markings,
.lineup-pitch-markings > span { position: absolute; pointer-events: none; }
.lineup-pitch-markings { inset: 0; overflow: hidden; border-radius: 18px; }
.lineup-pitch-markings > span { z-index: 1; border-color: rgba(238,255,248,.46); }
.pitch-halfway { left: 0; right: 0; top: 50%; border-top: 2px solid rgba(238,255,248,.42); }
.pitch-centre-circle { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%,-50%); border: 2px solid rgba(238,255,248,.42); border-radius: 50%; }
.pitch-centre-spot,
.pitch-penalty-spot { width: 5px; height: 5px; border: 0; border-radius: 50%; background: rgba(238,255,248,.62); transform: translate(-50%,-50%); }
.pitch-centre-spot { left: 50%; top: 50%; }
.pitch-penalty-box { left: 50%; width: 56%; height: 18%; transform: translateX(-50%); border: 2px solid rgba(238,255,248,.42); }
.pitch-penalty-box.top { top: -2px; border-top: 0; }
.pitch-penalty-box.bottom { bottom: -2px; border-bottom: 0; }
.pitch-five-box { left: 50%; width: 28%; height: 7%; transform: translateX(-50%); border: 2px solid rgba(238,255,248,.42); }
.pitch-five-box.top { top: -2px; border-top: 0; }
.pitch-five-box.bottom { bottom: -2px; border-bottom: 0; }
.pitch-penalty-spot { left: 50%; }
.pitch-penalty-spot.top { top: 13%; }
.pitch-penalty-spot.bottom { top: 87%; }

.lineup-slot { width: clamp(72px, 8vw, 94px); min-height: 62px; z-index: 3; }
.lineup-slot:focus-visible,
.lineup-slot.selected { z-index: 40; transform: translate(-50%,-50%) scale(1.025); }
.lineup-slot.empty { min-height: 62px; border-radius: 12px; }
.lineup-slot-label { top: -15px; padding: 2px 6px; font-size: .56rem; }
.lineup-select-trigger {
  width: 100%; min-height: 60px; border: 0; border-radius: 11px; color: rgba(236,255,248,.84);
  background: transparent; font: inherit; font-size: .65rem; font-weight: 900; text-transform: uppercase; cursor: pointer;
}
.lineup-slot .lineup-mini-card { width: 100%; padding: 3px; border-radius: 11px; }
.lineup-pitch-card { display: block; border-color: rgba(255,255,255,.18); background: rgba(13,12,10,0.86); }
.lineup-slot .lineup-card-visual { width: 100%; height: 74px; border-radius: 9px; }
.lineup-slot .lineup-card-visual img { inset: 8px -5px 0; width: calc(100% + 10px); height: calc(100% - 8px); }
.lineup-card-visual > .lineup-card-position { position: absolute; z-index: 3; top: 5px; right: 5px; color: #fbf7ef; font-size: .55rem; font-weight: 950; }
.lineup-player-name {
  margin-top: 3px; padding: 4px 3px; overflow: hidden; border-radius: 6px; color: #102019;
  font-size: .61rem; font-weight: 950; line-height: 1.05; text-align: center; text-overflow: ellipsis; white-space: nowrap;
}
.suitability-natural .lineup-player-name { background: #b9efc8; }
.suitability-secondary .lineup-player-name { background: #fff0a8; }
.suitability-out-of-position .lineup-player-name { background: #ffc0c5; }
.lineup-energy { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px; align-items: center; margin: 4px 1px 1px; }
.lineup-energy > span { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.15); }
.lineup-energy i { display: block; height: 100%; border-radius: inherit; }
.lineup-energy b { color: rgba(251,247,239,0.9); font-size: .48rem; font-variant-numeric: tabular-nums; }
.lineup-preferred-feet { position: absolute; z-index: 5; left: 4px; bottom: 3px; width: 30px; height: 17px; padding: 1px 2px; border-radius: 7px; background: rgba(13,12,10,0.68); }
.lineup-preferred-feet svg { width: 100%; height: 100%; }
.lineup-preferred-feet .foot { fill: rgba(251,247,239,0.34); stroke: rgba(255,255,255,.3); stroke-width: .7; }
.lineup-preferred-feet .foot.preferred { fill: #73efb0; stroke: #eafff3; filter: drop-shadow(0 0 3px rgba(115,239,176,.8)); }
.lineup-captain-badge {
  position: absolute; z-index: 7; right: 4px; bottom: 4px; display: grid; place-items: center; width: 20px; height: 20px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 50%; color: #1a1207; background: #d8ff61; font-size: .7rem; font-weight: 1000;
  box-shadow: 0 0 0 2px rgba(9,7,4,0.65), 0 0 14px rgba(216,255,97,.38);
}
.lineup-captain-badge.static { position: relative; inset: auto; flex: 0 0 auto; }
.lineup-slot .lineup-card-actions { top: calc(100% + 4px); max-width: 210px; z-index: 80; }
.lineup-slot-picker {
  position: absolute; z-index: 100; left: 50%; top: calc(100% + 8px); width: min(270px, calc(100vw - 28px));
  transform: translateX(-50%); padding: 8px; border: 1px solid rgba(121,237,176,.35); border-radius: 13px;
  background: rgba(13,12,10,0.98); box-shadow: 0 20px 48px rgba(0,0,0,.5); text-align: left;
}
.lineup-slot-picker.opens-up { top: auto; bottom: calc(100% + 8px); }
.lineup-slot-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 3px 7px; }
.lineup-slot-picker-head strong { font-size: .72rem; }
.lineup-slot-picker-head button { width: 25px; height: 25px; border: 0; border-radius: 7px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.lineup-slot-picker-list { display: grid; gap: 5px; max-height: 238px; overflow-y: auto; overscroll-behavior: contain; }
.lineup-slot-picker-list > button { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 7px; align-items: center; min-width: 0; padding: 5px; border: 1px solid rgba(212,169,79,0.13); border-radius: 9px; color: #fff; background: rgba(255,255,255,.035); text-align: left; cursor: pointer; }
.lineup-slot-picker-list > button:hover,
.lineup-slot-picker-list > button:focus-visible { border-color: rgba(212,169,79,0.5); outline: none; background: rgba(76,57,21,0.09); }
.lineup-slot-picker-list img { width: 36px; height: 42px; object-fit: contain; object-position: bottom; }
.lineup-slot-picker-list span { display: grid; min-width: 0; }
.lineup-slot-picker-list b { overflow: hidden; font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.lineup-slot-picker-list small { color: rgba(251,247,239,0.62); font-size: .56rem; }
.lineup-slot-picker-list em { padding: 3px 5px; border-radius: 99px; color: #102019; background: #b9efc8; font-size: .5rem; font-style: normal; font-weight: 950; }
.lineup-slot-picker-list em.secondary { background: #fff0a8; }
.lineup-slot-picker > small { display: block; margin-top: 7px; color: rgba(251,247,239,0.55); font-size: .55rem; line-height: 1.35; }

.lineup-available-panel { margin-top: 0; max-height: 720px; display: flex; flex-direction: column; padding: 13px; }
.lineup-filters { display: grid; gap: 8px; margin-top: 10px; }
.lineup-filters label { display: grid; gap: 5px; }
.lineup-filters label > span { color: var(--accent-cyan); font-size: .62rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.lineup-filters input,
.lineup-filters select { width: 100%; min-width: 0; min-height: 38px; border: 1px solid rgba(212,169,79,0.2); border-radius: 9px; padding: 7px 9px; color: #fff; background: rgba(13,12,10,0.82); font: inherit; }
.lineup-available-grid { grid-template-columns: 1fr; min-height: 120px; margin-top: 10px; overflow-y: auto; padding-right: 3px; }
.lineup-available-grid .lineup-mini-card { grid-template-columns: 50px minmax(0,1fr); padding: 6px; }
.lineup-available-grid .lineup-card-visual { width: 50px; height: 65px; }
.lineup-side-panel { max-height: 720px; overflow-y: auto; align-content: start; padding-right: 2px; }
.lineup-roles-panel { overflow: visible; }
.lineup-roles-summary-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.lineup-roles-summary-toggle::-webkit-details-marker { display: none; }
.lineup-roles-summary-toggle > span:first-child { display: grid; gap: 3px; }
.lineup-roles-summary-toggle .eyebrow { margin: 0; font-size: .57rem; }
.lineup-roles-summary-toggle strong { font-size: 1rem; }
.lineup-toggle-chevron { transition: transform .16s ease; }
.lineup-roles-panel[open] .lineup-toggle-chevron { transform: rotate(180deg); }
.lineup-public-captain { display: flex; align-items: center; justify-content: center; gap: 10px; width: min(100%,580px); margin: 12px auto 0; padding: 9px 13px; border: 1px solid rgba(216,255,97,.25); border-radius: 13px; background: rgba(13,12,10,0.75); }
.lineup-public-captain > span:last-child { display: grid; }
.lineup-public-captain small { color: rgba(251,247,239,0.58); font-size: .58rem; font-weight: 900; letter-spacing: .1em; }
.lineup-public-captain strong { color: #fff; font-size: .82rem; }

@media (max-width: 1220px) {
  .lineup-workspace { grid-template-columns: minmax(210px,.72fr) minmax(430px,1.4fr); }
  .lineup-side-panel { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
  .profile-tabs { overflow-x: auto !important; overflow-y: visible !important; }
  .profile-tab-menu-options { position: fixed; left: 50%; top: 132px; width: min(260px,calc(100vw - 28px)); transform: translateX(-50%); }
  .lineup-workspace { grid-template-columns: 1fr; }
  .lineup-pitch-column { order: 1; }
  .lineup-available-panel { order: 2; max-height: none; }
  .lineup-side-panel { order: 3; grid-column: auto; grid-template-columns: 1fr; }
  .lineup-available-grid { max-height: 440px; }
}
@media (max-width: 680px) {
  .lineup-pitch { width: min(100%,520px); min-height: 0; aspect-ratio: .76; }
  .lineup-slot { width: clamp(62px,20vw,78px); }
  .lineup-slot .lineup-card-visual { height: 62px; }
  .lineup-player-name { font-size: .52rem; }
  .lineup-energy b { font-size: .43rem; }
  .lineup-preferred-feet { width: 25px; height: 15px; }
  .lineup-captain-badge { width: 18px; height: 18px; font-size: .62rem; }
}
@media (max-width: 380px) {
  .lineup-pitch { min-height: 0; aspect-ratio: .72; }
  .lineup-slot { width: 59px; }
  .lineup-slot .lineup-card-visual { height: 54px; }
  .lineup-player-name { font-size: .46rem; padding-inline: 2px; }
  .lineup-slot-label { top: -13px; font-size: .48rem; }
  .lineup-slot-picker { width: min(248px,calc(100vw - 18px)); }
}
.lineup-slot-picker.edge-left { left: 0; transform: none; }
.lineup-slot-picker.edge-right { left: auto; right: 0; transform: none; }
.lineup-slot.picker-open .lineup-card-actions { display: none !important; }

/* 3.0A.46-preview.3 — lineup polish, public Team menu and position effects */
#lineupDeletePreset.danger-soft {
  color: #a82438 !important;
  border-color: rgba(168,36,56,.42) !important;
}

.lineup-pitch {
  aspect-ratio: .75;
  max-height: 760px;
}

.lineup-owner-actions {
  width: min(100%, 580px);
  margin: 14px auto 0;
  justify-content: center;
}

.lineup-mini-card,
.lineup-pitch-card {
  border-color: color-mix(in srgb, var(--rarity-color, #d4a94f) 42%, rgba(255,255,255,.14));
  background:
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--rarity-color, #4c3915) 26%, transparent), transparent 58%),
    linear-gradient(145deg, color-mix(in srgb, var(--rarity-color, #4c3915) 16%, rgba(23,21,15,0.96)), rgba(13,12,10,0.97));
  box-shadow: 0 11px 25px rgba(9,7,4,0.24), inset 0 1px 0 color-mix(in srgb, var(--rarity-color, #d4a94f) 18%, transparent);
}
.lineup-card-visual {
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--rarity-color, #4c3915) 34%, rgba(13,12,10,0.9)), color-mix(in srgb, var(--rarity-color, #4c3915) 16%, rgba(23,21,15,0.96)));
}

/* The generic span rule in the older card style must not pull the feet back
   over the rating. */
.lineup-card-visual > .lineup-preferred-feet {
  top: auto !important;
  right: auto !important;
  left: 3px !important;
  bottom: 2px !important;
  width: 23px;
  height: 13px;
  padding: 0 1px;
  border-radius: 5px;
}

.lineup-player-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.lineup-player-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-captain-badge {
  position: static;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(212,169,79,0.5);
  border-radius: 4px;
  color: #1a1207;
  background: linear-gradient(135deg, #fff1a8, #f3c64f 50%, #d99b24);
  font-size: .48rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(9,7,4,0.34);
}
.lineup-captain-badge.static {
  width: 18px;
  height: 18px;
  font-size: .58rem;
}
.lineup-public-captain {
  border-color: rgba(212,169,79,0.3);
}

/* Pitch controls open only after a deliberate double click. */
.lineup-slot:hover .lineup-card-actions,
.lineup-slot:focus-within .lineup-card-actions,
.lineup-slot.selected .lineup-card-actions {
  display: none !important;
}
.lineup-slot .lineup-mini-card.actions-open .lineup-card-actions {
  display: flex !important;
  top: calc(100% + 3px);
  max-width: 170px;
  gap: 3px;
  padding: 3px;
  border-radius: 7px;
}
.lineup-slot .lineup-mini-card.actions-open .lineup-card-action {
  min-height: 23px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: .54rem;
}

.position-penalty-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  margin: 0 0 15px;
  padding: 11px 13px;
  border: 1px solid rgba(255,216,106,.32);
  border-radius: 12px;
  background: rgba(66,49,8,.22);
}
.position-penalty-notice.out_of_position {
  border-color: rgba(255,97,112,.38);
  background: rgba(78,16,28,.24);
}
.position-penalty-notice strong { color: #fff; }
.position-penalty-notice span { color: #ffd86a; font-weight: 900; text-align: right; }
.position-penalty-notice.out_of_position span { color: #ff8895; }
.position-penalty-notice small { grid-column: 1 / -1; color: rgba(251,247,239,0.65); line-height: 1.4; }
.attribute-value-with-penalty {
  display: inline-flex !important;
  align-items: baseline;
  justify-content: flex-end;
  gap: 5px;
}
.attribute-value-with-penalty em,
.profile-score-with-penalty i {
  color: #ff6677;
  font-style: normal;
  font-weight: 950;
}
.profile-score-with-penalty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-score-with-penalty i { font-size: .72rem; }

@media (max-width: 680px) {
  .lineup-pitch { aspect-ratio: .72; }
  .lineup-owner-actions { width: min(100%,520px); }
  .lineup-card-visual > .lineup-preferred-feet { width: 20px; height: 12px; }
  .lineup-captain-badge { width: 12px; height: 12px; font-size: .42rem; }
  .position-penalty-notice { grid-template-columns: 1fr; }
  .position-penalty-notice span { text-align: left; }
}
.lineup-workspace.public-view .lineup-pitch-card { cursor: pointer; }
.lineup-slot.picker-open .lineup-mini-card.actions-open .lineup-card-actions { display: none !important; }

/* 3.0A.46-preview.4 — lineup card metadata, clearer feet and elite rarity polish */
.lineup-card-visual > .lineup-preferred-feet {
  width: 28px;
  height: 16px;
  padding: 1px 2px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(13,12,10,0.78);
}
.lineup-preferred-feet .lineup-foot {
  color: #d9d1c2;
  fill: currentColor;
  opacity: .72;
  transition: color .15s ease, opacity .15s ease, filter .15s ease;
}
.lineup-preferred-feet .lineup-foot.preferred {
  color: #55e58e;
  opacity: 1;
  filter: drop-shadow(0 0 2.5px rgba(85,229,142,.82));
}

/* Enlarge only the portrait art; card dimensions remain unchanged. */
.lineup-slot .lineup-card-visual img {
  inset: 4px -8px 0;
  width: calc(100% + 16px);
  height: calc(100% - 4px);
}
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-visual img {
  inset: 11px -5px 0;
  width: calc(100% + 10px);
  height: calc(100% - 11px);
}

.lineup-card-name-row,
.lineup-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
}
.lineup-card-name-row b {
  min-width: 0;
  flex: 1 1 auto;
}
.lineup-nationality-flag {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 16px;
  font-size: .9rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.48));
}
.lineup-card-meta-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-card-meta-row span:last-child { text-align: right; }

/* Legend should read as vivid, polished orange rather than brown. */
.lineup-mini-card.rarity-legend {
  border-color: rgba(255,190,74,.94);
  background:
    radial-gradient(circle at 77% 8%, rgba(255,238,151,.72), transparent 27%),
    radial-gradient(circle at 15% 88%, rgba(255,94,24,.45), transparent 46%),
    linear-gradient(145deg, #ffb23f 0%, #e95a18 42%, #43120d 100%);
  box-shadow:
    0 12px 30px rgba(255,107,25,.33),
    0 0 18px rgba(255,183,62,.35),
    inset 0 1px 0 rgba(255,246,205,.72);
}
.lineup-mini-card.rarity-legend .lineup-card-visual {
  background:
    radial-gradient(circle at 65% 12%, rgba(255,250,205,.8), transparent 32%),
    linear-gradient(155deg, #ffca58 0%, #ff7b24 48%, #7d1c12 100%);
  box-shadow: inset 0 0 18px rgba(255,239,162,.25);
}

/* GOAT cards use a luminous platinum-gold surface with purple game accents. */
.lineup-mini-card.rarity-goat {
  border-color: rgba(255,242,167,.98);
  background:
    radial-gradient(circle at 76% 9%, rgba(255,255,255,.95), transparent 23%),
    radial-gradient(circle at 12% 92%, rgba(128,93,255,.55), transparent 42%),
    linear-gradient(140deg, #fff6bd 0%, #e5b84f 31%, #7857e8 67%, #17132f 100%);
  box-shadow:
    0 14px 34px rgba(126,91,255,.34),
    0 0 23px rgba(255,228,122,.45),
    inset 0 1px 0 rgba(255,255,255,.86);
}
.lineup-mini-card.rarity-goat .lineup-card-visual {
  background:
    radial-gradient(circle at 67% 10%, rgba(255,255,255,.98), transparent 30%),
    linear-gradient(155deg, #fff8cc 0%, #e7c35f 38%, #8265ff 72%, #30245d 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,.32);
}
.lineup-mini-card.rarity-legend .lineup-card-copy,
.lineup-mini-card.rarity-goat .lineup-card-copy {
  text-shadow: 0 1px 3px rgba(0,0,0,.62);
}

/* The detailed profile warning contains only the requested position context. */
.position-penalty-notice {
  display: block;
  padding: 10px 13px;
}
.position-penalty-notice strong { display: block; }
.position-penalty-notice span,
.position-penalty-notice small { display: none !important; }
.attribute-value-with-penalty em,
.profile-score-with-penalty i {
  opacity: .62;
}

@media (max-width: 680px) {
  .lineup-card-visual > .lineup-preferred-feet { width: 24px; height: 14px; }
  .lineup-nationality-flag { min-width: 18px; font-size: .82rem; }
}

/* 3.0A.46-preview.5 — restrained elite cards, sole-style feet and image flags */
.lineup-card-visual > .lineup-preferred-feet {
  left: 4px !important;
  bottom: 3px !important;
  width: 21px;
  height: 14px;
  padding: 1px 2px;
  border-radius: 4px;
  background: rgba(13,12,10,0.72);
}
.lineup-preferred-feet svg { display: block; width: 100%; height: 100%; }
.lineup-preferred-feet .lineup-foot {
  color: #d9d1c2;
  fill: currentColor;
  stroke: rgba(251,247,239,0.24);
  stroke-width: .45;
  opacity: .72;
}
.lineup-preferred-feet .lineup-foot.preferred {
  color: #4ed984;
  opacity: 1;
  filter: drop-shadow(0 0 1.7px rgba(78,217,132,.68));
}

/* Enlarge the portrait artwork only; keep every lineup box at its current size. */
.lineup-slot .lineup-card-visual img {
  inset: 1px -11px 0;
  width: calc(100% + 22px);
  height: calc(100% - 1px);
}
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-visual img {
  inset: 8px -7px 0;
  width: calc(100% + 14px);
  height: calc(100% - 8px);
}

/* Elite rarities remain distinctive without washing out position/rating text. */
.lineup-mini-card.rarity-legend {
  border-color: rgba(255,164,72,.72);
  background:
    radial-gradient(circle at 78% 10%, rgba(255,192,94,.30), transparent 34%),
    linear-gradient(145deg, #6d2b18 0%, #b34d20 45%, #28121a 100%);
  box-shadow: 0 11px 27px rgba(255,112,36,.18), inset 0 1px 0 rgba(255,220,168,.34);
}
.lineup-mini-card.rarity-legend .lineup-card-visual {
  background:
    radial-gradient(circle at 68% 12%, rgba(255,207,119,.26), transparent 34%),
    linear-gradient(155deg, #8f381b 0%, #c45c25 48%, #351522 100%);
  box-shadow: inset 0 0 14px rgba(255,184,89,.12);
}
.lineup-mini-card.rarity-goat {
  border-color: rgba(230,208,126,.76);
  background:
    radial-gradient(circle at 78% 9%, rgba(247,224,146,.28), transparent 31%),
    radial-gradient(circle at 13% 90%, rgba(121,92,226,.24), transparent 45%),
    linear-gradient(142deg, #5b4b72 0%, #7b643d 38%, #3b2f6e 69%, #151329 100%);
  box-shadow: 0 12px 29px rgba(100,75,203,.20), inset 0 1px 0 rgba(255,244,196,.38);
}
.lineup-mini-card.rarity-goat .lineup-card-visual {
  background:
    radial-gradient(circle at 70% 10%, rgba(255,235,170,.25), transparent 32%),
    linear-gradient(155deg, #756043 0%, #8d7447 37%, #54428d 70%, #251f46 100%);
  box-shadow: inset 0 0 15px rgba(255,235,170,.11);
}
.lineup-mini-card.rarity-legend .lineup-card-visual > strong,
.lineup-mini-card.rarity-legend .lineup-card-position,
.lineup-mini-card.rarity-goat .lineup-card-visual > strong,
.lineup-mini-card.rarity-goat .lineup-card-position {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.92), 0 0 5px rgba(0,0,0,.45);
}

/* Use the same image-based flags as the normal collectible cards. */
.lineup-nationality-flag.player-country-flag-wrap {
  display: inline-block;
  width: 22px;
  min-width: 22px;
  height: 16px;
  flex: 0 0 22px;
  border-radius: 3px;
  font-size: 0;
}
.lineup-nationality-flag .player-country-flag-fallback {
  font-size: 11px;
  line-height: 16px;
}

@media (max-width: 680px) {
  .lineup-card-visual > .lineup-preferred-feet { width: 19px; height: 13px; }
  .lineup-nationality-flag.player-country-flag-wrap { width: 20px; min-width: 20px; height: 15px; flex-basis: 20px; }
  .lineup-nationality-flag .player-country-flag-fallback { line-height: 15px; }
}


/* 3.0A.46-preview.6 — unified pitch-card data, temporary kits and panel order */
/* All pitch ratings/positions use the same readable framed treatment. Only
   Legend and GOAT retain special shiny rarity surfaces. */
.lineup-pitch-card .lineup-card-visual > strong,
.lineup-pitch-card .lineup-card-position {
  display: grid;
  place-items: center;
  min-width: 25px;
  min-height: 19px;
  padding: 2px 5px;
  border: 1px solid rgba(212,169,79,0.36);
  border-radius: 7px;
  color: #fff !important;
  background: linear-gradient(145deg, rgba(23,21,15,0.92), rgba(42,34,20,0.9));
  box-shadow: 0 3px 9px rgba(9,7,4,0.34), inset 0 1px 0 rgba(255,255,255,.13);
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.lineup-pitch-card .lineup-card-visual > strong { top: 4px; left: 4px; font-size: .91rem; }
.lineup-pitch-card .lineup-card-position { top: 4px; right: 4px; font-size: .52rem; }

/* Rarity remains visible on every card, but only the top two tiers shine. */
.lineup-pitch-card:not(.rarity-legend):not(.rarity-goat) {
  box-shadow: 0 8px 18px rgba(9,7,4,0.22), inset 0 1px 0 color-mix(in srgb,var(--rarity-color,#d4a94f) 17%,transparent);
}
.lineup-pitch-card.rarity-legend,
.lineup-pitch-card.rarity-goat {
  isolation: isolate;
  overflow: visible;
}
.lineup-pitch-card.rarity-legend::before,
.lineup-pitch-card.rarity-goat::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 18%, rgba(255,255,255,.24) 42%, transparent 66%);
  opacity: .55;
}
.lineup-pitch-card > * { position: relative; z-index: 1; }

/* The portrait area flips independently so player name and live energy remain visible. */
.lineup-card-flip {
  width: 100%;
  height: 74px;
  perspective: 700px;
}
.lineup-card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .48s cubic-bezier(.2,.78,.24,1);
}
.lineup-pitch-card.is-flipped .lineup-card-flip-inner { transform: rotateY(180deg); }
.lineup-card-face {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  border-radius: 9px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lineup-card-back {
  display: grid;
  grid-template-rows: auto 1fr auto;
  place-items: center;
  padding: 7px;
  transform: rotateY(180deg);
  border: 1px solid color-mix(in srgb,var(--rarity-color,#d4a94f) 46%,rgba(255,255,255,.22));
  color: #fff;
  background:
    radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--rarity-color,#4c3915) 34%,transparent),transparent 63%),
    linear-gradient(155deg,rgba(13,12,10,0.98),rgba(23,21,15,0.98));
  box-shadow: inset 0 0 22px color-mix(in srgb,var(--rarity-color,#d4a94f) 16%,transparent);
}
.lineup-card-back small { color: rgba(251,247,239,0.62); font-size: .42rem; font-weight: 950; letter-spacing: .08em; }
.lineup-card-back > strong { font-size: clamp(2rem,4vw,2.8rem); line-height: .9; text-shadow: 0 4px 14px rgba(0,0,0,.55); }
.lineup-card-back button {
  min-height: 19px;
  padding: 2px 6px;
  border: 1px solid rgba(212,169,79,0.3);
  border-radius: 6px;
  color: rgba(251,247,239,0.86);
  background: rgba(13,12,10,0.72);
  font: inherit;
  font-size: .43rem;
  font-weight: 900;
  cursor: pointer;
}
.lineup-card-back button:hover,
.lineup-card-back button:focus-visible { color: #fff; border-color: rgba(212,169,79,0.55); outline: none; }

/* Bottom-right pitch flag; preferred feet remain bottom-left. */
.lineup-pitch-flag.player-country-flag-wrap {
  position: absolute;
  z-index: 6;
  right: 4px;
  bottom: 3px;
  display: inline-block;
  width: 18px;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 3px;
  background: rgba(4,7,18,.72);
  box-shadow: 0 2px 5px rgba(0,0,0,.5);
  font-size: 0;
}
.lineup-pitch-flag .player-country-flag { width: 100%; height: 100%; object-fit: cover; }
.lineup-pitch-flag .player-country-flag-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-size: 9px; line-height: 1; }

/* The left column now owns both the registered squad and set pieces and scrolls
   as one contained menu. */
.lineup-available-panel {
  max-height: 760px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.lineup-available-grid {
  flex: 0 0 auto;
  max-height: 390px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lineup-available-panel .lineup-roles-panel {
  flex: 0 0 auto;
  margin-top: 14px;
  border-top: 1px solid rgba(212,169,79,0.13);
  padding-top: 13px;
}
.lineup-side-panel { overflow: visible; }
.lineup-bench-panel { max-height: 760px; overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 680px) {
  .lineup-card-flip { height: 62px; }
  .lineup-pitch-card .lineup-card-visual > strong { min-width: 22px; min-height: 17px; font-size: .76rem; }
  .lineup-pitch-card .lineup-card-position { min-width: 22px; min-height: 17px; font-size: .45rem; }
  .lineup-card-back > strong { font-size: 2rem; }
  .lineup-pitch-flag.player-country-flag-wrap { width: 16px; height: 12px; }
  .lineup-available-panel,
  .lineup-bench-panel { max-height: none; }
}

/* 3.0A.46-preview.7 — persistent pitch view, separate toggled panels and rarity polish */
.lineup-left-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}
.lineup-left-panel.hidden { display: none !important; }
.lineup-available-panel,
.lineup-roles-panel {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 17px;
  background: rgba(13,12,10,0.58);
}
.lineup-panel-summary,
.lineup-roles-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.lineup-panel-summary::-webkit-details-marker,
.lineup-roles-summary-toggle::-webkit-details-marker { display: none; }
.lineup-panel-summary > span:first-child,
.lineup-roles-summary-toggle > span:first-child { display: grid; gap: 3px; }
.lineup-panel-summary .eyebrow,
.lineup-roles-summary-toggle .eyebrow { margin: 0; font-size: .57rem; }
.lineup-panel-summary strong,
.lineup-roles-summary-toggle strong { color: #fff; font-size: 1rem; }
.lineup-available-panel[open] .lineup-toggle-chevron,
.lineup-roles-panel[open] .lineup-toggle-chevron { transform: rotate(180deg); }
.lineup-registered-content {
  display: flex;
  flex-direction: column;
  max-height: 620px;
  padding: 0 13px 13px;
  overflow: hidden;
  border-top: 1px solid rgba(212,169,79,0.1);
}
.lineup-selection-hint {
  display: block;
  padding-top: 11px;
  color: rgba(251,247,239,0.58);
  line-height: 1.4;
}
.lineup-registered-content .lineup-available-grid {
  min-height: 100px;
  max-height: 430px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.lineup-roles-panel > .lineup-role-summary,
.lineup-roles-panel > .lineup-role-controls { margin-inline: 13px; }
.lineup-roles-panel > .lineup-role-summary:last-child,
.lineup-roles-panel > .lineup-role-controls:last-child { margin-bottom: 13px; }

.lineup-view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(100%,580px);
  margin: 0 auto 10px;
  padding: 6px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 13px;
  background: rgba(13,12,10,0.58);
}
.lineup-view-toggle > span {
  margin-right: 5px;
  color: rgba(251,247,239,0.58);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lineup-view-toggle button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 5px 10px;
  color: rgba(251,247,239,0.7);
  background: rgba(255,255,255,.035);
  font: inherit;
  font-size: .68rem;
  font-weight: 900;
  cursor: pointer;
}
.lineup-view-toggle button:hover,
.lineup-view-toggle button:focus-visible { color: #fff; border-color: rgba(212,169,79,0.34); outline: none; }
.lineup-view-toggle button.active,
.lineup-view-toggle button[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(212,169,79,0.48);
  background: linear-gradient(135deg,rgba(76,57,21,0.28),rgba(76,57,21,0.28));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 14px rgba(212,169,79,0.13);
}

/* Moderate rarity identity: Starter and Prime are clearer; only Legend and
   GOAT receive a visible sheen. */
.lineup-pitch-card.rarity-starter {
  border-color: rgba(212,169,79,0.6);
  background:
    radial-gradient(circle at 78% 10%,rgba(76,57,21,0.2),transparent 36%),
    linear-gradient(145deg,#17150f 0%,#2a2214 44%,#0d0c0a 100%);
  box-shadow: 0 9px 22px rgba(212,169,79,0.2), inset 0 1px 0 rgba(212,169,79,0.25);
}
.lineup-pitch-card.rarity-prime {
  border-color: rgba(212,169,79,0.64);
  background:
    radial-gradient(circle at 78% 10%,rgba(76,57,21,0.22),transparent 36%),
    linear-gradient(145deg,#17150f 0%,#2a2214 45%,#0d0c0a 100%);
  box-shadow: 0 9px 23px rgba(212,169,79,0.22), inset 0 1px 0 rgba(212,169,79,0.25);
}
.lineup-pitch-card.rarity-legend {
  border-color: rgba(255,158,67,.82);
  background:
    radial-gradient(circle at 77% 9%,rgba(255,213,126,.37),transparent 35%),
    linear-gradient(145deg,#713019 0%,#bd5522 46%,#2c1420 100%);
  box-shadow: 0 10px 27px rgba(255,105,35,.28), 0 0 14px rgba(255,149,57,.16), inset 0 1px 0 rgba(255,224,175,.40);
}
.lineup-pitch-card.rarity-goat {
  border-color: rgba(242,218,131,.86);
  background:
    radial-gradient(circle at 78% 8%,rgba(255,244,189,.39),transparent 34%),
    radial-gradient(circle at 14% 91%,rgba(76,57,21,0.31),transparent 44%),
    linear-gradient(142deg,#2a2214 0%,#88703f 39%,#2a2214 70%,#0d0c0a 100%);
  box-shadow: 0 11px 29px rgba(212,169,79,0.27), 0 0 15px rgba(245,219,126,.18), inset 0 1px 0 rgba(255,248,211,.44);
}
.lineup-pitch-card.rarity-legend::before,
.lineup-pitch-card.rarity-goat::before { opacity: .72; }

/* The flag is a nested image; reset generic portrait positioning so it stays
   fully visible in the actual bottom-right corner. */
.lineup-pitch-flag.player-country-flag-wrap {
  top: auto !important;
  right: 3px !important;
  bottom: 3px !important;
  left: auto !important;
  width: 20px !important;
  height: 15px !important;
  overflow: hidden !important;
  transform: none !important;
}
.lineup-pitch-flag .player-country-flag,
.lineup-slot .lineup-card-visual .lineup-pitch-flag .player-country-flag {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}
.lineup-pitch-flag .player-country-flag-fallback {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.lineup-card-back small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(251,247,239,0.9);
  font-size: .62rem;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lineup-card-back-actions { display: flex; justify-content: center; gap: 4px; }
.lineup-card-back-actions button { min-width: 31px; }
.lineup-card-back-actions button:last-child { color: #ffb4bd; border-color: rgba(177,47,64,.54); }
.lineup-card-back-actions button:last-child:hover,
.lineup-card-back-actions button:last-child:focus-visible { color: #ffdce0; border-color: rgba(211,63,83,.82); }
.lineup-pitch-card > .lineup-card-actions { display: none !important; }

@media (max-width: 860px) {
  .lineup-left-panel { order: 2; }
}
@media (max-width: 680px) {
  .lineup-registered-content { max-height: 560px; }
  .lineup-registered-content .lineup-available-grid { max-height: 370px; }
  .lineup-view-toggle { flex-wrap: wrap; }
  .lineup-view-toggle > span { flex: 0 0 100%; margin: 0; text-align: center; }
  .lineup-pitch-flag.player-country-flag-wrap { width: 18px !important; height: 13px !important; }
}
.lineup-left-panel > .lineup-available-panel {
  display: block;
  max-height: none;
  flex-direction: initial;
}

/* 3.0A.46-preview.8 — Preview 4 rarity treatment, cleaner kit face and compact pitch controls */
/* Match the rating chip to the position chip exactly. */
.lineup-pitch-card .lineup-card-visual > strong,
.lineup-pitch-card .lineup-card-position {
  width: 27px;
  min-width: 27px;
  height: 19px;
  min-height: 19px;
  padding: 0 4px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}
.lineup-pitch-card .lineup-card-visual > strong { font-size: .58rem; }
.lineup-pitch-card .lineup-card-position { font-size: .5rem; }
.lineup-pitch-card .lineup-card-visual > strong { top: 4px; left: 4px; }
.lineup-pitch-card .lineup-card-position { top: 4px; right: 4px; }

/* Preview 4-inspired polished rarity surfaces. Starter and Prime use the same
   visual language, while only Legend and GOAT keep the animated sheen. */
.lineup-pitch-card.rarity-starter {
  border-color: rgba(212,169,79,0.94);
  background:
    radial-gradient(circle at 77% 8%,rgba(251,247,239,0.62),transparent 28%),
    radial-gradient(circle at 15% 88%,rgba(76,57,21,0.42),transparent 46%),
    linear-gradient(145deg,#4c3915 0%,#2a2214 43%,#17150f 100%);
  box-shadow: 0 11px 28px rgba(212,169,79,0.29),0 0 14px rgba(212,169,79,0.22),inset 0 1px 0 rgba(212,169,79,0.58);
}
.lineup-pitch-card.rarity-starter .lineup-card-visual {
  background:
    radial-gradient(circle at 65% 12%,rgba(251,247,239,0.66),transparent 32%),
    linear-gradient(155deg,#4c3915 0%,#4c3915 48%,#17150f 100%);
  box-shadow: inset 0 0 17px rgba(212,169,79,0.22);
}
.lineup-pitch-card.rarity-prime {
  border-color: rgba(212,169,79,0.95);
  background:
    radial-gradient(circle at 77% 8%,rgba(251,247,239,0.66),transparent 28%),
    radial-gradient(circle at 15% 88%,rgba(76,57,21,0.43),transparent 46%),
    linear-gradient(145deg,#4c3915 0%,#2a2214 43%,#17150f 100%);
  box-shadow: 0 11px 29px rgba(212,169,79,0.31),0 0 15px rgba(212,169,79,0.23),inset 0 1px 0 rgba(212,169,79,0.6);
}
.lineup-pitch-card.rarity-prime .lineup-card-visual {
  background:
    radial-gradient(circle at 65% 12%,rgba(251,247,239,0.69),transparent 32%),
    linear-gradient(155deg,#4c3915 0%,#4c3915 48%,#17150f 100%);
  box-shadow: inset 0 0 18px rgba(212,169,79,0.22);
}
.lineup-pitch-card.rarity-legend {
  border-color: rgba(255,190,74,.94);
  background:
    radial-gradient(circle at 77% 8%,rgba(255,238,151,.72),transparent 27%),
    radial-gradient(circle at 15% 88%,rgba(255,94,24,.45),transparent 46%),
    linear-gradient(145deg,#ffb23f 0%,#e95a18 42%,#43120d 100%);
  box-shadow: 0 12px 30px rgba(255,107,25,.33),0 0 18px rgba(255,183,62,.35),inset 0 1px 0 rgba(255,246,205,.72);
}
.lineup-pitch-card.rarity-legend .lineup-card-visual {
  background:
    radial-gradient(circle at 65% 12%,rgba(255,250,205,.8),transparent 32%),
    linear-gradient(155deg,#ffca58 0%,#ff7b24 48%,#7d1c12 100%);
  box-shadow: inset 0 0 18px rgba(255,239,162,.25);
}
.lineup-pitch-card.rarity-goat {
  border-color: rgba(255,242,167,.98);
  background:
    radial-gradient(circle at 76% 9%,rgba(255,255,255,.95),transparent 23%),
    radial-gradient(circle at 12% 92%,rgba(76,57,21,0.55),transparent 42%),
    linear-gradient(140deg,#fff6bd 0%,#e5b84f 31%,#4c3915 67%,#0d0c0a 100%);
  box-shadow: 0 14px 34px rgba(212,169,79,0.34),0 0 23px rgba(255,228,122,.45),inset 0 1px 0 rgba(255,255,255,.86);
}
.lineup-pitch-card.rarity-goat .lineup-card-visual {
  background:
    radial-gradient(circle at 67% 10%,rgba(255,255,255,.98),transparent 30%),
    linear-gradient(155deg,#fff8cc 0%,#e7c35f 38%,#4c3915 72%,#17150f 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,.32);
}
.lineup-pitch-card.rarity-legend::before,
.lineup-pitch-card.rarity-goat::before { opacity: .58; }

/* Slot names are still available to assistive technology through aria-labels,
   but are no longer drawn over the pitch. */
.lineup-slot-label { display: none !important; }

/* The kit-number face contains only the number and large reliable actions. */
.lineup-card-back {
  grid-template-rows: 1fr auto;
  padding: 6px 5px 5px;
  pointer-events: none;
}
.lineup-card-front { pointer-events: auto; }
.lineup-pitch-card.is-flipped .lineup-card-front { pointer-events: none; }
.lineup-pitch-card.is-flipped .lineup-card-back { pointer-events: auto; }
.lineup-card-back > strong {
  align-self: center;
  font-size: clamp(2.15rem,4.5vw,3rem);
}
.lineup-card-back-actions {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  width: 100%;
  gap: 4px;
  pointer-events: auto;
  transform: translateZ(2px);
}
.lineup-card-back-actions .lineup-card-back-action:only-child { grid-column: 1 / -1; }
.lineup-card-back-actions .lineup-card-back-action {
  position: relative;
  z-index: 21;
  width: 100%;
  min-width: 0;
  min-height: 25px;
  padding: 4px 5px;
  font-size: .52rem;
  line-height: 1;
  pointer-events: auto;
  touch-action: manipulation;
}
.lineup-card-back-actions .lineup-card-back-action.remove {
  color: #ffb4bd;
  border-color: rgba(177,47,64,.54);
}

/* Keep all four owner actions beside each other and aligned to the pitch width. */
/* Centred beneath the pitch and independent of how many controls there are.
   A fixed column count left the row visibly off-centre as soon as the button
   count changed, so the row now centres itself and wraps when it runs out of
   width instead of reserving space for a control that is not there. */
.lineup-owner-actions {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  width: min(100%,780px) !important;
  gap: 7px;
  margin: 12px auto 0;
}
.lineup-owner-actions button {
  flex: 1 1 clamp(120px,28%,220px);
  width: auto !important;
  min-width: 0;
  min-height: 36px;
  padding: 5px 6px;
  font-size: clamp(.52rem,1.15vw,.66rem);
  line-height: 1.15;
  white-space: normal;
}

@media (max-width: 680px) {
  .lineup-pitch-card .lineup-card-visual > strong,
  .lineup-pitch-card .lineup-card-position {
    width: 23px;
    min-width: 23px;
    height: 17px;
    min-height: 17px;
    font-weight: 900;
    letter-spacing: 0;
  }
  .lineup-pitch-card .lineup-card-visual > strong { font-size: .5rem; }
  .lineup-pitch-card .lineup-card-position { font-size: .43rem; }
  .lineup-owner-actions { gap: 4px; }
  .lineup-owner-actions button { min-height: 34px; padding: 4px 3px; font-size: .5rem; }
  .lineup-card-back-actions .lineup-card-back-action { min-height: 23px; font-size: .48rem; }
}

/* 3.0A.46-preview.9 — consistent side-card badges, contained kit actions and pitch-width controls */
/* Registered-squad and substitute cards use the same framed rating/position
   language as the pitch cards, scaled only to fit their narrower portrait tile. */
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-visual > strong,
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-position {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 21px;
  min-width: 21px;
  height: 15px;
  min-height: 15px;
  padding: 0 2px;
  border: 1px solid rgba(212,169,79,0.36);
  border-radius: 6px;
  color: #fff !important;
  background: linear-gradient(145deg,rgba(23,21,15,0.92),rgba(42,34,20,0.9));
  box-shadow: 0 3px 9px rgba(9,7,4,0.34),inset 0 1px 0 rgba(255,255,255,.13);
  font-size: .43rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
}
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-visual > strong { top: 3px; left: 3px; }
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-position { top: 3px; right: 3px; }

/* Keep both kit-face actions fully inside the portrait frame. */
.lineup-card-back {
  padding: 5px 4px 4px;
}
.lineup-card-back-actions {
  box-sizing: border-box;
  width: calc(100% - 2px);
  gap: 2px;
}
.lineup-card-back-actions .lineup-card-back-action {
  box-sizing: border-box;
  min-height: 22px;
  padding: 3px 1px;
  overflow: hidden;
  font-size: .42rem;
  letter-spacing: -.015em;
  text-overflow: clip;
  white-space: nowrap;
}

/* The action row is intentionally a little narrower than the pitch. */
.lineup-owner-actions {
  width: min(calc(100% - 28px),540px) !important;
  gap: 6px;
}

/* Preserve elite rarity surfaces and sheen, but remove the surrounding glow. */
.lineup-mini-card.rarity-legend,
.lineup-pitch-card.rarity-legend {
  box-shadow: 0 11px 24px rgba(255,107,25,.25),inset 0 1px 0 rgba(255,246,205,.72) !important;
}
.lineup-mini-card.rarity-goat,
.lineup-pitch-card.rarity-goat {
  box-shadow: 0 12px 26px rgba(212,169,79,0.25),inset 0 1px 0 rgba(255,255,255,.86) !important;
}

@media (max-width: 680px) {
  .lineup-owner-actions { width: min(calc(100% - 18px),500px) !important; gap: 4px; }
  .lineup-card-back-actions .lineup-card-back-action { min-height: 21px; font-size: .39rem; }
}

/* 3.0A.46-preview.12 — ensure the last registered player card can scroll fully into view */
.lineup-registered-content {
  min-height: 0;
}
.lineup-registered-content .lineup-available-grid {
  flex: 1 1 auto;
  min-height: 0;
  box-sizing: border-box;
  padding-bottom: 18px;
  scroll-padding-bottom: 18px;
}
.lineup-registered-content .lineup-available-grid > :last-child {
  margin-bottom: 2px;
}

/* 3.0A.46-preview.13 — public-lineup privacy and empty-state refinement */
/* The earlier grid declaration used !important, so public viewers need an
   equally explicit hidden state to ensure owner-only actions never appear. */
#lineupOwnerActions.hidden,
.lineup-workspace.public-view #lineupOwnerActions {
  display: none !important;
}

.lineup-pitch.no-public-lineup {
  display: grid;
  place-items: center;
}
.lineup-no-public-lineup {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(calc(100% - 48px),360px);
  padding: 22px 20px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 15px;
  color: rgba(251,247,239,0.74);
  background: rgba(13,12,10,0.78);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  text-align: center;
}
.lineup-no-public-lineup strong {
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1rem,2.6vw,1.35rem);
  letter-spacing: .02em;
}
.lineup-no-public-lineup span {
  max-width: 30ch;
  font-size: .78rem;
  line-height: 1.45;
}



/* 3.0A.46-preview.14 — horizontal pitch bands, public markings and profile active XI */
.lineup-pitch.public-lineup-pitch .lineup-pitch-markings,
.lineup-workspace.public-view .lineup-pitch-markings {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.lineup-pitch.public-lineup-pitch .lineup-pitch-markings > span,
.lineup-workspace.public-view .lineup-pitch-markings > span {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.lineup-workspace.public-view .lineup-slot.empty {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.active-lineup-overview-panel { min-width: 0; }
.profile-active-lineup-overview {
  min-width: 0;
  margin-top: 18px;
}
.profile-active-lineup-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  color: rgba(251,247,239,0.72);
  font-size: .65rem;
}
.profile-active-lineup-meta strong { color: #fff; font-size: .75rem; }
.profile-active-lineup-pitch {
  position: relative;
  width: min(100%,360px);
  aspect-ratio: .80;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(220,255,247,.42);
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(30,117,88,.92) 0 12.5%, rgba(25,105,80,.92) 12.5% 25%),
    linear-gradient(180deg,#1d755c,#155442);
  box-shadow: inset 0 0 48px rgba(2,18,13,.3),0 14px 34px rgba(2,3,14,.28);
}
.profile-active-lineup-pitch .lineup-pitch-markings { inset: 0; display: block; }
.profile-active-lineup-pitch .lineup-pitch-markings > span { display: block; }
.profile-active-lineup-player {
  position: absolute;
  left: var(--slot-x);
  top: var(--slot-y);
  z-index: 3;
  display: grid;
  justify-items: center;
  width: clamp(35px,10.5%,49px);
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  transform: translate(-50%,-50%);
  cursor: pointer;
}
.profile-active-lineup-player:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 3px; }
.profile-active-lineup-portrait {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: .78;
  overflow: hidden;
  border: 1px solid color-mix(in srgb,var(--rarity-color) 74%,#fff 12%);
  border-radius: 7px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--rarity-color) 42%,#171735),#101021);
  box-shadow: 0 5px 11px rgba(2,3,14,.3);
}
.profile-active-lineup-portrait img {
  position: absolute;
  inset: 10px -2px 0;
  width: calc(100% + 4px);
  height: calc(100% - 10px);
  object-fit: contain;
  object-position: bottom center;
}
.profile-active-lineup-portrait strong,
.profile-active-lineup-portrait em {
  position: absolute;
  z-index: 2;
  top: 2px;
  display: grid;
  min-width: 14px;
  height: 11px;
  place-items: center;
  padding: 0 2px;
  border: 1px solid rgba(205,210,255,.3);
  border-radius: 4px;
  color: #fff;
  background: rgba(30,24,69,.92);
  font-size: .34rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}
.profile-active-lineup-portrait strong { left: 2px; }
.profile-active-lineup-portrait em { right: 2px; }
.profile-active-lineup-name {
  display: flex;
  align-items: center;
  gap: 2px;
  max-width: 64px;
  margin-top: 2px;
  overflow: hidden;
  color: #fff;
  font-size: clamp(.34rem,.75vw,.45rem);
  font-weight: 900;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,.9);
  white-space: nowrap;
}
.profile-active-lineup-captain {
  display: grid;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  place-items: center;
  border-radius: 50%;
  color: #1a1207;
  background: linear-gradient(135deg,#4c3915,#4c3915);
  font-size: .28rem;
  font-weight: 1000;
}
.profile-active-lineup-loading,
.profile-active-lineup-empty {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  border: 1px dashed rgba(212,169,79,0.2);
  border-radius: 15px;
  color: rgba(251,247,239,0.6);
  text-align: center;
}
.profile-active-lineup-empty strong { color: #fff; }
.profile-active-lineup-empty span { max-width: 28ch; font-size: .7rem; line-height: 1.45; }
@media (max-width:760px) {
  .profile-active-lineup-pitch { width: min(100%,390px); }
  .profile-active-lineup-loading,.profile-active-lineup-empty { min-height: 300px; }
}

/* 3.0A.46-preview.16 — integrated supporting attributes */
.profile-attribute-stack {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
}
.profile-supporting-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 9px;
  width: 100%;
}
.profile-supporting-grid > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 58px;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(212,169,79,0.13);
  background: rgba(13,12,10,0.46);
  color: #fff;
  font-family: var(--mono);
  font-size: .72rem;
}
.profile-supporting-grid > span:nth-child(-n+3) { grid-column: span 2; }
.profile-supporting-grid > span:nth-child(n+4) { grid-column: span 3; }
.profile-supporting-grid > span > b {
  min-width: 0;
  color: var(--muted);
  font-size: .57rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.profile-supporting-grid em.profile-score {
  flex: 0 0 auto;
  color: var(--stat-color);
  font-family: var(--body);
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 900;
}
.profile-supporting-grid .profile-score-with-penalty {
  flex: 0 0 auto;
}
.profile-supporting-grid em.profile-score.stat-high { --stat-color: #72f5a0; }
.profile-supporting-grid em.profile-score.stat-medium { --stat-color: #f1c94a; }
.profile-supporting-grid em.profile-score.stat-low { --stat-color: #ff5e6d; }
.player-kit-number-form,
.player-kit-number-readonly {
  width: calc(100% - 12px);
  margin-top: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb,var(--rarity-color) 34%,rgba(255,255,255,.08));
  background: rgba(13,12,10,0.62);
}
.player-kit-number-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
  align-items: end;
}
.player-kit-number-form label { display: grid; gap: 5px; text-align: left; }
.player-kit-number-form label > span,
.player-kit-number-readonly > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .48rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.player-kit-number-form input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 8px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 7px;
  color: #fff;
  background: rgba(13,12,10,0.82);
  font: 800 .76rem var(--mono);
}
.player-kit-number-form button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb,var(--rarity-color) 52%,transparent);
  border-radius: 7px;
  color: #fff;
  background: color-mix(in srgb,var(--rarity-color) 22%,#0d0c0a);
  font: 900 .55rem var(--body);
  text-transform: uppercase;
}
.player-kit-number-form small {
  grid-column: 1 / -1;
  min-height: 1.25em;
  color: rgba(251,247,239,0.62);
  font-size: .5rem;
  line-height: 1.35;
  text-align: left;
}
.player-kit-number-form small .player-kit-number-remove-conflict {
  display: inline;
  min-height: 0;
  margin: 0 0 0 .3em;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #ffbd59;
  background: transparent;
  font: 900 inherit;
  font-size: inherit;
  line-height: inherit;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.player-kit-number-form small .player-kit-number-remove-conflict:hover { color: #ff776f; }
.player-kit-number-form small .player-kit-number-remove-conflict:disabled { opacity: .6; cursor: default; }
.player-kit-number-readonly {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.player-kit-number-readonly strong {
  color: var(--rarity-color);
  font-family: var(--display);
  font-size: 1.45rem;
}

@media (max-width: 1180px) {
  .radar-panel { display: grid; max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 680px) {
  .profile-supporting-grid { gap: 6px; }
  .profile-supporting-grid > span { min-height: 52px; padding: 9px 8px; }
  .profile-supporting-grid > span > b { font-size: .48rem; }
  .profile-supporting-grid em.profile-score { font-size: .88rem; }
  .player-kit-number-form { grid-template-columns: 1fr; }
  .player-kit-number-form small { grid-column: auto; }
}

/* 3.0A.46-preview.35 — supporting attribute columns and external kit-number panel */
/* Keep the supporting qualities aligned directly beneath their matching column:
   Weak Foot / Skills, IQ / Leadership, Loyalty / empty. */
.profile-supporting-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px 22px;
}
.profile-supporting-grid > span,
.profile-supporting-grid > span:nth-child(-n+3),
.profile-supporting-grid > span:nth-child(n+4) {
  grid-column: auto;
  min-height: 58px;
  padding: 13px;
}
.profile-supporting-grid > span > b {
  color: #fff;
  font-size: .57rem;
}
/* Supporting values follow the same threshold colours and rounded score-chip
   treatment as the six main attribute headings. */
.profile-supporting-grid em.profile-score {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 38px;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #1a1207 !important;
  background: var(--stat-color) !important;
  font-family: var(--body);
  font-size: 1.02rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  text-shadow: none !important;
  -webkit-text-fill-color: #070811 !important;
}
.profile-supporting-grid em.profile-score.stat-low { --stat-color: #ff5e6d; }
.profile-supporting-grid em.profile-score.stat-medium { --stat-color: #f2c94c; }
.profile-supporting-grid em.profile-score.stat-high { --stat-color: #55df91; }
.profile-supporting-grid em.profile-score.stat-elite { --stat-color: #ff9f2f; }
.profile-supporting-grid em.profile-score.stat-unavailable {
  --stat-color: rgba(184,190,200,.72);
}
.profile-supporting-grid .profile-score-with-penalty {
  align-items: center;
}
/* Player DNA remains its own framed chart. Kit-number controls are a separate
   panel immediately below it rather than sitting inside the DNA frame. */
.profile-dna-column {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 12px;
}
.profile-dna-column .player-kit-number-form,
.profile-dna-column .player-kit-number-readonly {
  box-sizing: border-box;
  width: 100%;
  margin-top: 0;
}
@media (max-width: 1180px) {
  .profile-dna-column {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
  }
  .profile-dna-column .radar-panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }
}
@media (max-width: 680px) {
  .profile-supporting-grid {
    gap: 6px;
  }
  .profile-supporting-grid > span,
  .profile-supporting-grid > span:nth-child(-n+3),
  .profile-supporting-grid > span:nth-child(n+4) {
    min-height: 52px;
    padding: 9px 8px;
  }
  .profile-supporting-grid > span > b { font-size: .48rem; }
  .profile-supporting-grid em.profile-score {
    min-width: 32px;
    min-height: 27px;
    padding: 4px 7px;
    font-size: .88rem;
  }
}

/* 3.0A.46-preview.35 — supporting score and row sizing parity */
/* Supporting rows use the same compact vertical rhythm as the player fact rows
   (Age, Height, Weight and Preferred Foot). */
.profile-supporting-grid > span,
.profile-supporting-grid > span:nth-child(-n+3),
.profile-supporting-grid > span:nth-child(n+4) {
  min-height: 0;
  padding: 9px 10px;
}
/* Supporting scores use the exact main-attribute chip geometry and type scale. */
.profile-supporting-grid em.profile-score {
  min-width: 38px;
  min-height: 0;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: .82rem;
  line-height: normal;
}
@media (max-width: 680px) {
  .profile-supporting-grid > span,
  .profile-supporting-grid > span:nth-child(-n+3),
  .profile-supporting-grid > span:nth-child(n+4) {
    min-height: 0;
    padding: 9px 10px;
  }
  .profile-supporting-grid em.profile-score {
    min-width: 38px;
    min-height: 0;
    padding: 5px 9px;
    font-size: .82rem;
  }
}

/* 3.0A.46-preview.35 — exact supporting-row height parity */
/* Fact rows are explicitly 45px tall. Match that computed border-box height
   so supporting rows cannot end up one or two pixels taller through line-height. */
.profile-supporting-grid > span,
.profile-supporting-grid > span:nth-child(-n+3),
.profile-supporting-grid > span:nth-child(n+4) {
  box-sizing: border-box;
  height: 45px;
  min-height: 45px;
  padding: 8px 10px;
}
@media (max-width: 680px) {
  .profile-supporting-grid > span,
  .profile-supporting-grid > span:nth-child(-n+3),
  .profile-supporting-grid > span:nth-child(n+4) {
    height: 45px;
    min-height: 45px;
    padding: 8px 10px;
  }
}

/* 3.0A.46-preview.35 — nationality-first, high-contrast Squad list polish */
.squad-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}
.squad-view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2,minmax(74px,1fr));
  padding: 3px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 10px;
  background: rgba(13,12,10,0.76);
}
.squad-view-toggle button {
  min-height: 32px;
  padding: 5px 12px;
  color: rgba(251,247,239,0.64);
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
}
.squad-view-toggle button.active,
.squad-view-toggle button[aria-pressed="true"] {
  color: #07120d;
  background: linear-gradient(135deg,#43ff9b,#4c3915);
  box-shadow: 0 4px 14px rgba(67,255,155,.18);
}
#profileSquadPanel .filters-panel {
  grid-template-columns: repeat(6,minmax(0,1fr));
}
#profileSquadPanel .sub-attribute-min { max-width: none; }

#profileSquadPanel .card-grid.squad-list-mode {
  display: block;
  min-height: 240px;
  overflow-x: auto;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%,rgba(76,57,21,0.07),transparent 30%),
    linear-gradient(155deg,rgba(13,12,10,0.98),rgba(13,12,10,0.98));
  box-shadow: 0 18px 44px rgba(9,7,4,0.28),inset 0 1px 0 rgba(255,255,255,.04);
}
.squad-list-table {
  width: 100%;
  min-width: 850px;
  overflow: hidden;
  border-radius: 15px;
}
.squad-list-table.squad-list-goalkeeper { min-width: 780px; }
.squad-list-row {
  display: grid;
  grid-template-columns: 70px minmax(210px,2.35fr) 62px 62px 18px repeat(6,minmax(50px,.58fr));
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 5px 8px 16px;
  gap: 7px;
  color: #fbf7ef;
  border: 0;
  border-left: 3px solid color-mix(in srgb,var(--rarity-color,#d4a94f) 52%,transparent);
  border-bottom: 1px solid rgba(212,169,79,0.13);
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#4c3915) 8%,rgba(13,12,10,0.98)),rgba(13,12,10,0.98) 58%,rgba(13,12,10,0.98));
  font: inherit;
  text-align: left;
  appearance: none;
}
.squad-list-row:nth-child(odd):not(.squad-list-header) {
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#4c3915) 10%,rgba(23,21,15,0.98)),rgba(13,12,10,0.98) 58%,rgba(13,12,10,0.98));
}
.squad-list-goalkeeper .squad-list-row {
  grid-template-columns: 70px minmax(210px,2.35fr) 62px 62px 18px repeat(5,minmax(54px,.65fr));
}
button.squad-list-row { cursor: pointer; }
button.squad-list-row:hover,
button.squad-list-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: none;
  border-left-color: color-mix(in srgb,var(--rarity-color,#57f2a3) 90%,#d4a94f);
  background:
    linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#4c3915) 18%,rgba(23,21,15,0.99)),rgba(13,12,10,0.99) 62%,rgba(13,12,10,0.99));
  box-shadow: inset 0 0 0 1px rgba(212,169,79,0.16),0 8px 22px rgba(0,0,0,.18);
}
.squad-list-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 44px;
  color: #e5c377;
  border-left-color: transparent;
  border-bottom-color: rgba(212,169,79,0.32);
  background:
    linear-gradient(135deg,rgba(23,21,15,0.99),rgba(23,21,15,0.99) 52%,rgba(13,12,10,0.99));
  box-shadow: inset 0 -1px 0 rgba(212,169,79,0.08);
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 950;
  letter-spacing: .055em;
}
.squad-list-header > span { color: #e5c377; }
.squad-list-stat-spacer { width: 18px; min-width: 18px; }
.squad-list-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 38px;
  min-height: 28px;
  padding: 4px 5px;
  gap: 3px;
  color: #e5c377;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: inherit;
  font-weight: 950;
  letter-spacing: inherit;
  cursor: pointer;
}
.squad-list-sort span { color: inherit; }
.squad-list-sort em {
  color: rgba(251,247,239,0.58);
  font-size: .48rem;
  font-style: normal;
  line-height: 1;
}
.squad-list-sort:hover,
.squad-list-sort:focus-visible {
  color: #fff;
  border-color: rgba(212,169,79,0.32);
  background: rgba(76,57,21,0.09);
  outline: none;
}
.squad-list-sort.active {
  color: #fff;
  border-color: rgba(212,169,79,0.48);
  background: linear-gradient(135deg,rgba(42,34,20,0.62),rgba(42,34,20,0.58));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.squad-list-sort.active em { color: #e5c377; }
.squad-list-player { display: grid; min-width: 0; gap: 2px; }
.squad-list-player strong {
  overflow: hidden;
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.squad-list-player small,
.squad-list-nation small { color: rgba(251,247,239,0.62); font-size: .52rem; }
.squad-list-nation { display: flex; align-items: center; gap: 6px; min-width: 0; }
.squad-list-flag.player-country-flag-wrap {
  width: 27px;
  height: 18px;
  flex: 0 0 27px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.32);
}
.squad-list-flag .player-country-flag { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.squad-list-position {
  justify-self: start;
  min-width: 36px;
  padding: 5px 7px;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.26);
  border-radius: 7px;
  background: rgba(42,34,20,0.4);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 950;
  text-align: center;
}
.squad-list-overall,
.squad-list-stat {
  display: grid;
  place-items: center;
  justify-self: start;
  box-sizing: border-box;
  min-width: 36px;
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb,var(--squad-score-color,#d4a94f) 70%,#fff 10%);
  border-radius: 8px;
  color: #1a1207 !important;
  background: var(--squad-score-color,#4c3915);
  box-shadow: 0 4px 12px color-mix(in srgb,var(--squad-score-color,#d4a94f) 20%,transparent),inset 0 1px 0 rgba(255,255,255,.38);
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 950;
  line-height: 1;
  text-shadow: none !important;
}
.squad-list-overall.score-grey { --squad-score-color:#b8bec8; }
.squad-list-overall.score-yellow { --squad-score-color:#f2c94c; }
.squad-list-overall.score-green { --squad-score-color:#55df91; }
.squad-list-overall.score-blue { --squad-score-color:#58a9ff; }
.squad-list-overall.score-purple { --squad-score-color:#b778ff; }
.squad-list-overall.score-orange { --squad-score-color:#ff9f2f; }
.squad-list-overall.score-goat { --squad-score-color:#ffe36e; }
.squad-list-stat.stat-low { --squad-score-color:#ff6c7a; }
.squad-list-stat.stat-medium { --squad-score-color:#f2cf54; }
.squad-list-stat.stat-high { --squad-score-color:#63e59b; }
.squad-list-stat.stat-elite { --squad-score-color:#ff9f2f; }
.squad-list-stat.is-empty {
  color: rgba(251,247,239,0.55) !important;
  border-color: rgba(212,169,79,0.15);
  background: rgba(42,34,20,0.17);
  box-shadow: none;
}

@media (max-width: 1450px) {
  #profileSquadPanel .filters-panel { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  #profileSquadPanel .filters-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .squad-heading-actions { align-items: flex-end; flex-direction: column; gap: 8px; }
}
@media (max-width: 560px) {
  #profileSquadPanel .filters-panel { grid-template-columns: 1fr; }
  #profileSquadPanel .wide-filter { grid-column: auto; }
  .squad-heading-actions { align-items: stretch; width: 100%; }
  .squad-view-toggle { width: 100%; }
}

/* Active-lineup ownership of penalty roles */
.tactics-lineup-roles-note { margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(212,169,79,0.22); border-radius: 16px; background: linear-gradient(145deg,rgba(23,21,15,0.78),rgba(13,12,10,0.9)); }
.tactics-lineup-roles-note span { display:block; color:#e5c377; font-family:var(--mono); font-size:.68rem; font-weight:900; letter-spacing:.12em; }
.tactics-lineup-roles-note strong { display:block; margin-top:5px; color:#fff; font-size:1rem; }
.tactics-lineup-roles-note p { margin:.45rem 0 0; color:rgba(251,247,239,0.72); line-height:1.55; }

/* 3.0A.46.3-preview.1 — compact full-height bench beside the pitch */
@media (min-width: 1221px) {
  .lineup-side-panel {
    display: block;
    height: 820px;
    max-height: 820px;
    overflow: hidden;
    padding-right: 0;
  }
  .lineup-bench-panel {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 820px;
    max-height: 820px;
    padding: 12px;
    overflow: hidden;
  }
  #lineupBench {
    display: grid;
    flex: 1 1 auto;
    grid-template-rows: repeat(7, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    margin-top: 8px;
    overflow: hidden;
  }
  #lineupBench .lineup-bench-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 62px;
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    max-height: 106px;
    min-height: 0;
    padding: 6px;
    overflow: hidden;
    border-radius: 11px;
  }
  #lineupBench .lineup-bench-card .lineup-card-visual {
    width: 46px;
    height: 68px;
    border-radius: 8px;
  }
  #lineupBench .lineup-bench-card .lineup-card-visual img {
    inset: 6px -3px 0;
    width: calc(100% + 6px);
    height: calc(100% - 6px);
  }
  #lineupBench .lineup-bench-card .lineup-card-copy {
    gap: 2px;
    align-content: center;
  }
  #lineupBench .lineup-bench-card .lineup-card-name-row b {
    font-size: .84rem;
    line-height: 1.1;
  }
  #lineupBench .lineup-bench-card .lineup-card-meta-row {
    font-size: .57rem;
    line-height: 1.18;
  }
  #lineupBench .lineup-bench-card .lineup-eligibility {
    font-size: .59rem;
    line-height: 1.18;
  }
  #lineupBench .lineup-bench-card .lineup-card-actions {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    align-content: center;
    gap: 3px;
    min-width: 0;
  }
  #lineupBench .lineup-bench-card .lineup-card-action {
    box-sizing: border-box;
    min-width: 0;
    min-height: 25px;
    padding: 2px 1px;
    border-radius: 6px;
    font-size: .48rem;
    line-height: 1;
  }

  #lineupBench .lineup-bench-card .lineup-card-action.view,
  #lineupBench .lineup-bench-card .lineup-card-action[data-lineup-action="remove"] {
    grid-column: 1;
  }
  #lineupBench .lineup-bench-card .lineup-card-action[data-lineup-action="up"],
  #lineupBench .lineup-bench-card .lineup-card-action[data-lineup-action="down"] {
    grid-column: 2;
  }
  #lineupBench .lineup-bench-card .lineup-card-action[data-lineup-action="remove"] {
    font-size: .44rem;
  }
  #lineupBench .lineup-bench-card .lineup-bench-flag.player-country-flag-wrap {
    width: 13px;
    min-width: 13px;
    height: 10px;
    flex-basis: 13px;
    margin-left: 0;
    margin-right: 4px;
  }
  #lineupBench .lineup-bench-card .lineup-bench-flag .player-country-flag-fallback {
    line-height: 10px;
  }
  #lineupBench .lineup-empty-state {
    grid-row: 1 / -1;
    min-height: 0;
  }
}

/* Training Pitch: the final two interior positions are reserved for goalkeepers. */
.goat-world-plus-slot.is-goalkeeper-slot {
  width: 31px;
  border-color: rgba(240, 215, 155, .85);
  background: rgba(23, 21, 15, .92);
  color: #f0d79b;
  font-size: .58rem;
  letter-spacing: .05em;
}
.goat-world-placed-player.is-goalkeeper-slot span {
  border: 1px solid rgba(212, 169, 79, .45);
  color: #f0d79b;
}

/* World actions always report success/errors on the visible map or interior. */
.goat-world-global-message {
  position: fixed;
  z-index: 1500;
  left: 50%;
  bottom: 24px;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 16px;
  border: 1px solid rgba(212, 169, 79, .35);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(23,21,15,.96), rgba(8,7,6,.97));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  color: #fbf7ef;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .8rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .18s ease, transform .18s ease;
}
.goat-world-global-message.is-visible { opacity: 1; transform: translate(-50%, 0); }
.goat-world-global-message.world-error {
  border-color: rgba(255, 105, 137, .55);
  color: #ff9bb2;
}


/* 3.0A.46.5.3 — mobile Pre-Match visibility and owner-only alerts */
@media (max-width: 860px) {
  /* Horizontal scrolling turns overflow-y into a clipping container on mobile
     browsers. Wrap the compact navigation instead so Lineup/Tactics can open
     outside the tab row and remain tappable. */
  .profile-tabs,
  .dashboard-mode .profile-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .profile-tab-menu { position: relative; }
  .profile-tab-menu-options {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: auto;
    width: min(240px, calc(100vw - 28px));
    transform: none;
    z-index: 240;
  }
}

/* 3.0A.46.5.4 — audited facility squad picker */
.goat-world-current-activity-list {
  margin: 12px 0;
  padding: 10px;
  border: 1px solid rgba(212, 169, 79, .2);
  border-radius: 11px;
  background: rgba(8, 7, 6, .6);
}
.goat-world-current-activity-list section,
.goat-world-current-player button:first-child {
  display: grid;
  gap: 4px;
}
.goat-world-current-activity-list h4 {
  margin: 0 0 7px;
  color: #e5c377;
  font: 900 .58rem/1 var(--body);
  letter-spacing: .1em;
}
.goat-world-current-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid rgba(212, 169, 79, .12);
}
.goat-world-current-player:first-of-type { border-top: 0; }
.goat-world-current-player button:first-child {
  min-width: 0;
  padding: 0;
  color: #fbf7ef;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.goat-world-current-player button:first-child span {
  overflow: hidden;
  font: 800 .72rem/1.15 var(--body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goat-world-current-player button:first-child small {
  color: var(--muted);
  font: 700 .6rem/1.2 var(--body);
}
.goat-world-current-player .secondary-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: .58rem;
}
.goat-world-player-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .goat-world-player-filters { grid-template-columns: 1fr; }
}


/* 3.0A.46.5.5 — capacity queues and compact facility squad picker */
.goat-world-picker-copy > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
}
.goat-world-capacity-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0 0;
}
.goat-world-capacity-strip > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(212, 169, 79, .18);
  border-radius: 10px;
  background: rgba(212, 169, 79, .06);
}
.goat-world-capacity-strip > span.queue-disabled {
  border-color: rgba(212, 169, 79, .1);
  background: rgba(255, 255, 255, .02);
}
.goat-world-capacity-strip small {
  color: #d9d1c2;
  font: 800 .52rem/1 var(--body);
  letter-spacing: .08em;
}
.goat-world-capacity-strip strong {
  color: #fbf7ef;
  font: 900 .72rem/1 var(--body);
}
.goat-world-capacity-strip .queue-disabled strong { color: var(--muted); }

.goat-world-player-filters {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 8px;
  margin: 12px 0 10px;
}
.goat-world-player-search,
.goat-world-player-filter-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #d9d1c2;
  font: 800 .56rem/1 var(--body);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.goat-world-player-search input,
.goat-world-player-filter-row select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid rgba(212, 169, 79, .18);
  border-radius: 9px;
  background: rgba(8, 7, 6, .82);
  color: #fbf7ef;
  font: 700 .66rem/1 var(--body);
  text-transform: none;
}
.goat-world-player-filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.goat-world-player-search input::placeholder { color: #635c50; }
.goat-world-player-search input:focus-visible,
.goat-world-player-filter-row select:focus-visible {
  border-color: rgba(212, 169, 79, .6);
  outline: 2px solid rgba(212, 169, 79, .2);
  outline-offset: 1px;
}

.goat-world-picker-list {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}
.goat-world-picker-result-count {
  margin: 0 0 7px;
  color: #d9d1c2;
  font: 700 .58rem/1.2 var(--body);
}
.goat-world-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.goat-world-picker-grid > .empty-state { grid-column: 1 / -1; }
.goat-world-picker-player.world-squad-player {
  grid-template-columns: 35px minmax(0, 1fr) auto !important;
  grid-template-areas:
    "image identity energy"
    "image state state" !important;
  gap: 4px 7px !important;
  min-width: 0;
  min-height: 72px;
  padding: 8px !important;
  overflow: hidden !important;
  border-radius: 11px !important;
}
.goat-world-picker-player.world-squad-player > img {
  grid-area: image !important;
  width: 34px !important;
  height: 49px !important;
  align-self: center;
  object-fit: contain;
}
.goat-world-picker-player.world-squad-player > span {
  grid-area: identity !important;
  display: grid;
  align-self: center;
  gap: 2px;
  min-width: 0;
}
.goat-world-picker-player.world-squad-player > span strong {
  overflow: hidden;
  color: #fbf7ef;
  font: 800 .67rem/1.1 var(--body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goat-world-picker-player.world-squad-player > span small {
  overflow: hidden;
  color: #d9d1c2;
  font: 700 .55rem/1.1 var(--body);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goat-world-picker-player.world-squad-player > b {
  grid-area: energy !important;
  align-self: start;
  justify-self: end;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(127, 255, 212, .08);
  color: #9ef2ce;
  font: 900 .52rem/1 var(--body);
  text-align: right;
}
.goat-world-picker-player.world-squad-player > em {
  grid-area: state !important;
  justify-self: start !important;
  min-width: 0 !important;
  max-width: 100%;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  color: #5fa06d !important;
  font: 800 .53rem/1.15 var(--body) !important;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.goat-world-picker-player.world-squad-player.unavailable > em { color: #d9d1c2 !important; }
.goat-world-picker-player.world-squad-player:disabled {
  opacity: .42 !important;
  filter: saturate(.55);
}
.goat-world-picker-pagination {
  display: grid;
  grid-template-columns: 30px 1fr 30px;
  gap: 7px;
  align-items: center;
  margin-top: 9px;
}
.goat-world-picker-pagination button {
  min-height: 30px;
  border: 1px solid rgba(212, 169, 79, .2);
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  color: #fbf7ef;
  font-weight: 900;
}
.goat-world-picker-pagination button:hover,
.goat-world-picker-pagination button:focus-visible { border-color: rgba(212, 169, 79, .5); outline: none; }
.goat-world-picker-pagination button:disabled { opacity: .3; }
.goat-world-picker-pagination span {
  color: #d9d1c2;
  font: 800 .6rem/1 var(--body);
  text-align: center;
}

.goat-world-current-activity-list {
  max-height: none;
  padding: 9px !important;
}
.goat-world-current-activity-list h4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.goat-world-current-activity-list h4 span {
  color: var(--muted);
  font-size: .52rem;
  letter-spacing: 0;
  text-transform: none;
}
.goat-world-current-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.goat-world-current-player {
  grid-template-columns: minmax(0, 1fr) 24px !important;
  gap: 4px !important;
  min-width: 0;
  padding: 6px 7px !important;
  border: 1px solid rgba(212, 169, 79, .14) !important;
  border-radius: 9px;
  background: rgba(255, 255, 255, .02);
}
.goat-world-current-player.active { border-color: rgba(127, 255, 212, .16) !important; }
.goat-world-current-player.queued { border-color: rgba(239, 232, 219, .16) !important; }
.goat-world-current-player button:first-child span { font-size: .62rem !important; }
.goat-world-current-player button:first-child small { font-size: .52rem !important; }
.goat-world-current-remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 99, 118, .18);
  border-radius: 50%;
  background: rgba(255, 99, 118, .06);
  color: #ff9aa8;
  font: 800 .88rem/1 var(--body);
}

@media (max-width: 1380px) {
  .goat-world-picker-grid,
  .goat-world-current-player-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .goat-world-picker-grid,
  .goat-world-current-player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .goat-world-player-filter-row,
  .goat-world-picker-grid,
  .goat-world-current-player-grid { grid-template-columns: 1fr; }
}

/* Calendar UI redesign 3.0A.47.2 */
.goat-league-calendar.goat-calendar-modern {
  width: 100%;
  margin: 16px 0 0;
  display: grid;
  gap: 16px;
}
.goat-calendar-modern .goat-calendar-season-header {
  align-items: end;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212,169,79,0.12);
}
.goat-calendar-dashboard {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 12px;
}
.goat-calendar-dashboard-card,
.goat-calendar-board-shell,
.goat-calendar-side-panel,
.goat-calendar-support-row {
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13,12,10,0.92), rgba(13,12,10,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 12px 40px rgba(0,0,0,.18);
}
.goat-calendar-dashboard-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.goat-calendar-dashboard-card header,
.goat-calendar-side-panel header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.goat-calendar-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.goat-calendar-stat {
  padding: 12px 10px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.goat-calendar-stat:first-child { border-left: 0; padding-left: 0; }
.goat-calendar-stat span,
.goat-calendar-registration-grid span,
.goat-calendar-weather-row small { display: block; color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.goat-calendar-stat strong,
.goat-calendar-registration-grid strong { display:block; margin-top: 6px; font-family: var(--display); font-size: 1rem; line-height: 1.2; }
.goat-calendar-overview-card footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:8px; border-top:1px solid rgba(255,255,255,.08); }
.goat-calendar-overview-card footer strong { font-family: var(--display); font-size: 1rem; }
.goat-calendar-overview-card footer small { color: var(--muted); font-size: .58rem; }
.goat-calendar-next-match-body {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) 72px;
  align-items: center;
  gap: 14px;
}
.goat-calendar-club-mark {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em;
  color: #fbf7ef;
  border: 1px solid rgba(212,169,79,0.35);
  background: radial-gradient(circle at 30% 25%, rgba(76,57,21,0.45), rgba(23,21,15,0.52) 45%, rgba(13,12,10,0.96) 85%);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,.04);
}
.goat-calendar-club-mark.is-away {
  border-color: rgba(212,169,79,0.34);
  background: radial-gradient(circle at 30% 25%, rgba(76,57,21,0.45), rgba(42,34,20,0.56) 45%, rgba(13,12,10,0.96) 85%);
}
.goat-calendar-next-match-copy strong {
  display:block; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.8rem); line-height:1.15;
}
.goat-calendar-next-match-copy small { display:block; margin-top:6px; color:var(--muted); font-size:.68rem; }
.goat-calendar-weather-row {
  display:flex; align-items:center; gap:12px; padding: 10px 12px;
  border-radius: 14px; background: rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06);
}
.goat-calendar-weather-icon { font-size: 1.2rem; color: var(--accent-cyan); }
.goat-calendar-weather-row strong { display:block; margin-top:3px; font-size:.86rem; }
.goat-calendar-registration-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.goat-calendar-registration-grid > div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06); }
.goat-calendar-registration-rules { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.goat-calendar-registration-rules > div { display:grid; place-items:center; min-height:78px; padding:10px 8px; border-radius:16px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.05); text-align:center; }
.goat-calendar-registration-rules strong { font-family: var(--display); font-size: 1.25rem; }
.goat-calendar-registration-rules small { color: var(--muted); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; }
.goat-calendar-main-layout { display:grid; grid-template-columns: minmax(0, 1.62fr) minmax(320px, .72fr); gap: 14px; align-items:start; }
.goat-calendar-board-shell { padding: 16px; }
.goat-calendar-board-header { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom: 14px; }
.goat-calendar-board-title-group h3 { margin:0; font-family:var(--display); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1; }
.goat-calendar-legend { display:flex; flex-wrap:wrap; gap:14px; margin-top:10px; }
.goat-calendar-legend span { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:.58rem; text-transform:uppercase; letter-spacing:.06em; }
.goat-calendar-legend i { display:inline-block; width:10px; height:10px; border-radius:999px; }
.goat-calendar-legend i.is-league { background:#4c3915; box-shadow:0 0 0 3px rgba(212,169,79,0.12); }
.goat-calendar-legend i.is-event { background:#ffc84a; box-shadow:0 0 0 3px rgba(255,200,74,.12); }
.goat-calendar-board-actions { display:flex; align-items:center; gap:10px; }
.goat-calendar-month-nav,
.goat-calendar-view-toggle { display:inline-flex; gap:8px; }
.goat-calendar-month-nav button,
.goat-calendar-view-toggle button {
  min-width: 46px; height: 42px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(212,169,79,0.18); background: rgba(255,255,255,.03); color: var(--text);
  font-size: .84rem; font-weight: 900;
}
.goat-calendar-view-toggle button { min-width: 74px; }
.goat-calendar-month-nav button:hover:not(:disabled),
.goat-calendar-view-toggle button:hover,
.goat-calendar-view-toggle button.is-active { border-color: rgba(212,169,79,0.45); background: rgba(76,57,21,0.1); color: var(--accent-cyan); }
.goat-calendar-month-nav button:disabled { opacity: .3; cursor:not-allowed; }
.goat-calendar-month-view,
.goat-calendar-list-view { display:none; }
.goat-calendar-month-view.is-active,
.goat-calendar-list-view.is-active { display:block; }
.goat-calendar-month-weekdays,
.goat-calendar-month-grid { display:grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.goat-calendar-month-weekdays { margin-bottom: 8px; }
.goat-calendar-month-weekdays span { padding: 8px 10px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.goat-calendar-month-grid { gap: 8px; }
.goat-calendar-day-cell {
  min-height: 120px; padding: 10px; border-radius: 16px; text-align:left; color:var(--text);
  border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.022);
  display:flex; flex-direction:column; gap:10px; transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.goat-calendar-day-cell:hover,
.goat-calendar-day-cell.is-selected { border-color: rgba(212,169,79,0.55); background: rgba(76,57,21,0.06); transform: translateY(-1px); }
.goat-calendar-day-cell.is-outside { opacity: .33; }
.goat-calendar-day-cell.is-next { box-shadow: inset 0 0 0 1px rgba(212,169,79,0.22); }
.goat-calendar-day-cell.is-today { border-color: rgba(255,200,74,.5); }
.goat-calendar-day-head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.goat-calendar-day-head strong { font-family: var(--display); font-size: 1.15rem; }
.goat-calendar-day-today { font-size:.52rem; color: #ffe2a0; letter-spacing:.08em; text-transform: uppercase; }
.goat-calendar-day-body { display:grid; gap:6px; }
.goat-calendar-day-chip {
  display:block; width:100%; overflow:hidden; padding:7px 8px; border-radius: 10px;
  font-size:.58rem; line-height:1.2; white-space:nowrap; text-overflow:ellipsis;
  color:#fbf7ef; background: rgba(255,255,255,.04);
}
.goat-calendar-day-chip.is-league { background: rgba(76,57,21,0.12); color:#e5c377; }
.goat-calendar-day-chip.is-registration,
.goat-calendar-day-chip.is-event,
.goat-calendar-day-chip.is-start,
.goat-calendar-day-chip.is-finish,
.goat-calendar-day-chip.is-offseason { background: rgba(255,200,74,.12); color: #ffd267; }
.goat-calendar-day-chip.is-more { background: rgba(255,255,255,.03); color: var(--muted); }
.goat-calendar-side-rail { display:grid; gap: 12px; }
.goat-calendar-side-panel { padding: 16px; }
.goat-calendar-upcoming-list { display:grid; gap: 10px; }
.goat-calendar-upcoming-item {
  display:grid; grid-template-columns: 58px minmax(0,1fr) 24px; align-items:center; gap:10px;
  padding: 10px 12px; border-radius: 14px; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.03);
  color:var(--text); text-align:left;
}
.goat-calendar-upcoming-item:hover,
.goat-calendar-upcoming-item.is-selected { border-color: rgba(212,169,79,0.45); background: rgba(76,57,21,0.06); }
.goat-calendar-upcoming-date { display:grid; place-items:center; min-height:58px; border-radius: 12px; background: rgba(76,57,21,0.08); }
.goat-calendar-upcoming-date strong { font-family:var(--display); font-size:1.3rem; line-height:1; }
.goat-calendar-upcoming-date small { color: var(--accent-cyan); font-size: .56rem; letter-spacing: .08em; }
.goat-calendar-upcoming-item.is-registration .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-event .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-start .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-finish .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-offseason .goat-calendar-upcoming-date { background: rgba(255,200,74,.1); }
.goat-calendar-upcoming-copy { display:grid; gap:4px; min-width:0; }
.goat-calendar-upcoming-copy b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.76rem; }
.goat-calendar-upcoming-copy small { color:var(--muted); font-size:.58rem; }
.goat-calendar-upcoming-icon { justify-self:end; color:var(--muted); }
.goat-calendar-detail-panel .goat-calendar-date-detail { position:static; min-height: 0; margin-top: 0; padding:0; border:0; background:none; }
.goat-calendar-date-detail h3 { margin: 0 0 6px; }
.goat-calendar-detail-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.goat-calendar-match-card.modern { display:grid; gap:12px; padding: 14px; border-radius: 16px; border:1px solid rgba(212,169,79,0.18); background: linear-gradient(135deg, rgba(76,57,21,0.08), rgba(76,57,21,0.08)); }
.goat-calendar-match-card-versus { display:grid; grid-template-columns: 56px minmax(0,1fr) 56px; align-items:center; gap: 12px; }
.goat-calendar-match-card.modern .goat-calendar-club-mark { width:56px; height:56px; font-size: .92rem; }
.goat-calendar-match-card-copy { min-width: 0; }
.goat-calendar-match-card-copy span,
.goat-calendar-detail-event span { color:var(--muted); font-size:.58rem; letter-spacing:.08em; text-transform:uppercase; }
.goat-calendar-match-card-copy div { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; }
.goat-calendar-match-card-copy strong { font-size:.78rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.goat-calendar-match-card-copy b { color: var(--accent-cyan); font-size:.66rem; }
.goat-calendar-match-card-copy small { display:block; margin-top:8px; color: var(--muted); font-size:.62rem; }
.goat-calendar-weather-row.is-compact { padding: 8px 0 0; background:none; border:0; border-top:1px solid rgba(255,255,255,.08); border-radius:0; }
.goat-calendar-detail-event-list,
.goat-calendar-detail-event { display:grid; gap:8px; }
.goat-calendar-detail-event { padding: 12px 13px; border-radius: 14px; border:1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.03); margin-top:10px; }
.goat-calendar-detail-event.is-registration,
.goat-calendar-detail-event.is-event { border-color: rgba(255,200,74,.18); }
.goat-calendar-detail-event small,
.goat-calendar-empty-detail { color: var(--muted); font-size: .63rem; line-height: 1.45; }
.goat-calendar-list-view .goat-calendar-list-heading { margin-bottom: 12px; }
.goat-calendar-support-row { padding: 15px; }
.goat-calendar-support-row header { display:flex; justify-content:space-between; gap:12px; margin-bottom: 12px; }
.goat-calendar-support-row h3 { margin: 2px 0 0; font-family: var(--display); font-size: 1rem; }
.goat-calendar-support-row small { color: var(--muted); font-size: .58rem; }
.goat-calendar-all-fixtures { margin-top: 10px; }
.goat-calendar-all-fixtures summary { cursor:pointer; color: var(--accent-cyan); font-size: .62rem; }
.goat-calendar-all-fixtures div { display:grid; gap:6px; margin-top:10px; }
.goat-calendar-all-fixtures p { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.03); font-size:.62rem; }
.goat-calendar-all-fixtures p.is-user-fixture { border-left:3px solid rgba(212,169,79,0.65); }
.goat-calendar-modern .goat-calendar-track-shell,
.goat-calendar-modern .goat-calendar-milestone-shell { margin-top: 0; }

@media (max-width: 1180px) {
  .goat-calendar-dashboard { grid-template-columns: 1fr; }
  .goat-calendar-main-layout { grid-template-columns: 1fr; }
  .goat-calendar-side-rail { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .goat-calendar-overview-grid,
  .goat-calendar-registration-rules,
  .goat-calendar-registration-grid,
  .goat-calendar-side-rail { grid-template-columns: 1fr; }
  .goat-calendar-next-match-body { grid-template-columns: 54px minmax(0,1fr) 54px; }
  .goat-calendar-club-mark { width:54px; height:54px; font-size:.92rem; }
  .goat-calendar-board-header { flex-direction:column; align-items:flex-start; }
  .goat-calendar-month-weekdays span { font-size: .58rem; padding: 8px 4px; }
  .goat-calendar-day-cell { min-height: 94px; padding: 8px; }
  .goat-calendar-day-head strong { font-size: 1rem; }
  .goat-calendar-day-chip { padding:6px 7px; font-size:.52rem; }
}
@media (max-width: 640px) {
  .goat-calendar-dashboard-card,
  .goat-calendar-board-shell,
  .goat-calendar-side-panel,
  .goat-calendar-support-row { border-radius: 18px; }
  .goat-calendar-day-cell { min-height: 78px; gap: 6px; }
  .goat-calendar-day-chip { display:none; }
  .goat-calendar-month-grid { gap: 6px; }
  .goat-calendar-board-title-group h3 { font-size: 1.35rem; }
  .goat-calendar-matchday-row { grid-template-columns: repeat(6, minmax(0,1fr)); }
}

/* Calendar refinement 3.0A.47.3 */
.goat-calendar-modern .goat-calendar-topbar {
  justify-content: flex-end;
  padding: 0;
  border: 0;
  min-height: 0;
}
.goat-calendar-modern .goat-calendar-season-copy { display: none !important; }
.goat-calendar-modern .goat-calendar-season-nav button { padding: 8px 12px; }
.goat-calendar-modern .goat-calendar-dashboard { grid-template-columns: 1fr 1.08fr 1fr; align-items: stretch; }
.goat-calendar-modern .goat-calendar-overview-card header,
.goat-calendar-modern .goat-calendar-next-match-card header,
.goat-calendar-modern .goat-calendar-registration-card header {
  align-items: center;
}
.goat-calendar-modern .goat-calendar-overview-grid { gap: 0; align-items: stretch; }
.goat-calendar-modern .goat-calendar-stat {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 10px 8px;
  border-left: 1px solid rgba(255,255,255,.08);
}
.goat-calendar-modern .goat-calendar-stat:first-child { border-left: 0; }
.goat-calendar-stat-icon { font-size: 1.7rem; line-height: 1; color: #fbf7ef; margin-bottom: 6px; }
.goat-calendar-modern .goat-calendar-overview-card footer { justify-content: center; }
.goat-calendar-header-icon { font-size: 1.55rem; color: #d9d1c2; }
.goat-calendar-next-match-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(190px, .75fr);
  gap: 18px;
  align-items: center;
}
.goat-calendar-next-match-clubs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.goat-calendar-team-block { display:grid; justify-items:center; gap:12px; text-align:center; }
.goat-calendar-team-block strong {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 120px;
}
.goat-calendar-next-vs {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  color: var(--accent-cyan);
  text-shadow: 0 0 18px rgba(212,169,79,0.25);
}
.goat-calendar-next-match-info {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding-left: 8px;
}
.goat-calendar-next-match-info > strong { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; }
.goat-calendar-next-match-info > small { color: var(--text); font-size: 1.18rem; font-weight: 900; letter-spacing: .02em; }
.goat-calendar-detail-line { display:flex; align-items:center; gap:10px; color: var(--muted); }
.goat-calendar-detail-line span { width: 18px; text-align:center; color: #fbf7ef; font-size: .92rem; }
.goat-calendar-detail-line small { color: var(--text); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.goat-calendar-next-venue { align-items: flex-start; }
.goat-calendar-next-venue-copy {
  width: auto !important;
  display: grid !important;
  gap: 2px;
  min-width: 0;
  text-align: left !important;
}
.goat-calendar-next-venue-copy small { display: block; }
.goat-calendar-next-venue-copy #goatLeagueNextDetailLocation { color: rgba(217,209,194,0.72); font-size: .62rem; }
.goat-calendar-modern .goat-calendar-registration-grid { gap: 0; }
.goat-calendar-modern .goat-calendar-registration-grid > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 14px 14px 0;
}
.goat-calendar-modern .goat-calendar-registration-grid > div + div { border-left: 1px solid rgba(255,255,255,.08); padding-left: 18px; }
.goat-calendar-modern .goat-calendar-registration-rules { gap: 0; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.goat-calendar-modern .goat-calendar-registration-rules > div {
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: auto;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: start;
  align-items: center;
  justify-items: start;
  column-gap: 10px;
  row-gap: 4px;
  padding: 10px 8px 0;
}
.goat-calendar-modern .goat-calendar-registration-rules > div span { grid-row: 1 / span 2; font-size: 1.3rem; color: #fbf7ef; }
.goat-calendar-modern .goat-calendar-registration-rules > div strong { font-size: 1.7rem; }
.goat-calendar-modern .goat-calendar-registration-rules > div small { text-align: left; }
.goat-calendar-modern .goat-calendar-main-layout { grid-template-columns: minmax(0, 1.72fr) minmax(300px, .58fr); }
.goat-calendar-modern .goat-calendar-side-rail { align-self: stretch; }
.goat-calendar-modern .goat-calendar-upcoming-panel header h3 { display:none; }
.goat-calendar-modern .goat-calendar-upcoming-list { gap: 10px; }
.goat-calendar-modern .goat-calendar-upcoming-item {
  grid-template-columns: 74px minmax(0,1fr) 20px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
}
.goat-calendar-modern .goat-calendar-upcoming-date {
  min-height: 74px;
  border: 1px solid rgba(212,169,79,0.22);
  background: linear-gradient(180deg, rgba(13,12,10,0.95), rgba(13,12,10,0.98));
}
.goat-calendar-modern .goat-calendar-upcoming-date strong { font-size: 1.9rem; }
.goat-calendar-modern .goat-calendar-upcoming-date small { font-size: .7rem; }
.goat-calendar-upcoming-copy { gap: 3px; }
.goat-calendar-upcoming-copy b { display:flex; align-items:center; gap:8px; font-size:.92rem; }
.goat-calendar-upcoming-copy-icon { color: var(--accent-cyan); }
.goat-calendar-upcoming-copy small { font-size: .7rem; }
.goat-calendar-upcoming-chevron { color: var(--muted); font-size: 1.2rem; }
.goat-calendar-modern .goat-calendar-date-detail { display: none !important; }
.goat-calendar-modern .goat-calendar-board-shell { padding: 14px; }
.goat-calendar-modern .goat-calendar-day-cell {
  min-height: 94px;
  padding: 8px 10px;
  gap: 7px;
}
.goat-calendar-modern .goat-calendar-day-cell.is-today {
  border-color: rgba(212,169,79,0.75);
  background: linear-gradient(180deg, rgba(23,21,15,0.32), rgba(13,12,10,0.92));
  box-shadow: inset 0 0 0 1px rgba(212,169,79,0.28), 0 0 18px rgba(212,169,79,0.12);
}
.goat-calendar-modern .goat-calendar-day-cell.is-today .goat-calendar-day-head strong,
.goat-calendar-modern .goat-calendar-day-cell.is-today .goat-calendar-day-today { color: #e5c377; }
.goat-calendar-modern .goat-calendar-day-today {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(76,57,21,0.14);
  color: #e5c377;
}
.goat-calendar-modern .goat-calendar-day-chip {
  position: relative;
  padding-left: 26px;
}
.goat-calendar-modern .goat-calendar-day-chip::before {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .68rem;
}
.goat-calendar-modern .goat-calendar-day-chip.is-league::before { content: '⚽'; }
.goat-calendar-modern .goat-calendar-day-chip.is-registration::before,
.goat-calendar-modern .goat-calendar-day-chip.is-event::before,
.goat-calendar-modern .goat-calendar-day-chip.is-start::before,
.goat-calendar-modern .goat-calendar-day-chip.is-finish::before,
.goat-calendar-modern .goat-calendar-day-chip.is-offseason::before { content: '🗓'; }
.goat-calendar-modern .goat-calendar-day-chip.is-more::before { content: '+'; }
.goat-calendar-modern .goat-calendar-matchday-row button,
.goat-calendar-modern .goat-calendar-window-break,
.goat-calendar-modern .goat-calendar-milestones button { min-height: auto; }
.goat-calendar-modern .goat-calendar-match-card.modern .goat-calendar-weather-row.is-compact { display:none; }

@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard { grid-template-columns: 1fr; }
  .goat-calendar-modern .goat-calendar-main-layout { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .goat-calendar-next-match-shell { grid-template-columns: 1fr; }
  .goat-calendar-next-match-info { padding-left: 0; }
  .goat-calendar-modern .goat-calendar-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 0; }
  .goat-calendar-modern .goat-calendar-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 640px) {
  .goat-calendar-modern .goat-calendar-upcoming-item { grid-template-columns: 60px minmax(0,1fr) 18px; }
  .goat-calendar-modern .goat-calendar-upcoming-date { min-height: 60px; }
  .goat-calendar-modern .goat-calendar-upcoming-date strong { font-size: 1.45rem; }
  .goat-calendar-modern .goat-calendar-day-cell { min-height: 72px; }
}

/* Calendar refinement 3.0A.47.4 */
.goat-calendar-modern .section-number { display: none; }
.goat-calendar-modern { gap: 14px; }
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-board-shell,
.goat-calendar-modern .goat-calendar-side-panel,
.goat-calendar-modern .goat-calendar-support-row {
  padding-top: 14px;
}
.goat-calendar-modern .goat-calendar-dashboard-card header p,
.goat-calendar-modern .goat-calendar-upcoming-panel header p,
.goat-calendar-modern .goat-calendar-support-row header .eyebrow {
  color: #e5c377;
  font-size: .98rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(212,169,79,0.12);
}
.goat-calendar-modern .goat-calendar-support-row h3,
.goat-calendar-modern .goat-calendar-board-title-group h3 {
  color: #fbf7ef;
  font-weight: 900;
  letter-spacing: .03em;
}
.goat-calendar-modern .goat-calendar-next-match-card { gap: 8px; }
.goat-calendar-modern .goat-calendar-next-match-card header { margin-bottom: 2px; }
.goat-calendar-modern .goat-calendar-header-icon { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%); opacity: .95; }
.goat-calendar-modern .goat-calendar-icon-img,
.goat-calendar-modern .goat-calendar-stat-icon-img,
.goat-calendar-modern .goat-calendar-inline-icon,
.goat-calendar-modern .goat-calendar-rule-icon,
.goat-calendar-modern .goat-calendar-upcoming-copy-icon-img,
.goat-calendar-modern .goat-calendar-entry-icon {
  filter: brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%);
}
.goat-calendar-modern .goat-calendar-stat-icon-img { width: 30px; height: 30px; object-fit: contain; margin-bottom: 8px; }
.goat-calendar-modern .goat-calendar-inline-icon { width: 16px; height: 16px; object-fit: contain; }
.goat-calendar-modern .goat-calendar-rule-icon { width: 26px; height: 26px; object-fit: contain; }
.goat-calendar-modern .goat-calendar-upcoming-copy-icon-img { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.goat-calendar-modern .goat-calendar-entry-icon { width: 14px; height: 14px; object-fit: contain; }
.goat-calendar-modern .goat-calendar-club-mark {
  background: radial-gradient(circle at 30% 25%, rgba(76,57,21,0.18), rgba(23,21,15,0.42) 45%, rgba(13,12,10,0.96) 85%);
}
.goat-calendar-modern .goat-calendar-next-match-shell { align-items: start; }
.goat-calendar-modern .goat-calendar-team-block { gap: 9px; }
.goat-calendar-modern .goat-calendar-team-block strong { font-size: 1.03rem; max-width: 140px; }
.goat-calendar-modern .goat-calendar-next-match-info { gap: 6px; }
.goat-calendar-modern .goat-calendar-next-match-info > strong { font-size: 1.05rem; }
.goat-calendar-modern .goat-calendar-next-match-info > small { font-size: 1rem; }
.goat-calendar-modern .goat-calendar-detail-line { gap: 8px; }
.goat-calendar-modern .goat-calendar-detail-line small { font-size: .68rem; }
.goat-calendar-modern .goat-calendar-overview-card footer { margin-top: 8px; }
.goat-calendar-modern .goat-calendar-registration-rules > div { grid-template-columns: 28px auto; }
.goat-calendar-modern .goat-calendar-registration-rules > div img { grid-row: 1 / span 2; }
.goat-calendar-modern .goat-calendar-registration-rules > div strong { line-height: 1; }
.goat-calendar-modern .goat-calendar-upcoming-panel { padding-top: 16px; }
.goat-calendar-modern .goat-calendar-upcoming-item { align-items: center; }
.goat-calendar-modern .goat-calendar-upcoming-copy b { color: #fbf7ef; }
.goat-calendar-modern .goat-calendar-upcoming-copy small:first-of-type { color: #fbf7ef; font-size: .72rem; }
.goat-calendar-modern .goat-calendar-board-header { margin-bottom: 10px; }
.goat-calendar-modern .goat-calendar-day-cell {
  min-height: 86px;
  gap: 5px;
  border-radius: 10px;
  background: rgba(255,255,255,.014);
}
.goat-calendar-modern .goat-calendar-day-cell.has-league {
  background: linear-gradient(180deg, rgba(23,21,15,0.72), rgba(13,12,10,0.95));
  border-color: rgba(212,169,79,0.22);
}
.goat-calendar-modern .goat-calendar-day-cell.has-event {
  background: linear-gradient(180deg, rgba(82,63,17,.55), rgba(27,23,14,.92));
  border-color: rgba(255,200,74,.22);
}
.goat-calendar-modern .goat-calendar-day-cell.has-league.is-selected,
.goat-calendar-modern .goat-calendar-day-cell.has-event.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(212,169,79,0.22);
}
.goat-calendar-modern .goat-calendar-day-head { position: relative; align-items: flex-start; }
.goat-calendar-modern .goat-calendar-day-head strong { font-size: 1rem; }
.goat-calendar-modern .goat-calendar-day-today {
  margin-left: auto;
  align-self: flex-start;
  background: #4c3915;
  color: #1a1207;
  font-weight: 900;
  padding: 2px 8px;
  box-shadow: 0 0 12px rgba(212,169,79,0.24);
}
.goat-calendar-modern .goat-calendar-day-body { gap: 4px; }
.goat-calendar-modern .goat-calendar-day-entry {
  display: grid;
  grid-template-columns: 14px minmax(0,1fr);
  column-gap: 7px;
  row-gap: 1px;
  align-items: start;
  color: #fbf7ef;
  font-size: .56rem;
  line-height: 1.2;
}
.goat-calendar-modern .goat-calendar-day-entry b,
.goat-calendar-modern .goat-calendar-day-entry small { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goat-calendar-modern .goat-calendar-day-entry small { color: rgba(251,247,239,0.82); font-size: .54rem; }
.goat-calendar-modern .goat-calendar-day-entry.is-more {
  display:block; color: rgba(251,247,239,0.82); font-size: .56rem; padding-left: 0;
}
.goat-calendar-modern .goat-calendar-day-entry.is-event b,
.goat-calendar-modern .goat-calendar-day-entry.is-registration b,
.goat-calendar-modern .goat-calendar-day-entry.is-start b,
.goat-calendar-modern .goat-calendar-day-entry.is-finish b,
.goat-calendar-modern .goat-calendar-day-entry.is-offseason b { color: #ffe28e; }
.goat-calendar-modern .goat-calendar-day-chip,
.goat-calendar-modern .goat-calendar-day-chip::before { all: unset; }
.goat-calendar-modern .goat-calendar-month-grid { gap: 4px; }
.goat-calendar-modern .goat-calendar-month-weekdays { margin-bottom: 6px; }
.goat-calendar-modern .goat-calendar-month-weekdays span { font-size: .62rem; }
.goat-calendar-modern .goat-calendar-support-row { padding-top: 14px; }
.goat-calendar-modern .goat-calendar-matchday-row button.is-next,
.goat-calendar-modern .goat-calendar-window-break { border-color: rgba(212,169,79,0.3); }
.goat-calendar-modern .goat-calendar-season-nav button { font-size: .7rem; }
@media (max-width: 640px) {
  .goat-calendar-modern .goat-calendar-day-entry small { display:none; }
  .goat-calendar-modern .goat-calendar-day-cell { min-height: 64px; }
}

/* Calendar refinement 3.0A.47.6 */
.goat-calendar-modern .section-frame,
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-board-shell,
.goat-calendar-modern .goat-calendar-side-panel,
.goat-calendar-modern .goat-calendar-support-row,
.club-calendar-section.section-frame {
  background:
    linear-gradient(145deg, rgba(23,21,15,0.74), rgba(13,12,10,0.86)),
    var(--panel-glass);
  box-shadow: var(--shadow);
}
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-board-shell,
.goat-calendar-modern .goat-calendar-side-panel,
.goat-calendar-modern .goat-calendar-support-row {
  padding: 12px 14px;
}
.goat-calendar-modern .goat-calendar-dashboard { gap: 10px; }
.goat-calendar-modern .goat-calendar-dashboard-card { gap: 8px; }
.goat-calendar-modern .goat-calendar-overview-card header,
.goat-calendar-modern .goat-calendar-next-match-card header,
.goat-calendar-modern .goat-calendar-registration-card header,
.goat-calendar-modern .goat-calendar-upcoming-panel header,
.goat-calendar-modern .goat-calendar-support-row header {
  min-height: 24px;
  align-items: flex-start;
  margin: 0;
}
.goat-calendar-modern .goat-calendar-dashboard-card header p,
.goat-calendar-modern .goat-calendar-upcoming-panel header p,
.goat-calendar-modern .goat-calendar-support-row header .eyebrow {
  margin: 0;
}
.goat-calendar-modern .goat-calendar-overview-grid { gap: 0; }
.goat-calendar-modern .goat-calendar-stat { padding-top: 8px; padding-bottom: 4px; }
.goat-calendar-modern .goat-calendar-stat-icon-img { width: 26px; height: 26px; margin-bottom: 4px; }
.goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat:last-child strong {
  color: #e5c377;
  text-shadow: 0 0 14px rgba(212,169,79,0.18);
}
.goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat:last-child span {
  color: rgba(255,255,255,.76);
}
.goat-calendar-modern .goat-calendar-next-match-card header,
.goat-calendar-modern .goat-calendar-registration-card header { padding-top: 0; }
.goat-calendar-modern .goat-calendar-next-match-shell {
  gap: 14px;
  margin-top: 0;
  align-items: start;
}
.goat-calendar-modern .goat-calendar-next-match-clubs {
  align-items: start;
}
.goat-calendar-modern .goat-calendar-team-block {
  align-self: start;
  gap: 8px;
}
.goat-calendar-modern .goat-calendar-team-block .goat-calendar-club-mark {
  width: 66px; height: 66px;
}
.goat-calendar-modern .goat-calendar-team-block strong {
  min-height: 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  gap: 5px;
  padding-left: 4px;
}
.goat-calendar-modern .goat-calendar-next-match-info > strong { font-size: .98rem; }
.goat-calendar-modern .goat-calendar-next-match-info > small { font-size: 1rem; }
.goat-calendar-modern .goat-calendar-detail-line small {
  opacity: .72;
  font-size: .68rem;
}
.goat-calendar-modern .goat-calendar-registration-grid strong {
  font-size: 1.1rem;
}
.goat-calendar-modern .goat-calendar-registration-grid > div { padding-top: 6px; padding-bottom: 8px; }
.goat-calendar-modern .goat-calendar-registration-rules {
  padding-top: 10px;
  gap: 0;
}
.goat-calendar-modern .goat-calendar-registration-rules > div {
  grid-template-columns: 24px auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  column-gap: 10px;
  padding: 8px 8px 0;
}
.goat-calendar-modern .goat-calendar-registration-rules > div img { grid-row: auto; }
.goat-calendar-modern .goat-calendar-registration-rules > div strong {
  font-size: 1.55rem;
  line-height: 1;
  align-self: center;
}
.goat-calendar-modern .goat-calendar-registration-rules > div small {
  font-size: .6rem;
  line-height: 1.15;
  text-align: left;
  align-self: center;
}
.goat-calendar-modern .goat-calendar-rule-icon { width: 22px; height: 22px; }
.goat-calendar-modern .goat-calendar-main-layout { gap: 10px; }
.goat-calendar-modern .goat-calendar-month-grid { gap: 4px; }
.goat-calendar-modern .goat-calendar-day-cell {
  min-height: 82px;
  padding: 7px 8px;
  position: relative;
}
.goat-calendar-modern .goat-calendar-day-head {
  min-height: 18px;
  align-items: flex-start;
}
.goat-calendar-modern .goat-calendar-day-head strong { font-size: 1rem; }
.goat-calendar-modern .goat-calendar-day-today {
  position: absolute;
  top: 6px;
  right: 6px;
  margin-left: 0;
  font-size: .62rem;
  letter-spacing: .08em;
  padding: 3px 8px;
  color: #1a1207;
  background: #4c3915;
  border: 1px solid rgba(255,255,255,.6);
}
.goat-calendar-modern .goat-calendar-day-cell.is-today {
  border-color: rgba(212,169,79,0.95);
  box-shadow: inset 0 0 0 2px rgba(212,169,79,0.55), 0 0 18px rgba(212,169,79,0.18);
  background: linear-gradient(180deg, rgba(23,21,15,0.85), rgba(13,12,10,0.98));
}
.goat-calendar-modern .goat-calendar-day-cell.is-today .goat-calendar-day-head strong {
  color: #ffffff;
}
.goat-calendar-modern .goat-calendar-day-body { gap: 3px; }
.goat-calendar-modern .goat-calendar-day-entry { font-size: .54rem; }
.goat-calendar-modern .goat-calendar-day-entry b { font-size: .56rem; }
.goat-calendar-modern .goat-calendar-board-header { margin-bottom: 8px; }
.goat-calendar-modern .goat-calendar-support-row { padding-top: 12px; }
.goat-calendar-modern .goat-calendar-support-row header { margin-bottom: 8px; }
.goat-calendar-modern .goat-calendar-track-shell .eyebrow { margin: 0; }

@media (max-width: 860px) {
  .goat-calendar-modern .goat-calendar-registration-rules > div {
    grid-template-columns: 22px auto 1fr;
  }
  .goat-calendar-modern .goat-calendar-day-today { top: 4px; right: 4px; font-size: .56rem; }
}

/* Calendar refinement 3.0A.47.7 */
.club-calendar-section.section-frame {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  backdrop-filter: none !important;
  padding: 18px 14px 14px !important;
}
.club-calendar-section.section-frame::before {
  display: none !important;
}
.goat-league-calendar.goat-calendar-modern {
  background: linear-gradient(180deg, rgba(13,12,10,0.72), rgba(13,12,10,0.68));
  border: 1px solid rgba(212,169,79,0.12);
  border-radius: 26px;
  padding: 22px 16px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.goat-calendar-modern .goat-calendar-dashboard {
  grid-template-columns: 1fr 1.02fr 1fr;
  gap: 10px;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  min-height: 150px;
  padding: 10px 12px;
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  align-content: start;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 78px;
}
.goat-calendar-modern .goat-calendar-stat {
  padding-top: 6px;
  padding-bottom: 2px;
  gap: 4px;
}
.goat-calendar-modern .goat-calendar-stat strong {
  font-size: .95rem;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  padding-top: 6px;
}
.goat-calendar-modern .goat-calendar-next-match-shell {
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, .62fr);
  gap: 12px;
}
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 60px; height: 60px;
}
.goat-calendar-modern .goat-calendar-next-vs {
  align-self: center;
}
.goat-calendar-modern .goat-calendar-team-block {
  grid-template-rows: 60px 34px;
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-team-block strong {
  min-height: 34px;
  font-size: .96rem;
  line-height: 1.05;
  align-items: flex-start;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  align-self: center;
}
.goat-calendar-modern .goat-calendar-registration-grid {
  min-height: 50px;
}
.goat-calendar-modern .goat-calendar-registration-grid strong {
  font-size: 1rem;
}
.goat-calendar-modern .goat-calendar-registration-rules {
  align-items: center;
}
.goat-calendar-modern .goat-calendar-registration-rules > div {
  padding-top: 4px;
  padding-bottom: 0;
}
.goat-calendar-modern .goat-calendar-registration-rules > div strong {
  font-size: 1.45rem;
}
.goat-calendar-modern .goat-calendar-rule-icon {
  width: 20px; height: 20px;
}
.goat-calendar-modern .goat-calendar-day-cell {
  min-height: 86px;
}
.goat-calendar-modern .goat-calendar-day-head {
  position: relative;
  padding-right: 60px;
}
.goat-calendar-modern .goat-calendar-day-today {
  top: 2px;
  right: 2px;
  font-size: .68rem;
  line-height: 1;
  padding: 4px 10px;
  z-index: 2;
  border-radius: 999px;
  color: #1a1207;
  background: #4c3915;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75), 0 0 16px rgba(212,169,79,0.35);
}
.goat-calendar-modern .goat-calendar-day-cell.is-today {
  border-color: rgba(212,169,79,0.98);
  box-shadow: inset 0 0 0 2px rgba(212,169,79,0.72), 0 0 22px rgba(212,169,79,0.16);
  background: linear-gradient(180deg, rgba(42,34,20,0.92), rgba(13,12,10,0.99));
}
.goat-calendar-modern .goat-calendar-day-entry.is-more {
  color: rgba(251,247,239,0.95);
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card {
    min-height: 0;
  }
}

/* Calendar refinement 3.0A.47.8 */
.goat-calendar-modern .goat-calendar-dashboard {
  align-items: start;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  min-height: 126px;
  padding: 10px 12px 8px;
  gap: 4px;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 64px;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  padding-top: 4px;
  margin-top: 2px;
}
.goat-calendar-modern .goat-calendar-next-match-shell {
  gap: 10px;
  align-items: center;
}
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 56px;
  height: 56px;
}
.goat-calendar-modern .goat-calendar-team-block {
  grid-template-rows: 56px 30px;
  gap: 4px;
}
.goat-calendar-modern .goat-calendar-team-block strong {
  min-height: 30px;
  font-size: .92rem;
}
.goat-calendar-modern .goat-calendar-next-match-info > strong {
  font-size: .92rem;
}
.goat-calendar-modern .goat-calendar-next-match-info > small {
  font-size: .9rem;
}
.goat-calendar-modern .goat-calendar-detail-line {
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-detail-line small {
  font-size: .64rem;
}
.goat-calendar-modern .goat-calendar-registration-grid {
  min-height: 42px;
}
.goat-calendar-modern .goat-calendar-registration-grid strong {
  font-size: .96rem;
}
.goat-calendar-modern .goat-calendar-registration-rules {
  padding-top: 8px;
}
.goat-calendar-modern .goat-calendar-registration-rules > div strong {
  font-size: 1.3rem;
}
.goat-calendar-modern .goat-calendar-registration-rules > div small {
  font-size: .56rem;
}
.goat-calendar-modern .goat-calendar-day-cell {
  position: relative;
}
.goat-calendar-modern .goat-calendar-day-head {
  padding-right: 0;
}
.goat-calendar-modern .goat-calendar-day-today {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  color: #e5c377;
  background: linear-gradient(180deg, rgba(23,21,15,0.98), rgba(13,12,10,0.98));
  border: 1px solid rgba(212,169,79,0.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 10px rgba(212,169,79,0.12);
  text-shadow: none;
}
.goat-calendar-modern .goat-calendar-day-cell.is-today {
  border-color: rgba(212,169,79,0.98);
  box-shadow: inset 0 0 0 2px rgba(212,169,79,0.72), 0 0 22px rgba(212,169,79,0.14);
}
.goat-calendar-modern .goat-calendar-day-cell.is-today .goat-calendar-day-today {
  color: #e5c377;
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card {
    min-height: 118px;
  }
}

/* Calendar refinement 3.0A.47.9 */
.goat-calendar-modern .goat-calendar-dashboard {
  align-items: stretch;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 176px;
  min-height: 176px;
  padding: 10px 12px 8px;
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  height: 176px;
  min-height: 176px;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 60px;
  flex: 0 0 auto;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  margin-top: auto;
  padding-top: 6px;
}
.goat-calendar-modern .goat-calendar-overview-card footer strong {
  font-size: 1.05rem;
}
.goat-calendar-modern .goat-calendar-next-match-shell {
  flex: 1 1 auto;
  align-items: center;
  gap: 12px;
}
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-team-block strong {
  min-height: 28px;
}
.goat-calendar-modern .goat-calendar-registration-grid {
  min-height: 40px;
  flex: 0 0 auto;
}
.goat-calendar-modern .goat-calendar-registration-rules {
  margin-top: auto;
}
.goat-calendar-modern .goat-calendar-day-cell {
  overflow: hidden;
}
.goat-calendar-modern .goat-calendar-day-today {
  top: 0;
  right: 0;
  margin: 0;
  min-width: 54px;
  border-radius: 0 10px 0 10px;
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card,
  .goat-calendar-modern .goat-calendar-overview-card,
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-registration-card {
    height: 166px;
    min-height: 166px;
  }
}

/* Calendar refinement 3.0A.47.10 */
.goat-calendar-modern .goat-calendar-dashboard {
  align-items: stretch;
}
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  height: 160px;
  min-height: 160px;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  padding: 10px 12px 8px;
  gap: 5px;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 58px;
}
.goat-calendar-modern .goat-calendar-stat span {
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  margin-top: auto;
  padding-top: 4px;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.goat-calendar-modern .goat-calendar-overview-card footer strong {
  font-size: .98rem;
  line-height: 1;
}
.goat-calendar-modern .goat-calendar-overview-card footer small {
  font-size: .56rem;
}
.goat-calendar-modern .goat-calendar-next-match-shell {
  align-items: center;
  gap: 14px;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  align-self: center;
}
.goat-calendar-modern .goat-calendar-registration-rules {
  margin-top: auto;
}
.goat-calendar-modern .goat-calendar-day-cell {
  position: relative;
  overflow: hidden;
}
.goat-calendar-modern .goat-calendar-day-head {
  position: static !important;
  padding-right: 0;
}
.goat-calendar-modern .goat-calendar-day-today {
  top: 0 !important;
  right: 0 !important;
  min-width: 54px;
  padding: 4px 10px;
  font-size: .7rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 0 10px 0 10px;
}
.goat-calendar-modern .goat-calendar-day-entry.is-cup b,
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup b,
.goat-calendar-modern .goat-calendar-detail-event.is-cup strong {
  color: #d9d1c2;
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card,
  .goat-calendar-modern .goat-calendar-overview-card,
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-registration-card {
    height: 152px;
    min-height: 152px;
  }
}

/* Calendar refinement 3.0A.47.11 */
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  height: 170px;
  min-height: 170px;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  overflow: hidden;
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 74px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 6px;
}
.goat-calendar-modern .goat-calendar-stat {
  padding-top: 6px;
  padding-bottom: 4px;
}
.goat-calendar-modern .goat-calendar-stat span {
  white-space: nowrap;
  font-size: .56rem;
  letter-spacing: .05em;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  margin-top: 0;
  padding-top: 8px;
  padding-bottom: 2px;
  border-top: 0;
  justify-content: flex-start;
}
.goat-calendar-modern .goat-calendar-overview-card footer strong {
  flex: 0 0 auto;
  white-space: nowrap;
}
.goat-calendar-modern .goat-calendar-overview-card footer small {
  text-transform: uppercase;
  letter-spacing: .06em;
}
.goat-calendar-modern .goat-calendar-next-match-shell {
  flex: 1 1 auto;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  gap: 4px;
}
.goat-calendar-modern .goat-calendar-day-cell.has-cup {
  background: linear-gradient(180deg, rgba(42,34,20,0.78), rgba(23,21,15,0.96));
  border-color: rgba(212,169,79,0.28);
}
.goat-calendar-modern .goat-calendar-day-cell.has-cup.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 0 1px rgba(212,169,79,0.28);
}
.goat-calendar-modern .goat-calendar-day-entry.is-cup b { color: #fbf7ef; }
.goat-calendar-modern .goat-calendar-day-entry.is-cup .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-copy-icon-img {
  filter: brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup {
  background: linear-gradient(180deg, rgba(23,21,15,0.88), rgba(13,12,10,0.96));
  border-color: rgba(212,169,79,0.24);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup:hover,
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup.is-selected {
  background: linear-gradient(180deg, rgba(42,34,20,0.94), rgba(23,21,15,0.98));
  border-color: rgba(212,169,79,0.42);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-date {
  background: linear-gradient(180deg, rgba(23,21,15,0.95), rgba(13,12,10,0.99));
  border-color: rgba(212,169,79,0.28);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-date small {
  color: #fbf7ef;
}
.goat-calendar-modern .goat-calendar-day-head {
  position: static !important;
}
.goat-calendar-modern .goat-calendar-day-today {
  top: 0 !important;
  right: 0 !important;
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card,
  .goat-calendar-modern .goat-calendar-overview-card,
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-registration-card {
    height: 162px;
    min-height: 162px;
  }
}

/* Calendar refinement 3.0A.47.12 */
.goat-calendar-modern .goat-calendar-dashboard {
  align-items: stretch;
}
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  height: auto !important;
  min-height: 172px;
  overflow: visible !important;
}
.goat-calendar-modern .goat-calendar-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10px 12px 10px;
  gap: 6px;
}
.goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat:last-child span {
  color: inherit !important;
}
.goat-calendar-modern .goat-calendar-stat span {
  white-space: nowrap;
  color: var(--muted);
}
.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 72px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 6px;
  margin-bottom: 0;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 0;
  justify-content: start;
}
.goat-calendar-modern .goat-calendar-overview-card footer strong,
.goat-calendar-modern .goat-calendar-overview-card footer small {
  display: block;
  white-space: nowrap;
}
.goat-calendar-modern .goat-calendar-overview-card footer strong { font-size: 1rem; }
.goat-calendar-modern .goat-calendar-overview-card footer small { font-size: .58rem; }
.goat-calendar-modern .goat-calendar-next-match-shell {
  flex: 1 1 auto;
  align-items: center;
  gap: 14px;
}
.goat-calendar-modern .goat-calendar-registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.goat-calendar-modern .goat-calendar-registration-grid > div {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 6px;
  padding-bottom: 8px;
}
.goat-calendar-modern .goat-calendar-registration-grid > div + div {
  padding-left: 0;
}
.goat-calendar-modern .goat-calendar-registration-grid span,
.goat-calendar-modern .goat-calendar-registration-grid strong {
  text-align: center;
}
.goat-calendar-modern .goat-calendar-day-cell.has-cup {
  background: linear-gradient(180deg, rgba(42,34,20,0.82), rgba(23,21,15,0.97));
  border-color: rgba(212,169,79,0.34);
}
.goat-calendar-modern .goat-calendar-day-cell.has-league {
  background: linear-gradient(180deg, rgba(23,21,15,0.72), rgba(13,12,10,0.95));
}
.goat-calendar-modern .goat-calendar-day-entry.is-cup .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-copy-icon-img,
.goat-calendar-modern .goat-calendar-day-chip.is-cup .goat-calendar-entry-icon {
  filter: brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup {
  background: linear-gradient(180deg, rgba(23,21,15,0.92), rgba(13,12,10,0.98));
  border-color: rgba(212,169,79,0.28);
}
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-copy b,
.goat-calendar-modern .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-copy small:first-of-type {
  color: #fbf7ef;
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card,
  .goat-calendar-modern .goat-calendar-overview-card,
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-registration-card {
    min-height: 164px;
  }
}

/* Calendar refinement 3.0A.47.14 */
.goat-calendar-modern .goat-calendar-dashboard {
  align-items: stretch;
}

/* Equal, compact desktop cards. */
.goat-calendar-modern .goat-calendar-dashboard-card,
.goat-calendar-modern .goat-calendar-overview-card,
.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  box-sizing: border-box;
  height: 148px !important;
  min-height: 148px !important;
  overflow: hidden !important;
  padding: 10px 12px 9px;
}

.goat-calendar-modern .goat-calendar-overview-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 5px;
}

.goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat span,
.goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat:last-child span {
  color: var(--muted) !important;
  font-weight: 500 !important;
  font-size: .56rem !important;
  letter-spacing: .05em !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.goat-calendar-modern .goat-calendar-overview-grid {
  min-height: 0 !important;
  height: auto !important;
  padding: 2px 0 6px !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  align-items: center;
}

.goat-calendar-modern .goat-calendar-stat {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
  gap: 3px !important;
}

.goat-calendar-modern .goat-calendar-stat-icon-img {
  width: 24px !important;
  height: 24px !important;
  margin-bottom: 2px !important;
}

.goat-calendar-modern .goat-calendar-stat strong {
  font-size: .91rem !important;
  line-height: 1.05 !important;
}

/* One divider only, immediately below the overview stats. */
.goat-calendar-modern .goat-calendar-overview-card footer {
  margin: 0 !important;
  padding: 7px 0 0 !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 11px !important;
  text-align: center;
}

.goat-calendar-modern .goat-calendar-overview-card footer strong,
.goat-calendar-modern .goat-calendar-overview-card footer small {
  display: block;
  white-space: nowrap;
  line-height: 1;
}

.goat-calendar-modern .goat-calendar-overview-card footer strong {
  font-size: .92rem !important;
}

.goat-calendar-modern .goat-calendar-overview-card footer small {
  font-size: .54rem !important;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.goat-calendar-modern .goat-calendar-next-match-card,
.goat-calendar-modern .goat-calendar-registration-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 5px;
}

.goat-calendar-modern .goat-calendar-next-match-shell {
  min-height: 0;
  align-self: stretch;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}

.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 52px !important;
  height: 52px !important;
}

.goat-calendar-modern .goat-calendar-team-block {
  grid-template-rows: 52px 27px !important;
  gap: 3px !important;
}

.goat-calendar-modern .goat-calendar-team-block strong {
  min-height: 27px !important;
  font-size: .86rem !important;
  line-height: 1.05 !important;
}

.goat-calendar-modern .goat-calendar-next-match-info {
  gap: 3px !important;
}

.goat-calendar-modern .goat-calendar-next-match-info > strong {
  font-size: .88rem !important;
}

.goat-calendar-modern .goat-calendar-next-match-info > small {
  font-size: .86rem !important;
}

.goat-calendar-modern .goat-calendar-detail-line small {
  font-size: .61rem !important;
}

.goat-calendar-modern .goat-calendar-registration-card {
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.goat-calendar-modern .goat-calendar-registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0 !important;
  gap: 0;
  align-items: center;
}

.goat-calendar-modern .goat-calendar-registration-grid > div {
  display: grid;
  justify-content: center;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 3px 8px 5px !important;
}

.goat-calendar-modern .goat-calendar-registration-grid > div + div {
  padding-left: 8px !important;
}

.goat-calendar-modern .goat-calendar-registration-grid span,
.goat-calendar-modern .goat-calendar-registration-grid strong {
  text-align: center;
}

.goat-calendar-modern .goat-calendar-registration-grid strong {
  font-size: .9rem !important;
}

.goat-calendar-modern .goat-calendar-registration-rules {
  margin: 0 !important;
  padding-top: 6px !important;
  align-self: end;
}

.goat-calendar-modern .goat-calendar-registration-rules > div {
  padding-top: 2px !important;
  padding-bottom: 0 !important;
}

.goat-calendar-modern .goat-calendar-registration-rules > div strong {
  font-size: 1.22rem !important;
}

.goat-calendar-modern .goat-calendar-registration-rules > div small {
  font-size: .53rem !important;
}

/* Three-line month fixture layout with compact long club names. */
.goat-calendar-modern .goat-calendar-day-entry {
  grid-template-columns: 14px minmax(0,1fr);
  align-items: start;
}

.goat-calendar-modern .goat-calendar-day-entry b,
.goat-calendar-modern .goat-calendar-day-entry small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goat-calendar-modern .goat-calendar-day-entry small.opponent {
  display: block;
  margin-top: 1px;
}

.goat-calendar-modern .goat-calendar-day-entry small.side {
  display: block;
  font-size: .5rem;
  letter-spacing: .08em;
  color: rgba(251,247,239,0.66);
  margin-top: 0;
}

.goat-calendar-modern .goat-calendar-day-entry.is-cup small.side {
  color: rgba(251,247,239,0.8);
}

.goat-calendar-modern .goat-calendar-upcoming-item small:nth-of-type(1),
.goat-calendar-modern .goat-calendar-upcoming-item small:nth-of-type(2) {
  display: block;
}

@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard-card,
  .goat-calendar-modern .goat-calendar-overview-card,
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-registration-card {
    height: auto !important;
    min-height: 148px !important;
  }
}

/* Calendar refinement 3.0A.47.15 */
.goat-calendar-modern .goat-calendar-overview-card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-content: stretch;
  gap: 6px !important;
}
.goat-calendar-modern .goat-calendar-overview-grid {
  height: 100% !important;
  min-height: 0 !important;
  padding: 4px 0 0 !important;
  margin: 0 !important;
  border-bottom: 0 !important;
  align-items: center;
}
.goat-calendar-modern .goat-calendar-overview-card footer {
  display: none !important;
}

/* Calendar refinement 3.0A.47.19 */
.goat-calendar-modern .goat-calendar-day-entry small.side,
.goat-calendar-modern .goat-calendar-result-text,
.goat-calendar-modern .goat-calendar-row-status {
  font-weight: 800;
}
.goat-calendar-modern .goat-calendar-day-entry small.side.is-win,
.goat-calendar-modern .goat-calendar-result-text.is-win,
.goat-calendar-modern .goat-calendar-row-status.is-win {
  color: #55df91 !important;
}
.goat-calendar-modern .goat-calendar-day-entry small.side.is-draw,
.goat-calendar-modern .goat-calendar-result-text.is-draw,
.goat-calendar-modern .goat-calendar-row-status.is-draw {
  color: #ffe34f !important;
}
.goat-calendar-modern .goat-calendar-day-entry small.side.is-loss,
.goat-calendar-modern .goat-calendar-result-text.is-loss,
.goat-calendar-modern .goat-calendar-row-status.is-loss {
  color: #ff5e6d !important;
}
.goat-calendar-modern .goat-calendar-result-text.is-win,
.goat-calendar-modern .goat-calendar-result-text.is-draw,
.goat-calendar-modern .goat-calendar-result-text.is-loss {
  text-shadow: 0 0 10px rgba(0,0,0,.15);
}

/* Calendar refinement 3.0A.47.22 */
.goat-calendar-legend i.is-cup { background:#4c3915; box-shadow:0 0 0 3px rgba(212,169,79,0.12); }
.goat-calendar-modern .goat-calendar-day-cell.has-cup {
  background: linear-gradient(180deg, rgba(42,34,20,0.82), rgba(23,21,15,0.97));
  border-color: rgba(212,169,79,0.34);
}
.goat-calendar-modern .goat-calendar-day-cell.has-promotion {
  background: linear-gradient(180deg, rgba(19,90,59,.82), rgba(9,38,28,.97));
  border-color: rgba(114,245,160,.42);
}
.goat-calendar-modern .goat-calendar-day-cell.has-relegation {
  background: linear-gradient(180deg, rgba(110,24,34,.84), rgba(56,10,18,.97));
  border-color: rgba(255,102,118,.42);
}
.goat-calendar-modern .goat-calendar-day-cell.has-promotion:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-promotion.is-selected {
  background: linear-gradient(180deg, rgba(24,110,71,.9), rgba(10,44,32,.98));
}
.goat-calendar-modern .goat-calendar-day-cell.has-relegation:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-relegation.is-selected {
  background: linear-gradient(180deg, rgba(128,26,39,.9), rgba(62,10,20,.98));
}
.goat-calendar-modern .goat-calendar-day-entry.is-promotion b,
.goat-calendar-modern .goat-calendar-day-entry.is-promotion small,
.goat-calendar-modern .goat-calendar-detail-event.is-promotion b,
.goat-calendar-modern .goat-calendar-detail-event.is-promotion small,
.goat-calendar-modern .goat-calendar-milestones button.is-promotion span,
.goat-calendar-modern .goat-calendar-milestones button.is-promotion strong {
  color:#8ff0b6;
}
.goat-calendar-modern .goat-calendar-day-entry.is-relegation b,
.goat-calendar-modern .goat-calendar-day-entry.is-relegation small,
.goat-calendar-modern .goat-calendar-detail-event.is-relegation b,
.goat-calendar-modern .goat-calendar-detail-event.is-relegation small,
.goat-calendar-modern .goat-calendar-milestones button.is-relegation span,
.goat-calendar-modern .goat-calendar-milestones button.is-relegation strong {
  color:#ff9da8;
}
.goat-calendar-modern .goat-calendar-detail-event.is-promotion { background: rgba(74, 210, 133, .08); border-color: rgba(114,245,160,.26); }
.goat-calendar-modern .goat-calendar-detail-event.is-relegation { background: rgba(255, 94, 109, .08); border-color: rgba(255,102,118,.22); }
.goat-calendar-modern .goat-calendar-upcoming-item.is-promotion .goat-calendar-upcoming-date { background: rgba(74,210,133,.12); border-color: rgba(114,245,160,.25); }
.goat-calendar-modern .goat-calendar-upcoming-item.is-relegation .goat-calendar-upcoming-date { background: rgba(255,94,109,.12); border-color: rgba(255,102,118,.22); }
.goat-calendar-modern .goat-calendar-milestones button.is-promotion { border-left:3px solid rgba(114,245,160,.8); }
.goat-calendar-modern .goat-calendar-milestones button.is-relegation { border-left:3px solid rgba(255,102,118,.8); }

/* Calendar refinement 3.0A.47.23 */
.goat-calendar-modern .goat-calendar-day-cell.has-registration,
.goat-calendar-modern .goat-calendar-day-cell.has-start,
.goat-calendar-modern .goat-calendar-day-cell.has-finish,
.goat-calendar-modern .goat-calendar-day-cell.has-event {
  background: linear-gradient(180deg, rgba(108,76,16,.78), rgba(43,31,12,.96));
  border-color: rgba(255,200,74,.42);
  box-shadow: inset 0 0 0 1px rgba(255,220,126,.06);
}
.goat-calendar-modern .goat-calendar-day-cell.has-registration:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-registration.is-selected,
.goat-calendar-modern .goat-calendar-day-cell.has-start:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-start.is-selected,
.goat-calendar-modern .goat-calendar-day-cell.has-finish:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-finish.is-selected,
.goat-calendar-modern .goat-calendar-day-cell.has-event:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-event.is-selected {
  background: linear-gradient(180deg, rgba(130,91,18,.88), rgba(52,37,12,.98));
  border-color: rgba(255,213,104,.62);
  box-shadow: inset 0 0 0 1px rgba(255,235,170,.09), 0 0 0 1px rgba(255,200,74,.12);
}
.goat-calendar-modern .goat-calendar-day-cell.has-registration .goat-calendar-day-head strong,
.goat-calendar-modern .goat-calendar-day-cell.has-start .goat-calendar-day-head strong,
.goat-calendar-modern .goat-calendar-day-cell.has-finish .goat-calendar-day-head strong,
.goat-calendar-modern .goat-calendar-day-cell.has-event .goat-calendar-day-head strong {
  color: #ffe28e;
}
.goat-calendar-modern .goat-calendar-day-entry.is-registration .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-day-entry.is-start .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-day-entry.is-finish .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-day-entry.is-event .goat-calendar-entry-icon {
  filter: invert(86%) sepia(68%) saturate(943%) hue-rotate(344deg) brightness(107%) contrast(103%);
}
.goat-calendar-modern .goat-calendar-day-entry.is-promotion .goat-calendar-entry-icon,
.goat-calendar-modern .goat-calendar-day-entry.is-relegation .goat-calendar-entry-icon {
  filter: brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%);
}

/* Pre-season spacing refinement 3.0A.47.24 */
@media (min-width: 861px) {
  body.preseason-background .preseason-hero {
    min-height: 524px;
  }
}

/* Calendar hotfix 3.0A.47.25 — official pre-season gate */
.goat-calendar-modern .goat-calendar-preseason-path,
.goat-calendar-modern .goat-calendar-preseason-fixtures {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 200, 74, .28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(92, 67, 20, .18), rgba(28, 21, 15, .42));
  text-align: center;
}
.goat-calendar-modern .goat-calendar-preseason-path span,
.goat-calendar-modern .goat-calendar-preseason-fixtures strong {
  color: #ffe28e;
  font-weight: 900;
  letter-spacing: .06em;
}
.goat-calendar-modern .goat-calendar-preseason-path strong {
  color: #fbf7ef;
  font-family: var(--display);
  font-size: 1rem;
}
.goat-calendar-modern .goat-calendar-preseason-path small,
.goat-calendar-modern .goat-calendar-preseason-fixtures small {
  color: var(--muted);
  font-size: .65rem;
}

/* League squad registration 3.0A.48 */
.league-registration-screen{display:grid;gap:18px;max-width:1500px;margin:0 auto}.league-registration-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.league-registration-heading h2{margin:3px 0 8px;font-family:var(--display);font-size:clamp(1.55rem,2.4vw,2.35rem)}.league-registration-heading p:last-child{max-width:760px;color:var(--muted)}.league-registration-status{flex:0 0 auto;border:1px solid rgba(212,169,79,0.34);border-radius:999px;padding:9px 14px;background:rgba(76,57,21,0.12);font-size:.72rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.league-registration-status[data-status="submitted"],.league-registration-status[data-status="automatic"]{border-color:rgba(96,226,154,.35);background:rgba(45,160,101,.13);color:#9ff5c5}.league-registration-status[data-status="invalid_roster"]{border-color:rgba(255,103,117,.38);background:rgba(185,45,60,.15);color:#ffadb6}.league-registration-deadline{display:grid;grid-template-columns:auto 1fr;gap:3px 14px;align-items:center;padding:14px 16px;border:1px solid rgba(255,202,82,.25);border-radius:14px;background:linear-gradient(110deg,rgba(112,75,15,.18),rgba(42,34,20,0.14))}.league-registration-deadline span{color:#ffe28e;font-size:.69rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.league-registration-deadline strong{font-size:1rem}.league-registration-deadline small{grid-column:2;color:var(--muted)}.league-registration-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.league-registration-summary article{display:grid;gap:5px;padding:15px 16px;border:1px solid rgba(212,169,79,0.17);border-radius:14px;background:rgba(13,12,10,0.54)}.league-registration-summary span{color:var(--muted);font-size:.69rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.league-registration-summary strong{font-family:var(--display);font-size:1.2rem}.league-registration-validation{padding:14px 16px;border:1px solid rgba(212,169,79,0.18);border-radius:14px;background:rgba(13,12,10,0.48)}.league-registration-validation h3{margin:0 0 8px;font-size:.85rem}.league-registration-validation ul{display:grid;gap:5px;margin:0;padding-left:20px;color:#ffb5bd;font-size:.78rem}.league-registration-validation li.is-valid{color:#98efbe}.league-registration-filters{display:flex;flex-wrap:wrap;gap:12px}.league-registration-filters label,.league-registration-swap-selects label{display:grid;gap:6px;min-width:180px}.league-registration-filters label span,.league-registration-swap-selects label span{color:var(--muted);font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}.league-registration-filters select,.league-registration-filters input,.league-registration-swap-selects select{min-height:42px;border:1px solid rgba(212,169,79,0.2);border-radius:10px;background:#17150f;color:#fbf7ef;padding:0 12px}.league-registration-columns{display:grid;grid-template-columns:1fr 1fr;gap:15px}.league-registration-columns>section,.league-registration-u17,.league-registration-swap,.league-registration-review{display:grid;gap:12px;padding:15px;border:1px solid rgba(212,169,79,0.18);border-radius:16px;background:rgba(13,12,10,0.58)}.league-registration-columns header,.league-registration-u17 header,.league-registration-swap header{display:flex;justify-content:space-between;align-items:center;gap:12px}.league-registration-columns h3,.league-registration-u17 h3,.league-registration-swap h3,.league-registration-review h3{margin:2px 0 0;font-size:.98rem}.league-registration-columns header>span,.league-registration-swap header>strong{font-size:.72rem;color:#d9d1c2}.league-registration-player-list{display:grid;gap:8px;max-height:520px;overflow:auto;padding-right:3px}.league-registration-player-list.compact{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));max-height:none}.league-registration-player{display:grid;grid-template-columns:40px minmax(0,1fr) 40px 60px;align-items:center;gap:10px;width:100%;min-height:62px;padding:8px 10px;border:1px solid rgba(212,169,79,0.16);border-radius:12px;background:rgba(23,21,15,0.7);color:#fbf7ef;text-align:left;transition:border-color .15s ease,transform .15s ease,background .15s ease}.league-registration-player:not(:disabled):hover{transform:translateY(-1px);border-color:rgba(212,169,79,0.52);background:rgba(23,21,15,0.78)}.league-registration-player.is-selected{border-color:rgba(101,230,159,.28);background:rgba(31,99,70,.2)}.league-registration-player.is-exempt{border-color:rgba(212,169,79,0.26);background:rgba(42,34,20,0.18)}.league-registration-player:disabled{cursor:default;opacity:.72}.league-registration-player-position{display:grid;place-items:center;min-height:34px;border-radius:8px;background:rgba(76,57,21,0.18);font-size:.7rem;font-weight:900}.league-registration-player-copy{display:grid;gap:2px;min-width:0}.league-registration-player-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem}.league-registration-player-copy small{color:var(--muted);font-size:.64rem}.league-registration-player-rating{font-family:var(--display);font-size:1rem;text-align:center}.league-registration-player em{font-style:normal;font-size:.62rem;font-weight:900;letter-spacing:.05em;text-align:right;text-transform:uppercase;color:#d9d1c2}.league-registration-player.is-selected em{color:#9ff5c5}.league-registration-player.is-exempt em{color:#d9d1c2}.league-registration-empty{padding:24px 12px;color:var(--muted);font-size:.75rem;text-align:center}.league-registration-actions{display:flex;justify-content:flex-end;gap:10px}.league-registration-review{border-color:rgba(255,202,82,.26);background:rgba(91,65,18,.14)}.league-registration-review p{margin:0;color:#fbf7ef;font-size:.8rem;line-height:1.55}.league-registration-review button{justify-self:start}.league-registration-swap-selects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lineup-registration-badge{display:inline-flex;align-items:center;justify-content:center;min-width:29px;margin-left:auto;border:1px solid rgba(99,224,156,.32);border-radius:999px;padding:2px 5px;background:rgba(44,145,95,.2);color:#a8f7ca;font-size:.49rem;font-weight:950;letter-spacing:.06em;line-height:1.1}.lineup-registration-badge.is-u17{border-color:rgba(212,169,79,0.38);background:rgba(42,34,20,0.24);color:#d9d1c2}.lineup-registration-badge.is-locked{border-color:rgba(255,105,119,.35);background:rgba(168,47,63,.19);color:#ffb2ba}.lineup-pitch-card .lineup-registration-badge{position:absolute;right:3px;bottom:3px;margin:0;z-index:4;min-width:24px;font-size:.42rem}.goat-calendar-registration-action{width:100%;margin-top:12px}.lineup-mini-card.is-unavailable{opacity:.74}.lineup-mini-card.is-unavailable .lineup-card-visual{filter:saturate(.6)}
@media(max-width:900px){.league-registration-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.league-registration-columns{grid-template-columns:1fr}.league-registration-player-list{max-height:420px}}@media(max-width:620px){.league-registration-heading{display:grid}.league-registration-status{justify-self:start}.league-registration-summary{grid-template-columns:1fr 1fr}.league-registration-deadline{grid-template-columns:1fr}.league-registration-deadline small{grid-column:1}.league-registration-swap-selects{grid-template-columns:1fr}.league-registration-player{grid-template-columns:36px minmax(0,1fr) 34px}.league-registration-player em{display:none}.league-registration-actions{justify-content:stretch;flex-direction:column}.league-registration-actions button{width:100%}}


/* v3.0A.48.1 — full-width league squad registration redesign */
body.registration-review-open{overflow:hidden}
#profileRegistrationPanel{width:100%}
.league-registration-screen{display:grid;gap:14px;width:100%;max-width:none;margin:0;padding:clamp(18px,2vw,30px);border:1px solid rgba(212,169,79,0.22);border-radius:22px;background:linear-gradient(155deg,rgba(23,21,15,0.88),rgba(13,12,10,0.92));box-shadow:0 20px 60px rgba(9,7,4,0.34);overflow:visible}
.league-registration-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:22px}.league-registration-heading-copy{min-width:0}.league-registration-heading .eyebrow{margin-bottom:6px}.league-registration-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.league-registration-title-row h2{margin:0;font-family:var(--display);font-size:clamp(1.9rem,3vw,2.85rem);letter-spacing:-.025em}.league-registration-heading-copy>p:last-child{margin:8px 0 0;color:#d9d1c2;font-size:.9rem}.league-registration-status{display:inline-flex;align-items:center;min-height:30px;border:1px solid rgba(212,169,79,0.52);border-radius:999px;padding:0 12px;background:rgba(76,57,21,0.18);color:#fbf7ef;font-size:.66rem;font-weight:900;letter-spacing:.07em;text-transform:uppercase}.league-registration-status[data-window="preseason"],.league-registration-status[data-window="midseason"]{border-color:rgba(96,226,154,.4);background:rgba(42,150,97,.16);color:#a8f6c9}.league-registration-status[data-status="invalid_roster"]{border-color:rgba(255,99,119,.48);background:rgba(183,42,61,.17);color:#ffb3bd}
.league-registration-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid rgba(212,169,79,0.2);border-radius:16px;background:rgba(13,12,10,0.68);overflow:hidden}.league-registration-summary-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center;min-height:88px;padding:14px 18px;border-right:1px solid rgba(212,169,79,0.14)}.league-registration-summary-item:last-child{border-right:0}.league-registration-summary-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:rgba(76,57,21,0.16);color:#e5c377}.league-registration-summary-icon svg{width:24px;height:24px;fill:currentColor}.league-registration-summary-copy{display:grid;gap:2px;min-width:0}.league-registration-summary-copy small{color:#d9d1c2;font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.league-registration-summary-copy strong{font-family:var(--display);font-size:1.35rem;line-height:1.05}.league-registration-summary-copy em{overflow:hidden;color:#d9d1c2;font-size:.64rem;font-style:normal;text-overflow:ellipsis;white-space:nowrap}.league-registration-summary-item[data-tone="passed"] .league-registration-summary-icon{background:rgba(50,166,104,.16);color:#63e398}.league-registration-summary-item[data-tone="warning"] .league-registration-summary-icon{background:rgba(211,146,34,.16);color:#ffc65a}.league-registration-summary-item[data-tone="error"] .league-registration-summary-icon{background:rgba(190,50,68,.18);color:#ff7586}
.league-registration-deadline{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 16px;border:1px solid rgba(255,177,48,.7);border-radius:14px;background:linear-gradient(100deg,rgba(103,62,11,.29),rgba(23,21,15,0.38));box-shadow:inset 0 0 0 1px rgba(255,193,65,.05),0 0 24px rgba(225,142,18,.08)}.league-registration-deadline-icon{display:grid;place-items:center;width:44px;height:44px;border:2px solid #ffb54c;border-radius:50%;color:#ffb54c}.league-registration-deadline-icon svg{width:24px;height:24px;fill:currentColor}.league-registration-deadline-copy{display:grid;gap:1px}.league-registration-deadline-copy small{color:#ffc15e;font-size:.62rem;font-weight:950;letter-spacing:.09em;text-transform:uppercase}.league-registration-deadline-copy strong{font-size:1.05rem}.league-registration-deadline-copy em{color:#d9d1c2;font-size:.72rem;font-style:normal}.league-registration-time-remaining{justify-self:end;border-left:1px solid rgba(255,188,73,.22);padding-left:18px;color:#ffd483;font-size:.72rem;font-weight:850}
.league-registration-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border:1px solid rgba(212,169,79,0.18);border-radius:14px;background:rgba(13,12,10,0.58);overflow:hidden}.league-registration-step{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:13px 18px;color:#d9d1c2}.league-registration-step:not(:last-child)::after{content:"";position:absolute;right:0;top:50%;width:1px;height:44%;background:rgba(76,57,21,0.16);transform:translateY(-50%)}.league-registration-step>span{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border:2px solid rgba(212,169,79,0.35);border-radius:50%;font-weight:900}.league-registration-step strong{color:#d9d1c2;font-size:.76rem}.league-registration-step small{font-size:.63rem}.league-registration-step.is-current>span{border-color:#d4a94f;background:rgba(76,57,21,0.18);color:#fff;box-shadow:0 0 18px rgba(212,169,79,0.28)}.league-registration-step.is-current strong{color:#fff}.league-registration-step.is-complete>span{border-color:#54d68c;background:rgba(46,157,98,.16);color:#8ff0b8}
.league-registration-validation{display:grid;gap:12px;padding:14px 16px;border:1px solid rgba(212,169,79,0.18);border-radius:14px;background:rgba(13,12,10,0.62)}.league-registration-validation>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.league-registration-validation h3{margin:2px 0 0;font-size:.93rem}.league-registration-rules-button{min-height:34px;border:1px solid rgba(212,169,79,0.58);border-radius:9px;padding:0 13px;background:rgba(76,57,21,0.12);color:#fbf7ef;font-size:.67rem;font-weight:800}.league-registration-validation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.league-registration-validation-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:start;min-width:0;padding:9px 10px;border:1px solid rgba(212,169,79,0.12);border-radius:10px;background:rgba(23,21,15,0.58)}.league-registration-validation-item>span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:.68rem;font-weight:950}.league-registration-validation-item>div{display:grid;gap:2px;min-width:0}.league-registration-validation-item strong{font-size:.67rem;line-height:1.3}.league-registration-validation-item small{color:#d9d1c2;font-size:.59rem;line-height:1.35}.league-registration-validation-item.is-passed>span{background:#37aa69;color:white}.league-registration-validation-item.is-warning>span{background:#c68722;color:#15100a}.league-registration-validation-item.is-error>span{background:#c54055;color:white}.league-registration-validation-item.is-warning strong{color:#ffd17d}.league-registration-validation-item.is-error strong{color:#ff9ba9}.league-registration-rules{padding:11px 13px;border-left:3px solid #d4a94f;background:rgba(42,34,20,0.12);color:#d9d1c2;font-size:.7rem;line-height:1.55}.league-registration-rules p{margin:0}
.league-registration-workspace{display:grid;grid-template-columns:minmax(300px,.92fr) minmax(390px,1.25fr) minmax(235px,.53fr);gap:12px;min-height:560px}.league-registration-panel{min-width:0;border:1px solid rgba(212,169,79,0.18);border-radius:15px;background:rgba(13,12,10,0.66);overflow:hidden}.league-registration-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid rgba(212,169,79,0.14)}.league-registration-panel-heading h3{margin:2px 0 3px;font-size:.86rem}.league-registration-panel-heading h3 span{color:#d9d1c2}.league-registration-panel-heading small{color:#d9d1c2;font-size:.67rem}.league-registration-clear-button{min-height:32px;border:1px solid rgba(212,169,79,0.28);border-radius:8px;padding:0 11px;background:transparent;color:#d9d1c2;font-size:.63rem}.league-registration-clear-button:disabled{opacity:.4}.league-registration-player-list{display:grid;align-content:start;gap:7px;max-height:520px;overflow-y:auto;padding:10px}.league-registration-player{display:grid;grid-template-columns:14px 42px 38px minmax(0,1fr) 40px 56px;gap:8px;align-items:center;min-height:58px;padding:7px 8px;border:1px solid rgba(212,169,79,0.16);border-radius:10px;background:rgba(23,21,15,0.72);transition:border-color .15s ease,background .15s ease,transform .15s ease}.league-registration-player:hover{border-color:rgba(212,169,79,0.52);background:rgba(23,21,15,0.85)}.league-registration-player.is-selected{border-color:rgba(212,169,79,0.31);background:linear-gradient(90deg,rgba(42,34,20,0.65),rgba(23,21,15,0.75))}.league-registration-player.is-disabled{opacity:.65}.league-registration-drag{color:#d9d1c2;font-size:.72rem;letter-spacing:-4px}.league-registration-player-portrait{width:42px;height:42px;border-radius:8px;object-fit:cover;object-position:center 17%;background:#151d3e}.league-registration-player-portrait.is-placeholder{display:grid;place-items:center;color:#8e99ba;font-weight:900}.league-registration-player-position{display:grid;place-items:center;min-height:31px;border-radius:7px;background:linear-gradient(145deg,#2a2214,#2a2214);color:white;font-size:.64rem;font-weight:900}.league-registration-player-copy{display:grid;gap:2px;min-width:0}.league-registration-player-copy strong{overflow:hidden;color:#fbf7ef;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}.league-registration-player-copy small{color:#d9d1c2;font-size:.58rem}.league-registration-gk-indicator{display:inline-flex;margin-left:4px;border-radius:4px;padding:1px 4px;background:rgba(76,57,21,0.19);color:#e5c377;font-size:.48rem}.league-registration-player-rating{font-family:var(--display);font-size:.92rem;text-align:center}.league-registration-player-action{display:grid;place-items:center;min-width:42px;min-height:31px;border:1px solid #d4a94f;border-radius:7px;background:rgba(42,34,20,0.14);color:#fbf7ef;font-size:.65rem;font-weight:850}.league-registration-player-action.is-remove{min-width:31px;margin-left:auto;border-color:rgba(212,169,79,0.24);background:transparent;color:#fbf7ef;font-size:1.05rem}.league-registration-player-action:disabled{cursor:not-allowed;opacity:.42}.league-registration-empty{display:grid;min-height:120px;place-items:center;padding:20px;color:#d9d1c2;font-size:.7rem;text-align:center}
.league-registration-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px 10px 0}.league-registration-search input{width:100%;min-height:40px;border:1px solid rgba(212,169,79,0.22);border-radius:9px;background:#0d0c0a;color:#fff;padding:0 12px}.league-registration-filter-toggle{min-height:40px;border:1px solid rgba(212,169,79,0.22);border-radius:9px;background:#17150f;color:#fbf7ef;padding:0 14px;font-size:.66rem;font-weight:800}.league-registration-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:9px 10px}.league-registration-filters.is-collapsed{display:none}.league-registration-filters label{display:grid;gap:4px;min-width:0}.league-registration-filters label>span{color:#d9d1c2;font-size:.55rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.league-registration-filters select,.league-registration-filters input{width:100%;min-width:0;min-height:36px;border:1px solid rgba(212,169,79,0.18);border-radius:8px;background:#17150f;color:#fbf7ef;padding:0 8px;font-size:.62rem}.league-registration-capacity-notice{margin:0 10px 2px;padding:8px 10px;border:1px solid rgba(255,183,67,.3);border-radius:8px;background:rgba(129,78,10,.15);color:#ffd085;font-size:.62rem;line-height:1.4}
.league-registration-sidebar{display:flex;flex-direction:column;padding:15px}.league-registration-sidebar>header{padding-bottom:12px;border-bottom:1px solid rgba(212,169,79,0.13)}.league-registration-sidebar h3{margin:3px 0 0;font-size:.9rem}.league-registration-sidebar-counts{display:grid;gap:0;margin:8px 0 0}.league-registration-sidebar-counts>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid rgba(212,169,79,0.09)}.league-registration-sidebar-counts dt{color:#d9d1c2;font-size:.66rem}.league-registration-sidebar-counts dd{margin:0;color:#fbf7ef;font-size:.7rem;font-weight:900}.league-registration-sidebar-validation{display:grid;gap:9px;padding:14px 0;border-bottom:1px solid rgba(212,169,79,0.13)}.league-registration-sidebar-validation>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:.64rem}.league-registration-sidebar-validation>div:first-child span{color:#58e391;font-weight:900}.league-registration-validation-item.is-compact{border:0;background:transparent;padding:3px 0}.league-registration-validation-item.is-compact small{display:none}.league-registration-notes{display:grid;gap:8px;padding-top:14px}.league-registration-notes>strong{font-size:.64rem;text-transform:uppercase}.league-registration-notes p{position:relative;margin:0;padding-left:10px;color:#d9d1c2;font-size:.59rem;line-height:1.45}.league-registration-notes p::before{content:"";position:absolute;left:0;top:.48em;width:4px;height:4px;border-radius:50%;background:#4c3915}
.league-registration-u17{display:grid;gap:12px;padding:14px 15px;border:1px solid rgba(212,169,79,0.18);border-radius:15px;background:rgba(13,12,10,0.66)}.league-registration-u17>header{display:flex;align-items:center;justify-content:space-between;gap:14px}.league-registration-u17 h3{margin:2px 0 3px;font-size:.9rem}.league-registration-u17 header small{color:#d9d1c2;font-size:.63rem}.league-registration-u17 header>span{border:1px solid rgba(81,190,131,.34);border-radius:999px;padding:5px 9px;background:rgba(48,151,95,.12);color:#8aefb5;font-size:.58rem;font-weight:900;text-transform:uppercase}.league-registration-u17-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.league-registration-u17-card{display:grid;grid-template-columns:44px 36px minmax(0,1fr) 38px auto;gap:9px;align-items:center;min-width:0;padding:8px 10px;border:1px solid rgba(212,169,79,0.2);border-radius:10px;background:rgba(23,21,15,0.56)}.league-registration-u17-card em{border-radius:999px;padding:4px 7px;background:rgba(45,151,91,.15);color:#90edb5;font-size:.5rem;font-style:normal;font-weight:900;text-transform:uppercase}
.league-registration-action-bar{position:sticky;bottom:10px;z-index:15;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:2px;padding:12px 14px;border:1px solid rgba(212,169,79,0.55);border-radius:15px;background:rgba(13,12,10,0.94);box-shadow:0 0 28px rgba(212,169,79,0.2);backdrop-filter:blur(18px)}.league-registration-save-state{display:flex;align-items:center;gap:10px;min-width:0}.league-registration-save-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid rgba(212,169,79,0.22);border-radius:50%;color:#d9d1c2}.league-registration-save-state>span:nth-child(2){display:grid;gap:1px}.league-registration-save-state strong{font-size:.68rem}.league-registration-save-state small{color:#d9d1c2;font-size:.58rem}.league-registration-save-state em{border-radius:999px;padding:4px 7px;background:rgba(204,132,25,.16);color:#ffc86c;font-size:.56rem;font-style:normal;font-weight:850}.league-registration-actions{display:flex;gap:9px}.league-registration-actions .primary-button,.league-registration-actions .secondary-button{min-height:42px;padding:0 20px}.league-registration-actions .primary-button{background:linear-gradient(110deg,#4c3915,#4c3915);border-color:rgba(212,169,79,0.6)}
.league-registration-swap{display:grid;gap:12px;padding:14px 16px;border:1px solid rgba(104,211,153,.26);border-radius:14px;background:rgba(23,86,59,.12)}.league-registration-swap>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.league-registration-swap h3{margin:2px 0 4px;font-size:.9rem}.league-registration-swap header p:last-child{margin:0;color:#d9d1c2;font-size:.64rem}.league-registration-swap header>strong{color:#84edb0;font-size:.68rem}.league-registration-swap-selects{display:grid;grid-template-columns:1fr 1fr;gap:9px}.league-registration-swap-selects label{display:grid;gap:5px}.league-registration-swap-selects label span{color:#d9d1c2;font-size:.58rem;font-weight:850;text-transform:uppercase}.league-registration-swap-selects select{min-height:40px;border:1px solid rgba(212,169,79,0.22);border-radius:8px;background:#17150f;color:#fff;padding:0 10px}.league-registration-review{display:grid;gap:9px;padding:11px;border:1px solid rgba(255,188,76,.28);border-radius:9px;background:rgba(104,67,13,.14)}.league-registration-review p{margin:0;color:#fbf7ef;font-size:.68rem;line-height:1.5}
.league-registration-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:20px}
.league-registration-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(5,4,3,.86);backdrop-filter:blur(8px)}
.league-registration-modal-card{position:relative;z-index:1;width:min(590px,100%);padding:28px;border:1px solid var(--goat-control-border,rgba(212,169,79,.24));border-radius:var(--goat-modal-radius,20px);background:linear-gradient(145deg,var(--goat-surface-elevated,#211d15),var(--goat-control-surface,#0d0c0a));box-shadow:var(--goat-shadow-modal,0 32px 90px rgba(0,0,0,.68));color:var(--goat-text-primary,#fbf7ef)}
.league-registration-modal-card h2{margin:4px 44px 18px 0;color:var(--goat-text-primary,#fbf7ef);font-family:var(--display);font-size:1.8rem;line-height:1.05}
.league-registration-modal-card .eyebrow{color:var(--goat-label-color,#e5c377)}
.league-registration-modal-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--goat-control-border,rgba(212,169,79,.24));border-radius:50%;padding:0;background:rgba(212,169,79,.06);color:var(--goat-text-gold-strong,#f0d79b);font-size:1.2rem;line-height:1;transition:background .15s ease,border-color .15s ease,color .15s ease}
.league-registration-modal-close:hover,.league-registration-modal-close:focus-visible{border-color:var(--goat-control-focus,rgba(212,169,79,.64));background:rgba(212,169,79,.14);color:var(--goat-text-primary,#fbf7ef);outline:2px solid rgba(212,169,79,.18);outline-offset:2px}
.league-registration-review-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.league-registration-review-summary>div{display:grid;gap:4px;min-height:68px;padding:13px 14px;border:1px solid var(--goat-border-subtle,rgba(212,169,79,.16));border-radius:12px;background:rgba(42,34,20,.46)}
.league-registration-review-summary span{color:var(--goat-text-muted,#d9d1c2);font-size:.62rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.league-registration-review-summary strong{color:var(--goat-text-primary,#fbf7ef);font-size:.9rem}
.league-registration-review-summary p{grid-column:1/-1;margin:7px 0 0;color:var(--goat-text-body,#d9d1c2);font-size:.72rem;line-height:1.6}
.league-registration-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
.league-registration-modal-actions>button{min-width:0;min-height:46px!important;border-radius:var(--goat-button-radius,10px)!important;padding:0 18px!important;clip-path:none!important;font-size:.7rem!important;font-weight:850!important;letter-spacing:.06em!important;text-transform:uppercase!important;box-shadow:none!important}
.league-registration-modal-actions>.secondary-button{border:1px solid var(--goat-control-border,rgba(212,169,79,.24))!important;background:rgba(212,169,79,.06)!important;color:var(--goat-text-gold-strong,#f0d79b)!important}
.league-registration-modal-actions>.league-registration-confirm-button{border:1px solid rgba(240,215,155,.52)!important;background:linear-gradient(145deg,#5a4319,#2c200d)!important;color:#fff4e3!important}
.league-registration-modal-actions>button:hover:not(:disabled),.league-registration-modal-actions>button:focus-visible:not(:disabled){border-color:var(--goat-control-focus,rgba(212,169,79,.64))!important;outline:2px solid rgba(212,169,79,.22)!important;outline-offset:2px!important}
.league-registration-modal-actions>.secondary-button:hover:not(:disabled),.league-registration-modal-actions>.secondary-button:focus-visible:not(:disabled){background:rgba(212,169,79,.14)!important;color:var(--goat-text-primary,#fbf7ef)!important}
.league-registration-modal-actions>.league-registration-confirm-button:hover:not(:disabled),.league-registration-modal-actions>.league-registration-confirm-button:focus-visible:not(:disabled){background:linear-gradient(145deg,#6b501f,#36270f)!important;color:#fffdf6!important}
.league-registration-modal-actions>button:disabled{cursor:not-allowed;opacity:.46}
@media(max-width:1180px){.league-registration-workspace{grid-template-columns:minmax(290px,.9fr) minmax(360px,1.1fr)}.league-registration-sidebar{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.league-registration-sidebar>header{border-bottom:0}.league-registration-sidebar-validation{padding:0;border-bottom:0}.league-registration-notes{padding:0}.league-registration-validation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.league-registration-u17-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.league-registration-screen{padding:16px}.league-registration-summary{grid-template-columns:1fr 1fr}.league-registration-summary-item:nth-child(2){border-right:0}.league-registration-summary-item:nth-child(-n+2){border-bottom:1px solid rgba(212,169,79,0.14)}.league-registration-deadline{grid-template-columns:44px minmax(0,1fr)}.league-registration-time-remaining{grid-column:2;justify-self:start;border-left:0;padding-left:0}.league-registration-workflow{grid-template-columns:1fr}.league-registration-step:not(:last-child)::after{top:auto;right:16px;bottom:0;left:16px;width:auto;height:1px;transform:none}.league-registration-workspace{grid-template-columns:1fr;min-height:0}.league-registration-player-list{max-height:430px}.league-registration-sidebar{grid-column:auto;display:flex}.league-registration-u17-grid{grid-template-columns:1fr}.league-registration-action-bar{bottom:6px}.league-registration-filters{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.league-registration-screen{gap:11px;padding:12px;border-radius:15px}.league-registration-title-row{align-items:flex-start;flex-direction:column;gap:8px}.league-registration-summary{grid-template-columns:1fr}.league-registration-summary-item{border-right:0;border-bottom:1px solid rgba(212,169,79,0.14)}.league-registration-summary-item:last-child{border-bottom:0}.league-registration-validation-grid{grid-template-columns:1fr}.league-registration-filters{grid-template-columns:1fr}.league-registration-player{grid-template-columns:38px 34px minmax(0,1fr) 34px 45px}.league-registration-drag{display:none}.league-registration-player-portrait{width:38px;height:38px}.league-registration-player-copy strong{font-size:.68rem}.league-registration-u17-card{grid-template-columns:40px 34px minmax(0,1fr) 34px}.league-registration-u17-card em{grid-column:3/-1;justify-self:start}.league-registration-action-bar{align-items:stretch;flex-direction:column}.league-registration-actions{display:grid;grid-template-columns:1fr 1fr}.league-registration-actions .primary-button,.league-registration-actions .secondary-button{width:100%;padding:0 10px}.league-registration-save-state{justify-content:center}.league-registration-swap-selects{grid-template-columns:1fr}.league-registration-modal-card{padding:24px 18px 18px}.league-registration-modal-actions{grid-template-columns:1fr}.league-registration-modal-actions button{width:100%}.league-registration-review-summary{grid-template-columns:1fr}.league-registration-review-summary p{grid-column:1}}

/* 3.0A.48.2 — registration open places, supplied UI assets and lineup polish */
.league-registration-summary-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: invert(1) opacity(.88);
}
.league-registration-player.is-pending {
  border-color: rgba(255, 193, 78, .48);
  background: linear-gradient(90deg, rgba(109, 71, 15, .32), rgba(23,21,15,0.78));
}
.league-registration-player-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 28px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 7px;
  color: #d9d1c2;
  background: rgba(13,12,10,0.42);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.league-registration-screen {
  padding-bottom: 106px;
}
.league-registration-action-bar {
  position: fixed !important;
  z-index: 125;
  right: auto;
  bottom: 12px !important;
  left: 50%;
  width: min(calc(100vw - 32px), 1500px);
  margin: 0;
  transform: translateX(-50%);
  border-color: rgba(212,169,79,0.68);
  background: rgba(13,12,10,0.97);
  box-shadow: 0 16px 45px rgba(0,0,0,.48), 0 0 28px rgba(212,169,79,0.22);
}

/* Supplied pitch artwork replaces generated pitch markings while player slots
   and all formation coordinates remain unchanged above it. */
.lineup-pitch {
  aspect-ratio: 1058 / 1399;
  background: #0c552c url("/ui-icons/tactics-pitch-2026.webp") center / 100% 100% no-repeat !important;
  border-color: rgba(229, 255, 221, .45);
}
.lineup-pitch::before,
.lineup-pitch::after,
.lineup-pitch-markings {
  display: none !important;
}

/* Smaller preset strip and supplied action icons. */
.lineup-owner-controls {
  grid-template-columns: minmax(150px, 1.1fr) minmax(150px, .9fr) minmax(120px, .58fr) auto;
  gap: 9px;
  margin: 16px 0 9px;
  padding: 10px 11px;
  border-radius: 13px;
}
.lineup-owner-controls label > span {
  font-size: .58rem;
}
.lineup-owner-controls input,
.lineup-owner-controls select {
  min-height: 36px;
  border-radius: 9px;
  padding: 7px 9px;
  font-size: .72rem;
}
.lineup-control-actions {
  gap: 5px;
}
.lineup-icon-button,
.lineup-action-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.lineup-icon-button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: .65rem;
}
.lineup-icon-button img,
.lineup-action-icon-button img {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: invert(1) opacity(.84);
}
.lineup-delete-button {
  border-color: rgba(255, 91, 108, .64) !important;
  color: #fff !important;
  background: rgba(164, 35, 51, .88) !important;
}
.lineup-delete-button:hover:not(:disabled),
.lineup-delete-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 157, 167, .9) !important;
  background: rgba(196, 43, 61, .96) !important;
}
.lineup-owner-actions .lineup-action-icon-button {
  min-height: 39px;
}
#lineupResetButton {
  gap: 4px;
}
#lineupResetButton img {
  margin-right: -1px;
}
#lineupVisibilityButton img {
  filter: none;
  border-radius: 4px;
}
.lineup-save-button {
  border-color: rgba(212,169,79,0.42) !important;
  color: #fbf7ef !important;
  background: linear-gradient(145deg, rgba(42,34,20,0.96), rgba(23,21,15,0.98)) !important;
}
.lineup-save-button:hover:not(:disabled),
.lineup-save-button:focus-visible:not(:disabled) {
  border-color: rgba(212,169,79,0.68) !important;
  background: linear-gradient(145deg, rgba(42,34,20,0.98), rgba(23,21,15,0.99)) !important;
}

/* Pre-Match opens a compact second horizontal row in the requested order. */
#preMatchMenu .pre-match-horizontal-options {
  top: calc(100% + 7px);
  left: 50%;
  right: auto;
  display: flex;
  grid-template-columns: none;
  width: max-content;
  min-width: 0;
  max-width: calc(100vw - 24px);
  gap: 4px;
  padding: 5px;
  transform: translateX(-50%);
  border-radius: 11px;
}
#preMatchMenu .pre-match-horizontal-options.hidden {
  display: none !important;
}
#preMatchMenu .pre-match-horizontal-options button {
  width: auto;
  min-height: 30px;
  padding: 6px 11px;
  justify-content: center;
  border-radius: 8px;
  font-size: .62rem;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 820px) {
  .league-registration-screen { padding-bottom: 136px; }
  .league-registration-action-bar {
    bottom: 8px !important;
    width: calc(100vw - 20px);
  }
  .lineup-owner-controls {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  #preMatchMenu .pre-match-horizontal-options {
    top: calc(100% + 6px);
    right: auto;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }
}
@media (max-width: 560px) {
  .league-registration-screen { padding-bottom: 174px; }
  .league-registration-action-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .lineup-owner-controls {
    grid-template-columns: 1fr;
  }
  .lineup-control-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .lineup-icon-button {
    padding-inline: 5px;
  }
}

/* 3.0A.48.3 — UI asset delivery and action-frame readability fixes */
#leagueRegistrationReviewSubmit,
#leagueRegistrationConfirmSubmit {
  border-radius: 12px !important;
  overflow: hidden;
}
#lineupDeletePreset.lineup-delete-button {
  color: #1a1207 !important;
}
#lineupDeletePreset.lineup-delete-button span {
  color: #1a1207 !important;
  -webkit-text-fill-color: #05070d !important;
}
#lineupDeletePreset.lineup-delete-button img {
  filter: none !important;
  opacity: .92;
}

/* 3.0A.48.4 — lineup pitch coverage, black action icons and registered-squad filtering */
.lineup-pitch {
  background-color: transparent !important;
  background-size: 103% 103% !important;
  background-position: center !important;
}
#lineupNewPreset img,
#lineupRenamePreset img,
#lineupResetButton img,
#lineupActivateButton img,
#lineupVisibilityButton img {
  filter: none !important;
  opacity: .92;
}


/* 3.0A.48.5 — site-wide scrollbars, lineup interaction, profile pitch and registration polish */

/* A slim, translucent scrollbar shared by the page and every internal list.
   Canonical redesign: this was a cyan-to-violet gradient thumb on a cool-blue
   track (and the same violet as the Firefox scrollbar-color) — the exact
   values the homepage already replaced for itself in its own
   `html:has(body.home-background)` rule further down this file. That warm
   gold-on-near-black pair is reused verbatim here so the site-wide default
   now matches the homepage everywhere, not just on it. */
html,
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 143, 52, .72) #080603;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(8, 7, 6, .32);
}
*::-webkit-scrollbar-thumb {
  min-height: 36px;
  border: 2px solid rgba(8, 7, 6, .18);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 195, 119, .68), rgba(160, 110, 40, .78));
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 10px rgba(212, 169, 79, .18);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 215, 155, .82), rgba(192, 143, 52, .85));
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: rgba(8, 7, 6, .26);
}

/* Keep the saved preset and formation controls available while the pitch is
   being reviewed. This also places them above decorative/fixed page layers. */
.dashboard-mode #profileLineupPanel .lineup-owner-controls {
  position: sticky;
  top: 146px;
  z-index: 46;
  pointer-events: auto;
  background: rgba(13,12,10,0.96);
  box-shadow: 0 12px 28px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
}
.lineup-owner-controls,
.lineup-owner-controls *,
.lineup-pitch,
.lineup-pitch .lineup-slot {
  pointer-events: auto;
}
.lineup-builder::before,
.lineup-builder::after,
.lineup-pitch::before,
.lineup-pitch::after {
  pointer-events: none !important;
}

/* Delete and Save use the same bright premium gradient language. */
#lineupDeletePreset.lineup-delete-button {
  border-color: rgba(255, 117, 130, .82) !important;
  color: #1a1207 !important;
  background: linear-gradient(135deg, #fff 0%, #ffe5e8 38%, #ff6474 100%) !important;
  box-shadow: 0 8px 20px rgba(210, 46, 68, .2), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
#lineupDeletePreset.lineup-delete-button:hover:not(:disabled),
#lineupDeletePreset.lineup-delete-button:focus-visible:not(:disabled) {
  border-color: rgba(255, 171, 180, .96) !important;
  background: linear-gradient(135deg, #fff 0%, #ffd7dc 34%, #ff4f62 100%) !important;
}
#lineupDeletePreset.lineup-delete-button span,
#lineupDeletePreset.lineup-delete-button img {
  color: #1a1207 !important;
  -webkit-text-fill-color: #08090f !important;
  filter: none !important;
}
#lineupSaveButton.lineup-save-button {
  border-color: rgba(212,169,79,0.74) !important;
  color: #1a1207 !important;
  background: linear-gradient(135deg, #fff 0%, #fbf7ef 32%, #4c3915 62%, #4c3915 100%) !important;
  box-shadow: 0 8px 22px rgba(212,169,79,0.24), inset 0 1px 0 rgba(255,255,255,.86) !important;
}
#lineupSaveButton.lineup-save-button:hover:not(:disabled),
#lineupSaveButton.lineup-save-button:focus-visible:not(:disabled) {
  border-color: rgba(212,169,79,0.95) !important;
  background: linear-gradient(135deg, #fff 0%, #fbf7ef 30%, #4c3915 58%, #4c3915 100%) !important;
}
#lineupSaveButton.lineup-save-button span,
#lineupSaveButton.lineup-save-button img {
  color: #1a1207 !important;
  -webkit-text-fill-color: #070912 !important;
  filter: none !important;
  opacity: .94;
}

/* Matchday XI now uses the exact same supplied pitch artwork as Lineup. */
.profile-active-lineup-pitch {
  aspect-ratio: 1058 / 1399;
  border-color: rgba(229, 255, 221, .45);
  background: #0c552c url("/ui-icons/tactics-pitch-2026.webp") center / 100% 100% no-repeat !important;
  box-shadow: inset 0 0 46px rgba(2,18,13,.18), 0 14px 34px rgba(2,3,14,.28);
}
.profile-active-lineup-pitch .lineup-pitch-markings {
  display: none !important;
}
.profile-active-lineup-pitch.is-hidden-lineup {
  display: grid;
  place-items: center;
}
.profile-active-lineup-hidden {
  position: relative;
  z-index: 4;
  display: grid;
  width: min(82%, 260px);
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid rgba(212,169,79,.34);
  border-radius: 14px;
  color: #d9d1c2;
  background: rgba(13,12,10,.94);
  box-shadow: 0 16px 38px rgba(9,7,4,0.34);
  text-align: center;
  backdrop-filter: blur(8px);
}
.profile-active-lineup-hidden strong {
  color: #fbf7ef;
  font-size: .9rem;
}
.profile-active-lineup-hidden span {
  font-size: .7rem;
  line-height: 1.5;
}

/* Public Team expands to a compact horizontal Squad / Lineup submenu. */
#teamMenu .public-team-horizontal-options {
  top: calc(100% + 7px);
  left: 50%;
  right: auto;
  display: flex;
  width: max-content;
  min-width: 0;
  gap: 4px;
  padding: 5px;
  transform: translateX(-50%);
  border-radius: 11px;
}
#teamMenu .public-team-horizontal-options.hidden {
  display: none !important;
}
#teamMenu .public-team-horizontal-options button {
  width: auto;
  min-height: 30px;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .62rem;
  text-align: center;
  white-space: nowrap;
}

/* Calendar retains the window information but no registration navigation. */
.goat-calendar-registration-action {
  display: none !important;
}

/* Centre the deadline label, date, status and countdown as one visual row. */
.league-registration-deadline {
  min-height: 76px;
}
.league-registration-deadline-icon,
.league-registration-deadline-copy,
.league-registration-time-remaining {
  align-self: center;
}
.league-registration-deadline-copy {
  align-content: center;
  gap: 3px;
  min-height: 48px;
}
.league-registration-deadline-copy small,
.league-registration-deadline-copy strong,
.league-registration-deadline-copy em,
.league-registration-time-remaining {
  margin: 0;
  line-height: 1.2;
}
.league-registration-time-remaining {
  display: flex;
  min-height: 42px;
  align-items: center;
}

/* Stronger summary badges without turning them into oversized cards. */
.league-registration-summary-item {
  grid-template-columns: 50px minmax(0,1fr);
}
.league-registration-summary-icon {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(76,57,21,0.34), rgba(42,34,20,0.35));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 7px 18px rgba(212,169,79,0.2);
}
.league-registration-summary-icon img {
  width: 36px;
  height: 36px;
  filter: invert(1) opacity(.98) drop-shadow(0 0 5px rgba(255,255,255,.2));
}
.league-registration-summary-icon svg {
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 0 5px currentColor);
}
.league-registration-summary-item[data-tone="passed"] .league-registration-summary-icon {
  border-color: rgba(91, 230, 153, .42);
  background: linear-gradient(145deg, rgba(44, 166, 104, .34), rgba(27, 73, 69, .4));
}
.league-registration-summary-item[data-tone="warning"] .league-registration-summary-icon {
  border-color: rgba(255, 191, 73, .44);
  background: linear-gradient(145deg, rgba(211, 137, 28, .32), rgba(92, 54, 26, .42));
}

@media (max-width: 860px) {
  .dashboard-mode #profileLineupPanel .lineup-owner-controls {
    top: 126px;
  }
  #teamMenu .public-team-horizontal-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    right: auto;
    width: max-content;
    transform: translateX(-50%);
  }
}
@media (max-width: 560px) {
  *::-webkit-scrollbar {
    width: 7px;
    height: 7px;
  }
  .dashboard-mode #profileLineupPanel .lineup-owner-controls {
    top: 116px;
  }
  .league-registration-summary-item {
    grid-template-columns: 46px minmax(0,1fr);
  }
  .league-registration-summary-icon {
    width: 46px;
    height: 46px;
  }
}

/* 3.0A.48.6 — eliminate transparent navigation hitbox and centre deadline content */

/* The sticky profile navigation row spans a wide transparent grid column.  It
   must not capture clicks outside the visible navigation capsule.  Only the
   visible tabs and their menus remain interactive, so lineup preset and
   formation fields underneath can always be clicked while scrolling. */
.dashboard-mode .profile-nav-row,
.profile-nav-row {
  pointer-events: none !important;
}
.dashboard-mode .profile-nav-row .profile-tabs,
.dashboard-mode .profile-nav-row .profile-tabs *,
.profile-nav-row .profile-tabs,
.profile-nav-row .profile-tabs * {
  pointer-events: auto !important;
}

/* Treat the deadline date and the two-line status as two vertically centred
   units.  This avoids baseline drift caused by three independently flowing
   text lines inside the wide banner. */
.league-registration-deadline {
  min-height: 82px;
}
.league-registration-deadline-copy {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, auto);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: clamp(24px, 6vw, 96px);
  row-gap: 1px;
  min-height: 52px;
}
.league-registration-deadline-copy strong {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  align-items: center;
  min-height: 52px;
}
.league-registration-deadline-copy small {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.league-registration-deadline-copy em {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.league-registration-deadline-icon,
.league-registration-time-remaining {
  align-self: center;
}

@media (max-width: 980px) {
  .league-registration-deadline-copy {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 2px;
  }
  .league-registration-deadline-copy small {
    grid-column: 1;
    grid-row: 1;
    align-self: auto;
  }
  .league-registration-deadline-copy strong {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }
  .league-registration-deadline-copy em {
    grid-column: 1;
    grid-row: 3;
    align-self: auto;
  }
}

/* 3.0A.48.6.1 — restore compact typography in facility session estimates. */
.goat-world-session-projection {
  margin-top: 13px;
}
.goat-world-session-projection h5 {
  margin: 0 0 8px;
  color: var(--accent-cyan);
  font: 900 .56rem/1.2 var(--body);
  letter-spacing: .1em;
}
.goat-world-session-projection p {
  margin: 7px 0 0;
  color: var(--muted);
  font: 700 .65rem/1.45 var(--body);
}
.goat-world-session-projection p b {
  color: var(--text);
  font-weight: 800;
}
.goat-world-session-projection p.world-error {
  color: #ff9bb2;
}


/* 3.0A.48.6.2 — lineup pitch labels and registration workspace density. */
/* Registration eligibility stays visible in the registered-squad list, but
   pitch player cards remain uncluttered. */
.lineup-pitch-card .lineup-registration-badge {
  display: none !important;
}

/* Keep the selected registration panel compact: nine 58px player rows,
   eight 7px gaps and 10px padding above/below. Additional players remain
   available through the panel's own scrollbar. */
.league-registration-selected-panel {
  display: flex;
  min-height: 0;
  align-self: start;
  flex-direction: column;
}
.league-registration-selected-panel .league-registration-player-list {
  flex: 0 0 598px;
  height: 598px;
  min-height: 0;
  max-height: 598px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.league-registration-position-summary {
  display: grid;
  gap: 9px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(212,169,79,0.14);
}
.league-registration-position-summary header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.league-registration-position-summary header strong {
  color: #fbf7ef;
  font-size: .68rem;
}
.league-registration-position-summary header span {
  color: #d9d1c2;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.league-registration-position-counts {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 7px;
}
.league-registration-position-counts span {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 8px;
  background: rgba(23,21,15,0.56);
}
.league-registration-position-counts b {
  color: #d9d1c2;
  font-size: .54rem;
  letter-spacing: .05em;
}
.league-registration-position-counts strong {
  justify-self: end;
  color: #fbf7ef;
  font-family: var(--display);
  font-size: .82rem;
}

@media (max-width: 820px) {
  .league-registration-selected-panel .league-registration-player-list {
    flex: none;
    height: auto;
    max-height: 430px;
  }
}

/* 3.0A.48.6.3 — selected registration list shows nine desktop rows. */

/* 3.0A.49 — matchday lineup hardening and viewer presentation */
.lineup-context-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0 12px;
  padding: 5px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 13px;
  background: rgba(13,12,10,0.58);
}
.lineup-context-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 15px;
  color: rgba(251,247,239,0.66);
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  cursor: pointer;
}
.lineup-context-tabs button.is-active {
  color: #fff;
  border-color: rgba(212,169,79,0.32);
  background: linear-gradient(135deg,rgba(76,57,21,0.14),rgba(76,57,21,0.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.lineup-matchday-controls,
.lineup-public-navigation {
  display: grid;
  grid-template-columns: minmax(220px,1.4fr) minmax(190px,1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid rgba(212,169,79,0.17);
  border-radius: 15px;
  background: linear-gradient(135deg,rgba(23,21,15,0.78),rgba(13,12,10,0.72));
}
.lineup-public-navigation { grid-template-columns: auto minmax(240px,1fr) auto; }
#lineupHistoryControls { grid-template-columns: minmax(260px,1fr) minmax(250px,1fr); }
.lineup-matchday-controls label,
.lineup-public-navigation label {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.lineup-matchday-controls label > span,
.lineup-public-navigation label > span {
  color: var(--accent-cyan);
  font-size: .59rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lineup-matchday-controls select,
.lineup-public-navigation select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(13,12,10,0.88);
  font: inherit;
}
.lineup-fixture-status {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid rgba(212,169,79,0.13);
  border-radius: 10px;
  background: rgba(13,12,10,0.48);
}
.lineup-fixture-status strong { color: #fbf7ef; font-size: .72rem; }
.lineup-fixture-status span { color: rgba(251,247,239,0.62); font-size: .62rem; line-height: 1.35; }
.lineup-public-roles-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 17px;
  background: rgba(13,12,10,0.62);
}
.lineup-public-roles { display: grid; gap: 7px; margin-top: 11px; }
.lineup-public-role {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(212,169,79,0.12);
  border-radius: 10px;
  background: rgba(13,12,10,0.5);
}
.lineup-public-role > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(212,169,79,0.25);
  border-radius: 9px;
  color: #1a1207;
  background: linear-gradient(135deg,#4c3915,#4c3915);
  font-size: .55rem;
  font-weight: 1000;
}
.lineup-public-role > div { display: grid; min-width: 0; }
.lineup-public-role small { color: rgba(251,247,239,0.55); font-size: .53rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.lineup-public-role strong { overflow: hidden; color: #fff; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.lineup-public-role em { color: rgba(251,247,239,0.58); font-size: .57rem; font-style: normal; }

/* Public pages deliberately show the pitch, complete bench and roles as one
   screenshot-ready viewer card while never rendering owner-only controls. */
.lineup-workspace.public-view {
  display: grid;
  grid-template-columns: minmax(480px,1.6fr) minmax(245px,.72fr);
  width: min(100%,980px);
  margin-inline: auto;
  align-items: start;
}
.lineup-workspace.public-view .lineup-pitch-column { width: 100%; }
.lineup-workspace.public-view .lineup-side-panel {
  display: grid;
  max-height: none;
  overflow: visible;
}
.lineup-workspace.public-view .lineup-bench-panel,
.lineup-workspace.public-view .lineup-public-roles-panel {
  background: linear-gradient(150deg,rgba(23,21,15,0.84),rgba(13,12,10,0.82));
  box-shadow: 0 18px 40px rgba(9,7,4,0.2);
}
.lineup-workspace.public-view .lineup-pitch {
  width: min(100%,620px);
  box-shadow: inset 0 0 72px rgba(2,18,13,.32),0 25px 65px rgba(2,3,14,.38);
}
.lineup-workspace.public-view #lineupBench .lineup-mini-card { cursor: default; }
.lineup-workspace.public-view #lineupBench .lineup-card-action:not(.view) { display: none; }

@media (max-width: 980px) {
  .lineup-matchday-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lineup-matchday-controls .lineup-fixture-status { grid-column: 1 / -1; }
  .lineup-workspace.public-view { grid-template-columns: 1fr; width: 100%; }
  .lineup-workspace.public-view .lineup-side-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .lineup-context-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .lineup-matchday-controls,
  .lineup-public-navigation,
  #lineupHistoryControls { grid-template-columns: 1fr; }
  .lineup-public-navigation button { width: 100%; }
  .lineup-workspace.public-view .lineup-side-panel { grid-template-columns: 1fr; }
}

/* 3.0A.49.5 — guest login prompt and Tactics coming-soon presentation */
.login-required-card {
  border-color: var(--goat-border-strong);
  background:
    radial-gradient(circle at 50% 0%, rgba(207,164,74,.12), transparent 46%),
    linear-gradient(145deg, rgba(31,25,16,.99), rgba(12,11,8,.99));
  box-shadow: var(--goat-shadow-modal);
}
.login-required-icon {
  color: #171006;
  background: linear-gradient(145deg,#efd79a,#c99a3b);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}
.login-required-actions {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 390px);
  gap: 10px;
  margin: 24px auto 0;
}
.login-required-actions .secondary-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: 14px;
  font-size: .76rem;
}
#loginRequiredSubmit,
#loginRequiredCancel {
  min-height: 46px;
  border-radius: var(--goat-button-radius);
  clip-path: none;
}
.login-required-confirm {
  color: #fff7e4;
  border: 1px solid rgba(222,180,87,.58);
  background: linear-gradient(145deg,#6e4b16,#3d2a0f);
}
#loginRequiredCancel {
  color: var(--goat-text-body);
  border: 1px solid var(--goat-border-subtle);
  background: rgba(26,23,17,.94);
}
#loginRequiredSubmit::before,
#loginRequiredCancel::before { display: none; }
@media (max-width: 520px) {
  .login-required-actions { grid-template-columns: 1fr; }
  #loginRequiredSubmit { grid-row: 1; }
  #loginRequiredCancel { grid-row: 2; }
}

/* THE G.O.A.T 3.0A.50.1 preview — conditional tactics centre */
.tactics-centre{padding:clamp(18px,3vw,34px);border:1px solid rgba(212,169,79,0.22);border-radius:24px;background:linear-gradient(145deg,rgba(23,21,15,0.94),rgba(13,12,10,0.97));box-shadow:0 24px 70px rgba(9,7,4,0.28)}
.tactics-centre-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.tactics-centre-header span,.tactics-lineup-strip span,.tactics-warning-panel>span{color:#e5c377;font-family:var(--mono);font-size:.68rem;font-weight:900;letter-spacing:.14em}.tactics-centre-header h2{margin:.35rem 0 .5rem;color:#fff;font-size:clamp(1.55rem,3vw,2.35rem)}.tactics-centre-header p{max-width:760px;margin:0;color:rgba(251,247,239,0.74);line-height:1.6}.tactics-lab-link{white-space:nowrap;padding:11px 15px;border:1px solid rgba(212,169,79,0.35);border-radius:12px;color:#fbf7ef;background:rgba(23,21,15,0.72);font-weight:800;text-decoration:none}.tactics-lab-link:hover{border-color:#d4a94f;transform:translateY(-1px)}
.tactics-lineup-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;padding:16px 18px;border:1px solid rgba(212,169,79,0.23);border-radius:16px;background:rgba(13,12,10,0.68)}.tactics-lineup-strip strong{display:block;margin:.2rem 0;color:#fff;font-size:1.05rem}.tactics-lineup-strip small{color:rgba(251,247,239,0.62)}.tactics-lineup-strip>b{padding:8px 11px;border-radius:999px;font-size:.68rem;letter-spacing:.08em}.tactics-lineup-strip.ready>b{color:#a7ffd4;background:rgba(41,180,116,.16);border:1px solid rgba(79,231,157,.32)}.tactics-lineup-strip.not-ready>b{color:#ffd1a6;background:rgba(212,117,52,.16);border:1px solid rgba(255,154,79,.32)}
.tactics-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tactics-setting-card{padding:17px;border:1px solid rgba(212,169,79,0.18);border-radius:16px;background:linear-gradient(150deg,rgba(23,21,15,0.64),rgba(13,12,10,0.82))}.tactics-setting-card label>span{display:block;margin-bottom:8px;color:#fff;font-weight:850}.tactics-setting-card select{width:100%;padding:11px 12px;border:1px solid rgba(212,169,79,0.28);border-radius:11px;background:#17150f;color:#fff;font:inherit;font-weight:750}.tactics-setting-card p{min-height:3.1em;margin:12px 0 6px;color:rgba(251,247,239,0.82);line-height:1.48}.tactics-setting-card small{display:block;color:rgba(217,209,194,0.7);line-height:1.45}.tactics-setting-card small strong{color:#ffcc89}
.tactics-warning-panel{margin-top:18px;padding:18px 20px;border:1px solid rgba(255,181,91,.23);border-radius:17px;background:linear-gradient(145deg,rgba(75,50,35,.38),rgba(13,12,10,0.82))}.tactics-warning-panel h3{margin:.35rem 0 .7rem;color:#fff}.tactics-warning-panel ul{margin:.3rem 0 .7rem;padding-left:1.2rem;color:rgba(245,237,227,.84);line-height:1.55}.tactics-warning-panel p{margin:0;color:rgba(216,205,197,.6);font-size:.84rem}.tactics-form footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px}.tactics-form footer p{margin:0;color:rgba(251,247,239,0.7)}.tactics-form footer button{padding:12px 22px;border:0;border-radius:12px;background:linear-gradient(135deg,#4c3915,#4c3915);color:#fff;font-weight:900;cursor:pointer}.tactics-form footer button:disabled{opacity:.55;cursor:wait}.tactics-loading{padding:36px;border:1px solid rgba(212,169,79,0.2);border-radius:18px;background:rgba(13,12,10,0.8);color:rgba(251,247,239,0.75);text-align:center}.tactics-loading.error{color:#ffb9b9}
@media(max-width:780px){.tactics-centre-header,.tactics-lineup-strip,.tactics-form footer{align-items:stretch;flex-direction:column}.tactics-lab-link{text-align:center}.tactics-settings-grid{grid-template-columns:1fr}.tactics-lineup-strip>b{align-self:flex-start}.tactics-form footer button{width:100%}}

/* 3.0A.50.1 preview — conditional tactics and in-game developer match */
.tactics-plan-block{margin-top:18px;padding:18px;border:1px solid rgba(212,169,79,0.16);border-radius:18px;background:rgba(13,12,10,0.42)}
.tactics-plan-block>h3,.tactics-plan-heading h3{margin:.15rem 0 .45rem;color:#fff}.tactics-plan-heading{margin-bottom:14px}.tactics-plan-heading>span{color:#e5c377;font-family:var(--mono);font-size:.68rem;font-weight:900;letter-spacing:.14em}.tactics-plan-heading p,.conditional-tactics-card header p{margin:0;color:rgba(251,247,239,0.68);line-height:1.5}
.conditional-tactics-card{margin-top:12px;padding:15px;border:1px solid rgba(212,169,79,0.14);border-radius:15px;background:rgba(23,21,15,0.48)}.conditional-tactics-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.conditional-tactics-card h3{margin:0 0 .3rem;color:#fff}.conditional-toggle{white-space:nowrap;color:#fbf7ef;font-weight:800}.conditional-toggle input{margin-right:7px}.conditional-formation{display:grid;grid-template-columns:minmax(110px,.35fr) minmax(180px,1fr);align-items:center;gap:12px;margin:14px 0;color:#fff;font-weight:800}.conditional-formation select,.developer-match-controls select,.developer-match-controls input,.tactics-condition-range input{width:100%;padding:10px 11px;border:1px solid rgba(212,169,79,0.28);border-radius:10px;background:#17150f;color:#fff;font:inherit}.tactics-condition-range{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.tactics-condition-range label{display:flex;align-items:center;gap:8px;color:rgba(251,247,239,0.8)}.tactics-condition-range input{width:74px}.tactics-settings-grid.conditional{grid-template-columns:repeat(4,minmax(0,1fr))}.tactics-setting-card.compact{padding:11px}.tactics-setting-card.compact label>span{font-size:.78rem}.tactics-setting-card.compact select{padding:9px;font-size:.82rem}
.developer-match-controls{display:grid;grid-template-columns:1fr 1fr minmax(120px,.45fr) auto;align-items:end;gap:12px}.developer-match-controls label{display:grid;gap:6px;color:#fff;font-size:.82rem;font-weight:800}.developer-match-controls button{min-height:43px;padding:10px 16px;border:0;border-radius:11px;background:linear-gradient(135deg,#4c3915,#4c3915);color:#1a1207;font-weight:950;cursor:pointer}.developer-match-controls button:disabled{opacity:.45;cursor:not-allowed}[data-developer-match-result]{margin-top:16px;color:rgba(251,247,239,0.75)}.developer-match-report{padding:16px;border:1px solid rgba(212,169,79,0.22);border-radius:15px;background:rgba(13,12,10,0.72)}.developer-match-report header span{color:#e5c377;font-family:var(--mono);font-size:.65rem;font-weight:900;letter-spacing:.12em}.developer-match-report header h3{margin:.35rem 0;color:#fff}.developer-match-report header p{margin:0;color:rgba(251,247,239,0.7)}.developer-match-stats{display:grid;gap:5px;margin:14px 0}.developer-match-stats>div{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px;padding:7px 10px;border-radius:8px;background:rgba(23,21,15,0.42);text-align:center}.developer-match-stats span{color:rgba(251,247,239,0.68)}.developer-match-report details{margin-top:10px}.developer-match-report summary{cursor:pointer;color:#fff;font-weight:850}.developer-match-report ol{max-height:360px;overflow:auto;padding-left:2.2rem;color:rgba(251,247,239,0.78);line-height:1.5}.developer-match-report pre{max-height:300px;overflow:auto;padding:12px;border-radius:10px;background:#0d0c0a;color:#fbf7ef;font-size:.73rem}
@media(max-width:1050px){.tactics-settings-grid.conditional{grid-template-columns:repeat(2,minmax(0,1fr))}.developer-match-controls{grid-template-columns:1fr 1fr}.developer-match-controls button{grid-column:1/-1}}
@media(max-width:680px){.conditional-tactics-card>header{flex-direction:column}.conditional-formation{grid-template-columns:1fr}.tactics-settings-grid.conditional,.developer-match-controls{grid-template-columns:1fr}.developer-match-controls button{grid-column:auto}.tactics-condition-range{display:grid}.developer-match-stats>div{grid-template-columns:.8fr 1.4fr .8fr}}

/* THE G.O.A.T 3.0A.50.4 preview — compact event/timed Tactical Centre */
#profileTacticsPanel{width:100%;max-width:none}
.tactical-centre-v3{--tc-cyan:#d4a94f;--tc-blue:#4c3915;--tc-panel:rgba(13,12,10,0.92);--tc-border:rgba(212,169,79,0.26);position:relative;width:100%;padding:18px 20px 0;border:1px solid rgba(212,169,79,0.22);border-radius:20px;background:radial-gradient(circle at 72% -20%,rgba(76,57,21,0.15),transparent 34%),linear-gradient(145deg,rgba(13,12,10,0.98),rgba(13,12,10,0.98));box-shadow:0 30px 90px rgba(9,7,4,0.34);color:#fbf7ef;overflow:hidden}
.tc-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:13px}.tc-header>div>span,.tc-section-title>span,.tc-change-panel>header>div>span{color:var(--tc-cyan);font-family:var(--mono);font-size:.63rem;font-weight:950;letter-spacing:.15em}.tc-header h2{margin:.2rem 0 .25rem;font-size:clamp(1.55rem,2.25vw,2.15rem);letter-spacing:-.035em}.tc-header p{margin:0;color:rgba(251,247,239,0.68);font-size:.86rem}.tc-lock-badge{padding:8px 12px;border:1px solid rgba(255,196,92,.28);border-radius:999px;background:rgba(97,61,12,.2);color:#ffd68b;font-size:.72rem;font-weight:850}
.tc-lineup-summary{display:grid;grid-template-columns:1.15fr .7fr .62fr .72fr auto;align-items:center;gap:0;margin-bottom:12px;padding:10px 14px;border:1px solid rgba(212,169,79,0.25);border-radius:13px;background:linear-gradient(90deg,rgba(23,21,15,0.84),rgba(13,12,10,0.76))}.tc-lineup-summary>div{min-width:0;padding:0 14px;border-right:1px solid rgba(212,169,79,0.18)}.tc-lineup-summary>div:first-child{padding-left:0}.tc-lineup-summary span,.tc-bottom-bar>div>span{display:block;color:rgba(217,209,194,0.64);font-size:.58rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.tc-lineup-summary strong{display:block;margin-top:2px;color:#fff;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-lineup-summary>b{justify-self:end;padding:7px 10px;border-radius:999px;font-size:.61rem;letter-spacing:.07em}.tc-lineup-summary>b.ready{border:1px solid rgba(58,213,139,.3);background:rgba(29,139,88,.18);color:#8dffc3}.tc-lineup-summary>b.not-ready{border:1px solid rgba(255,180,84,.3);background:rgba(166,95,20,.17);color:#ffd298}
.tc-form{position:relative}.tc-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid rgba(212,169,79,0.25);border-radius:13px 13px 0 0;background:rgba(13,12,10,0.88);overflow:hidden}.tc-tabs button{min-height:43px;border:0;border-right:1px solid rgba(212,169,79,0.22);background:transparent;color:rgba(251,247,239,0.72);font:inherit;font-size:.76rem;font-weight:850;cursor:pointer}.tc-tabs button:last-child{border-right:0}.tc-tabs button.active{position:relative;background:linear-gradient(180deg,rgba(42,34,20,0.62),rgba(23,21,15,0.52));color:#fff}.tc-tabs button.active::after{content:"";position:absolute;left:16px;right:16px;bottom:0;height:2px;background:var(--tc-cyan);box-shadow:0 0 12px rgba(212,169,79,0.8)}
.tc-layout{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:12px;padding:12px;border:1px solid rgba(212,169,79,0.21);border-top:0;border-radius:0 0 14px 14px;background:rgba(13,12,10,0.52)}.tc-layout>main{min-width:0}.tc-rules,.tc-change-panel,.tc-sidebar>section{border:1px solid rgba(212,169,79,0.2);border-radius:12px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.84))}.tc-rules{padding:11px}.tc-section-title{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"eyebrow eyebrow" "title copy";align-items:end;gap:2px 12px;margin:0 2px 8px}.tc-section-title>span{grid-area:eyebrow}.tc-section-title h3{grid-area:title;margin:0;color:#fff;font-size:.88rem}.tc-section-title p{grid-area:copy;margin:0;color:rgba(217,209,194,0.6);font-size:.67rem}.tc-section-title.timed{margin-top:12px}
.tc-rule-row{display:grid;grid-template-columns:28px minmax(150px,.85fr) 120px minmax(220px,1.25fr) 16px;align-items:center;gap:9px;width:100%;margin-top:6px;padding:8px 10px;border:1px solid rgba(212,169,79,0.16);border-radius:9px;background:rgba(23,21,15,0.72);color:#fff;text-align:left;cursor:pointer}.tc-rule-row:hover,.tc-rule-row.selected{border-color:rgba(212,169,79,0.42);background:rgba(23,21,15,0.8)}.tc-rule-row.danger{box-shadow:inset 3px 0 rgba(255,80,91,.66)}.tc-rule-row.success{box-shadow:inset 3px 0 rgba(63,220,139,.66)}.tc-rule-toggle{display:grid;place-items:center}.tc-rule-toggle input{accent-color:var(--tc-cyan)}.tc-rule-copy strong{display:block;font-size:.72rem}.tc-rule-copy small{display:block;margin-top:1px;color:rgba(217,209,194,0.58);font-size:.59rem}.tc-rule-condition{color:#ffd475;font-size:.61rem;font-weight:750}.tc-rule-summary{color:rgba(251,247,239,0.77);font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-rule-arrow{color:#d9d1c2;font-size:1.25rem}
.tc-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.tc-time-card{position:relative;min-height:67px;padding:7px 7px 6px;border:1px solid rgba(212,169,79,0.19);border-radius:9px;background:rgba(23,21,15,0.72);color:#fbf7ef;text-align:left;cursor:pointer}.tc-time-card::before{content:"";position:absolute;top:-8px;left:50%;width:7px;height:7px;border:2px solid rgba(212,169,79,0.7);border-radius:50%;background:#0d0c0a;transform:translateX(-50%)}.tc-time-card.selected{border-color:rgba(212,169,79,0.52);box-shadow:0 0 18px rgba(212,169,79,0.08)}.tc-time-card.enabled::before{border-color:#5ae7b0;background:#1d9d67}.tc-time-card>span{display:block;color:var(--tc-cyan);font-size:.72rem;font-weight:950}.tc-time-card strong{display:block;margin:2px 0;color:#fff;font-size:.67rem}.tc-time-card small{display:block;color:rgba(217,209,194,0.58);font-size:.54rem}.tc-time-card i{position:absolute;top:6px;right:6px;color:rgba(217,209,194,0.5);font-size:.49rem;font-style:normal;font-weight:900}.tc-time-card.enabled i{color:#7ff4b9}
.tc-change-panel{margin-top:10px;padding:11px}.tc-change-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:9px}.tc-change-panel>header h3{margin:.1rem 0;color:#fff;font-size:.92rem}.tc-change-panel>header p{margin:0;color:rgba(217,209,194,0.62);font-size:.63rem}.tc-switch{display:flex;align-items:center;gap:7px;color:#fbf7ef;font-size:.62rem;font-weight:850}.tc-switch input{position:absolute;opacity:0}.tc-switch i{position:relative;width:31px;height:17px;border-radius:20px;background:#17150f;transition:.18s}.tc-switch i::after{content:"";position:absolute;top:3px;left:3px;width:11px;height:11px;border-radius:50%;background:#4c3915;transition:.18s}.tc-switch input:checked+i{background:rgba(29,180,113,.58)}.tc-switch input:checked+i::after{left:17px;background:#86ffc0}.tc-condition-grid{display:grid;grid-template-columns:1.1fr .55fr .45fr .65fr .9fr .9fr;gap:7px;margin-bottom:8px;padding:8px;border:1px solid rgba(212,169,79,0.14);border-radius:9px;background:rgba(13,12,10,0.48)}.tc-condition-grid label,.tc-control,.tc-sub-row label{display:grid;gap:4px;min-width:0}.tc-condition-grid label>span,.tc-control>span,.tc-sub-row label>span{color:rgba(217,209,194,0.66);font-size:.53rem;font-weight:800;text-transform:uppercase}.tc-condition-grid select,.tc-condition-grid input,.tc-control select,.tc-sub-row select,.tc-sub-row input{width:100%;min-height:30px;padding:5px 7px;border:1px solid rgba(212,169,79,0.23);border-radius:7px;background:#17150f;color:#fbf7ef;font:inherit;font-size:.67rem}.tc-condition-grid .check{display:flex;align-items:center;gap:5px;padding-top:15px;color:#fbf7ef}.tc-condition-grid .check input{width:13px;min-height:13px;accent-color:var(--tc-cyan)}.tc-condition-grid .check span{font-size:.56rem;text-transform:none}
.tc-change-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.tc-control{padding:7px;border:1px solid rgba(212,169,79,0.15);border-radius:8px;background:rgba(23,21,15,0.5)}.tc-control select{min-height:31px}.tc-substitutions{margin-top:9px;padding-top:9px;border-top:1px solid rgba(212,169,79,0.16)}.tc-substitutions>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:7px}.tc-substitutions h4{margin:0;color:#fff;font-size:.76rem}.tc-substitutions p{margin:2px 0 0;color:rgba(217,209,194,0.58);font-size:.57rem}.tc-substitutions>header>span{color:#e5c377;font-size:.58rem;font-weight:850}.tc-sub-list{display:grid;gap:6px}.tc-sub-row{display:grid;grid-template-columns:20px 1fr 1fr .72fr .9fr .68fr auto;align-items:end;gap:6px;padding:6px;border:1px solid rgba(212,169,79,0.15);border-radius:8px;background:rgba(13,12,10,0.58)}.tc-sub-row>b{align-self:center;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:rgba(76,57,21,0.24);color:#e5c377;font-size:.58rem}.tc-sub-actions{display:flex;gap:3px;align-items:center}.tc-sub-actions button,.tc-add-sub{min-height:29px;padding:5px 7px;border:1px solid rgba(212,169,79,0.22);border-radius:6px;background:rgba(23,21,15,0.74);color:#fbf7ef;font:inherit;font-size:.54rem;font-weight:800;cursor:pointer}.tc-sub-actions .remove{color:#ffb3b9;border-color:rgba(255,87,99,.2)}.tc-add-sub{margin-top:6px;color:#e5c377}.tc-add-sub:disabled{opacity:.4;cursor:not-allowed}
.tc-sidebar{display:grid;align-content:start;gap:10px}.tc-sidebar>section{padding:11px}.tc-sidebar h3,.tc-reaction-summary h4{margin:0 0 8px;color:#fff;font-size:.76rem}.tc-overview-row,.tc-reaction-summary>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 4px;border-bottom:1px solid rgba(212,169,79,0.14)}.tc-overview-row:last-child,.tc-reaction-summary>div:last-child{border-bottom:0}.tc-overview-row span,.tc-reaction-summary span{color:rgba(217,209,194,0.65);font-size:.59rem}.tc-overview-row b,.tc-reaction-summary b{color:#fff;font-size:.67rem}.tc-mini-pitch{position:relative;height:170px;border:1px solid rgba(89,230,255,.28);border-radius:8px;background:repeating-linear-gradient(90deg,rgba(49,130,59,.66) 0 20%,rgba(39,112,50,.66) 20% 40%),linear-gradient(#246e32,#174d26);box-shadow:inset 0 0 25px rgba(0,0,0,.3)}.tc-mini-pitch::before,.tc-mini-pitch::after{content:"";position:absolute;left:25%;right:25%;height:25%;border:1px solid rgba(255,255,255,.3)}.tc-mini-pitch::before{top:0;border-top:0}.tc-mini-pitch::after{bottom:0;border-bottom:0}.tc-mini-pitch .halfway{position:absolute;left:0;right:0;top:50%;border-top:1px solid rgba(255,255,255,.28)}.tc-mini-pitch .centre-circle{position:absolute;left:50%;top:50%;width:35px;height:35px;border:1px solid rgba(255,255,255,.28);border-radius:50%;transform:translate(-50%,-50%)}.tc-mini-pitch>span{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%)}.tc-mini-pitch>span>b{display:grid;place-items:center;width:20px;height:20px;border:1px solid #d4a94f;border-radius:50%;background:#17150f;color:#fff;font-size:.52rem;box-shadow:0 0 8px rgba(212,169,79,0.32)}.tc-mini-pitch>span:first-of-type>b{border-color:#43e68f;background:#0d5637}.tc-mini-pitch>span>small{margin-top:1px;color:#fbf7ef;font-size:.45rem;font-weight:900}.tc-full-pitch{display:block;margin-top:7px;padding:7px;border:1px solid rgba(81,146,232,.18);border-radius:7px;color:#78dcff;text-align:center;text-decoration:none;font-size:.58rem;font-weight:800}.tc-reaction-summary>div:last-child b{color:#e5c377}
.tc-bottom-bar{position:sticky;z-index:4;bottom:0;display:grid;grid-template-columns:1.35fr repeat(5,minmax(90px,.82fr)) 150px;align-items:center;gap:0;margin-top:10px;padding:9px 10px;border:1px solid rgba(212,169,79,0.35);border-radius:11px 11px 0 0;background:rgba(13,12,10,0.97);box-shadow:0 -12px 30px rgba(9,7,4,0.35)}.tc-bottom-bar>div{min-width:0;padding:0 10px;border-right:1px solid rgba(212,169,79,0.16)}.tc-bottom-bar>div>b{display:block;margin-top:2px;color:#fff;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-ready{display:flex;align-items:center;gap:8px}.tc-ready>i{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(51,225,143,.35);border-radius:50%;background:rgba(25,159,95,.16);color:#61f5a7;font-style:normal;font-weight:950}.tc-ready small{display:block;color:rgba(217,209,194,0.58);font-size:.5rem}.tc-bottom-bar button{min-height:38px;border:1px solid rgba(212,169,79,0.7);border-radius:8px;background:linear-gradient(135deg,rgba(42,34,20,0.86),rgba(42,34,20,0.76));box-shadow:0 0 16px rgba(212,169,79,0.12);color:#fbf7ef;font:inherit;font-size:.65rem;font-weight:900;cursor:pointer}.tc-bottom-bar button:disabled{opacity:.5;cursor:not-allowed}.tc-save-message{margin:4px 10px 7px;color:rgba(217,209,194,0.55);font-size:.56rem;text-align:right}.tactical-centre-v3.locked .tc-layout{opacity:.82}
@media(min-width:1350px){.tactical-centre-v3{max-height:calc(100vh - 116px)}.tc-layout{max-height:calc(100vh - 305px);overflow:auto}.tc-change-panel{padding:10px}.tc-mini-pitch{height:160px}}
@media(max-width:1180px){.tc-layout{grid-template-columns:1fr}.tc-sidebar{grid-template-columns:repeat(3,1fr)}.tc-mini-pitch{height:145px}.tc-bottom-bar{grid-template-columns:1.2fr repeat(3,1fr) 140px}.tc-bottom-bar>div:nth-of-type(5),.tc-bottom-bar>div:nth-of-type(6){display:none}.tc-condition-grid{grid-template-columns:repeat(3,1fr)}.tc-change-grid{grid-template-columns:repeat(3,1fr)}.tc-sub-row{grid-template-columns:20px 1fr 1fr 1fr}.tc-sub-actions{grid-column:2/-1}}
@media(max-width:780px){.tactical-centre-v3{padding:14px 12px 0}.tc-header,.tc-lineup-summary{grid-template-columns:1fr;display:grid}.tc-lineup-summary>div{padding:7px 0;border-right:0;border-bottom:1px solid rgba(212,169,79,0.14)}.tc-lineup-summary>b{justify-self:start}.tc-tabs{grid-template-columns:1fr}.tc-layout{padding:8px}.tc-sidebar{grid-template-columns:1fr}.tc-rule-row{grid-template-columns:26px 1fr 16px}.tc-rule-condition,.tc-rule-summary{display:none}.tc-timeline{grid-template-columns:repeat(2,1fr)}.tc-condition-grid,.tc-change-grid{grid-template-columns:1fr 1fr}.tc-sub-row{grid-template-columns:20px 1fr}.tc-sub-row label,.tc-sub-actions{grid-column:2}.tc-bottom-bar{position:static;grid-template-columns:1fr 1fr}.tc-bottom-bar>div{display:block!important;padding:6px}.tc-bottom-bar button{grid-column:1/-1}.tc-save-message{text-align:left}}
.tc-sub-limit{display:block;margin-top:5px;color:rgba(217,209,194,0.58);font-size:.56rem;text-align:right}

/* THE G.O.A.T 3.0A.50.4 preview — pitch-led Tactical Centre */
#profileTacticsPanel{width:100%;max-width:none}
.tactical-centre-v4{--tc4-cyan:#d4a94f;--tc4-blue:#4c3915;--tc4-green:#61f5a7;--tc4-red:#ff6d79;--tc4-yellow:#ffd475;position:relative;width:100%;padding:12px 14px 0;border:1px solid rgba(212,169,79,0.24);border-radius:18px;background:radial-gradient(circle at 82% -18%,rgba(76,57,21,0.16),transparent 36%),linear-gradient(145deg,rgba(13,12,10,0.985),rgba(13,12,10,0.99));box-shadow:0 28px 80px rgba(9,7,4,0.35);color:#fbf7ef;overflow:visible}
.tc4-lineup-summary{display:grid;grid-template-columns:1.1fr .7fr .6fr .7fr auto auto;align-items:center;gap:0;margin-bottom:10px;padding:9px 12px;border:1px solid rgba(212,169,79,0.26);border-radius:12px;background:linear-gradient(90deg,rgba(23,21,15,0.88),rgba(13,12,10,0.78))}.tc4-lineup-summary>div{min-width:0;padding:0 12px;border-right:1px solid rgba(212,169,79,0.18)}.tc4-lineup-summary>div:first-child{padding-left:0}.tc4-lineup-summary span,.tc4-bottom-bar>div>span{display:block;color:rgba(217,209,194,0.67);font-size:.59rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.tc4-lineup-summary strong{display:block;margin-top:2px;color:#fff;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc4-lineup-summary>b{justify-self:end;padding:7px 10px;border:1px solid rgba(67,229,150,.3);border-radius:999px;background:rgba(32,164,100,.16);color:#85ffc0;font-size:.62rem;letter-spacing:.05em}.tc4-lineup-summary>b.not-ready{border-color:rgba(255,170,81,.28);background:rgba(178,94,28,.16);color:#ffd09d}.tc4-lineup-summary>em{margin-left:8px;color:#ffd475;font-size:.62rem;font-style:normal;font-weight:850}
.tc4-form{position:relative}.tc4-layout{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(430px,.98fr);gap:12px;align-items:start}.tc4-layout>main{display:grid;gap:10px;min-width:0}.tc4-starting,.tc4-automation,.tc4-overview,.tc4-pitch-wrap{border:1px solid rgba(212,169,79,0.2);border-radius:13px;background:linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.84))}.tc4-starting,.tc4-automation{padding:12px}.tc4-starting>header,.tc4-automation>header,.tc4-overview>header,.tc4-sub-plan>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.tc4-starting header span,.tc4-automation header span,.tc4-modal header>div>span{color:var(--tc4-cyan);font-family:var(--mono);font-size:.61rem;font-weight:950;letter-spacing:.14em}.tc4-starting h3,.tc4-automation h3,.tc4-overview h3,.tc4-sub-plan h3{margin:.15rem 0 0;color:#fff;font-size:.88rem}.tc4-starting header button,.tc4-overview header button{padding:6px 9px;border:1px solid rgba(212,169,79,0.28);border-radius:7px;background:rgba(23,21,15,0.62);color:#e5c377;font:inherit;font-size:.59rem;font-weight:850;cursor:pointer}.tc4-automation header>small{color:rgba(217,209,194,0.6);font-size:.58rem}
.tc4-tactic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tc4-control{display:grid;gap:6px;min-width:0;padding:9px 10px;border:1px solid rgba(212,169,79,0.2);border-radius:10px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(23,21,15,0.78))}.tc4-control>span{color:rgba(251,247,239,0.78);font-size:.64rem;font-weight:850}.tc4-control select,.tc4-condition-grid select,.tc4-condition-grid input,.tc4-planned-subs select,.tc4-planned-subs input{width:100%;min-height:38px;padding:7px 9px;border:1px solid rgba(212,169,79,0.32);border-radius:8px;background:#17150f;color:#fff;font:inherit;font-size:.72rem;font-weight:750;outline:none}.tc4-control.large select{min-height:42px;font-size:.78rem}.tc4-control select:focus,.tc4-condition-grid select:focus,.tc4-condition-grid input:focus,.tc4-planned-subs select:focus,.tc4-planned-subs input:focus{border-color:rgba(212,169,79,0.68);box-shadow:0 0 0 2px rgba(212,169,79,0.08)}
.tc4-reaction-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.tc4-reaction-card{position:relative;min-height:72px;padding:9px 9px 8px;border:1px solid rgba(212,169,79,0.2);border-radius:9px;background:rgba(13,12,10,0.76);color:#fbf7ef;text-align:left;cursor:pointer;overflow:hidden}.tc4-reaction-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:rgba(76,57,21,0.55)}.tc4-reaction-card.success::before{background:rgba(66,225,145,.7)}.tc4-reaction-card.danger::before{background:rgba(255,91,108,.72)}.tc4-reaction-card.timed::before{background:rgba(255,205,91,.68)}.tc4-reaction-card.enabled{border-color:rgba(212,169,79,0.34);background:linear-gradient(145deg,rgba(23,21,15,0.88),rgba(13,12,10,0.86))}.tc4-reaction-card.preview{box-shadow:0 0 0 1px rgba(212,169,79,0.55),0 0 18px rgba(212,169,79,0.1)}.tc4-reaction-card>i{position:absolute;right:7px;top:7px;color:rgba(217,209,194,0.45);font-size:.51rem;font-style:normal;font-weight:950}.tc4-reaction-card.enabled>i{color:#74f2ad}.tc4-reaction-card strong{display:block;padding-right:25px;color:#fff;font-size:.68rem}.tc4-reaction-card span{display:block;margin-top:3px;color:#ffd475;font-size:.55rem;font-weight:750}.tc4-reaction-card small{display:block;margin-top:5px;color:rgba(217,209,194,0.62);font-size:.54rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc4-right{display:grid;gap:9px;min-width:0}.tc4-overview{padding:9px 11px}.tc4-overview>header{margin-bottom:6px}.tc4-overview>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tc4-overview>div>span{display:grid;gap:2px;padding:6px 7px;border:1px solid rgba(212,169,79,0.14);border-radius:7px;background:rgba(13,12,10,0.54)}.tc4-overview small{color:rgba(217,209,194,0.62);font-size:.5rem;text-transform:uppercase}.tc4-overview b{color:#fff;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tc4-pitch-wrap{padding:9px}.tc4-pitch{position:relative;height:430px;border:1px solid rgba(89,230,255,.32);border-radius:11px;background:repeating-linear-gradient(90deg,rgba(48,129,58,.76) 0 16.66%,rgba(38,110,49,.78) 16.66% 33.33%),linear-gradient(#246e32,#174d26);box-shadow:inset 0 0 42px rgba(0,0,0,.36),0 8px 24px rgba(0,0,0,.18);overflow:hidden}.tc4-pitch::before,.tc4-pitch::after{content:"";position:absolute;left:25%;right:25%;height:22%;border:1px solid rgba(255,255,255,.34)}.tc4-pitch::before{top:0;border-top:0}.tc4-pitch::after{bottom:0;border-bottom:0}.tc4-halfway{position:absolute;left:0;right:0;top:50%;border-top:1px solid rgba(255,255,255,.32)}.tc4-centre-circle{position:absolute;left:50%;top:50%;width:76px;height:76px;border:1px solid rgba(255,255,255,.32);border-radius:50%;transform:translate(-50%,-50%)}.tc4-centre-circle::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.55);transform:translate(-50%,-50%)}.tc4-slot{position:absolute;z-index:2;width:84px;min-height:58px;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:12px}.tc4-slot.empty{border:1px dashed rgba(212,169,79,0.34);background:rgba(13,12,10,0.18)}.tc4-pitch.interactive .tc4-slot{transition:.15s}.tc4-pitch.interactive .tc4-slot:hover{background:rgba(89,230,255,.12);box-shadow:0 0 18px rgba(89,230,255,.16)}.tc4-empty-slot{color:rgba(251,247,239,0.7);font-size:.56rem;font-weight:900}.tc4-player{display:grid;grid-template-columns:32px 1fr;grid-template-rows:1fr 1fr;column-gap:6px;align-items:center;width:82px;padding:5px 6px;border:1px solid rgba(212,169,79,0.58);border-radius:10px;background:linear-gradient(145deg,rgba(23,21,15,0.96),rgba(13,12,10,0.96));box-shadow:0 4px 12px rgba(0,0,0,.3),0 0 12px rgba(212,169,79,0.14);cursor:grab}.tc4-player:active,.tc4-player.dragging{cursor:grabbing;opacity:.55}.tc4-player>b{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border:1px solid #d4a94f;border-radius:50%;background:#17150f;color:#fff;font-size:.58rem}.tc4-slot[data-tactics-slot="GK"] .tc4-player>b{border-color:#58f29e;background:#0d583a}.tc4-player>span{align-self:end;color:#fff;font-size:.55rem;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc4-player>small{align-self:start;color:#e5c377;font-size:.48rem;font-weight:900}.tc4-bench{margin-top:8px;padding:7px 8px;border:1px solid rgba(212,169,79,0.17);border-radius:9px;background:rgba(13,12,10,0.67)}.tc4-bench>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.tc4-bench>header>span{color:#e5c377;font-size:.56rem;font-weight:950;letter-spacing:.1em}.tc4-bench>header>small{color:rgba(217,209,194,0.6);font-size:.52rem}.tc4-bench>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.tc4-bench-player{min-width:0;padding:5px;border:1px solid rgba(212,169,79,0.19);border-radius:7px;background:rgba(23,21,15,0.74);text-align:center;cursor:grab}.tc4-bench-player:active,.tc4-bench-player.dragging{cursor:grabbing;opacity:.55}.tc4-bench-player>b{display:grid;place-items:center;width:25px;height:25px;margin:auto;border:1px solid rgba(212,169,79,0.5);border-radius:50%;background:#17150f;color:#fff;font-size:.5rem}.tc4-bench-player span,.tc4-bench-player small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc4-bench-player span{margin-top:3px;color:#fff;font-size:.49rem;font-weight:800}.tc4-bench-player small{color:#e5c377;font-size:.44rem}.tc4-empty-bench{grid-column:1/-1;margin:3px;color:rgba(217,209,194,0.56);font-size:.58rem;text-align:center}
.tc4-bottom-bar{position:relative;z-index:2;display:grid;grid-template-columns:1.35fr repeat(4,minmax(90px,.85fr)) 160px;align-items:center;gap:0;margin-top:10px;padding:9px 10px;border:1px solid rgba(212,169,79,0.35);border-radius:11px;background:rgba(13,12,10,0.98);box-shadow:0 -8px 24px rgba(9,7,4,0.22)}.tc4-bottom-bar>div{min-width:0;padding:0 10px;border-right:1px solid rgba(212,169,79,0.16)}.tc4-bottom-bar>div>b{display:block;margin-top:2px;color:#fff;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc4-ready{display:flex;align-items:center;gap:8px}.tc4-ready>i{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(51,225,143,.35);border-radius:50%;background:rgba(25,159,95,.16);color:#61f5a7;font-style:normal;font-weight:950}.tc4-ready small{display:block;color:rgba(217,209,194,0.58);font-size:.5rem}.tc4-bottom-bar button{min-height:40px;border:1px solid rgba(212,169,79,0.72);border-radius:8px;background:linear-gradient(135deg,rgba(42,34,20,0.9),rgba(42,34,20,0.8));box-shadow:0 0 18px rgba(212,169,79,0.13);color:#fbf7ef;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}.tc4-bottom-bar button:disabled{opacity:.5;cursor:not-allowed}.tc4-save-message{margin:5px 8px 7px;color:rgba(217,209,194,0.56);font-size:.56rem;text-align:right}
.tc4-modal-backdrop{position:fixed;z-index:2500;inset:0;display:grid;place-items:center;padding:22px;background:rgba(13,12,10,0.78);backdrop-filter:blur(5px)}.tc4-modal{width:min(1480px,96vw);max-height:94vh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid rgba(212,169,79,0.42);border-radius:17px;background:radial-gradient(circle at 85% 0,rgba(76,57,21,0.15),transparent 32%),linear-gradient(145deg,#0d0c0a,#0d0c0a);box-shadow:0 35px 120px rgba(0,0,0,.7);overflow:hidden}.tc4-modal>header{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;padding:13px 16px;border-bottom:1px solid rgba(212,169,79,0.2)}.tc4-modal h2{margin:.15rem 0;color:#fff;font-size:1.15rem}.tc4-modal header p{margin:0;color:rgba(217,209,194,0.64);font-size:.66rem}.tc4-modal-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(212,169,79,0.25);border-radius:50%;background:rgba(23,21,15,0.78);color:#fbf7ef;font-size:1.3rem;cursor:pointer}.tc4-switch{display:flex;align-items:center;gap:7px;color:#fbf7ef;font-size:.65rem;font-weight:850}.tc4-switch input{position:absolute;opacity:0}.tc4-switch i{position:relative;width:37px;height:20px;border-radius:20px;background:#17150f}.tc4-switch i::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#4c3915;transition:.16s}.tc4-switch input:checked+i{background:rgba(29,180,113,.62)}.tc4-switch input:checked+i::after{left:20px;background:#86ffc0}.tc4-modal-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(430px,.9fr);gap:12px;min-height:0;padding:12px;overflow:auto}.tc4-modal-body>main{min-width:0}.tc4-modal-body>aside{min-width:0}.tc4-condition-grid{display:grid;grid-template-columns:1.2fr .7fr .55fr .8fr 1fr 1fr;gap:7px;margin-bottom:9px;padding:9px;border:1px solid rgba(212,169,79,0.16);border-radius:10px;background:rgba(13,12,10,0.58)}.tc4-condition-grid label,.tc4-planned-subs label{display:grid;gap:4px;min-width:0}.tc4-condition-grid label>span,.tc4-planned-subs label>span{color:rgba(217,209,194,0.68);font-size:.54rem;font-weight:850;text-transform:uppercase}.tc4-condition-grid .check{display:flex;align-items:center;gap:6px;padding-top:18px;color:#fbf7ef}.tc4-condition-grid .check input{width:14px;height:14px;accent-color:var(--tc4-cyan)}.tc4-condition-grid .check span{font-size:.57rem;text-transform:none}.tc4-modal-tactics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tc4-sub-plan{margin-top:10px;padding:10px;border:1px solid rgba(212,169,79,0.17);border-radius:11px;background:rgba(13,12,10,0.56)}.tc4-sub-plan header{margin-bottom:7px}.tc4-sub-plan header p{margin:2px 0 0;color:rgba(217,209,194,0.62);font-size:.58rem}.tc4-sub-plan header>b{color:#e5c377;font-size:.62rem}.tc4-planned-subs{display:grid;gap:6px}.tc4-planned-subs>article{display:grid;grid-template-columns:22px 1fr 18px 1fr 1.15fr .8fr auto;align-items:end;gap:6px;padding:7px;border:1px solid rgba(212,169,79,0.16);border-radius:8px;background:rgba(13,12,10,0.7)}.tc4-planned-subs>article>b{align-self:center;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(76,57,21,0.25);color:#e5c377;font-size:.58rem}.tc4-planned-subs>article>div span{display:block;color:#fff;font-size:.61rem;font-weight:800}.tc4-planned-subs>article>div small{display:block;color:rgba(217,209,194,0.58);font-size:.51rem}.tc4-planned-subs>article>i{align-self:center;color:#e5c377;font-style:normal}.tc4-planned-subs>p{margin:4px;color:rgba(217,209,194,0.58);font-size:.67rem}.tc4-planned-subs .actions{align-self:end;display:flex;gap:3px}.tc4-planned-subs button{min-height:36px;padding:5px 7px;border:1px solid rgba(212,169,79,0.22);border-radius:6px;background:rgba(23,21,15,0.74);color:#fbf7ef;font:inherit;font-size:.55rem;font-weight:800;cursor:pointer}.tc4-planned-subs button.remove{color:#ffb3b9;border-color:rgba(255,87,99,.24)}.tc4-drag-help{margin:7px 3px 0;color:#e5c377;font-size:.59rem;text-align:center}.tc4-modal .tc4-pitch{height:500px}.tc4-modal>footer{display:flex;justify-content:flex-end;padding:10px 14px;border-top:1px solid rgba(212,169,79,0.18)}.tc4-modal>footer button{min-width:120px;min-height:38px;border:1px solid rgba(212,169,79,0.58);border-radius:8px;background:linear-gradient(135deg,rgba(42,34,20,0.9),rgba(42,34,20,0.8));color:#fbf7ef;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}.tactical-centre-v4.locked .tc4-layout{opacity:.82}
@media(min-width:1450px) and (min-height:800px){.tactical-centre-v4{max-height:calc(100vh - 106px)}.tc4-pitch{height:438px}}
@media(max-width:1250px){.tc4-layout{grid-template-columns:1fr}.tc4-right{grid-template-columns:.55fr 1fr}.tc4-pitch{height:390px}.tc4-tactic-grid{grid-template-columns:repeat(4,1fr)}.tc4-modal-body{grid-template-columns:1fr}.tc4-modal .tc4-pitch{height:470px}.tc4-planned-subs>article{grid-template-columns:22px 1fr 18px 1fr 1fr}.tc4-planned-subs>article label,.tc4-planned-subs .actions{grid-column:auto}}
@media(max-width:820px){.tactical-centre-v4{padding:10px 9px 0}.tc4-lineup-summary{grid-template-columns:1fr 1fr}.tc4-lineup-summary>div{padding:6px;border-bottom:1px solid rgba(212,169,79,0.14)}.tc4-lineup-summary>b,.tc4-lineup-summary>em{justify-self:start;margin:6px}.tc4-tactic-grid,.tc4-modal-tactics{grid-template-columns:1fr 1fr}.tc4-reaction-grid{grid-template-columns:1fr 1fr}.tc4-right{grid-template-columns:1fr}.tc4-overview>div{grid-template-columns:1fr 1fr}.tc4-pitch{height:390px}.tc4-bench>div{grid-template-columns:repeat(4,1fr)}.tc4-bottom-bar{grid-template-columns:1fr 1fr}.tc4-bottom-bar>div{padding:6px}.tc4-bottom-bar button{grid-column:1/-1}.tc4-save-message{text-align:left}.tc4-condition-grid{grid-template-columns:1fr 1fr}.tc4-planned-subs>article{grid-template-columns:22px 1fr 18px 1fr}.tc4-planned-subs>article label,.tc4-planned-subs .actions{grid-column:2/-1}.tc4-modal-backdrop{padding:8px}.tc4-modal{max-height:97vh}}
@media(max-width:520px){.tc4-tactic-grid,.tc4-modal-tactics,.tc4-reaction-grid,.tc4-condition-grid{grid-template-columns:1fr}.tc4-pitch{height:350px}.tc4-slot{width:66px}.tc4-player{width:64px;grid-template-columns:25px 1fr;padding:4px}.tc4-player>b{width:24px;height:24px}.tc4-player>span{font-size:.48rem}.tc4-bench>div{grid-template-columns:repeat(3,1fr)}.tc4-overview>div{grid-template-columns:1fr 1fr}.tc4-modal>header{grid-template-columns:1fr auto}.tc4-switch{grid-row:2}.tc4-planned-subs>article{grid-template-columns:22px 1fr}.tc4-planned-subs>article>i{display:none}.tc4-planned-subs>article>div,.tc4-planned-subs>article label,.tc4-planned-subs .actions{grid-column:2}}

/* THE G.O.A.T 3.0A.50.5 preview — compact two-condition Tactical Centre */
.tactical-centre-v5{--tc5-cyan:#59e6ff;--tc5-green:#61f5a7;--tc5-red:#ff6d79;--tc5-yellow:#ffd475;position:relative;width:100%;padding:12px 14px 0;border:1px solid rgba(212,169,79,0.24);border-radius:18px;background:radial-gradient(circle at 82% -18%,rgba(76,57,21,0.16),transparent 36%),linear-gradient(145deg,rgba(13,12,10,0.985),rgba(13,12,10,0.99));box-shadow:0 28px 80px rgba(9,7,4,0.35);color:#fbf7ef;overflow:visible}
.tc5-lineup-summary{display:grid;grid-template-columns:1.1fr .7fr .6fr .7fr auto auto;align-items:center;margin-bottom:10px;padding:9px 12px;border:1px solid rgba(212,169,79,0.26);border-radius:12px;background:linear-gradient(90deg,rgba(23,21,15,0.88),rgba(13,12,10,0.78))}.tc5-lineup-summary>div{min-width:0;padding:0 12px;border-right:1px solid rgba(212,169,79,0.18)}.tc5-lineup-summary>div:first-child{padding-left:0}.tc5-lineup-summary span,.tc5-bottom-bar>div>span{display:block;color:rgba(217,209,194,0.67);font-size:.59rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.tc5-lineup-summary strong{display:block;margin-top:2px;color:#fff;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc5-lineup-summary>b{justify-self:end;padding:7px 10px;border:1px solid rgba(67,229,150,.3);border-radius:999px;background:rgba(32,164,100,.16);color:#85ffc0;font-size:.62rem;letter-spacing:.05em}.tc5-lineup-summary>b.not-ready{border-color:rgba(255,170,81,.28);background:rgba(178,94,28,.16);color:#ffd09d}.tc5-lineup-summary>em{margin-left:8px;color:#ffd475;font-size:.62rem;font-style:normal;font-weight:850}
.tc5-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(365px,.48fr);gap:12px;align-items:start}.tc5-left-columns{display:grid;grid-template-columns:minmax(250px,.82fr) minmax(300px,1.18fr);gap:10px;min-width:0}.tc5-starting,.tc5-automation,.tc5-pitch-wrap{border:1px solid rgba(212,169,79,0.2);border-radius:13px;background:linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.84))}.tc5-starting,.tc5-automation{padding:11px}.tc5-starting>header,.tc5-automation>header{display:flex;align-items:center;min-height:29px;margin-bottom:8px}.tc5-starting header span,.tc5-automation header span,.tc5-modal header>div>span{color:#e5c377;font-family:var(--mono);font-size:.67rem;font-weight:950;letter-spacing:.14em}.tc5-starting-list,.tc5-reaction-list{display:grid;gap:7px}.tc5-control{display:grid;grid-template-columns:minmax(100px,.88fr) minmax(125px,1.12fr);align-items:center;gap:9px;min-width:0;padding:8px 9px;border:1px solid rgba(212,169,79,0.2);border-radius:9px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(23,21,15,0.78))}.tc5-control>span{color:rgba(251,247,239,0.84);font-size:.69rem;font-weight:850}.tc5-control select,.tc5-condition-grid select,.tc5-condition-grid input,.tc5-planned-subs select,.tc5-planned-subs input{width:100%;min-height:42px;padding:8px 10px;border:1px solid rgba(212,169,79,0.34);border-radius:8px;background:#17150f;color:#fff;font:inherit;font-size:.76rem;font-weight:760;outline:none}.tc5-control.large select{min-height:44px;font-size:.8rem}.tc5-control select:focus,.tc5-condition-grid select:focus,.tc5-condition-grid input:focus,.tc5-planned-subs select:focus,.tc5-planned-subs input:focus{border-color:rgba(212,169,79,0.68);box-shadow:0 0 0 2px rgba(212,169,79,0.08)}
.tc5-reaction-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;min-height:48px;padding:8px 9px 7px 12px;border:1px solid rgba(212,169,79,0.2);border-radius:9px;background:rgba(13,12,10,0.76);color:#fbf7ef;text-align:left;cursor:pointer;overflow:hidden}.tc5-reaction-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:rgba(76,57,21,0.55)}.tc5-reaction-card.success::before{background:rgba(66,225,145,.7)}.tc5-reaction-card.danger::before{background:rgba(255,91,108,.72)}.tc5-reaction-card.timed::before{background:rgba(255,205,91,.68)}.tc5-reaction-card.enabled{border-color:rgba(212,169,79,0.34);background:linear-gradient(145deg,rgba(23,21,15,0.88),rgba(13,12,10,0.86))}.tc5-reaction-card>i{grid-column:2;grid-row:1;color:rgba(217,209,194,0.45);font-size:.53rem;font-style:normal;font-weight:950}.tc5-reaction-card.enabled>i{color:#74f2ad}.tc5-reaction-card strong{grid-column:1;grid-row:1;color:#fff;font-size:.78rem;line-height:1.2}.tc5-reaction-card span{grid-column:1/-1;grid-row:2;display:block;margin-top:3px;color:#ffd475;font-size:.56rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc5-reaction-card small{display:none}
.tc5-right{min-width:0}.tc5-pitch-wrap{padding:9px}.tc5-pitch{position:relative;width:min(100%,405px);height:505px;margin-inline:auto;border:1px solid rgba(89,230,255,.32);border-radius:11px;background:#0c552c url("/ui-icons/tactics-pitch-2026.webp") center / 100% 100% no-repeat;box-shadow:inset 0 0 42px rgba(0,0,0,.28),0 8px 24px rgba(0,0,0,.18);overflow:hidden}.tc5-slot{position:absolute;z-index:2;width:78px;min-height:58px;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:12px}.tc5-slot.empty{border:1px dashed rgba(212,169,79,0.28);background:rgba(13,12,10,0.12)}.tc5-pitch.interactive .tc5-slot{transition:background .12s,box-shadow .12s}.tc5-pitch.interactive .tc5-slot:hover{background:rgba(89,230,255,.12);box-shadow:0 0 18px rgba(89,230,255,.16)}.tc5-empty-slot{color:rgba(251,247,239,0.72);font-size:.55rem;font-weight:900}.tc5-player{display:grid;justify-items:center;width:76px;cursor:grab;user-select:none}.tc5-player:active,.tc5-player.dragging{cursor:grabbing;opacity:.55}.tc5-player>b{display:grid;place-items:center;width:34px;height:34px;border:2px solid #d4a94f;border-radius:50%;background:linear-gradient(145deg,#17150f,#17150f);box-shadow:0 4px 13px rgba(0,0,0,.4),0 0 12px rgba(212,169,79,0.19);color:#fff;font-size:.7rem;font-weight:950}.tc5-slot[data-tactics-slot="GK"] .tc5-player>b{border-color:#58f29e;background:linear-gradient(145deg,#0c6944,#073d2b)}.tc5-player>span{display:block;width:100%;margin-top:3px;color:#fff;font-size:.58rem;font-weight:900;text-align:center;text-shadow:0 2px 4px #090704;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc5-player>small{display:block;margin-top:1px;color:#d9d1c2;font-size:.49rem;font-weight:950;text-align:center;text-shadow:0 2px 4px #090704}.tc5-bench{margin-top:8px;padding:7px 8px;border:1px solid rgba(212,169,79,0.17);border-radius:9px;background:rgba(13,12,10,0.67)}.tc5-bench>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.tc5-bench>header>span{color:#e5c377;font-size:.56rem;font-weight:950;letter-spacing:.1em}.tc5-bench>header>small{color:rgba(217,209,194,0.6);font-size:.52rem}.tc5-bench>div{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.tc5-bench-player{min-width:0;padding:4px 2px;text-align:center;cursor:grab;user-select:none}.tc5-bench-player:active,.tc5-bench-player.dragging{cursor:grabbing;opacity:.55}.tc5-bench-player>b{display:grid;place-items:center;width:28px;height:28px;margin:auto;border:1px solid rgba(212,169,79,0.62);border-radius:50%;background:#17150f;color:#fff;font-size:.55rem}.tc5-bench-player span,.tc5-bench-player small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc5-bench-player span{margin-top:3px;color:#fff;font-size:.5rem;font-weight:850}.tc5-bench-player small{color:#e5c377;font-size:.44rem}.tc5-empty-bench{grid-column:1/-1;margin:3px;color:rgba(217,209,194,0.56);font-size:.58rem;text-align:center}
.tc5-bottom-bar{position:relative;z-index:2;display:grid;grid-template-columns:1.35fr repeat(4,minmax(90px,.85fr)) 160px;align-items:center;margin-top:10px;padding:9px 10px;border:1px solid rgba(212,169,79,0.35);border-radius:11px;background:rgba(13,12,10,0.98);box-shadow:0 -8px 24px rgba(9,7,4,0.22)}.tc5-bottom-bar>div{min-width:0;padding:0 10px;border-right:1px solid rgba(212,169,79,0.16)}.tc5-bottom-bar>div>b{display:block;margin-top:2px;color:#fff;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc5-ready{display:flex;align-items:center;gap:8px}.tc5-ready>i{display:grid;place-items:center;width:30px;height:30px;border:1px solid rgba(51,225,143,.35);border-radius:50%;background:rgba(25,159,95,.16);color:#61f5a7;font-style:normal;font-weight:950}.tc5-ready small{display:block;color:rgba(217,209,194,0.58);font-size:.5rem}.tc5-bottom-bar button{min-height:40px;border:1px solid rgba(212,169,79,0.72);border-radius:8px;background:linear-gradient(135deg,rgba(42,34,20,0.9),rgba(42,34,20,0.8));box-shadow:0 0 18px rgba(212,169,79,0.13);color:#fbf7ef;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}.tc5-bottom-bar button:disabled{opacity:.5;cursor:not-allowed}.tc5-save-message{margin:5px 8px 7px;color:rgba(217,209,194,0.56);font-size:.56rem;text-align:right}
.tc5-modal-backdrop{position:fixed;z-index:2500;inset:0;display:grid;justify-items:center;align-items:start;padding:112px 18px 18px;background:rgba(13,12,10,0.88)}.tc5-modal{width:min(1420px,96vw);max-height:calc(100dvh - 130px);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;border:1px solid rgba(212,169,79,0.42);border-radius:17px;background:radial-gradient(circle at 85% 0,rgba(76,57,21,0.12),transparent 30%),linear-gradient(145deg,#0d0c0a,#0d0c0a);box-shadow:0 35px 120px rgba(0,0,0,.7);overflow:hidden;contain:layout paint}.tc5-modal>header{display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px;padding:12px 15px;border-bottom:1px solid rgba(212,169,79,0.2)}.tc5-modal h2{margin:.15rem 0;color:#fff;font-size:1.15rem}.tc5-modal header p{margin:0;color:rgba(217,209,194,0.64);font-size:.66rem}.tc5-modal-close{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(212,169,79,0.25);border-radius:50%;background:rgba(23,21,15,0.78);color:#fbf7ef;font-size:1.3rem;cursor:pointer}.tc5-branch-tabs{display:flex;gap:7px;padding:9px 13px;border-bottom:1px solid rgba(212,169,79,0.16);background:rgba(13,12,10,0.72)}.tc5-branch-tabs button{display:grid;gap:2px;min-width:180px;padding:7px 10px;border:1px solid rgba(212,169,79,0.22);border-radius:8px;background:rgba(23,21,15,0.72);color:#fbf7ef;text-align:left;cursor:pointer}.tc5-branch-tabs button.active{border-color:rgba(212,169,79,0.65);background:rgba(23,21,15,0.78)}.tc5-branch-tabs button.add{min-width:155px;place-items:center;color:#e5c377;border-style:dashed}.tc5-branch-tabs b{font-size:.66rem}.tc5-branch-tabs span{font-size:.54rem;color:#ffd475}.tc5-modal-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(365px,.72fr);gap:12px;min-height:0;padding:12px;overflow:auto;overscroll-behavior:contain}.tc5-modal-body>main,.tc5-modal-body>aside{min-width:0}.tc5-branch-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.tc5-switch{display:flex;align-items:center;gap:7px;color:#fbf7ef;font-size:.65rem;font-weight:850}.tc5-switch input{position:absolute;opacity:0}.tc5-switch i{position:relative;width:37px;height:20px;border-radius:20px;background:#17150f}.tc5-switch i::after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#4c3915;transition:.16s}.tc5-switch input:checked+i{background:rgba(29,180,113,.62)}.tc5-switch input:checked+i::after{left:20px;background:#86ffc0}.tc5-remove-branch{padding:6px 9px;border:1px solid rgba(255,102,118,.25);border-radius:7px;background:rgba(102,22,37,.35);color:#ffb6bf;font:inherit;font-size:.58rem;font-weight:850;cursor:pointer}.tc5-condition-grid{display:grid;grid-template-columns:1.25fr .72fr .55fr .8fr 1fr 1fr;gap:7px;margin-bottom:9px;padding:9px;border:1px solid rgba(212,169,79,0.16);border-radius:10px;background:rgba(13,12,10,0.58)}.tc5-condition-grid label,.tc5-planned-subs label{display:grid;gap:4px;min-width:0}.tc5-condition-grid label>span,.tc5-planned-subs label>span{color:rgba(217,209,194,0.68);font-size:.54rem;font-weight:850;text-transform:uppercase}.tc5-condition-grid .check{display:flex;align-items:center;gap:6px;padding-top:18px;color:#fbf7ef}.tc5-condition-grid .check input{width:14px;height:14px;accent-color:#2a2214}.tc5-condition-grid .check span{font-size:.57rem;text-transform:none}.tc5-modal-tactics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tc5-modal-tactics .tc5-control{grid-template-columns:1fr;align-items:stretch}.tc5-sub-plan{margin-top:10px;padding:10px;border:1px solid rgba(212,169,79,0.17);border-radius:11px;background:rgba(13,12,10,0.56)}.tc5-sub-plan>header{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:7px}.tc5-sub-plan h3{margin:0;color:#fff;font-size:.85rem}.tc5-sub-plan header p{margin:2px 0 0;color:rgba(217,209,194,0.62);font-size:.58rem}.tc5-sub-plan header>b{color:#e5c377;font-size:.62rem}.tc5-planned-subs{display:grid;gap:6px}.tc5-planned-subs>article{display:grid;grid-template-columns:22px 1fr 18px 1fr 1.15fr .8fr auto;align-items:end;gap:6px;padding:7px;border:1px solid rgba(212,169,79,0.16);border-radius:8px;background:rgba(13,12,10,0.7)}.tc5-planned-subs>article>b{align-self:center;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(76,57,21,0.25);color:#e5c377;font-size:.58rem}.tc5-planned-subs>article>div span{display:block;color:#fff;font-size:.61rem;font-weight:800}.tc5-planned-subs>article>div small{display:block;color:rgba(217,209,194,0.58);font-size:.51rem}.tc5-planned-subs>article>i{align-self:center;color:#e5c377;font-style:normal}.tc5-planned-subs>p{margin:4px;color:rgba(217,209,194,0.58);font-size:.67rem}.tc5-planned-subs .actions{align-self:end;display:flex;gap:3px}.tc5-planned-subs button{min-height:36px;padding:5px 7px;border:1px solid rgba(212,169,79,0.22);border-radius:6px;background:rgba(23,21,15,0.74);color:#fbf7ef;font:inherit;font-size:.55rem;font-weight:800;cursor:pointer}.tc5-planned-subs button.remove{color:#ffb3b9;border-color:rgba(255,87,99,.24)}.tc5-sub-fallback{grid-column:2/-1;display:grid;grid-template-columns:minmax(150px,.7fr) minmax(160px,1fr) 18px minmax(160px,1fr);gap:6px;align-items:end;margin-top:2px;padding:7px;border:1px dashed rgba(212,169,79,0.24);border-radius:7px;background:rgba(23,21,15,0.46)}.tc5-sub-fallback>strong{align-self:center;color:#e5c377;font-size:.64rem;font-weight:900;line-height:1.3;text-transform:uppercase}.tc5-sub-fallback>i{align-self:center;color:#e5c377;font-style:normal;text-align:center}.tc5-sub-fallback label{display:grid;gap:4px}.tc5-sub-fallback select{min-height:36px!important;padding:6px 8px!important;font-size:.65rem!important}@media(max-width:850px){.tc5-sub-fallback{grid-column:2/-1;grid-template-columns:1fr 18px 1fr}.tc5-sub-fallback>strong{grid-column:1/-1}}@media(max-width:520px){.tc5-sub-fallback{grid-column:2;grid-template-columns:1fr}.tc5-sub-fallback>strong,.tc5-sub-fallback label{grid-column:1}.tc5-sub-fallback>i{display:none}}
.tc5-drag-help{margin:7px 3px 0;color:#e5c377;font-size:.59rem;text-align:center}.tc5-modal .tc5-pitch{height:475px;width:min(100%,380px)}.tc5-modal>footer{display:flex;justify-content:flex-end;padding:10px 14px;border-top:1px solid rgba(212,169,79,0.18)}.tc5-modal>footer button{min-width:120px;min-height:38px;border:1px solid rgba(212,169,79,0.58);border-radius:8px;background:linear-gradient(135deg,rgba(42,34,20,0.9),rgba(42,34,20,0.8));color:#fbf7ef;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}.tactical-centre-v5.locked .tc5-layout{opacity:.82}
@media(max-width:1280px){.tc5-layout{grid-template-columns:1fr}.tc5-right{width:min(100%,520px);margin-inline:auto}.tc5-pitch{height:490px}.tc5-modal-body{grid-template-columns:1fr}.tc5-modal .tc5-pitch{height:470px}.tc5-planned-subs>article{grid-template-columns:22px 1fr 18px 1fr 1fr}.tc5-planned-subs>article label,.tc5-planned-subs .actions{grid-column:auto}}
@media(max-width:850px){.tactical-centre-v5{padding:10px 9px 0}.tc5-lineup-summary{grid-template-columns:1fr 1fr}.tc5-lineup-summary>div{padding:6px;border-bottom:1px solid rgba(212,169,79,0.14)}.tc5-lineup-summary>b,.tc5-lineup-summary>em{justify-self:start;margin:6px}.tc5-left-columns{grid-template-columns:1fr}.tc5-modal-tactics{grid-template-columns:1fr 1fr}.tc5-bottom-bar{grid-template-columns:1fr 1fr}.tc5-bottom-bar>div{padding:6px}.tc5-bottom-bar button{grid-column:1/-1}.tc5-save-message{text-align:left}.tc5-condition-grid{grid-template-columns:1fr 1fr}.tc5-planned-subs>article{grid-template-columns:22px 1fr 18px 1fr}.tc5-planned-subs>article label,.tc5-planned-subs .actions{grid-column:2/-1}.tc5-modal-backdrop{padding:76px 7px 7px}.tc5-modal{max-height:calc(100dvh - 83px)}.tc5-branch-tabs{overflow:auto}}
@media(max-width:520px){.tc5-control{grid-template-columns:1fr}.tc5-modal-tactics,.tc5-condition-grid{grid-template-columns:1fr}.tc5-pitch{height:430px;width:min(100%,345px)}.tc5-slot{width:66px}.tc5-player{width:64px}.tc5-player>b{width:30px;height:30px}.tc5-bench>div{grid-template-columns:repeat(4,1fr)}.tc5-modal>header{grid-template-columns:1fr auto}.tc5-planned-subs>article{grid-template-columns:22px 1fr}.tc5-planned-subs>article>i{display:none}.tc5-planned-subs>article>div,.tc5-planned-subs>article label,.tc5-planned-subs .actions{grid-column:2}}

/* THE G.O.A.T 3.0A.50.6 — Tactical Centre alignment and private mail */
#mailTabButton.has-items .mail-alert{display:block}
body.mail-modal-open{overflow:hidden}
.mail-modal{position:fixed;z-index:2800;inset:0;display:grid;place-items:center;padding:22px}
.mail-modal.hidden{display:none}
.mail-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(13,12,10,0.86);cursor:default}
.mail-modal-card{position:relative;width:min(1080px,96vw);height:min(760px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(212,169,79,0.42);border-radius:18px;background:radial-gradient(circle at 90% 0,rgba(76,57,21,0.14),transparent 34%),linear-gradient(145deg,#0d0c0a,#0d0c0a);box-shadow:0 34px 110px rgba(0,0,0,.72)}
.mail-modal-header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid rgba(212,169,79,0.2)}
.mail-modal-header span,.mail-compose header>span{color:#e5c377;font-size:.64rem;font-weight:950;letter-spacing:.14em}
.mail-modal-header h2,.mail-compose h3{margin:3px 0 0;color:#fff}
.mail-modal-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(212,169,79,0.28);border-radius:10px;background:rgba(23,21,15,0.72);color:#fbf7ef;font-size:1.35rem;cursor:pointer}
.mail-modal-body{min-height:0;display:grid;grid-template-columns:190px minmax(0,1fr);overflow:hidden}
.mail-tabs{display:flex;flex-direction:column;gap:7px;padding:15px;border-right:1px solid rgba(212,169,79,0.18);background:rgba(13,12,10,0.46)}
.mail-tabs button{display:flex;align-items:center;justify-content:space-between;min-height:45px;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:rgba(251,247,239,0.75);font:inherit;font-size:.72rem;font-weight:850;text-align:left;cursor:pointer}
.mail-tabs button b{display:grid;place-items:center;min-width:24px;height:21px;padding:0 6px;border-radius:999px;background:rgba(76,57,21,0.16);color:#e5c377;font-size:.58rem}
.mail-tabs button:hover,.mail-tabs button.is-active{border-color:rgba(212,169,79,0.34);background:linear-gradient(135deg,rgba(42,34,20,0.58),rgba(23,21,15,0.68));color:#fff}
.mail-view{min-height:0;overflow:auto;padding:17px 18px}
.mail-message-list{display:grid;gap:9px}
.mail-message{border:1px solid rgba(212,169,79,0.18);border-radius:11px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.78));padding:12px 13px}
.mail-message.is-unread{border-color:rgba(212,169,79,0.55);box-shadow:inset 3px 0 #d4a94f}
.mail-message header,.mail-message footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.mail-message header>div{min-width:0;display:grid;gap:3px}
.mail-message header span{color:#e5c377;font-size:.53rem;font-weight:950;letter-spacing:.09em}
.mail-message header strong{color:#fff;font-size:.8rem}
.mail-message time,.mail-message footer small{color:rgba(217,209,194,0.58);font-size:.56rem}
.mail-message p{margin:10px 0;color:rgba(251,247,239,0.82);font-size:.69rem;line-height:1.55;white-space:pre-wrap}
.mail-message footer b{padding:4px 7px;border-radius:999px;background:rgba(255,199,70,.13);color:#ffd369;font-size:.52rem}
.mail-message footer b.is-accepted{background:rgba(56,232,145,.14);color:#72f1ae}
.mail-message footer b.is-declined{background:rgba(255,87,105,.13);color:#ff9ba7}
.mail-empty,.mail-error{display:grid;place-items:center;min-height:170px;margin:0;color:rgba(217,209,194,0.64);text-align:center}
.mail-error{color:#ff9ba7}
.mail-compose header p{max-width:680px;margin:5px 0 0;color:rgba(217,209,194,0.63);font-size:.62rem;line-height:1.5}
.mail-compose-actions button{min-height:38px;padding:8px 13px;border:1px solid rgba(212,169,79,0.42);border-radius:8px;background:rgba(42,34,20,0.72);color:#fbf7ef;font:inherit;font-size:.62rem;font-weight:900;cursor:pointer}
.mail-window-copy{display:block;margin-top:12px;color:rgba(217,209,194,0.57);font-size:.57rem}
.mail-compose{max-width:760px;margin-inline:auto}
.mail-compose header{margin-bottom:16px}
.mail-compose form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mail-compose label{display:grid;gap:6px;color:#fbf7ef;font-size:.62rem;font-weight:850}
.mail-compose label input,.mail-compose label select,.mail-compose label textarea{width:100%;min-height:44px;padding:10px 11px;border:1px solid rgba(212,169,79,0.33);border-radius:8px;background:#17150f;color:#fff;font:inherit;font-size:.7rem;outline:none}
.mail-compose label textarea{min-height:170px;resize:vertical}
.mail-compose label input:focus,.mail-compose label select:focus,.mail-compose label textarea:focus{border-color:rgba(212,169,79,0.7);box-shadow:0 0 0 2px rgba(212,169,79,0.08)}
.mail-compose-body,.mail-compose-actions,.mail-form-message{grid-column:1/-1}
.mail-compose-actions{display:flex;justify-content:flex-end;gap:8px}
.mail-compose-actions button:last-child{background:linear-gradient(135deg,#2a2214,#2a2214)}
.mail-form-message{min-height:18px;margin:0;color:#e5c377;font-size:.62rem}

.tc5-layout{align-items:stretch}
.tc5-left-columns{height:100%;align-items:stretch}
.tc5-starting,.tc5-automation{height:100%;display:flex;flex-direction:column;min-height:0}
.tc5-starting-list,.tc5-reaction-list{flex:1;align-content:stretch}
.tc5-starting-list{grid-template-rows:repeat(8,minmax(0,1fr))}
.tc5-reaction-list{grid-template-rows:repeat(9,minmax(0,1fr))}
.tc5-reaction-card{height:100%;min-height:0}
.tc5-pitch{background-color:#173f13;background-size:100% 100%;background-position:center}
.tc5-modal .tc5-pitch{background-size:100% 100%}
.tc5-condition-grid{grid-template-columns:minmax(210px,1.5fr) .75fr .75fr}

.goat-calendar-day-entry.is-friendly{border-color:rgba(82,231,173,.44);background:linear-gradient(135deg,rgba(21,107,79,.78),rgba(13,12,10,0.88))}
.goat-calendar-day-cell.has-friendly{box-shadow:inset 0 0 0 1px rgba(82,231,173,.3)}
.goat-calendar-legend i.is-friendly{background:#52e7ad;box-shadow:0 0 0 3px rgba(82,231,173,.12)}
.goat-calendar-friendly-action{margin-top:12px;padding:12px;border:1px solid rgba(74,221,169,.28);border-radius:11px;background:linear-gradient(145deg,rgba(14,71,64,.48),rgba(13,12,10,0.72))}
.goat-calendar-friendly-action span{display:block;color:#67edbb;font-size:.56rem;font-weight:950;letter-spacing:.1em}
.goat-calendar-friendly-action strong{display:block;margin-top:3px;color:#fff;font-size:.79rem}
.goat-calendar-friendly-action p{margin:4px 0 9px;color:rgba(217,209,194,0.66);font-size:.6rem}
.goat-calendar-friendly-action button{min-height:36px;padding:7px 12px;border:1px solid rgba(84,229,188,.45);border-radius:8px;background:rgba(12,105,88,.72);color:#e3fff7;font:inherit;font-size:.62rem;font-weight:900;cursor:pointer}
.goat-calendar-friendly-buttons{display:flex;flex-wrap:wrap;gap:8px}
.goat-calendar-friendly-available{border-color:rgba(82,231,173,.3)!important;color:#8ff2ca!important}

@media(max-width:780px){.mail-modal{padding:8px}.mail-modal-card{width:100%;height:96vh}.mail-modal-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.mail-tabs{flex-direction:row;overflow-x:auto;border-right:0;border-bottom:1px solid rgba(212,169,79,0.18)}.mail-tabs button{min-width:max-content}.mail-compose form{grid-template-columns:1fr}.mail-compose-body,.mail-compose-actions,.mail-form-message{grid-column:1}}

/* THE G.O.A.T 3.0A.50.15 production — navigation, friendly dates and tactics footer */
.profile-view .profile-nav-row {
  position: fixed !important;
  left: 0;
  right: 0;
  top: 76px !important;
  z-index: 90;
  min-height: 62px;
  margin: 0;
  padding: 8px max(20px, calc((100vw - 1440px) / 2));
  border-bottom: 1px solid rgba(212,169,79,0.14);
  background: rgba(13,12,10,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(9,7,4,0.2);
}
.profile-view { padding-top: 76px; }
.profile-view .profile-tabs {
  width: 100%;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.profile-active-lineup-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.profile-active-lineup-actions.hidden { display: none; }
.profile-active-lineup-actions button {
  min-height: 42px;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(42,34,20,0.88), rgba(23,21,15,0.9));
  color: #fbf7ef;
  font: inherit;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .035em;
  cursor: pointer;
}
.profile-active-lineup-actions button:hover,
.profile-active-lineup-actions button:focus-visible {
  border-color: rgba(212,169,79,0.72);
  background: linear-gradient(135deg, rgba(42,34,20,0.92), rgba(23,21,15,0.94));
  outline: none;
}
.goat-calendar-modern .goat-calendar-day-cell.has-friendly {
  border-color: rgba(82,231,173,.82) !important;
  background: linear-gradient(145deg, rgba(22,126,88,.74), rgba(13,12,10,0.9)) !important;
  box-shadow: inset 0 0 0 1px rgba(117,255,199,.24), 0 0 20px rgba(55,215,155,.12) !important;
}
.goat-calendar-modern .goat-calendar-day-cell.has-friendly:hover,
.goat-calendar-modern .goat-calendar-day-cell.has-friendly.is-selected {
  border-color: #72f2bd !important;
  background: linear-gradient(145deg, rgba(29,151,103,.84), rgba(8,77,68,.95)) !important;
}
.goat-calendar-modern .goat-calendar-friendly-available {
  border-color: rgba(137,255,207,.58) !important;
  background: rgba(8,66,52,.72) !important;
  color: #c8ffe8 !important;
}
.tc5-bottom-bar {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-inline: 0 !important;
}
.tc5-save-message { margin-right: 0; }
@media (max-width: 760px) {
  .profile-view .profile-nav-row {
    top: 62px !important;
    padding: 8px 12px;
  }
  .profile-view { padding-top: 70px; }
  .profile-active-lineup-actions { grid-template-columns: 1fr; }
}


/* THE G.O.A.T 3.0A.50.15 production — friendly calendar cards, sticky framed navigation and reaction icons */
.profile-view .profile-nav-row,
.dashboard-mode .profile-nav-row {
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  top: 76px !important;
  z-index: 70 !important;
  min-height: 62px;
  margin: 0 0 14px !important;
  padding: 10px 16px !important;
  border: 1px solid rgba(212,169,79,0.16) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(13,12,10,0.96), rgba(13,12,10,0.94)) !important;
  box-shadow: 0 10px 28px rgba(9,7,4,0.28) !important;
  backdrop-filter: blur(16px);
}
.profile-view,
.dashboard-mode #profileView { padding-top: 0 !important; }
.profile-view .profile-tabs,
.dashboard-mode .profile-tabs {
  width: 100%;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
}
.goat-calendar-modern .goat-calendar-friendly-available {
  display: grid !important;
  grid-template-columns: 14px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 1px;
  border-color: rgba(137,255,207,.58) !important;
  background: rgba(8,66,52,.72) !important;
  color: #c8ffe8 !important;
}
.goat-calendar-modern .goat-calendar-friendly-available .goat-calendar-entry-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.goat-calendar-modern .goat-calendar-friendly-available > b {
  grid-column: 2;
  grid-row: 1;
}
.goat-calendar-modern .goat-calendar-friendly-available > small {
  grid-column: 2;
  grid-row: 2;
}
.tc5-reaction-list { gap: 8px; }
.tc5-reaction-card {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px 9px 12px;
}
.tc5-reaction-card > i {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}
.tc5-reaction-card .tc5-reaction-icon-wrap {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.tc5-reaction-card .tc5-reaction-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.tc5-reaction-card .tc5-reaction-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.tc5-reaction-card .tc5-reaction-copy strong,
.tc5-reaction-card .tc5-reaction-copy span,
.tc5-reaction-card .tc5-reaction-copy small {
  grid-column: auto;
  grid-row: auto;
}
.tc5-reaction-card .tc5-reaction-copy strong {
  display: block;
  color: #fff;
  font-size: .83rem;
  line-height: 1.15;
}
.tc5-reaction-card .tc5-reaction-copy span {
  display: block;
  margin-top: 3px;
  color: #ffd475;
  font-size: .56rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc5-reaction-card .tc5-reaction-copy small {
  display: block;
  margin-top: 3px;
  color: rgba(217,209,194,0.58);
  font-size: .53rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc5-reaction-card.success::before { background: rgba(66,225,145,.72); }
.tc5-reaction-card.danger::before { background: rgba(255,91,108,.72); }
.tc5-reaction-card.timed-blue::before { background: rgba(76,57,21,0.72); }
.tc5-reaction-card.timed-yellow::before { background: rgba(255,205,91,.72); }
@media (max-width: 760px) {
  .profile-view .profile-nav-row,
  .dashboard-mode .profile-nav-row {
    top: 62px !important;
    padding: 8px 12px !important;
  }
}


/* THE G.O.A.T 3.0A.50.15 production — revert navigation to 3.0A.50.8, simplify friendly calendar chip, and inline coloured reaction icons */
.profile-view:not(.hidden) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.profile-return-row {
  grid-column: 1;
  grid-row: 1;
  min-height: 62px;
  margin: 0 0 24px;
  padding: 8px 0;
  align-items: center;
}
.dashboard-mode .profile-nav-row,
.profile-nav-row {
  position: sticky !important;
  left: auto !important;
  right: auto !important;
  top: 76px !important;
  z-index: 70;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-content: flex-end;
  min-width: 0;
  min-height: 62px;
  margin: 0 0 24px !important;
  padding: 8px 0 !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.profile-tab-panel { grid-column: 1 / -1; }
.profile-view,
.dashboard-mode #profileView { padding-top: 0 !important; }
.profile-tabs {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(212,169,79,0.16) !important;
  border-radius: 17px !important;
  background: rgba(23,21,15,0.44) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.profile-tabs button { border-radius: 11px; }
.goat-calendar-modern .goat-calendar-friendly-available,
.goat-calendar-day-entry.is-friendly.goat-calendar-friendly-available {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.tc5-reaction-card .tc5-reaction-icon-wrap {
  width: 24px;
  height: 24px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.tc5-reaction-card .tc5-reaction-icon {
  width: 24px;
  height: 24px;
  filter: none !important;
}
@media (max-width: 760px) {
  .profile-view:not(.hidden) {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .profile-return-row,
  .dashboard-mode .profile-nav-row,
  .profile-nav-row {
    grid-column: 1;
    grid-row: auto;
  }
  .dashboard-mode .profile-nav-row,
  .profile-nav-row {
    top: 62px !important;
  }
  .profile-tabs {
    border-radius: 15px !important;
  }
}


/* THE G.O.A.T 3.0A.50.15 production — compact static club navigation */
.profile-view:not(.hidden) {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}
.profile-return-row {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
.dashboard-mode .profile-nav-row,
.profile-view .profile-nav-row,
.profile-nav-row {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: 20 !important;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-content: flex-end;
  width: auto !important;
  min-width: 0;
  min-height: 62px;
  margin: 0 0 24px !important;
  padding: 8px 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.profile-view .profile-tabs,
.dashboard-mode .profile-tabs,
.profile-tabs {
  width: max-content !important;
  max-width: 100%;
  margin-left: auto !important;
  flex: 0 1 auto;
  overflow: visible !important;
}
.profile-tab-panel { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .profile-view:not(.hidden) { grid-template-columns: 1fr; row-gap: 8px; }
  .profile-return-row,
  .dashboard-mode .profile-nav-row,
  .profile-view .profile-nav-row,
  .profile-nav-row { grid-column: 1; grid-row: auto; }
  .profile-view .profile-tabs,
  .dashboard-mode .profile-tabs,
  .profile-tabs { width: 100% !important; margin-left: 0 !important; }
}


/* THE G.O.A.T 3.0A.50.15 production — align tactical right column and add coloured tactic icons */
.tc5-layout { align-items: stretch !important; }
.tc5-right { min-width: 0; display: flex; }
.tc5-pitch-wrap { display: flex; flex-direction: column; height: 100%; width: 100%; }
.tc5-pitch-wrap .tc5-bench { margin-top: auto; }
.tc5-pitch-wrap .tc5-pitch { flex: 0 0 auto; }
.tc5-control-label { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tc5-control-label > span { min-width: 0; }
.tc5-field-icon { width: 18px; height: 18px; object-fit: contain; flex: 0 0 18px; display: block; filter: drop-shadow(0 0 8px rgba(255,255,255,.08)); }
.tc5-control > .tc5-control-label > span { color: rgba(251,247,239,0.84); font-size: .69rem; font-weight: 850; }
.tc5-control.large > .tc5-control-label > span { font-size: .72rem; }
.tc5-modal-tactics .tc5-control > .tc5-control-label { margin-bottom: 6px; }
.tc5-modal-tactics .tc5-control { gap: 6px; }


/* THE G.O.A.T 3.0A.50.15 production — center tactical pitch with equal top and middle spacing */
.tc5-right { min-width: 0; display: flex; }
.tc5-pitch-wrap {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: start;
  width: 100%;
  height: 100%;
}
.tc5-pitch-wrap .tc5-pitch {
  grid-row: 2;
  align-self: start;
  margin-inline: auto;
}
.tc5-pitch-wrap .tc5-bench {
  grid-row: 4;
  margin-top: 0;
}


/* THE G.O.A.T 3.0A.50.15 production — pitch primary-position labels and colourful bottom meta icons */
.tc5-bottom-bar .tc5-meta {
  display: grid;
  gap: 4px;
  align-content: center;
  min-width: 0;
}
.tc5-bottom-bar button.tc5-meta{padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.tc5-bottom-bar button.tc5-meta:hover>b{color:#f0d79b}
.tc5-bottom-bar button.tc5-meta:focus-visible{outline:2px solid rgba(240,215,155,.55);outline-offset:4px;border-radius:4px}
.tc5-bottom-bar .tc5-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(217,209,194,0.78);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tc5-bottom-bar .tc5-meta > b {
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.1;
}
.tc5-meta-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,255,255,.07));
}

/* THE G.O.A.T 3.0A.50.22 — mail workflow, friendly calendar and tactics player access */
.mail-message { position: relative; }
.mail-message-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mail-message-open > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mail-message footer { align-items: center; }
.mail-message-actions,
.mail-detail-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.mail-message-actions { margin-left: auto; }
.mail-message-actions button,
.mail-detail-actions button,
.mail-detail-back {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 8px;
  background: rgba(23,21,15,0.64);
  color: #fbf7ef;
  font: inherit;
  font-size: .58rem;
  font-weight: 900;
  cursor: pointer;
}
.mail-message-actions button.delete,
.mail-detail-actions button.delete {
  border-color: rgba(255,91,111,.34);
  background: rgba(111,24,44,.58);
  color: #ffb0ba;
}
.mail-message-detail {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid rgba(212,169,79,0.23);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(23,21,15,0.76),rgba(13,12,10,0.86));
}
.mail-message-detail > header { display: grid; gap: 5px; }
.mail-message-detail > header > span {
  color: #e5c377;
  font-size: .57rem;
  font-weight: 950;
  letter-spacing: .09em;
}
.mail-message-detail h3 { margin: 0; color: #fff; font-size: 1.15rem; }
.mail-message-detail time { color: rgba(217,209,194,0.58); font-size: .57rem; }
.mail-detail-back { justify-self: start; margin-bottom: 8px; }
.mail-message-detail-body {
  min-height: 120px;
  padding: 15px;
  border: 1px solid rgba(212,169,79,0.15);
  border-radius: 10px;
  background: rgba(13,12,10,0.46);
  color: rgba(251,247,239,0.88);
  font-size: .72rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.mail-message-detail > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mail-message-detail > footer > small { color: rgba(217,209,194,0.58); }
.mail-recipient-control { position: relative; }
.mail-recipient-suggestions {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(212,169,79,0.38);
  border-radius: 10px;
  background: linear-gradient(145deg,#17150f,#0d0c0a);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.mail-recipient-suggestions.hidden { display: none; }
.mail-recipient-suggestions > button {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2px 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mail-recipient-suggestions > button:hover,
.mail-recipient-suggestions > button:focus-visible {
  border-color: rgba(212,169,79,0.4);
  background: rgba(42,34,20,0.58);
  outline: none;
}
.mail-recipient-suggestions strong { font-size: .68rem; }
.mail-recipient-suggestions span { color: rgba(251,247,239,0.72); font-size: .58rem; }
.mail-recipient-suggestions small { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #e5c377; font-size: .53rem; }
.mail-recipient-suggestions > p { margin: 0; padding: 13px; color: rgba(217,209,194,0.62); font-size: .62rem; text-align: center; }

/* Scheduled friendly cards use the calendar cell tone without a second dark-green inner frame. */
.goat-calendar-day-entry.is-friendly,
.goat-calendar-modern .goat-calendar-day-entry.is-friendly {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}
.goat-calendar-upcoming-item.is-friendly {
  border-color: rgba(82,231,173,.46) !important;
  background: linear-gradient(145deg,rgba(15,94,69,.72),rgba(13,12,10,0.86)) !important;
  box-shadow: inset 3px 0 #52e7ad !important;
}
.goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy > b {
  color: #9ff4d1 !important;
}
.goat-calendar-fixture-row.is-friendly .goat-calendar-md-badge {
  border-color: rgba(82,231,173,.4);
  background: rgba(20,111,80,.28);
  color: #8ff2ca;
}
.goat-calendar-fixture-row.is-cup .goat-calendar-md-badge {
  border-color: rgba(212,169,79,0.4);
  background: rgba(42,34,20,0.25);
  color: #d9d1c2;
}
.tc5-player,
.tc5-bench-player { cursor: pointer; }
.tc5-player[draggable="true"],
.tc5-bench-player[draggable="true"] { cursor: grab; }
.tc5-player[draggable="true"]:active,
.tc5-bench-player[draggable="true"]:active { cursor: grabbing; }


/* THE G.O.A.T 3.0A.50.22 — compact mail cards, direct opening, emoji picker and revoke control */
.mail-compose label textarea {
  min-height: 85px;
  height: 85px;
}
.mail-message {
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.mail-message:hover,
.mail-message:focus-visible {
  border-color: rgba(212,169,79,0.48);
  background: linear-gradient(145deg,rgba(23,21,15,0.82),rgba(23,21,15,0.88));
  outline: none;
}
.mail-message header { align-items: flex-start; }
.mail-message-meta,
.mail-detail-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}
.mail-message-meta .delete,
.mail-detail-meta .delete {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(255,91,111,.34);
  border-radius: 7px;
  background: rgba(111,24,44,.58);
  color: #ffb0ba;
  font: inherit;
  font-size: .54rem;
  font-weight: 900;
  cursor: pointer;
}
.mail-message > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mail-message footer { justify-content: flex-start; }
.mail-message footer b { margin-left: auto; }
.mail-emoji-picker {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 8px;
  background: rgba(13,12,10,0.56);
}
.mail-emoji-picker > span {
  color: rgba(217,209,194,0.66);
  font-size: .54rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.mail-emoji-picker > div { display: flex; flex-wrap: wrap; gap: 4px; }
.mail-emoji-picker button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 7px;
  background: rgba(23,21,15,0.66);
  font-size: .94rem;
  cursor: pointer;
}
.mail-emoji-picker button:hover,
.mail-emoji-picker button:focus-visible {
  border-color: rgba(212,169,79,0.62);
  background: rgba(42,34,20,0.78);
  outline: none;
}
@media(max-width:780px){
  .mail-message-meta,.mail-detail-meta{justify-items:start}
  .mail-message header{align-items:flex-start}
  .mail-emoji-picker{grid-template-columns:1fr}
}


/* THE G.O.A.T 3.0A.50.22 — mail density, delete icon, friendly controls and calendar labels */
.mail-message-meta .delete.icon-only,
.mail-detail-meta .delete.icon-only {
  display: grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
}
.mail-message-meta .delete.icon-only img,
.mail-detail-meta .delete.icon-only img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(45%) sepia(45%) saturate(1290%) hue-rotate(314deg) brightness(105%) contrast(101%);
}
.mail-message-footer {
  margin-top: 4px;
  min-height: 16px;
  gap: 6px !important;
  align-items: center;
}
.mail-message-handle {
  font-size: .42rem !important;
  line-height: 1;
}
.mail-message-status,
.mail-message footer b {
  padding: 2px 6px !important;
  font-size: .42rem !important;
  line-height: 1.05;
}
.mail-message footer { padding-top: 0; }


/* THE G.O.A.T 3.0A.50.22 — three-column Next Match, club logos and friendly status chips */
.goat-calendar-modern .goat-calendar-next-match-shell {
  display: grid !important;
  grid-template-columns: minmax(250px, 1.35fr) minmax(145px, .72fr) minmax(170px, .9fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
}
.goat-calendar-modern .goat-calendar-next-match-clubs,
.goat-calendar-modern .goat-calendar-next-match-datetime,
.goat-calendar-modern .goat-calendar-next-match-info {
  min-width: 0;
  align-content: center;
  padding: 3px 20px;
}
/* The date is the longest single line in the row; letting it wrap is what
   stops it reaching the divider on very narrow layouts. */
.goat-calendar-modern .goat-calendar-next-match-datetime > strong{
  overflow-wrap:anywhere;
  line-height:1.15;
}
.goat-calendar-modern .goat-calendar-next-match-datetime,
.goat-calendar-modern .goat-calendar-next-match-info {
  border-left: 1px solid rgba(255,255,255,.09);
}
.goat-calendar-next-match-datetime {
  display: grid;
  justify-items: start;
  gap: 5px;
}
.goat-calendar-next-match-datetime > span,
.goat-calendar-next-match-info > span:not(.hidden) {
  color: rgba(229,195,119,0.68);
  font-size: .52rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.goat-calendar-next-match-datetime > strong {
  color: #fff;
  font-family: var(--display);
  font-size: .91rem;
  line-height: 1.15;
}
.goat-calendar-next-match-datetime > small {
  color: var(--accent-cyan);
  font-size: 1.05rem;
  font-weight: 950;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  display: grid;
  justify-items: start;
  gap: 6px !important;
  padding-left: 16px !important;
}
.goat-calendar-modern .goat-calendar-club-mark.has-logo {
  overflow: hidden;
  padding: 3px;
  background: linear-gradient(145deg,rgba(42,34,20,0.84),rgba(23,21,15,0.92));
}
.goat-calendar-modern .goat-calendar-club-mark.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
@media(max-width:960px){
  .goat-calendar-modern .goat-calendar-next-match-shell {
    grid-template-columns: 1fr 1fr !important;
  }
  .goat-calendar-modern .goat-calendar-next-match-clubs { grid-column: 1 / -1; padding-bottom: 12px; }
  .goat-calendar-modern .goat-calendar-next-match-datetime { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); padding-top: 12px; }
  .goat-calendar-modern .goat-calendar-next-match-info { border-top: 1px solid rgba(255,255,255,.09); padding-top: 12px; }
}
@media(max-width:620px){
  .goat-calendar-modern .goat-calendar-next-match-shell { grid-template-columns: 1fr !important; }
  .goat-calendar-modern .goat-calendar-next-match-datetime,
  .goat-calendar-modern .goat-calendar-next-match-info { border-left: 0; border-top: 1px solid rgba(255,255,255,.09); }
}

/* ========================================================================== */
/* User transfer market — physical collector vault                            */
/* ========================================================================== */
#profileMarketPanel .goat-luxury-page{max-width:none;min-height:1000px;padding-inline:clamp(18px,2.35vw,48px);border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important;backdrop-filter:none!important}
#profileMarketPanel .goat-luxury-header{max-width:1440px;margin-inline:auto;padding-bottom:14px}
#profileMarketPanel .goat-luxury-header h2{font-size:clamp(1.55rem,2.4vw,2.35rem)}
#profileMarketPanel .goat-luxury-header>div>p:last-child{max-width:720px;color:rgba(231,226,211,.62)}
#profileMarketPanel>.goat-luxury-page.section-frame::before{content:none!important;display:none!important}
body.market-management-page .club-hub-crumb{display:none!important}
#marketBody{max-width:1540px;margin:0 auto;min-height:420px}
.market-vault{position:relative;padding:0 0 38px;color:#eee9dc}
.market-display-stack{width:min(100%,1540px);margin:0 auto;padding-top:clamp(42px,6vh,64px);box-sizing:border-box}
.market-utility-row{position:fixed;z-index:18;top:24px;left:48px;right:48px;display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0;padding:0;background:transparent;pointer-events:none}
.market-utility-row>*{pointer-events:auto}
.market-page-back{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:0 15px;border:1px solid rgba(212,169,79,.26);border-radius:999px;background:rgba(9,9,8,.86);color:#ead7a6;box-shadow:0 8px 20px rgba(0,0,0,.20);font:800 .63rem/1 var(--body);letter-spacing:.04em;cursor:pointer}
.market-page-back span{font:500 1.1rem/1 var(--body)}.market-page-back strong{font:800 .63rem/1 var(--body);letter-spacing:.12em}
.market-page-back:hover,.market-page-back:focus-visible{border-color:rgba(235,203,127,.64);background:#211b12;outline:2px solid rgba(212,169,79,.20);outline-offset:2px}
.market-utility-row p{display:grid;gap:3px;min-width:104px;margin:0;padding:8px 11px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(10,11,10,.84)}
.market-utility-row .market-cash-chip{min-width:142px;justify-items:end;text-align:right;border-color:rgba(212,169,79,.25);background:rgba(20,17,11,.91)}
.market-utility-row p small{color:rgba(235,231,218,.47);font:750 .52rem/1 var(--body);letter-spacing:.09em}
.market-utility-row p b{color:#f2dfae;font:800 .78rem/1.2 var(--body)}
.market-toolbar label>span,.market-card-back-inner>header>span,.market-seller-panel>header span,.market-offers-drawer header span{color:#c8a45b;font:800 .64rem/1.2 var(--body);letter-spacing:.16em}
.market-toolbar{display:grid;grid-template-columns:auto minmax(240px,1fr);gap:4px 7px;width:100%;margin:24px 0 0;padding:5px 8px;box-sizing:border-box;border:1px solid rgba(255,255,255,.07);border-radius:10px;background:rgba(10,11,11,.92);box-shadow:0 10px 22px rgba(0,0,0,.22)}
.market-type-switch,.market-scope-switch{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.market-type-switch button,.market-scope-switch button,.market-search button,.market-empty button{min-height:24px;padding:0 9px;border:1px solid rgba(212,169,79,.22);border-radius:6px;background:#151514;color:#d7d0bf;font:780 .52rem/1 var(--body);letter-spacing:.05em;cursor:pointer}
.market-type-switch button.active,.market-scope-switch button.active{border-color:rgba(212,169,79,.66);background:#2b2417;color:#f1d995}
.market-scope-switch button:last-child{margin-left:auto;border-color:rgba(255,255,255,.10);color:rgba(236,232,218,.58)}
.market-search{display:flex;min-width:0}
.market-search input{width:100%;min-width:0;height:24px;padding:0 8px;border:1px solid rgba(255,255,255,.10);border-radius:6px 0 0 6px;background:#080909;color:#f1eee4;font:600 .58rem/1 var(--body);outline:none}
.market-search button{border-radius:0 8px 8px 0;border-left:0;color:#e4c675}
.market-filter-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px 6px}
.market-filter-row label{display:grid;gap:1px;min-width:0}
.market-filter-row select,.market-filter-row input{width:100%;height:24px;box-sizing:border-box;padding:0 7px;border:1px solid rgba(255,255,255,.09);border-radius:6px;background:#0a0b0b;color:#e6e1d4;font:650 .54rem/1 var(--body);outline:none}
.market-filter-row select:focus,.market-filter-row input:focus,.market-search input:focus{border-color:rgba(212,169,79,.66);box-shadow:0 0 0 2px rgba(212,169,79,.10)}
.market-range>span:last-child{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.market-attribute-filter>span:last-child{display:grid;grid-template-columns:minmax(0,1fr) 66px;gap:6px}
.market-scope-switch{grid-column:1/-1}
.market-shelves{display:grid;gap:0;padding:0;background:transparent;box-shadow:none}
.market-shelves.is-market-empty{min-height:var(--market-shelf-reserved-height,330px)}
.market-shelves.is-market-empty>.market-empty{min-height:0}
.market-shelf{position:relative;min-width:0;padding:0}
.market-shelf-track{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:end;gap:clamp(14px,1vw,20px);width:100%;max-width:1540px;min-height:282px;margin-inline:auto;padding:0;overflow:visible}
.market-shelf-track::-webkit-scrollbar{height:6px}.market-shelf-track::-webkit-scrollbar-track{background:#111}.market-shelf-track::-webkit-scrollbar-thumb{background:#5c4a29;border-radius:20px}
.market-shelf-card{position:relative;z-index:2;display:grid;align-content:end;gap:5px;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;cursor:pointer;transition:filter 190ms ease}
.market-shelf-card:hover,.market-shelf-card:focus-visible{z-index:3;filter:none}
.market-shelf-card:focus-visible{outline:2px solid #d4a94f;outline-offset:5px;border-radius:8px}
.market-shelf-card-visual{display:block;width:100%;padding:0;border:0;background:transparent;color:inherit;filter:none;transition:opacity 140ms ease,transform 180ms ease;cursor:pointer}
.market-shelf-card-visual:hover,.market-shelf-card-visual:focus-visible{transform:translateY(-5px);filter:none;outline:none}
.market-shelf-card :is(.footballer-card-shell,.footballer-card,.footballer-card-template){box-shadow:none!important;filter:none!important}
.market-card-origin-active .market-shelf-card-visual{opacity:.12}
.player-dossier-actions [data-player-market-open],.player-dossier-actions .market-listed{border-color:rgba(212,169,79,.55)!important;background:#2b2417!important;color:#eed694!important}
.player-dossier-actions .market-locked{border-color:rgba(255,255,255,.10)!important;background:#171818!important;color:rgba(234,228,212,.52)!important;font-size:.54rem!important}
.market-footballer-card{width:100%!important;max-width:none!important}
.market-card-summary{position:relative;z-index:5;display:grid;gap:5px;width:100%;margin-top:1px;padding:8px 9px;box-sizing:border-box;border:1px solid rgba(212,169,79,.22);border-radius:7px;background:rgba(10,10,8,.91);color:inherit;box-shadow:0 7px 16px rgba(0,0,0,.24)}
.market-card-summary>span{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.market-card-summary small{overflow:hidden;color:rgba(224,211,178,.54);font:750 clamp(.41rem,.43vw,.48rem)/1 var(--body);letter-spacing:.055em;text-overflow:ellipsis;white-space:nowrap}
.market-card-summary strong{overflow:hidden;color:#f2ddb0;font:800 clamp(.55rem,.56vw,.67rem)/1.1 var(--body);font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}
.market-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin:58px auto 0;color:#d8c99f}
.market-pagination button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:112px;min-height:36px;padding:0 13px;border:1px solid rgba(212,169,79,.28);border-radius:8px;background:rgba(15,13,10,.9);color:#e6d29b;font:750 .57rem/1 var(--body);letter-spacing:.07em;cursor:pointer;transition:background 180ms ease,border-color 180ms ease,transform 180ms ease}
.market-pagination button span{font-size:.95rem;line-height:1}.market-pagination button:hover:not(:disabled),.market-pagination button:focus-visible:not(:disabled){border-color:rgba(236,205,131,.68);background:#2a2215;outline:2px solid rgba(212,169,79,.18);outline-offset:2px;transform:translateY(-1px)}
.market-pagination button:active:not(:disabled){transform:translateY(1px)}.market-pagination button:disabled{opacity:.32;cursor:default}
.market-pagination p{display:flex;align-items:baseline;justify-content:center;gap:7px;min-width:112px;margin:0;color:rgba(221,211,188,.55);font:700 .52rem/1 var(--body);letter-spacing:.08em}
.market-pagination p strong,.market-pagination p b{color:#f0d89e;font-size:.72rem;font-variant-numeric:tabular-nums}.market-pagination p i{color:rgba(221,211,188,.38);font-style:normal}
.market-interaction-hint{margin:14px 0 0;text-align:center;color:rgba(232,227,212,.38);font:650 .65rem/1.4 var(--body);letter-spacing:.035em}
.market-empty,.market-loading{display:grid;place-items:center;align-content:center;gap:9px;min-height:330px;padding:32px;text-align:center;color:rgba(235,230,215,.55)}
.market-empty strong,.market-loading strong{color:#e7deca;font:750 1.05rem/1.2 var(--display)}
.market-empty span{max-width:440px;font:600 .76rem/1.5 var(--body)}
.market-loading i{width:28px;height:28px;border:2px solid rgba(212,169,79,.18);border-top-color:#d4a94f;border-radius:50%;animation:market-loading-spin 900ms linear infinite}
@keyframes market-loading-spin{to{transform:rotate(360deg)}}

body.market-card-open{overflow:hidden}
body.market-player-view-open #profileMarketPanel{visibility:hidden}
.market-focus-overlay{position:fixed;z-index:10040;inset:0;background:rgba(1,2,2,0);transition:background 420ms ease;perspective:1600px}
.market-focus-overlay.open{background:rgba(1,2,2,.78)}
.market-focus-close{position:fixed;z-index:4;top:max(14px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(229,200,125,.38);border-radius:50%;background:#111;color:#f0dcaa;font:400 1.7rem/1 var(--body);cursor:pointer;opacity:0;transition:opacity 220ms ease,background 160ms ease}
.market-focus-overlay.open .market-focus-close{opacity:1}.market-focus-close:hover{background:#2b2418}
.market-focus-card{position:fixed;z-index:2;opacity:.72;transform:translate3d(var(--market-origin-x,0),var(--market-origin-y,0),0) scale(var(--market-origin-scale-x,1),var(--market-origin-scale-y,1)) rotateX(3deg);transform-origin:center;transform-style:preserve-3d;filter:brightness(.88);transition:transform 460ms cubic-bezier(.16,1,.3,1),opacity 300ms ease,filter 380ms ease;outline:none;will-change:transform}
.market-focus-card.is-tilting{transition:transform .1s linear,opacity 300ms ease,filter 180ms ease}
.market-focus-card.market-focus-open{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0);filter:brightness(1)}
.market-focus-card-inner{position:absolute;inset:0;transform-style:preserve-3d;transition:transform 540ms cubic-bezier(.3,.7,.22,1)}
.market-focus-card.is-flipped .market-focus-card-inner{transform:rotateY(180deg)}
.market-focus-face{position:absolute;inset:0;display:grid;place-items:center;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.market-focus-front{padding:0;box-sizing:border-box;cursor:pointer;pointer-events:auto;filter:none}
.market-focus-front::after{content:none;display:none}
.market-focus-front .market-focus-footballer-card{width:100%!important;max-width:none!important}
.market-focus-flip-hint{position:absolute;z-index:9;bottom:12px;left:50%;transform:translateX(-50%);padding:6px 10px;border-radius:20px;background:rgba(5,6,6,.78);color:rgba(239,224,186,.72);font:800 .54rem/1 var(--body);letter-spacing:.13em;white-space:nowrap}
.market-focus-back{display:block;width:100%;min-width:100%;max-width:100%;overflow:visible;box-sizing:border-box;transform:rotateY(180deg);background:transparent;overscroll-behavior:contain;pointer-events:none;filter:none}
.market-focus-card.is-flipped .market-focus-front{pointer-events:none}
.market-focus-card.is-flipped .market-focus-back{pointer-events:auto}
.market-card-back-inner{width:100%;min-width:100%;max-width:100%;height:100%;min-height:100%;padding:27px 25px 21px;overflow-y:auto;box-sizing:border-box;border:1px solid rgba(212,169,79,.36);border-radius:28px;background:radial-gradient(circle at 50% 0,rgba(212,169,79,.13),transparent 38%),linear-gradient(155deg,#17140f,#090a09 62%,#10110f);box-shadow:inset 0 0 0 1px rgba(255,255,255,.035);scrollbar-width:thin;scrollbar-color:#6d552d #10110f}
.market-card-back-inner.free-agent{background:radial-gradient(circle at 50% 0,rgba(215,204,160,.10),transparent 38%),#0c0e0e}
.market-card-back-inner>header{display:grid;justify-items:center;gap:4px;padding:0 8px 15px;text-align:center}
.market-card-back-inner>header h3{margin:0;color:#f1ebdc;font:800 clamp(1.2rem,3vw,1.65rem)/1.05 var(--display)}
.market-card-back-inner>header small{color:rgba(244,240,228,.78);font:650 .68rem/1.2 var(--body)}
.market-card-club{display:flex;align-items:center;justify-content:center;gap:7px}.market-card-club i{display:grid;width:22px;height:22px;overflow:hidden;place-items:center;border-radius:50%;background:#202321;color:#d5b66d;font:800 .52rem/1 var(--body);font-style:normal}.market-card-club img{width:100%;height:100%;object-fit:contain}.market-card-club b{font:inherit}
.market-card-back-facts{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:11px}
.market-card-back-facts p{display:grid;gap:4px;min-width:0;margin:0;padding:9px;border-radius:8px;background:#141616}
.market-card-back-facts p span{color:#eee7d5;font:730 .58rem/1 var(--body);letter-spacing:.04em}
.market-card-back-facts p strong{overflow:hidden;color:#fffaf0;font:800 .76rem/1.25 var(--body);text-overflow:ellipsis}
.market-card-profile-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:42px;margin:0 0 10px;padding:0 12px;border:1px solid rgba(212,169,79,.42);border-radius:8px;background:linear-gradient(180deg,#2d2416,#1a150e);color:#ead49a;cursor:pointer;transition:border-color 180ms ease,background 180ms ease,transform 180ms ease}
.market-card-profile-link span{font:750 .55rem/1 var(--body);letter-spacing:.09em}.market-card-profile-link strong{font:850 .66rem/1 var(--body);letter-spacing:.055em}
.market-card-profile-link:hover,.market-card-profile-link:focus-visible{border-color:rgba(240,215,155,.76);background:linear-gradient(180deg,#3a2e1b,#21190f);outline:2px solid rgba(240,215,155,.20);outline-offset:2px;transform:translateY(-1px)}
.market-card-profile-link:active{transform:translateY(1px)}
.market-card-offer-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:11px;border:1px solid rgba(212,169,79,.13);border-radius:10px;background:#101212}
.market-card-offer-form label{display:grid;gap:5px}.market-card-offer-form label:first-child:last-of-type{grid-column:1/-1}
.market-card-offer-form label span{color:#eee7d5;font:750 .55rem/1 var(--body);letter-spacing:.06em}
.market-card-offer-form input,.market-card-offer-form select{width:100%;height:38px;box-sizing:border-box;padding:0 9px;border:1px solid rgba(255,255,255,.11);border-radius:7px;background:#090a0a;color:#f1ede4;font:700 .76rem/1 var(--body);outline:none}
.market-card-offer-form label small{color:rgba(244,240,228,.72);font:600 .53rem/1.2 var(--body)}
.market-card-offer-form>button,.market-seller-panel button,.market-offers-drawer article button{grid-column:1/-1;min-height:38px;padding:0 12px;border:1px solid #b98b37;border-radius:8px;background:#d1aa5a;color:#171207;font:850 .64rem/1 var(--body);letter-spacing:.08em;cursor:pointer}
.market-card-offer-form>button:disabled{opacity:.42;cursor:not-allowed}
.market-reserve-note,.market-card-warning{grid-column:1/-1;margin:0;padding:7px 8px;border-radius:6px;background:#241d11;color:#e6c775;font:600 .57rem/1.35 var(--body)}
.market-card-warning{background:#261414;color:#dda29b}
.market-card-terms,.market-binding-copy{display:block;margin:10px 2px 0;color:rgba(244,240,228,.74);font:600 .57rem/1.45 var(--body)}
.market-seller-panel{display:grid;gap:8px;width:100%;min-width:0;padding:11px;box-sizing:border-box;border:1px solid rgba(212,169,79,.14);border-radius:10px;background:#101212}
.market-seller-panel>header{display:flex;align-items:center;justify-content:space-between}.market-seller-panel>header strong{color:#f0d995;font:800 .66rem/1 var(--body)}
.market-top-offers{display:grid;gap:6px;min-width:0}.market-top-offers>p{margin:6px 0;color:rgba(235,229,214,.5);font:650 .65rem/1.3 var(--body);text-align:center}
.market-top-offers article{display:grid;grid-template-columns:1fr auto;gap:2px 7px;padding:7px;border-radius:7px;background:#171919}
.market-top-offers article span{color:#e4ddca;font:700 .61rem/1.2 var(--body)}.market-top-offers article b{color:#f0d99e;font:800 .63rem/1 var(--body)}.market-top-offers article small{color:rgba(230,224,208,.45);font:600 .52rem/1.25 var(--body)}
.market-offer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;grid-column:1/-1;margin-top:4px}
.market-offer-actions button{grid-column:auto!important;grid-row:auto!important;min-height:26px!important;margin:0!important;padding:0 7px!important;font-size:.5rem!important}
.market-offer-actions button:only-child{grid-column:1/-1!important}
.market-offer-actions .market-reject-offer{border-color:#a73f38;background:#651f1d;color:#fff1ed}
.market-offer-actions .market-reject-offer:hover,.market-offer-actions .market-reject-offer:focus-visible{border-color:#df6c62;background:#812a26;outline:2px solid rgba(223,108,98,.2);outline-offset:2px}
.market-seller-panel .market-cancel-listing{position:relative;isolation:isolate;overflow:hidden;border-color:rgba(190,83,75,.55);background:#291515;color:#e3aaa4;touch-action:none}
.market-seller-panel .market-cancel-listing::before{content:"";position:absolute;z-index:-1;inset:0;width:var(--hold-progress,0%);background:#8a3e34;transition:width 60ms linear;pointer-events:none}
.market-seller-panel .market-cancel-listing:disabled{opacity:.42;cursor:not-allowed}

.market-offers-drawer{position:fixed;z-index:10043;top:0;right:0;width:min(420px,92vw);height:100dvh;box-sizing:border-box;padding:20px;background:#0d0f0f;box-shadow:-24px 0 55px rgba(0,0,0,.5);transform:translateX(102%);transition:transform 280ms ease;overflow-y:auto}
.market-offers-drawer.open{transform:translateX(0)}
.market-offers-drawer>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.market-offers-drawer>header>div{display:grid;gap:5px}.market-offers-drawer header strong{color:#eee7d6;font:800 1.05rem/1 var(--display)}
.market-offers-drawer header button{width:36px;height:36px;border:1px solid rgba(212,169,79,.24);border-radius:50%;background:#171818;color:#ead49a;font-size:1.25rem;cursor:pointer}
.market-offers-drawer>div{display:grid;gap:8px}.market-offers-drawer article{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:12px;border-radius:9px;background:#151717}.market-offers-drawer article span{font:700 .7rem/1.2 var(--body)}.market-offers-drawer article b{color:#f0d796;font:800 .76rem/1 var(--body)}.market-offers-drawer article small{grid-column:1/-1;color:rgba(234,228,212,.5);font:600 .6rem/1.4 var(--body)}.market-offers-drawer article>.market-offer-actions{grid-column:1/-1}

@media(max-width:1040px){
  .market-utility-row{position:static;inset:auto;margin:0 0 12px}
  .market-filter-row{grid-template-columns:repeat(3,minmax(140px,1fr))}
  .market-utility-row p{min-width:96px}
  .market-shelf-track{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:150px;justify-content:start;overflow-x:auto;overflow-y:visible;padding-bottom:14px;scrollbar-width:thin;scrollbar-color:#5c4a29 #111}
}
@media(min-width:1041px) and (max-width:1550px){.market-utility-row{left:260px;right:260px}}
@media(max-width:720px){
  #profileMarketPanel .goat-luxury-page{padding-inline:9px}
  #profileMarketPanel .goat-luxury-header{padding-inline:8px}
  .market-utility-row{align-items:center}.market-utility-row p{min-width:0;padding:8px}
  .market-toolbar{grid-template-columns:1fr;padding:11px}.market-search,.market-filter-row,.market-scope-switch{grid-column:1}.market-filter-row{grid-template-columns:1fr 1fr}.market-scope-switch button:last-child{margin-left:0}
  .market-shelves{margin-inline:-2px;padding-inline:8px}.market-shelf-track{grid-auto-columns:148px;min-height:284px;gap:11px;padding-inline:7px}
  .market-focus-card{max-width:calc(100vw - 20px)}
  .market-card-back-inner{padding:21px 16px 17px}.market-card-back-facts{gap:6px}.market-card-back-facts p{padding:8px 7px}
}
@media(max-width:430px){
  .market-page-back{padding-inline:11px}.market-page-back strong{display:none}.market-utility-row p small{font-size:.45rem}.market-utility-row p b{font-size:.63rem}
  .market-filter-row{grid-template-columns:1fr}.market-type-switch,.market-scope-switch{display:grid;grid-template-columns:repeat(3,1fr)}.market-type-switch button,.market-scope-switch button{padding-inline:6px;font-size:.58rem}.market-scope-switch button:last-child{grid-column:1/-1}
  .market-focus-front{padding:12px}.market-focus-flip-hint{bottom:8px}.market-card-offer-form{grid-template-columns:1fr}.market-card-offer-form>*{grid-column:1!important}.market-card-back-inner>header{padding-bottom:10px}.market-card-back-facts p strong{font-size:.62rem}
}
@media(prefers-reduced-motion:reduce){
  .market-loading i{animation:none}.market-shelf-card,.market-focus-overlay,.market-focus-card,.market-focus-card-inner,.market-offers-drawer{transition-duration:1ms!important}
}


/* THE G.O.A.T 3.0A.50.22 — larger Next Match clubs, fixture ball badge, compact mail detail */
.goat-calendar-modern .goat-calendar-next-match-shell {
  grid-template-columns: minmax(290px,1.6fr) minmax(145px,.72fr) minmax(200px,1.08fr) !important;
  align-items: center !important;
}
.goat-calendar-modern .goat-calendar-next-match-clubs,
.goat-calendar-modern .goat-calendar-next-match-datetime,
.goat-calendar-modern .goat-calendar-next-match-info {
  padding: 6px 18px !important;
}
.goat-calendar-modern .goat-calendar-team-block { gap: 10px !important; }
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 72px !important;
  height: 72px !important;
  font-size: 1.05rem !important;
}
.goat-calendar-modern .goat-calendar-team-block strong {
  max-width: 150px !important;
  font-size: 1.12rem !important;
  line-height: 1.1 !important;
}
.goat-calendar-modern .goat-calendar-next-vs { font-size: clamp(1.85rem, 2.9vw, 2.85rem) !important; }
.goat-calendar-next-match-datetime > span,
.goat-calendar-next-match-info > span:not(.hidden) { display: none !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime { gap: 8px !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime > strong { font-size: 1rem !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime > small { font-size: 1.28rem !important; }
.goat-calendar-modern .goat-calendar-next-match-info { gap: 8px !important; padding-left: 18px !important; }
.goat-calendar-modern .goat-calendar-detail-line { gap: 9px !important; min-width: 0; }
.goat-calendar-modern .goat-calendar-detail-line small {
  font-size: .72rem !important;
  line-height: 1.1;
  letter-spacing: .04em !important;
  white-space: nowrap;
}
.goat-calendar-md-icon { width: 14px; height: 14px; object-fit: contain; display: block; filter: brightness(0) saturate(100%) invert(78%) sepia(17%) saturate(1126%) hue-rotate(95deg) brightness(102%) contrast(91%); }
.goat-calendar-fixture-row.is-friendly .goat-calendar-md-badge { gap: 3px; }
.goat-calendar-fixture-row.is-friendly .goat-calendar-md-badge b { font-size: .78rem; }
.mail-message-detail {
  gap: 10px !important;
  max-width: 820px;
  padding: 16px 18px !important;
}
.mail-message-detail > header { display: grid; gap: 8px !important; }
.mail-detail-back { justify-self: start; margin-bottom: 2px !important; }
.mail-detail-topline, .mail-detail-subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mail-detail-topline > span {
  color: #e5c377;
  font-size: .57rem;
  font-weight: 950;
  letter-spacing: .09em;
}
.mail-detail-topline time { color: rgba(217,209,194,0.58); font-size: .57rem; white-space: nowrap; }
.mail-detail-subject-row h3 { margin: 0; }
.mail-detail-meta { display: flex !important; align-items: center; justify-content: flex-end; gap: 8px; }
.mail-message-detail-body { min-height: 96px !important; padding: 14px !important; }
.mail-message-detail > footer { padding-top: 4px; border-top: 1px solid rgba(212,169,79,0.16); }
@media(max-width:960px){
  .goat-calendar-modern .goat-calendar-next-match-shell { grid-template-columns: 1fr 1fr !important; }
  .goat-calendar-modern .goat-calendar-next-match-clubs { grid-column: 1 / -1; padding-bottom: 10px !important; }
  .goat-calendar-modern .goat-calendar-next-match-datetime,
  .goat-calendar-modern .goat-calendar-next-match-info { padding-top: 12px !important; }
}
@media(max-width:700px){
  .mail-detail-topline, .mail-detail-subject-row { align-items: flex-start; flex-direction: column; }
  .mail-detail-meta { width: 100%; justify-content: flex-start; }
}

/* Tablet Home folders: preserve the 4:5 artwork system at 75% scale. */
.office-live-dashboard .office-squad-folder,
.office-live-dashboard.has-upgrades .office-squad-folder,
.office-live-dashboard:not(.has-upgrades) .office-squad-folder,
.office-live-dashboard.is-compact-layout .office-squad-folder,
.office-live-dashboard.is-compact-layout:not(.has-upgrades) .office-squad-folder,
.office-live-dashboard.is-low-layout .office-squad-folder{
  height:min(66%,300px)!important;
  max-height:300px!important;
}

/* Sponsor selection: pricing-card composition in the G.O.A.T. visual system. */
#profileSponsorPanel .sponsor-pricing-page{width:min(100%,1180px);margin:0 auto;padding:8px 2px 24px;color:#f5efe5}
#profileSponsorPanel .sponsor-pricing-hero{display:grid;justify-items:center;gap:8px;padding:10px 18px 30px;text-align:center}
#profileSponsorPanel .sponsor-pricing-hero>span{color:#c9a453;font-size:11px;font-weight:850;letter-spacing:.14em}
#profileSponsorPanel .sponsor-pricing-hero h3{margin:0;color:#fbf7ef;font-family:var(--display);font-size:clamp(28px,3vw,42px);font-weight:780;letter-spacing:-.035em;line-height:1.04}
#profileSponsorPanel .sponsor-pricing-hero p{max-width:630px;margin:0;color:#9e9485;font-size:14px;line-height:1.55}
#profileSponsorPanel .sponsor-period-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin-top:10px;padding:4px;border:1px solid rgba(212,169,79,.25);border-radius:999px;background:#0c0b09}
#profileSponsorPanel .sponsor-period-switch button{min-width:100px;min-height:37px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#908575;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
#profileSponsorPanel .sponsor-period-switch button.active{background:linear-gradient(180deg,#4b3715,#2d200d);color:#f5d994;box-shadow:inset 0 0 0 1px rgba(240,215,155,.23),0 5px 14px rgba(0,0,0,.24)}
#profileSponsorPanel .sponsor-period-switch button:focus-visible{outline:2px solid rgba(240,215,155,.58);outline-offset:2px}
#profileSponsorPanel .sponsor-pricing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
#profileSponsorPanel .sponsor-plan-card{position:relative;display:flex;flex-direction:column;min-width:0;min-height:530px;padding:26px 24px 22px;border:1px solid rgba(212,169,79,.20);border-radius:18px;background:linear-gradient(155deg,#1a1711 0%,#0e0d0a 74%);box-shadow:0 18px 42px rgba(0,0,0,.22);animation:sponsor-card-arrive .38s ease both;transition:transform .18s ease,border-color .18s ease,background .18s ease}
#profileSponsorPanel .sponsor-plan-card:nth-child(2){animation-delay:.05s}
#profileSponsorPanel .sponsor-plan-card:nth-child(3){animation-delay:.1s}
#profileSponsorPanel .sponsor-plan-card:hover{transform:translateY(-3px);border-color:rgba(212,169,79,.43);background:linear-gradient(155deg,#201b12,#100e0a 74%)}
#profileSponsorPanel .sponsor-plan-card.featured{border-color:rgba(229,195,119,.62);background:linear-gradient(155deg,#241d10,#100e09 72%);box-shadow:0 0 0 1px rgba(212,169,79,.08),0 22px 50px rgba(0,0,0,.31)}
#profileSponsorPanel .sponsor-plan-recommended{position:absolute;top:19px;right:18px;padding:5px 8px;border:1px solid rgba(229,195,119,.37);border-radius:999px;background:rgba(212,169,79,.10);color:#e8c978;font-size:9px;font-style:normal;font-weight:900;letter-spacing:.085em}
#profileSponsorPanel .sponsor-plan-monogram{display:grid;place-items:center;width:52px;height:52px;margin-bottom:18px;border:1px solid rgba(212,169,79,.30);border-radius:14px 7px 14px 7px;background:linear-gradient(145deg,#3b2b11,#171108);color:#f0d79b;font-family:var(--display);font-size:16px;font-weight:900;letter-spacing:.04em}
#profileSponsorPanel .sponsor-plan-monogram.safe{background:linear-gradient(145deg,#28251d,#11100d);color:#e4d8bc}
#profileSponsorPanel .sponsor-plan-monogram.performance{background:linear-gradient(145deg,#452a13,#181008);color:#efc178}
#profileSponsorPanel .sponsor-plan-type{color:#bd9644;font-size:10px;font-weight:900;letter-spacing:.12em}
#profileSponsorPanel .sponsor-plan-card h4{margin:7px 0 7px;color:#fbf7ef;font-family:var(--body);font-size:23px;font-weight:760;letter-spacing:-.025em;line-height:1.12}
#profileSponsorPanel .sponsor-plan-description{min-height:64px;margin:0;color:#a1988b;font-size:13px;line-height:1.58}
#profileSponsorPanel .sponsor-plan-price{display:flex;align-items:baseline;gap:7px;margin-top:21px;padding-top:19px;border-top:1px solid rgba(212,169,79,.15)}
#profileSponsorPanel .sponsor-plan-price strong{color:#fffaf0;font-family:var(--display);font-size:clamp(28px,2.75vw,39px);font-weight:800;letter-spacing:-.045em;line-height:1}
#profileSponsorPanel .sponsor-plan-price>span{color:#ba9a5b;font-size:12px;font-weight:750}
#profileSponsorPanel .sponsor-plan-cadence{min-height:31px;margin-top:7px;color:#786f62;font-size:10px;line-height:1.4}
#profileSponsorPanel .sponsor-plan-card ul{display:grid;gap:11px;margin:19px 0 24px;padding:17px 0 0;border-top:1px solid rgba(212,169,79,.13);list-style:none}
#profileSponsorPanel .sponsor-plan-card li{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px;color:#cfc6b8;font-size:12px;line-height:1.42}
#profileSponsorPanel .sponsor-plan-card li .mail-ui-icon{width:17px;height:17px;margin-top:0;color:#cba452;stroke-width:2.2}
#profileSponsorPanel .sponsor-plan-card>button{width:100%;min-height:46px;margin-top:auto;border:1px solid rgba(229,195,119,.47);border-radius:10px;background:linear-gradient(180deg,#4a3613,#2b1e0b);color:#fff4da;font:inherit;font-size:12px;font-weight:900;letter-spacing:.045em;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .15s ease}
#profileSponsorPanel .sponsor-plan-card.featured>button{border-color:rgba(240,215,155,.65);background:linear-gradient(180deg,#6a4d1a,#3d2b0e)}
#profileSponsorPanel .sponsor-plan-card>button:hover{border-color:rgba(240,215,155,.80);background:linear-gradient(180deg,#75551c,#45300e);transform:translateY(-1px)}
#profileSponsorPanel .sponsor-plan-card>button:focus-visible{outline:2px solid rgba(240,215,155,.60);outline-offset:2px}
#profileSponsorPanel .sponsor-pricing-note{padding:18px 12px 0;color:#746c61;font-size:11px;text-align:center}
#profileSponsorPanel .sponsor-active-agreement{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:18px;width:min(100%,880px);margin:0 auto;padding:27px;border:1px solid rgba(212,169,79,.31);border-radius:18px;background:linear-gradient(155deg,#1d1911,#0d0c09);box-shadow:0 20px 48px rgba(0,0,0,.25)}
#profileSponsorPanel .sponsor-active-agreement>div:nth-child(2)>span{color:#c9a453;font-size:10px;font-weight:900;letter-spacing:.11em}
#profileSponsorPanel .sponsor-active-agreement h4{margin:5px 0;color:#fbf7ef;font-size:25px}
#profileSponsorPanel .sponsor-active-agreement p{margin:0;color:#9f9688;font-size:13px}
#profileSponsorPanel .sponsor-active-agreement>b{padding:5px 9px;border:1px solid rgba(83,160,109,.35);border-radius:999px;background:rgba(38,104,63,.18);color:#99c9a8;font-size:9px;letter-spacing:.08em}
#profileSponsorPanel .sponsor-active-agreement>section{grid-column:2/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:7px}
#profileSponsorPanel .sponsor-active-agreement>section p{display:grid;gap:5px;padding:12px;border:1px solid rgba(212,169,79,.12);border-radius:9px;background:#0c0b09}
#profileSponsorPanel .sponsor-active-agreement>section span{color:#827969;font-size:10px}
#profileSponsorPanel .sponsor-active-agreement>section strong{color:#eee5d6;font-size:12px}
@keyframes sponsor-card-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:980px){
  #profileSponsorPanel .sponsor-pricing-grid{grid-template-columns:1fr}
  #profileSponsorPanel .sponsor-plan-card{min-height:0}
}
@media(max-width:650px){
  #profileSponsorPanel .sponsor-pricing-hero{padding-inline:4px}
  #profileSponsorPanel .sponsor-plan-card{padding:22px 18px}
  #profileSponsorPanel .sponsor-active-agreement{grid-template-columns:auto minmax(0,1fr);padding:20px}
  #profileSponsorPanel .sponsor-active-agreement>b{grid-column:2}
  #profileSponsorPanel .sponsor-active-agreement>section{grid-column:1/-1;grid-template-columns:1fr 1fr}
}
@media(prefers-reduced-motion:reduce){#profileSponsorPanel .sponsor-plan-card{animation:none;transition:none}}


/* THE G.O.A.T 3.0A.50.22 — tighter Next Match fit and smaller mail footer */
.goat-calendar-modern .goat-calendar-next-match-shell {
  grid-template-columns: minmax(232px,1.42fr) minmax(110px,.58fr) minmax(132px,.78fr) !important;
  gap: 0 !important;
}
.goat-calendar-modern .goat-calendar-next-match-clubs,
.goat-calendar-modern .goat-calendar-next-match-datetime,
.goat-calendar-modern .goat-calendar-next-match-info {
  padding: 4px 12px !important;
}
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 68px !important;
  height: 68px !important;
}
.goat-calendar-modern .goat-calendar-team-block { gap: 12px !important; }
.goat-calendar-modern .goat-calendar-team-block strong {
  margin-top: 3px;
  max-width: 136px !important;
  font-size: 1rem !important;
  line-height: 1.08 !important;
}
.goat-calendar-modern .goat-calendar-next-vs { font-size: clamp(1.6rem, 2.5vw, 2.4rem) !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime { gap: 6px !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime > strong { font-size: .92rem !important; }
.goat-calendar-modern .goat-calendar-next-match-datetime > small { font-size: 1.18rem !important; }
.goat-calendar-modern .goat-calendar-next-match-info { gap: 6px !important; padding-left: 12px !important; }
.goat-calendar-modern .goat-calendar-detail-line { gap: 8px !important; }
.goat-calendar-modern .goat-calendar-inline-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.goat-calendar-modern .goat-calendar-detail-line small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .62rem !important;
  letter-spacing: .03em !important;
}
.goat-calendar-md-badge { justify-items: center; align-items: center; }
.goat-calendar-md-icon {
  width: 16px !important;
  height: 16px !important;
  margin: 0 auto !important;
  align-self: center;
  justify-self: center;
}
.goat-calendar-fixture-row.is-friendly .goat-calendar-md-badge {
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 0 !important;
}
.mail-message-detail > footer {
  padding-top: 2px !important;
  gap: 8px !important;
  min-height: 0 !important;
}
.mail-message-detail > footer > small {
  font-size: .5rem !important;
  line-height: 1;
}
.mail-message-detail .mail-detail-actions { gap: 6px !important; }
.mail-message-detail .mail-detail-actions button {
  min-height: 26px !important;
  padding: 4px 9px !important;
  font-size: .52rem !important;
}
@media(max-width:960px){
  .goat-calendar-modern .goat-calendar-next-match-shell { grid-template-columns: 1fr 1fr !important; }
}


/* THE G.O.A.T 3.0A.50.22 — bounded three-column Next Match layout for 20-character names */
.goat-calendar-modern .goat-calendar-next-match-shell {
  grid-template-columns: minmax(0,1.45fr) minmax(0,.62fr) minmax(0,.95fr) !important;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.goat-calendar-modern .goat-calendar-next-match-clubs,
.goat-calendar-modern .goat-calendar-next-match-datetime,
.goat-calendar-modern .goat-calendar-next-match-info {
  box-sizing: border-box;
  min-width: 0;
  padding: 4px 8px !important;
}
.goat-calendar-modern .goat-calendar-next-match-clubs {
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
  gap: 6px !important;
}
.goat-calendar-modern .goat-calendar-team-block {
  width: 100%;
  min-width: 0;
  gap: 12px !important;
}
.goat-calendar-modern .goat-calendar-next-match-card .goat-calendar-club-mark {
  width: 66px !important;
  height: 66px !important;
  max-width: 100%;
}
.goat-calendar-modern .goat-calendar-team-block strong {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100% !important;
  margin-top: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .94rem !important;
  line-height: 1.05 !important;
  text-align: center;
}
.goat-calendar-modern .goat-calendar-next-vs {
  min-width: 38px;
  font-size: clamp(1.5rem,2.35vw,2.25rem) !important;
}
.goat-calendar-modern .goat-calendar-next-match-datetime {
  gap: 5px !important;
  padding-inline: 9px !important;
}
.goat-calendar-modern .goat-calendar-next-match-datetime > strong {
  font-size: .84rem !important;
  line-height: 1.12 !important;
}
.goat-calendar-modern .goat-calendar-next-match-datetime > small {
  font-size: 1.12rem !important;
}
.goat-calendar-modern .goat-calendar-next-match-info {
  gap: 6px !important;
  padding-left: 10px !important;
  padding-right: 6px !important;
  overflow: visible;
}
.goat-calendar-modern .goat-calendar-detail-line {
  width: 100%;
  min-width: 0;
  gap: 7px !important;
}
.goat-calendar-modern .goat-calendar-inline-icon {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
}
.goat-calendar-modern .goat-calendar-detail-line small {
  display: block;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: .55rem !important;
  letter-spacing: .015em !important;
}
@media(max-width:960px){
  .goat-calendar-modern .goat-calendar-next-match-shell {
    grid-template-columns: 1fr 1fr !important;
    overflow: visible;
  }
}
@media(max-width:620px){
  .goat-calendar-modern .goat-calendar-next-match-shell { grid-template-columns: 1fr !important; }
}

/* THE G.O.A.T 3.0A.50.23-preview.3 — premium server-authoritative Match Centre */
.match-centre-open{
  background:#0d0c0a;
  overflow-x:hidden;
}
.match-centre-open main,
.match-centre-open .page-shell{
  max-width:none;
}
.goat-match-centre{
  --mc-bg:#0d0c0a;
  --mc-panel:#0d0c0a;
  --mc-panel-2:#17150f;
  --mc-panel-3:#17150f;
  --mc-line:rgba(76,57,21,0.18);
  --mc-line-strong:rgba(76,57,21,0.34);
  --mc-text:#fbf7ef;
  --mc-muted:#d9d1c2;
  --mc-cyan:#63e8ff;
  --mc-blue:#4c3915;
  --mc-purple:#9978ff;
  --mc-magenta:#4c3915;
  --mc-red:#ff5277;
  --mc-yellow:#ffd45f;
  --mc-orange:#ff9d59;
  --mc-green:#5fe2a6;
  --mc-home:#57dfff;
  --mc-away:#a47bff;
  width:min(1880px,calc(100% - 24px));
  margin:12px auto 40px;
  color:var(--mc-text);
  font-family:inherit;
}
.goat-match-centre *{box-sizing:border-box}
.goat-match-centre button,
.goat-match-centre input{font:inherit}
.goat-match-centre button:focus-visible,
.goat-match-centre input:focus-visible{
  outline:2px solid #d4a94f;
  outline-offset:2px;
}
.goat-match-centre .hidden{display:none!important}
.mc-shell-header,
.mc-scoreboard,
.mc-tabs,
.mc-live-stats,
.mc-pitch-card,
.mc-event-card,
.mc-commentary-card,
.mc-insight-card,
.mc-statistics,
.mc-players,
.mc-tactics,
.mc-loading,
.mc-message{
  border:1px solid var(--mc-line);
  background:
    linear-gradient(145deg,rgba(23,21,15,0.97),rgba(13,12,10,0.98));
  box-shadow:0 20px 48px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.025);
}
.mc-shell-header{
  min-height:54px;
  display:grid;
  grid-template-columns:minmax(170px,1fr) minmax(260px,1.2fr) minmax(170px,1fr);
  align-items:center;
  gap:14px;
  padding:8px 12px;
  border-radius:16px 16px 0 0;
  border-bottom-color:rgba(212,169,79,0.26);
  background:
    radial-gradient(circle at 50% 0,rgba(76,57,21,0.12),transparent 52%),
    linear-gradient(90deg,#0d0c0a,#0d0c0a 50%,#0d0c0a);
}
.mc-back{
  min-height:40px;
  width:max-content;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#fbf7ef;
  cursor:pointer;
  font-weight:850;
}
.mc-back:hover{border-color:var(--mc-line);background:rgba(76,57,21,0.1)}
.mc-back span:first-child{font-size:1.25rem;color:#e5c377}
.mc-competition-copy{
  display:grid;
  justify-items:center;
  text-align:center;
  line-height:1.15;
}
.mc-competition-copy span{
  color:#d9d1c2;
  font-size:.59rem;
  font-weight:950;
  letter-spacing:.16em;
}
.mc-competition-copy strong{
  margin-top:3px;
  color:#fbf7ef;
  font-size:.79rem;
  letter-spacing:.075em;
}
.mc-shell-actions{display:flex;justify-content:flex-end}
.mc-status{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border:1px solid rgba(212,169,79,0.22);
  border-radius:999px;
  background:rgba(42,34,20,0.16);
  color:#d9d1c2;
  font-size:.65rem;
  font-weight:950;
  letter-spacing:.08em;
}
.mc-status i,
.mc-connection i{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:currentColor;
}
.mc-status.is-live,
.mc-status.is-half-time,
.mc-status.is-second-half{color:#fff;border-color:rgba(255,82,119,.42);background:rgba(255,57,101,.17)}
.mc-status.is-live i,
.mc-status.is-half-time i,
.mc-status.is-second-half i{background:var(--mc-red);animation:mcLivePulse 1.4s infinite}
.mc-status.is-finished-processing{color:var(--mc-yellow);border-color:rgba(255,212,95,.28);background:rgba(255,185,64,.1)}
.mc-status.is-published{color:var(--mc-green);border-color:rgba(95,226,166,.28);background:rgba(95,226,166,.09)}
.mc-status.is-recovery{color:var(--mc-orange)}
@keyframes mcLivePulse{0%{box-shadow:0 0 0 0 rgba(255,82,119,.56)}70%{box-shadow:0 0 0 8px rgba(255,82,119,0)}100%{box-shadow:0 0 0 0 rgba(255,82,119,0)}}
.mc-scoreboard{
  position:relative;
  display:grid;
  grid-template-columns:minmax(145px,.7fr) minmax(235px,1.15fr) minmax(210px,.85fr) minmax(235px,1.15fr) minmax(145px,.7fr);
  grid-template-areas:"meta home score away spacer" "timeline timeline timeline timeline timeline";
  align-items:center;
  gap:16px;
  min-height:190px;
  padding:20px 24px 15px;
  border-top:0;
  border-radius:0 0 18px 18px;
  overflow:hidden;
  background:
    radial-gradient(circle at 25% 35%,rgba(76,57,21,0.13),transparent 30%),
    radial-gradient(circle at 75% 35%,rgba(76,57,21,0.15),transparent 30%),
    linear-gradient(135deg,#0d0c0a,#0d0c0a 48%,#17150f);
}
.mc-scoreboard::before,
.mc-scoreboard::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:28%;
  pointer-events:none;
  opacity:.55;
}
.mc-scoreboard::before{left:0;background:linear-gradient(90deg,rgba(76,57,21,0.11),transparent)}
.mc-scoreboard::after{right:0;background:linear-gradient(270deg,rgba(76,57,21,0.13),transparent)}
.mc-kickoff-meta{
  grid-area:meta;
  position:relative;
  z-index:1;
  display:grid;
  gap:5px;
  align-content:center;
  color:#fbf7ef;
}
.mc-kickoff-meta span:first-child{font-size:.8rem;font-weight:900}
.mc-kickoff-meta span:nth-child(2){color:#d9d1c2;font-size:.72rem;line-height:1.4}
.mc-kickoff-meta small{color:#d9d1c2;font-size:.61rem;letter-spacing:.055em}
.mc-scoreboard-spacer{grid-area:spacer}
.mc-club{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:15px;
  min-width:0;
}
.mc-club-home{grid-area:home}
.mc-club-away{grid-area:away;justify-content:flex-end;text-align:right}
.mc-club-logo{
  width:84px;
  height:84px;
  flex:0 0 84px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(110,221,255,.34);
  border-radius:23px;
  background:linear-gradient(145deg,rgba(46,176,247,.27),rgba(20,45,89,.74));
  color:#e8fbff;
  font-size:1.25rem;
  font-weight:950;
  box-shadow:0 12px 30px rgba(0,0,0,.28),0 0 30px rgba(54,191,255,.11),inset 0 1px 0 rgba(255,255,255,.09);
}
.mc-club-away .mc-club-logo{border-color:rgba(174,126,255,.38);background:linear-gradient(145deg,rgba(146,93,255,.31),rgba(31,34,84,.76));box-shadow:0 12px 30px rgba(0,0,0,.28),0 0 30px rgba(153,90,255,.12),inset 0 1px 0 rgba(255,255,255,.09)}
.mc-club-logo img{width:100%;height:100%;object-fit:contain;padding:6px}
.mc-club-copy{display:grid;min-width:0;gap:2px}
.mc-club-copy>span{color:var(--mc-home);font-size:.57rem;font-weight:950;letter-spacing:.16em}
.mc-club-away .mc-club-copy>span{color:var(--mc-away)}
.mc-club-copy>strong{overflow:hidden;color:#fff;font-size:1.08rem;font-weight:950;text-overflow:ellipsis;white-space:nowrap}
.mc-club-copy>small{overflow:hidden;color:#d9d1c2;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}
.mc-club-copy>p{min-height:18px;margin:5px 0 0;color:#d9d1c2;font-size:.64rem;line-height:1.35}
.mc-score-core{
  grid-area:score;
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  align-content:center;
  text-align:center;
}
.mc-score-label{color:#d9d1c2;font-size:.54rem;font-weight:950;letter-spacing:.15em}
.mc-score{
  margin:0;
  color:#fbf7ef;
  font-family:var(--display,inherit);
  font-size:3.55rem;
  font-weight:950;
  line-height:1;
  letter-spacing:.06em;
  text-shadow:0 0 28px rgba(212,169,79,0.15);
}
.mc-score-clock{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:4px}
.mc-clock{
  min-width:54px;
  padding:5px 8px;
  border:1px solid rgba(212,169,79,0.3);
  border-radius:8px;
  background:rgba(76,57,21,0.08);
  color:#e5c377;
  font-family:var(--mono,monospace);
  font-size:.78rem;
  font-weight:950;
}
.mc-score-clock b{color:#fbf7ef;font-size:.62rem;letter-spacing:.09em}
.mc-score-core>small{margin-top:5px;color:#d9d1c2;font-size:.59rem;line-height:1.3}
.mc-connection{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:#d9d1c2;
  font-size:.53rem;
}
.mc-connection.is-synced{color:#68dcb0}
.mc-connection.is-reconnecting{color:var(--mc-yellow)}
.mc-connection.is-disconnected{color:var(--mc-red)}
.mc-match-timeline{
  --progress:0%;
  grid-area:timeline;
  position:relative;
  z-index:2;
  min-height:35px;
  padding:9px 20px 0;
}
.mc-timeline-track{
  position:relative;
  height:5px;
  margin-top:8px;
  border-radius:999px;
  background:rgba(42,34,20,0.3);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.4);
}
.mc-timeline-progress{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--progress);
  border-radius:inherit;
  background:linear-gradient(90deg,var(--mc-home),#4c3915 52%,var(--mc-away));
  box-shadow:0 0 12px rgba(212,169,79,0.3);
}
.mc-timeline-label{
  position:absolute;
  top:12px;
  color:#d9d1c2;
  font-size:.49rem;
  font-style:normal;
  letter-spacing:.06em;
}
.mc-timeline-label.is-start{left:0}
.mc-timeline-label.is-half{left:50%;transform:translateX(-50%)}
.mc-timeline-label.is-end{right:0}
.mc-timeline-marker{
  position:absolute;
  top:50%;
  width:17px;
  height:17px;
  display:grid;
  place-items:center;
  transform:translate(-50%,-50%);
  border:2px solid #d4a94f;
  border-radius:50%;
  background:#4c3915;
  color:#fff;
  cursor:help;
  font-size:.46rem;
  font-style:normal;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
}
.mc-timeline-marker.is-goal{background:var(--mc-green)}
.mc-timeline-marker.is-yellow_card{background:var(--mc-yellow);color:#1a1207}
.mc-timeline-marker.is-red_card{background:var(--mc-red)}
.mc-timeline-marker.is-substitution{background:#2a2214;color:#1a1207}
.mc-timeline-marker.is-injury{background:var(--mc-orange)}
.mc-timeline-marker.is-half_time,.mc-timeline-marker.is-full_time{background:#2a2214}
.mc-tabs{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:10px;
  overflow:hidden;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(13,12,10,0.98),rgba(13,12,10,0.98));
}
.mc-tabs button{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-right:1px solid rgba(212,169,79,0.11);
  border-bottom:2px solid transparent;
  background:transparent;
  color:#d9d1c2;
  cursor:pointer;
  font-size:.73rem;
  font-weight:900;
}
.mc-tabs button:last-child{border-right:0}
.mc-tabs button span{color:#d9d1c2;font-size:.82rem}
.mc-tabs button:hover{color:#fbf7ef;background:rgba(76,57,21,0.09)}
.mc-tabs button.active{border-bottom-color:#d4a94f;background:linear-gradient(180deg,rgba(76,57,21,0.13),rgba(42,34,20,0.06));color:#fbf7ef;box-shadow:inset 0 -10px 20px rgba(212,169,79,0.04)}
.mc-tabs button.active span{color:#e5c377}
.mc-live-stats{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  margin-top:8px;
  overflow:hidden;
  border-radius:13px;
}
.mc-live-stats article{
  min-height:58px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:6px;
  padding:9px 12px;
  border-right:1px solid rgba(212,169,79,0.1);
  text-align:center;
}
.mc-live-stats article:last-child{border-right:0}
.mc-live-stats strong{font-size:.9rem;font-weight:950}
.mc-live-stats strong.is-home{text-align:right;color:var(--mc-home)}
.mc-live-stats strong.is-away{text-align:left;color:var(--mc-away)}
.mc-live-stats span{color:#d9d1c2;font-size:.55rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.mc-message,.mc-loading{
  margin-top:8px;
  border-radius:12px;
  padding:13px 15px;
}
.mc-message.is-error{border-color:rgba(255,82,119,.33);color:#ffd8e0}
.mc-message.is-info{border-color:rgba(212,169,79,0.3);color:#fbf7ef}
.mc-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:80px;color:#d9d1c2}
.mc-loading i{width:18px;height:18px;border:2px solid rgba(212,169,79,0.2);border-top-color:#d4a94f;border-radius:50%;animation:mcSpin .8s linear infinite}
@keyframes mcSpin{to{transform:rotate(360deg)}}
.mc-tab-panel{margin-top:8px}
.mc-live-grid{
  display:grid;
  grid-template-columns:minmax(0,3fr) minmax(275px,1fr);
  gap:10px;
  align-items:start;
}
.mc-live-main{display:grid;gap:10px;min-width:0}
.mc-pitch-card{
  overflow:hidden;
  border-radius:16px;
}
.mc-pitch-card>header,
.mc-commentary-card>header{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-bottom:1px solid rgba(212,169,79,0.12);
  background:linear-gradient(90deg,rgba(23,21,15,0.78),rgba(13,12,10,0.55));
}
.mc-pitch-card>header>div:first-child,
.mc-commentary-card>header>div:first-child{display:grid;gap:2px}
.mc-pitch-card>header span,
.mc-commentary-card>header span,
.mc-insight-card>header span{
  color:#e5c377;
  font-size:.54rem;
  font-weight:950;
  letter-spacing:.13em;
}
.mc-pitch-card>header strong,
.mc-commentary-card>header strong{color:#fbf7ef;font-size:.77rem}
.mc-pitch-modes{
  display:inline-flex;
  padding:3px;
  border:1px solid rgba(212,169,79,0.18);
  border-radius:10px;
  background:rgba(13,12,10,0.55);
}
.mc-pitch-modes button{
  min-height:34px;
  padding:6px 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#d9d1c2;
  cursor:pointer;
  font-size:.61rem;
  font-weight:900;
}
.mc-pitch-modes button.active{background:linear-gradient(135deg,rgba(76,57,21,0.26),rgba(76,57,21,0.22));color:#fbf7ef;box-shadow:inset 0 0 0 1px rgba(212,169,79,0.19)}
.mc-pitch{
  position:relative;
  aspect-ratio:1.86/1;
  min-height:390px;
  margin:12px;
  overflow:hidden;
  border:1px solid rgba(166,246,221,.25);
  border-radius:13px;
  background:#0c3b43;
  box-shadow:inset 0 0 65px rgba(1,12,21,.5),0 16px 30px rgba(0,0,0,.22);
  isolation:isolate;
}
.mc-pitch-surface{
  position:absolute;
  inset:0;
  z-index:0;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.022) 0,rgba(255,255,255,.022) 8.333%,rgba(0,0,0,.025) 8.333%,rgba(0,0,0,.025) 16.666%),
    linear-gradient(180deg,#15505a,#0c3c46);
}
.mc-pitch::before{
  content:"";
  position:absolute;
  z-index:1;
  inset:4.5%;
  border:2px solid rgba(226,255,247,.42);
  pointer-events:none;
}
.mc-pitch::after{
  content:"";
  position:absolute;
  z-index:1;
  left:50%;top:4.5%;bottom:4.5%;
  width:2px;
  transform:translateX(-1px);
  background:rgba(226,255,247,.42);
  pointer-events:none;
}
.mc-pitch-halfway{display:none}
.mc-pitch-circle{
  position:absolute;
  z-index:1;
  left:50%;top:50%;
  width:17%;
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border:2px solid rgba(226,255,247,.42);
  border-radius:50%;
}
.mc-pitch-circle::after{
  content:"";
  position:absolute;
  left:50%;top:50%;
  width:5px;height:5px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:rgba(226,255,247,.55);
}
.mc-box,.mc-six,.mc-goal{position:absolute;z-index:1;border:2px solid rgba(226,255,247,.42);pointer-events:none}
.mc-box{top:21%;width:16%;height:58%}
.mc-six{top:35%;width:7%;height:30%}
.mc-box-left,.mc-six-left{left:4.5%;border-left:0}
.mc-box-right,.mc-six-right{right:4.5%;border-right:0}
.mc-goal{top:42%;width:1.7%;height:16%;background:rgba(225,255,247,.06)}
.mc-goal-left{left:2.8%;border-right:0}
.mc-goal-right{right:2.8%;border-left:0}
.mc-active-zone{
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  border:1px solid rgba(99,232,255,0);
  border-radius:50%;
  opacity:0;
  pointer-events:none;
  background:radial-gradient(circle,rgba(76,57,21,0.18),rgba(76,57,21,0.04) 58%,transparent 72%);
  transition:left .65s ease,top .65s ease,opacity .25s ease,width .4s ease,height .4s ease;
}
.mc-active-zone.is-active{opacity:1}
.mc-active-zone.is-tactical{border-color:rgba(212,169,79,0.22);background:radial-gradient(circle,rgba(76,57,21,0.15),rgba(76,57,21,0.05) 58%,transparent 72%)}
.mc-pressure{
  position:absolute;
  z-index:3;
  width:78px;height:78px;
  transform:translate(-50%,-50%) scale(.7);
  border:1px dashed rgba(255,101,203,.62);
  border-radius:50%;
  opacity:0;
  pointer-events:none;
  transition:left .55s ease,top .55s ease,opacity .22s ease,transform .35s ease;
}
.mc-pressure.is-active{opacity:.78;transform:translate(-50%,-50%) scale(1);animation:mcPressure 1.8s ease-in-out infinite}
@keyframes mcPressure{50%{transform:translate(-50%,-50%) scale(1.12);opacity:.45}}
.mc-offside-line{
  position:absolute;
  z-index:4;
  top:5%;bottom:5%;
  width:0;
  border-left:2px dashed rgba(255,116,210,.78);
  opacity:0;
  pointer-events:none;
  transition:left .5s ease,opacity .2s ease;
}
.mc-offside-line.is-active{opacity:1}
.mc-action-layer{position:absolute;z-index:5;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.mc-action-layer path{fill:none;stroke:#e5c377;stroke-width:.7;stroke-dasharray:2.2 1.7;filter:drop-shadow(0 0 2px rgba(76,57,21,0.65));vector-effect:non-scaling-stroke}
.mc-action-layer path.is-shot{stroke:#ff8bdd;stroke-width:1}
.mc-action-layer path.is-dribble{stroke:#e5c377}
.mc-action-layer path.is-offside{stroke:#ff8bdd}
.mc-action-layer marker path{fill:#e5c377;stroke:none}
.mc-event-arrow{display:none}
.mc-event-ball{
  position:absolute;
  z-index:9;
  left:0;top:0;
  width:10px;height:10px;
  border:2px solid #d4a94f;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 2px rgba(255,255,255,.18),0 0 12px rgba(255,255,255,.75);
  pointer-events:none;
  transition:transform .55s cubic-bezier(.22,.8,.24,1);
}
.mc-pitch-players{position:absolute;z-index:8;inset:0;pointer-events:none}
.mc-player-marker{
  position:absolute;
  left:0;top:0;
  display:grid;
  justify-items:center;
  gap:2px;
  transition:transform .72s cubic-bezier(.22,.8,.24,1),opacity .25s ease;
  will-change:transform;
}
.mc-pitch-players.is-instant .mc-player-marker{transition:none!important}
.mc-player-number{
  width:28px;height:28px;
  display:grid;
  place-items:center;
  border:2px solid rgba(212,169,79,0.83);
  border-radius:50%;
  background:linear-gradient(145deg,#2a2214,#2a2214);
  color:#fff;
  font-family:var(--mono,monospace);
  font-size:.61rem;
  font-weight:950;
  box-shadow:0 4px 10px rgba(0,0,0,.38),0 0 0 2px rgba(212,169,79,0.13);
}
.mc-player-marker.is-away .mc-player-number{background:linear-gradient(145deg,#4c3915,#2a2214);box-shadow:0 4px 10px rgba(0,0,0,.38),0 0 0 2px rgba(212,169,79,0.14)}
.mc-player-marker.is-goalkeeper .mc-player-number{background:linear-gradient(145deg,#f4b64f,#b96f27);border-radius:8px}
.mc-player-marker.is-current .mc-player-number{box-shadow:0 0 0 5px rgba(212,169,79,0.2),0 0 20px rgba(212,169,79,0.58);transform:scale(1.08)}
.mc-player-marker.is-receiver .mc-player-number{box-shadow:0 0 0 4px rgba(212,169,79,0.2),0 0 18px rgba(212,169,79,0.48)}
.mc-player-label{
  max-width:80px;
  padding:2px 5px;
  overflow:hidden;
  border-radius:5px;
  background:rgba(13,12,10,0.78);
  color:#fbf7ef;
  font-size:.49rem;
  font-weight:850;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:0 1px 2px #000;
}
.mc-pitch.mode-tactical .mc-player-label,
.mc-pitch.mode-formation .mc-player-label{display:block}
.mc-pitch.mode-tactical .mc-player-number{border-style:dashed}
.mc-pitch.mode-formation .mc-active-zone,
.mc-pitch.mode-formation .mc-pressure,
.mc-pitch.mode-formation .mc-offside-line,
.mc-pitch.mode-formation .mc-action-layer{display:none}
.mc-pitch-text{
  position:absolute;
  z-index:12;
  left:50%;bottom:8px;
  max-width:78%;
  transform:translateX(-50%);
  padding:5px 9px;
  border:1px solid rgba(212,169,79,0.15);
  border-radius:999px;
  background:rgba(13,12,10,0.76);
  color:#d9d1c2;
  font-size:.54rem;
  line-height:1.3;
  text-align:center;
  backdrop-filter:blur(5px);
}
.mc-event-pulse{box-shadow:inset 0 0 65px rgba(9,7,4,0.5),0 0 0 1px rgba(212,169,79,0.45),0 0 30px rgba(212,169,79,0.18)}
.mc-action-replay .mc-action-layer path{animation:mcPathReplay .9s ease-out}
@keyframes mcPathReplay{from{stroke-dashoffset:25;opacity:.15}to{stroke-dashoffset:0;opacity:1}}
.mc-replay-controls{
  display:grid;
  grid-template-columns:auto auto minmax(150px,1fr) auto;
  align-items:center;
  gap:8px;
  margin:0 12px 12px;
  padding:9px;
  border:1px solid rgba(212,169,79,0.14);
  border-radius:10px;
  background:rgba(13,12,10,0.75);
}
.mc-replay-controls button{
  min-height:36px;
  border:1px solid rgba(212,169,79,0.2);
  border-radius:8px;
  background:rgba(42,34,20,0.2);
  color:#fbf7ef;
  cursor:pointer;
  font-size:.62rem;
  font-weight:850;
}
.mc-replay-controls input{accent-color:#2a2214}
.mc-replay-controls span{color:#e5c377;font-family:var(--mono,monospace);font-size:.65rem;font-weight:900}
.mc-event-card{
  position:relative;
  min-height:106px;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) minmax(110px,.25fr);
  align-items:center;
  gap:13px;
  padding:14px;
  overflow:hidden;
  border-radius:15px;
}
.mc-event-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:#2a2214;
}
.mc-event-card.is-goal::before{background:linear-gradient(var(--mc-green),#2a2214)}
.mc-event-card.is-yellow_card::before{background:var(--mc-yellow)}
.mc-event-card.is-red_card::before{background:var(--mc-red)}
.mc-event-card.is-injury::before{background:var(--mc-orange)}
.mc-event-card.is-substitution::before{background:#2a2214}
.mc-event-card.is-save::before,.mc-event-card.is-penalty_saved::before{background:var(--mc-blue)}
.mc-event-card.is-goal{border-color:rgba(129,228,175,.27);background:linear-gradient(110deg,rgba(39,143,102,.16),rgba(42,34,20,0.13),rgba(13,12,10,0.98))}
.mc-event-card.is-red_card{border-color:rgba(255,82,119,.32)}
.mc-event-card.is-yellow_card{border-color:rgba(255,212,95,.28)}
.mc-event-portrait{
  width:58px;height:58px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid rgba(116,218,255,.25);
  border-radius:15px;
  background:linear-gradient(145deg,#16335d,#0c203d);
  color:var(--mc-cyan);
  font-size:.83rem;
  font-weight:950;
}
.mc-event-portrait img{width:100%;height:100%;object-fit:cover}
.mc-event-copy{display:grid;gap:3px;min-width:0}
.mc-event-copy>span{color:#e5c377;font-size:.54rem;font-weight:950;letter-spacing:.1em}
.mc-event-copy>strong{overflow:hidden;color:#fbf7ef;font-size:.88rem;text-overflow:ellipsis;white-space:nowrap}
.mc-event-copy>p{margin:0;color:#d9d1c2;font-size:.7rem;line-height:1.45}
.mc-event-copy>small{color:#d9d1c2;font-size:.59rem;font-weight:800}
.mc-event-score{display:grid;justify-items:end;gap:4px;text-align:right}
.mc-event-score>span{color:#d9d1c2;font-size:.48rem;font-weight:900;letter-spacing:.09em}
.mc-event-score>strong{color:#fff;font-size:1.35rem;font-weight:950}
.mc-event-score button{
  min-height:32px;
  padding:6px 9px;
  border:1px solid rgba(212,169,79,0.23);
  border-radius:8px;
  background:rgba(42,34,20,0.14);
  color:#fbf7ef;
  cursor:pointer;
  font-size:.54rem;
  font-weight:850;
}
.mc-insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mc-insight-card{
  min-height:132px;
  padding:12px;
  border-radius:14px;
  overflow:hidden;
}
.mc-insight-card>header{display:flex;align-items:start;justify-content:space-between;gap:8px;margin-bottom:10px}
.mc-insight-card>header small{color:#d9d1c2;font-size:.51rem;text-align:right}
.mc-insight-card>p{margin:8px 0 0;color:#d9d1c2;font-size:.66rem;line-height:1.45}
.mc-key-player{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:9px}
.mc-key-player-portrait{
  width:46px;height:46px;
  display:grid;place-items:center;overflow:hidden;
  border-radius:13px;
  background:#10284b;
  color:var(--mc-cyan);
  font-size:.65rem;font-weight:950;
}
.mc-key-player-portrait img{width:100%;height:100%;object-fit:cover}
.mc-key-player strong{display:block;overflow:hidden;color:#fff;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}
.mc-key-player p{margin:2px 0 0;color:#d9d1c2;font-size:.55rem}
.mc-key-player>b{color:var(--mc-green);font-size:1rem}
.mc-key-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin-top:10px}
.mc-key-numbers span{display:grid;justify-items:center;padding:5px 2px;border-radius:7px;background:rgba(42,34,20,0.3);color:#d9d1c2;font-size:.45rem;text-transform:uppercase}
.mc-key-numbers b{color:#fbf7ef;font-size:.7rem}
.mc-momentum{position:relative;height:76px;display:flex;align-items:center;justify-content:space-between;gap:2px;padding:4px 0}
.mc-momentum-axis{position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(76,57,21,0.25)}
.mc-momentum i{position:relative;z-index:1;width:4.5%;min-height:2px;border-radius:2px 2px 0 0;background:linear-gradient(#2a2214,#4c3915);align-self:flex-end}
.mc-momentum i.is-away{align-self:flex-start;border-radius:0 0 2px 2px;background:linear-gradient(#4c3915,#2a2214)}
.mc-insight-card>strong{display:block;color:#fbf7ef;font-size:.79rem}
.mc-flow-meter{height:7px;margin-top:12px;overflow:hidden;border-radius:999px;background:linear-gradient(90deg,rgba(76,57,21,0.18) 0 50%,rgba(76,57,21,0.18) 50%)}
.mc-flow-meter i{display:block;height:100%;background:linear-gradient(90deg,var(--mc-home),#2a2214);border-radius:inherit}
.mc-commentary-card{
  position:sticky;
  top:8px;
  min-height:640px;
  max-height:calc(100vh - 20px);
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  overflow:hidden;
  border-radius:16px;
}
.mc-commentary-card>header button,
.mc-commentary-latest{
  min-height:34px;
  padding:6px 9px;
  border:1px solid rgba(212,169,79,0.17);
  border-radius:8px;
  background:rgba(42,34,20,0.18);
  color:#d9d1c2;
  cursor:pointer;
  font-size:.54rem;
  font-weight:800;
}
.mc-commentary-filters{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  padding:9px 10px;
  border-bottom:1px solid rgba(212,169,79,0.1);
}
.mc-commentary-filters button{
  min-height:32px;
  padding:5px 8px;
  border:1px solid rgba(212,169,79,0.14);
  border-radius:999px;
  background:rgba(23,21,15,0.22);
  color:#d9d1c2;
  cursor:pointer;
  font-size:.51rem;
  font-weight:850;
}
.mc-commentary-filters button.active{border-color:rgba(212,169,79,0.28);background:rgba(76,57,21,0.15);color:#fbf7ef}
.mc-commentary{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:rgba(212,169,79,0.38) transparent;
}
.mc-commentary-row{
  position:relative;
  display:grid;
  grid-template-columns:34px 28px minmax(0,1fr);
  gap:8px;
  padding:11px 10px;
  border-bottom:1px solid rgba(212,169,79,0.09);
  background:transparent;
}
.mc-commentary-row:hover{background:rgba(42,34,20,0.09)}
.mc-commentary-row.is-important{margin:7px;border:1px solid rgba(212,169,79,0.14);border-radius:11px;background:linear-gradient(115deg,rgba(42,34,20,0.19),rgba(13,12,10,0.42));padding:10px}
.mc-commentary-row.is-goal{border-color:rgba(95,226,166,.25);background:linear-gradient(115deg,rgba(36,137,97,.17),rgba(42,34,20,0.13))}
.mc-commentary-row.is-red_card{border-color:rgba(255,82,119,.28);background:rgba(130,34,61,.11)}
.mc-commentary-row.is-yellow_card{border-color:rgba(255,212,95,.25)}
.mc-commentary-row.is-injury{border-color:rgba(255,157,89,.25)}
.mc-commentary-row.is-substitution{border-color:rgba(212,169,79,0.22)}
.mc-commentary-row time{padding-top:3px;color:#e5c377;font-family:var(--mono,monospace);font-size:.61rem;font-weight:950}
.mc-commentary-icon{
  width:27px;height:27px;
  display:grid;place-items:center;overflow:hidden;
  border-radius:8px;
  background:rgba(42,34,20,0.3);
  color:#fbf7ef;
  font-size:.58rem;font-weight:950;
}
.mc-commentary-icon img{width:100%;height:100%;object-fit:cover}
.mc-commentary-row>div:last-child{min-width:0}
.mc-commentary-row strong{display:block;color:#fbf7ef;font-size:.67rem}
.mc-commentary-row small{display:block;margin-top:2px;overflow:hidden;color:#d9d1c2;font-size:.5rem;text-overflow:ellipsis;white-space:nowrap}
.mc-commentary-row small b{color:#d9d1c2}
.mc-commentary-row p{margin:5px 0 0;color:#d9d1c2;font-size:.61rem;line-height:1.42}
.mc-commentary-empty{display:grid;place-items:center;align-content:center;min-height:220px;padding:30px;text-align:center}
.mc-commentary-empty strong{font-size:.76rem}
.mc-commentary-empty p{max-width:250px;margin:7px 0;color:#d9d1c2;font-size:.63rem;line-height:1.45}
.mc-commentary-latest{margin:8px 10px 10px;color:#fbf7ef}
.mc-statistics,.mc-players,.mc-tactics{
  min-height:460px;
  padding:16px;
  border-radius:16px;
}
.mc-panel-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.mc-panel-heading span{color:#e5c377;font-size:.55rem;font-weight:950;letter-spacing:.13em}
.mc-panel-heading h2{margin:3px 0 0;color:#fbf7ef;font-size:1.15rem}
.mc-panel-heading p{max-width:520px;margin:0;color:#d9d1c2;font-size:.68rem;line-height:1.45;text-align:right}
.mc-stat-club-head,.mc-stat-values{display:grid;grid-template-columns:1fr minmax(100px,.8fr) 1fr;align-items:center;text-align:center}
.mc-stat-club-head{padding:12px 14px;border:1px solid rgba(212,169,79,0.1);border-radius:10px;background:rgba(42,34,20,0.23)}
.mc-stat-club-head strong:first-child,.mc-stat-values strong:first-child{text-align:left;color:var(--mc-home)}
.mc-stat-club-head strong:last-child,.mc-stat-values strong:last-child{text-align:right;color:var(--mc-away)}
.mc-stat-club-head span{color:#d9d1c2;font-size:.56rem;font-weight:950;letter-spacing:.08em}
.mc-stat-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin-top:8px}
.mc-stat-row{padding:12px 0;border-bottom:1px solid rgba(212,169,79,0.09)}
.mc-stat-values strong{font-size:.8rem;font-weight:950}
.mc-stat-values span{color:#d9d1c2;font-size:.62rem;font-weight:800}
.mc-stat-bars{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}
.mc-stat-bars i{height:6px;max-width:100%;justify-self:end;border-radius:999px 0 0 999px;background:linear-gradient(90deg,#4c3915,var(--mc-home))}
.mc-stat-bars i:last-child{justify-self:start;border-radius:0 999px 999px 0;background:linear-gradient(90deg,var(--mc-away),#2a2214)}
.mc-empty-panel{min-height:260px;display:grid;place-items:center;align-content:center;padding:30px;text-align:center;border:1px dashed rgba(212,169,79,0.17);border-radius:14px;background:rgba(23,21,15,0.35)}
.mc-empty-panel strong{font-size:.85rem}
.mc-empty-panel p{max-width:520px;margin:7px 0 0;color:#d9d1c2;font-size:.68rem;line-height:1.5}
.mc-player-columns,.mc-tactics-clubs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mc-team-sheet,.mc-tactic-card{padding:13px;border:1px solid rgba(212,169,79,0.13);border-radius:13px;background:rgba(13,12,10,0.72)}
.mc-team-sheet>header,.mc-tactic-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.mc-team-sheet>header strong,.mc-tactic-card>header strong{overflow:hidden;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.mc-team-sheet>header span,.mc-tactic-card>header span{padding:5px 8px;border-radius:999px;background:rgba(76,57,21,0.13);color:#e5c377;font-size:.55rem;font-weight:950}
.mc-team-sheet h3,.mc-tactic-card h3,.mc-tactical-timeline h3{margin:14px 0 7px;color:#d9d1c2;font-size:.54rem;letter-spacing:.13em}
.mc-player-row{
  display:grid;
  grid-template-columns:minmax(170px,1.25fr) 45px minmax(240px,1.1fr) auto;
  align-items:center;
  gap:9px;
  min-height:56px;
  padding:7px;
  border-bottom:1px solid rgba(212,169,79,0.08);
  border-radius:9px;
}
.mc-player-row:hover{background:rgba(42,34,20,0.12)}
.mc-player-row.is-potm{background:linear-gradient(90deg,rgba(255,194,80,.12),transparent);box-shadow:inset 3px 0 #f5c45e}
.mc-player-identity{display:flex;align-items:center;gap:8px;min-width:0}
.mc-player-portrait{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#112b50;color:var(--mc-cyan);font-size:.61rem;font-weight:950}
.mc-player-portrait img{width:100%;height:100%;object-fit:cover}
.mc-player-identity>span{display:grid;min-width:0}
.mc-player-identity b{color:#e5c377;font-size:.5rem}
.mc-player-identity strong{overflow:hidden;color:#fbf7ef;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.mc-player-identity small{color:#d9d1c2;font-size:.60rem}
.mc-player-rating{text-align:center}
.mc-player-rating span{display:block;color:#fbf7ef;font-size:.86rem;font-weight:950}
.mc-player-rating small{color:#d9d1c2;font-size:.41rem}
.mc-player-numbers{display:grid;grid-template-columns:repeat(8,minmax(25px,1fr));gap:3px}
.mc-player-numbers span{display:grid;justify-items:center;color:#d9d1c2;font-size:.4rem}
.mc-player-numbers b{color:#fbf7ef;font-size:.59rem}
.mc-player-incidents{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:72px}
.mc-player-incidents i{width:7px;height:11px;border-radius:1px}
.mc-player-incidents .is-yellow{background:var(--mc-yellow)}
.mc-player-incidents .is-red{background:var(--mc-red)}
.mc-player-incidents>b{color:var(--mc-orange)}
.mc-player-incidents small{color:#d9d1c2;font-size:.48rem;text-align:right}
.mc-no-subs,.mc-no-tactical-events{margin:7px 0;color:#d9d1c2;font-size:.64rem}
.mc-potm{color:#c49d51!important}
.mc-potm strong{color:#ffdc86}
.mc-tactic-mini-pitch{
  position:relative;
  aspect-ratio:1.65/1;
  overflow:hidden;
  border:1px solid rgba(161,235,213,.17);
  border-radius:10px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.018) 0,rgba(255,255,255,.018) 12.5%,transparent 12.5%,transparent 25%),linear-gradient(180deg,#15434c,#0c3039);
}
.mc-tactic-mini-pitch::before{content:"";position:absolute;inset:5%;border:1px solid rgba(229,255,249,.28)}
.mc-tactic-mini-pitch::after{content:"";position:absolute;left:50%;top:5%;bottom:5%;border-left:1px solid rgba(229,255,249,.28)}
.mc-tactic-mini-pitch i{position:absolute;z-index:2;display:grid;justify-items:center;gap:1px;transform:translate(-50%,-50%);font-style:normal}
.mc-tactic-mini-pitch i b{width:20px;height:20px;display:grid;place-items:center;border:1px solid #e8fbff;border-radius:50%;background:#258eb7;color:#fff;font-size:.45rem}
.mc-tactic-mini-pitch i.is-away b{background:#7650bb}
.mc-tactic-mini-pitch i.is-goalkeeper b{border-radius:6px;background:#c98235}
.mc-tactic-mini-pitch i span{padding:1px 3px;border-radius:3px;background:rgba(3,12,24,.76);color:#e8f5ff;font-size:.38rem}
.mc-tactic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.mc-tactic-grid div{padding:8px;border-radius:8px;background:rgba(42,34,20,0.25)}
.mc-tactic-grid span{display:block;color:#d9d1c2;font-size:.48rem}
.mc-tactic-grid strong{display:block;margin-top:2px;color:#fbf7ef;font-size:.62rem}
.mc-tactical-timeline{margin-top:14px;padding:12px;border:1px solid rgba(212,169,79,0.11);border-radius:12px;background:rgba(13,12,10,0.68)}
.mc-tactical-timeline article{display:grid;grid-template-columns:46px 1fr;gap:10px;padding:10px;border-left:2px solid #d4a94f}
.mc-tactical-timeline time{color:#e5c377;font-family:var(--mono,monospace);font-size:.65rem;font-weight:950}
.mc-tactical-timeline article strong{font-size:.69rem}
.mc-tactical-timeline p{margin:4px 0;color:#d9d1c2;font-size:.58rem}
.mc-tactical-timeline ul{display:flex;flex-wrap:wrap;gap:5px;padding:0;margin:7px 0 0;list-style:none}
.mc-tactical-timeline li{padding:5px 7px;border-radius:7px;background:rgba(42,34,20,0.25);color:#d9d1c2;font-size:.54rem}
@media(max-width:1320px){
  .mc-scoreboard{grid-template-columns:125px minmax(210px,1fr) 190px minmax(210px,1fr) 125px;padding-inline:16px}
  .mc-club-logo{width:72px;height:72px;flex-basis:72px}
  .mc-live-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mc-live-stats article:nth-child(3){border-right:0}
  .mc-live-stats article:nth-child(-n+3){border-bottom:1px solid rgba(212,169,79,0.1)}
  .mc-player-row{grid-template-columns:minmax(155px,1.25fr) 42px 1fr}.mc-player-incidents{grid-column:1/-1;justify-content:flex-start}
}
@media(max-width:1080px){
  .goat-match-centre{width:calc(100% - 16px)}
  .mc-shell-header{grid-template-columns:1fr auto 1fr}
  .mc-scoreboard{grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr);grid-template-areas:"meta meta meta" "home score away" "timeline timeline timeline";min-height:240px;gap:12px}
  .mc-scoreboard-spacer{display:none}
  .mc-kickoff-meta{justify-items:center;text-align:center}
  .mc-live-grid{grid-template-columns:1fr}
  .mc-commentary-card{position:static;min-height:430px;max-height:none}
  .mc-commentary{max-height:520px}
  .mc-insight-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mc-player-columns,.mc-tactics-clubs{grid-template-columns:1fr}
  .mc-player-row{grid-template-columns:minmax(190px,1.25fr) 45px minmax(240px,1fr) auto}.mc-player-incidents{grid-column:auto;justify-content:flex-end}
}
@media(max-width:780px){
  .goat-match-centre{width:calc(100% - 10px);margin:5px auto 24px}
  .mc-shell-header{grid-template-columns:auto 1fr auto;gap:6px;min-height:50px;padding:6px;border-radius:12px 12px 0 0}
  .mc-back{min-width:44px;min-height:44px;padding:7px}.mc-back span:last-child{display:none}
  .mc-competition-copy span{display:none}.mc-competition-copy strong{font-size:.66rem;letter-spacing:.035em}
  .mc-status{min-width:44px;min-height:44px;justify-content:center;padding:7px}.mc-status span{display:none}
  .mc-scoreboard{grid-template-columns:1fr 108px 1fr;grid-template-areas:"meta meta meta" "home score away" "timeline timeline timeline";min-height:250px;padding:13px 8px 10px;border-radius:0 0 13px 13px}
  .mc-club{display:grid;justify-items:center;gap:6px;text-align:center}.mc-club-away{display:grid;justify-content:normal;text-align:center}.mc-club-away .mc-club-logo{grid-row:1}.mc-club-away .mc-club-copy{grid-row:2}
  .mc-club-logo{width:58px;height:58px;flex-basis:58px;border-radius:16px}.mc-club-copy>strong{font-size:.72rem}.mc-club-copy>small{font-size:.52rem}.mc-club-copy>p{min-height:14px;font-size:.48rem}.mc-club-copy>span{font-size:.46rem}
  .mc-score{font-size:2.35rem}.mc-score-label{font-size:.42rem}.mc-score-clock{display:grid;gap:3px}.mc-clock{min-width:48px;padding:4px;font-size:.65rem}.mc-score-clock b{font-size:.48rem}.mc-score-core>small{font-size:.46rem}.mc-connection{max-width:100px;justify-content:center;font-size:.43rem;line-height:1.25}.mc-connection i{display:none}
  .mc-kickoff-meta{gap:3px}.mc-kickoff-meta span:first-child{font-size:.63rem}.mc-kickoff-meta span:nth-child(2){font-size:.56rem}.mc-kickoff-meta small{font-size:.60rem}
  .mc-match-timeline{padding-inline:12px}.mc-timeline-marker{width:14px;height:14px;font-size:.39rem}
  .mc-tabs{display:flex;overflow-x:auto;scrollbar-width:none}.mc-tabs::-webkit-scrollbar{display:none}.mc-tabs button{flex:1 0 105px;min-height:46px}
  .mc-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-live-stats article{min-height:52px;padding:7px 8px}.mc-live-stats article:nth-child(n){border-right:1px solid rgba(212,169,79,0.1);border-bottom:1px solid rgba(212,169,79,0.1)}.mc-live-stats article:nth-child(2n){border-right:0}.mc-live-stats article:nth-last-child(-n+2){border-bottom:0}
  .mc-pitch-card>header{align-items:flex-start;flex-direction:column}.mc-pitch-modes{width:100%}.mc-pitch-modes button{flex:1;min-height:38px}
  .mc-pitch{aspect-ratio:1.55/1;min-height:250px;margin:7px}.mc-player-number{width:23px;height:23px;font-size:.51rem}.mc-player-label{max-width:58px;font-size:.41rem}.mc-event-ball{width:8px;height:8px}.mc-pitch-text{bottom:4px;max-width:90%;font-size:.43rem}
  .mc-event-card{grid-template-columns:48px minmax(0,1fr);min-height:100px;padding:10px}.mc-event-portrait{width:46px;height:46px;border-radius:12px}.mc-event-score{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;text-align:left}.mc-event-copy>strong{font-size:.72rem;white-space:normal}.mc-event-copy>p{font-size:.6rem}
  .mc-insight-grid{grid-template-columns:1fr}.mc-insight-card{min-height:116px}
  .mc-commentary-card{min-height:400px}.mc-commentary-card>header{align-items:flex-start}.mc-commentary-card>header button{min-height:44px}.mc-commentary-filters button{min-height:40px}.mc-commentary{max-height:510px}.mc-commentary-row{grid-template-columns:31px 27px minmax(0,1fr)}
  .mc-statistics,.mc-players,.mc-tactics{padding:10px}.mc-panel-heading{align-items:flex-start;flex-direction:column}.mc-panel-heading p{text-align:left}.mc-stat-list{grid-template-columns:1fr}.mc-stat-club-head,.mc-stat-values{grid-template-columns:1fr minmax(90px,.9fr) 1fr}
  .mc-player-row{grid-template-columns:minmax(0,1fr) 42px}.mc-player-numbers{grid-column:1/-1;grid-template-columns:repeat(4,1fr)}.mc-player-incidents{grid-column:1/-1;justify-content:flex-start}.mc-tactic-grid{grid-template-columns:1fr 1fr}
  .mc-replay-controls{grid-template-columns:1fr 1fr;margin:0 7px 7px}.mc-replay-controls input{grid-column:1/-1}.mc-replay-controls span{position:absolute;right:18px}
}
@media(max-width:420px){
  .mc-scoreboard{grid-template-columns:1fr 92px 1fr}.mc-club-logo{width:50px;height:50px;flex-basis:50px}.mc-score{font-size:2rem}.mc-club-copy>strong{font-size:.64rem}.mc-live-stats strong{font-size:.78rem}.mc-pitch{min-height:220px}.mc-player-number{width:21px;height:21px;border-width:1px}.mc-player-label{display:none}.mc-pitch.mode-tactical .mc-player-label,.mc-pitch.mode-formation .mc-player-label{display:block}.mc-commentary-filters{display:grid;grid-template-columns:repeat(2,1fr)}.mc-commentary-filters button:first-child{grid-column:1/-1}.mc-key-numbers{grid-template-columns:repeat(2,1fr)}
}
@media(prefers-reduced-motion:reduce){
  .goat-match-centre *,
  .goat-match-centre *::before,
  .goat-match-centre *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* 3.0A.50.23 Match Centre Calendar integration */
.goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}
.goat-calendar-latest-result-shell{display:grid;grid-template-columns:1fr minmax(120px,.8fr) 1fr;align-items:center;gap:12px;min-height:118px}
.goat-calendar-latest-result-shell>div:first-child,.goat-calendar-latest-result-shell>div:last-child{display:grid;justify-items:center;text-align:center;gap:7px;min-width:0}
.goat-calendar-latest-result-shell>div>strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}
.goat-calendar-latest-score{display:grid;justify-items:center;gap:5px;text-align:center}.goat-calendar-latest-score>strong{font-family:var(--display);font-size:1.75rem;color:#fbf7ef}.goat-calendar-latest-score>strong.is-win{color:#67efb0}.goat-calendar-latest-score>strong.is-draw{color:#ffd56a}.goat-calendar-latest-score>strong.is-loss{color:#ff8495}.goat-calendar-latest-score>small{color:#d9d1c2;font-size:.58rem}
.goat-calendar-latest-result-card.is-empty{opacity:.65}.goat-calendar-match-centre-button.is-detail{max-width:260px;margin:10px auto 0;display:block}.goat-calendar-result-text.is-live,.goat-calendar-row-status.is-live{color:#ff7893!important;text-shadow:0 0 16px rgba(255,68,105,.28)}.goat-calendar-result-text.is-finished-processing,.goat-calendar-row-status.is-finished-processing{color:#ffd27a!important}.goat-calendar-fixture-row.is-live{box-shadow:inset 3px 0 #ff496f}.goat-calendar-fixture-row.is-processing{box-shadow:inset 3px 0 #ffc45f}
@media(max-width:980px){.goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:1fr}.goat-calendar-latest-result-shell{min-height:100px}}

/* 3.0A.50.23-preview.3 — isolated Match Centre developer launcher */
.tc5-live-preview{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:14px 0;padding:16px 18px;border:1px solid rgba(212,169,79,0.28);border-radius:15px;background:linear-gradient(135deg,rgba(23,21,15,0.92),rgba(23,21,15,0.86));box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.tc5-live-preview>div{min-width:0}.tc5-live-preview span{display:block;color:#e5c377;font-family:var(--mono);font-size:.66rem;font-weight:950;letter-spacing:.13em}.tc5-live-preview strong{display:block;margin-top:4px;color:#fff;font-size:1rem}.tc5-live-preview p{max-width:760px;margin:5px 0 0;color:rgba(251,247,239,0.7);font-size:.8rem;line-height:1.45}.tc5-live-preview button{flex:0 0 auto;min-height:44px;padding:11px 18px;border:1px solid rgba(212,169,79,0.42);border-radius:11px;background:linear-gradient(135deg,#4c3915,#4c3915);color:#1a1207;font-weight:950;cursor:pointer}.tc5-live-preview button:hover:not(:disabled){filter:brightness(1.08)}.tc5-live-preview button:disabled{opacity:.48;cursor:not-allowed}.tc5-live-preview.starting{border-color:rgba(212,169,79,0.42)}
@media(max-width:780px){.tc5-live-preview{align-items:stretch;flex-direction:column}.tc5-live-preview button{width:100%}}

/* 3.0A.50.23-preview.4 — MATCH > CENTRE and focused live presentation */
.match-centre-hub{display:grid;gap:16px;padding:22px}
.match-centre-hub-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.match-centre-hub-header h2{margin:3px 0 5px;color:#fbf7ef;font-size:1.45rem}
.match-centre-hub-header p:last-child{max-width:720px;margin:0;color:rgba(251,247,239,0.7);line-height:1.55}
.match-centre-hub-status{flex:0 0 auto;padding:7px 10px;border:1px solid rgba(212,169,79,0.25);border-radius:999px;background:rgba(42,34,20,0.12);color:#e5c377;font-family:var(--mono);font-size:.62rem;font-weight:950;letter-spacing:.1em}
.match-centre-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.match-centre-hub-grid article,.match-centre-hub-empty{display:grid;gap:5px;padding:16px;border:1px solid rgba(212,169,79,0.13);border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.84),rgba(13,12,10,0.76))}
.match-centre-hub-grid span{color:#e5c377;font-family:var(--mono);font-size:.58rem;font-weight:950;letter-spacing:.1em}
.match-centre-hub-grid strong,.match-centre-hub-empty strong{color:#fbf7ef;font-size:.93rem}
.match-centre-hub-grid small,.match-centre-hub-empty p{margin:0;color:#d9d1c2;font-size:.7rem;line-height:1.45}
.match-centre-hub-message{min-height:20px;margin:0;color:#ff9cb0;font-size:.72rem}

.mc-club-logo{padding:7px;overflow:hidden}
.mc-club-logo img{display:block;width:auto!important;height:auto!important;max-width:100%;max-height:100%;margin:auto;padding:0!important;object-fit:contain!important}
.mc-score-core{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.mc-clock{order:0;min-width:62px;text-align:center}
.mc-score{order:1;line-height:.9}
.mc-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}

.mc-live-stats{grid-template-columns:repeat(6,minmax(0,1fr));background:linear-gradient(180deg,rgba(13,12,10,0.96),rgba(13,12,10,0.96));border:1px solid rgba(212,169,79,0.1)}
.mc-live-stats article{min-width:0;background:transparent}
.mc-live-possession{grid-template-columns:auto minmax(50px,1fr) auto!important;gap:7px!important}
.mc-possession-donut{--home-possession:50%;position:relative;width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:50%;background:conic-gradient(var(--mc-home) 0 var(--home-possession),var(--mc-away) var(--home-possession) 100%);box-shadow:0 0 16px rgba(212,169,79,0.1)}
.mc-possession-donut::before{content:"";position:absolute;inset:6px;border-radius:50%;background:#0d0c0a}
.mc-possession-donut span{position:relative;z-index:1;color:var(--mc-home)!important;font-size:.58rem!important;letter-spacing:0!important}
.mc-live-possession>span{white-space:nowrap}
.mc-live-possession>strong{font-size:.72rem!important}

.mc-action-outcome{position:absolute;z-index:11;left:50%;top:50%;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid rgba(255,255,255,.8);border-radius:50%;pointer-events:none;filter:drop-shadow(0 0 8px rgba(255,255,255,.35))}
.mc-action-outcome::before,.mc-action-outcome::after{content:"";position:absolute;left:50%;top:50%;width:11px;height:2px;background:currentColor;transform-origin:center}
.mc-action-outcome::before{transform:translate(-50%,-50%) rotate(45deg)}
.mc-action-outcome::after{transform:translate(-50%,-50%) rotate(-45deg)}
.mc-action-outcome.is-shot_off_target{color:#ffad6b;border-color:#ffad6b;background:rgba(255,130,71,.12);animation:mcOutcomeMiss .9s ease-out}
.mc-action-outcome.is-goal{color:#6ff0ad;border-color:#6ff0ad;background:rgba(74,220,148,.22);box-shadow:0 0 0 7px rgba(74,220,148,.1),0 0 24px rgba(74,220,148,.42)}
.mc-action-outcome.is-goal::before,.mc-action-outcome.is-goal::after{width:7px;height:7px;border-radius:50%;background:#6ff0ad;transform:translate(-50%,-50%)}
.mc-action-outcome.is-save,.mc-action-outcome.is-penalty_saved{color:#e5c377;border-color:#d4a94f;background:rgba(76,57,21,0.18)}
.mc-action-outcome.is-save::before,.mc-action-outcome.is-penalty_saved::before{width:8px;height:8px;border:2px solid currentColor;border-radius:50%;background:transparent;transform:translate(-50%,-50%)}
.mc-action-outcome.is-save::after,.mc-action-outcome.is-penalty_saved::after{display:none}
.mc-action-outcome.is-shot_blocked{color:#fbf7ef;border-color:#d4a94f;background:rgba(251,247,239,0.12)}
.mc-action-outcome.is-event{display:none}
@keyframes mcOutcomeMiss{0%{opacity:0;transform:translate(-50%,-50%) scale(.35)}70%{opacity:1;transform:translate(-50%,-50%) scale(1.18)}100%{transform:translate(-50%,-50%) scale(1)}}

.mc-pitch.mode-live .mc-player-label{display:block}
.mc-pitch.mode-live .mc-player-marker{filter:drop-shadow(0 7px 8px rgba(0,0,0,.35))}
.mc-pitch.mode-live .mc-player-number{width:34px;height:34px;font-size:.68rem}
.mc-pitch.mode-live .mc-player-marker.is-current .mc-player-number{box-shadow:0 0 0 6px rgba(99,232,255,.18),0 0 25px rgba(99,232,255,.62)}
.mc-pitch-text{max-width:70%;bottom:9px;padding:6px 11px;font-size:.58rem}

.mc-momentum-section{display:block}
.mc-momentum-card{min-height:145px}
.mc-momentum{position:relative;height:92px;display:grid;grid-template-columns:repeat(18,minmax(0,1fr));align-items:stretch;gap:3px;padding:2px 0}
.mc-momentum-centre-line{position:absolute;z-index:3;left:0;right:0;top:50%;height:2px;transform:translateY(-1px);background:linear-gradient(90deg,transparent,rgba(76,57,21,0.55) 7%,rgba(76,57,21,0.55) 93%,transparent);box-shadow:0 0 8px rgba(212,169,79,0.18)}
.mc-momentum-column{position:relative;display:grid;grid-template-rows:1fr 2px 1fr;align-items:stretch;min-width:0}
.mc-momentum-column>i{position:relative;width:100%;min-height:0;align-self:end;border-radius:3px 3px 0 0;background:linear-gradient(180deg,#2a2214,#4c3915);box-shadow:0 0 7px rgba(212,169,79,0.18)}
.mc-momentum-column>b{display:block}
.mc-momentum-column>i.is-away{align-self:start;border-radius:0 0 3px 3px;background:linear-gradient(180deg,#4c3915,#2a2214);box-shadow:0 0 7px rgba(212,169,79,0.18)}

.goat-calendar-match-centre-button{display:none!important}

@media(max-width:1080px){
  .mc-live-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mc-live-stats article:nth-child(3n){border-right:0}
  .match-centre-hub-grid{grid-template-columns:1fr}
}
@media(max-width:780px){
  .match-centre-hub{padding:14px}.match-centre-hub-header{flex-direction:column}.match-centre-hub-status{align-self:flex-start}
  .mc-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-live-possession{grid-template-columns:auto minmax(44px,1fr) auto!important}
  .mc-possession-donut{width:38px;height:38px;flex-basis:38px}
  .mc-pitch.mode-live .mc-player-number{width:28px;height:28px;font-size:.58rem}
  .mc-pitch-text{max-width:88%;font-size:.48rem}
  .mc-momentum{height:82px;gap:2px}
}
@media(max-width:420px){
  .mc-club-logo{padding:5px}
  .mc-live-stats article{padding:7px 6px}
  .mc-possession-donut{width:34px;height:34px;flex-basis:34px}.mc-possession-donut::before{inset:5px}
  .mc-pitch.mode-live .mc-player-label{display:block;max-width:68px}
}

/* 3.0A.50.23-preview.15 — formation, ratings and live-action corrections */
.mc-club-logo{padding:0}
.mc-club-logo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform:scale(1.18);transform-origin:center}

.mc-pitch-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.mc-pitch-modes button{min-width:72px}

.mc-live-possession{display:grid!important;grid-template-columns:1fr 46px 1fr!important;align-items:center;justify-items:center;gap:8px!important}
.mc-live-possession>strong{font-size:.92rem!important;font-weight:950}
.mc-live-possession>strong.is-home{justify-self:end}
.mc-live-possession>strong.is-away{justify-self:start}
.mc-possession-donut{width:44px;height:44px;flex-basis:44px}
.mc-possession-donut::before{inset:7px}
.mc-possession-donut span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.mc-player-number{position:relative}
.mc-kit-value{display:inline}
.mc-rating-face,.mc-rating-fallback,.mc-pitch-rating{display:none}
.mc-pitch.mode-ratings .mc-active-zone,
.mc-pitch.mode-ratings .mc-pressure,
.mc-pitch.mode-ratings .mc-offside-line,
.mc-pitch.mode-ratings .mc-action-layer,
.mc-pitch.mode-ratings .mc-action-outcome,
.mc-pitch.mode-ratings .mc-event-ball{display:none!important}
.mc-pitch.mode-ratings .mc-player-marker{z-index:10;filter:drop-shadow(0 7px 9px rgba(0,0,0,.45))}
.mc-pitch.mode-ratings .mc-player-number{width:48px;height:48px;overflow:visible;border:2px solid rgba(229,245,255,.38);border-radius:50%;background:#24313d;box-shadow:0 0 0 5px rgba(255,255,255,.08)}
.mc-pitch.mode-ratings .mc-player-marker.is-goalkeeper .mc-player-number{border-radius:50%;background:#3c3323}
.mc-pitch.mode-ratings .mc-kit-value{display:none}
.mc-pitch.mode-ratings .mc-rating-face{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.mc-pitch.mode-ratings .mc-rating-fallback{display:none;color:#fff;font-size:.64rem;font-weight:950}
.mc-pitch.mode-ratings .mc-player-marker.has-portrait-error .mc-rating-face{display:none}
.mc-pitch.mode-ratings .mc-player-marker.has-portrait-error .mc-rating-fallback{display:block}
.mc-pitch.mode-ratings .mc-pitch-rating{position:absolute;z-index:3;right:-10px;top:-8px;min-width:30px;height:21px;display:grid;place-items:center;padding:0 5px;border:2px solid #092033;border-radius:999px;color:#07111f;font-size:.58rem;font-style:normal;font-weight:950;box-shadow:0 4px 8px rgba(0,0,0,.3)}
.mc-pitch-rating.is-poor{background:#ff6f7e}.mc-pitch-rating.is-average{background:#ff9d4d}.mc-pitch-rating.is-good{background:#52dea0}.mc-pitch-rating.is-excellent{background:#38bdf8}.mc-pitch-rating.is-unrated{background:#71849c;color:#eaf3ff}
.mc-pitch.mode-ratings .mc-player-label{display:block;max-width:95px;padding:3px 6px;background:rgba(2,8,15,.84);font-size:.56rem}
.mc-pitch.mode-formation .mc-player-marker{filter:drop-shadow(0 5px 7px rgba(0,0,0,.34))}

.mc-goal-overlay{position:absolute;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%) scale(.7);opacity:0;pointer-events:none;color:#fff;font-family:var(--display);font-size:clamp(2.4rem,7vw,6rem);font-weight:1000;letter-spacing:.12em;text-shadow:0 0 8px #d4a94f,0 0 24px #d4a94f,0 8px 28px rgba(0,0,0,.75)}
.mc-goal-overlay.is-active{opacity:1;animation:mcGoalReveal 1.35s cubic-bezier(.16,.8,.24,1) both}
@keyframes mcGoalReveal{0%{opacity:0;transform:translate(-50%,-50%) scale(.42)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.16)}60%{transform:translate(-50%,-50%) scale(1)}100%{opacity:.92;transform:translate(-50%,-50%) scale(1)}}

.mc-commentary-row.is-home{margin:4px 7px;border:1px solid rgba(212,169,79,0.18);border-radius:10px;background:linear-gradient(105deg,rgba(42,34,20,0.22),rgba(13,12,10,0.62))}
.mc-commentary-row.is-away{margin:4px 7px;border:1px solid rgba(212,169,79,0.2);border-radius:10px;background:linear-gradient(105deg,rgba(42,34,20,0.22),rgba(23,21,15,0.64))}
.mc-commentary-row.is-neutral{background:rgba(23,21,15,0.2)}
.mc-commentary-row.is-home:hover{background:linear-gradient(105deg,rgba(42,34,20,0.3),rgba(23,21,15,0.72))}
.mc-commentary-row.is-away:hover{background:linear-gradient(105deg,rgba(76,57,21,0.3),rgba(23,21,15,0.74))}
.mc-commentary-row.is-important.is-home{border-color:rgba(212,169,79,0.34);background:linear-gradient(105deg,rgba(42,34,20,0.34),rgba(23,21,15,0.75))}
.mc-commentary-row.is-important.is-away{border-color:rgba(212,169,79,0.34);background:linear-gradient(105deg,rgba(76,57,21,0.34),rgba(23,21,15,0.75))}
.mc-commentary-row.is-goal{box-shadow:inset 3px 0 #65e4a8}
.mc-commentary-row.is-red_card{box-shadow:inset 3px 0 var(--mc-red)}
.mc-commentary-row.is-yellow_card{box-shadow:inset 3px 0 var(--mc-yellow)}
.mc-commentary-row.is-injury{box-shadow:inset 3px 0 var(--mc-orange)}

.mc-momentum-column.is-future{opacity:.22}
.mc-momentum-column.is-future::after{content:"";position:absolute;left:35%;right:35%;top:48%;height:4px;border-radius:4px;background:rgba(76,57,21,0.3)}

.mc-player-columns{align-items:start}
.mc-team-sheet{min-width:0;overflow:hidden}
.mc-player-group{margin-top:12px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.mc-player-group-head,.mc-player-row{--mc-player-grid:minmax(145px,1.5fr) 48px repeat(9,minmax(28px,.35fr)) 42px;display:grid;grid-template-columns:var(--mc-player-grid);align-items:center;gap:4px;min-width:570px}
.mc-player-group-head{position:sticky;top:0;z-index:2;padding:7px;border:1px solid rgba(212,169,79,0.11);border-radius:8px;background:#17150f}
.mc-player-group-head h3{margin:0!important;color:#d9d1c2!important;font-size:.54rem!important;letter-spacing:.11em}
.mc-player-group-head span{text-align:center;color:#d9d1c2;font-size:.42rem;font-weight:950}
.mc-player-row{min-height:52px;padding:6px 7px}
.mc-player-row .mc-player-identity{min-width:0}
.mc-player-row .mc-player-identity strong{display:flex;align-items:center;gap:5px}
.mc-player-row .mc-player-identity small{display:flex;align-items:center;gap:5px;margin-top:2px}
.mc-player-cell{display:grid;place-items:center;color:#fbf7ef;font-size:.58rem;font-weight:850;text-align:center}
.mc-table-rating{min-width:31px;padding:4px 5px;border-radius:999px;color:#1a1207;font-weight:950}
.mc-table-rating.is-poor{background:#ff6f7e}.mc-table-rating.is-average{background:#ff9d4d}.mc-table-rating.is-good{background:#52dea0}.mc-table-rating.is-excellent{background:#4c3915}.mc-table-rating.is-unrated{background:#2a2214;color:#fbf7ef}
.mc-player-status{display:inline-grid;place-items:center;min-height:16px;padding:1px 4px;border-radius:5px;font-size:.42rem;font-style:normal;font-weight:950}
.mc-player-status.is-on{background:rgba(75,224,171,.15);color:#68eab2}.mc-player-status.is-off{background:rgba(255,115,139,.14);color:#ff8ca0}.mc-player-status.is-injury{background:rgba(255,158,89,.16);color:#ffad72}
.mc-card-dot{display:inline-block;width:6px;height:9px;border-radius:1px}.mc-card-dot.is-yellow{background:var(--mc-yellow)}.mc-card-dot.is-red{background:var(--mc-red)}.mc-injury-dot{color:var(--mc-orange)}
.mc-player-row.is-potm{box-shadow:inset 3px 0 #ffd36a;background:linear-gradient(90deg,rgba(255,196,80,.12),transparent)}
.mc-potm{display:grid;grid-template-columns:68px minmax(140px,1fr) 56px;align-items:center;gap:12px;min-width:300px;padding:10px 12px;border:1px solid rgba(255,211,106,.28);border-radius:14px;background:linear-gradient(120deg,rgba(101,73,24,.32),rgba(23,21,15,0.82));color:#f9dc92!important}
.mc-potm-portrait{width:68px;height:68px;display:grid;place-items:center;overflow:hidden;border:2px solid rgba(255,218,127,.48);border-radius:16px;background:#1a2b45;color:#ffd676;font-weight:950}
.mc-potm-portrait img{width:100%;height:100%;object-fit:cover}
.mc-potm>div:nth-child(2){display:grid;gap:2px}.mc-potm span{color:#d9ad54!important;font-size:.48rem!important;letter-spacing:.12em}.mc-potm strong{color:#fff4d1;font-size:.83rem}.mc-potm small{color:#a9956d;font-size:.54rem}.mc-potm>b{display:grid;place-items:center;width:52px;height:38px;border-radius:12px;color:#1a1207;font-size:1rem}.mc-potm>b.is-poor{background:#ff6f7e}.mc-potm>b.is-average{background:#ff9d4d}.mc-potm>b.is-good{background:#52dea0}.mc-potm>b.is-excellent{background:#4c3915}

@media(max-width:1180px){.mc-player-columns{grid-template-columns:1fr}.mc-potm{min-width:0}}
@media(max-width:780px){
  .mc-pitch-modes button{min-width:0;padding:6px 7px}
  .mc-pitch.mode-ratings .mc-player-number{width:38px;height:38px}.mc-pitch.mode-ratings .mc-pitch-rating{right:-9px;top:-7px;min-width:26px;height:18px;font-size:.5rem}.mc-pitch.mode-ratings .mc-player-label{font-size:.47rem}
  .mc-panel-heading .mc-potm{width:100%;grid-template-columns:58px 1fr 48px}.mc-potm-portrait{width:58px;height:58px}
}
@media(max-width:420px){
  .mc-live-possession{grid-template-columns:1fr 38px 1fr!important}.mc-possession-donut{width:38px;height:38px;flex-basis:38px}
  .mc-goal-overlay{font-size:2.35rem}
}
@media(prefers-reduced-motion:reduce){.mc-goal-overlay.is-active{animation:none;opacity:.92;transform:translate(-50%,-50%)}}

/* 3.0A.50.23-preview.15 — asset-driven live pitch, commentary, and sizing refinements */
.mc-tab-icon{display:inline-grid;place-items:center;width:18px;height:18px;flex:0 0 18px}
.mc-tab-icon img{display:block;width:16px;height:16px;object-fit:contain}
.mc-tabs button{gap:8px}

.mc-club-logo{padding:0!important;overflow:hidden}
.mc-club-logo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;transform:scale(1.32)!important;transform-origin:center}

.mc-score{font-size:3rem!important;letter-spacing:.02em}

.mc-live-grid{grid-template-columns:minmax(0,1.32fr) 360px;gap:10px;align-items:start}
.mc-live-main{gap:8px}
.mc-commentary-card{display:grid;gap:10px;align-self:start}
.mc-commentary-card>header{margin-top:0}
.mc-commentary{max-height:430px}

.mc-pitch-card{overflow:hidden}
.mc-pitch{min-height:320px;aspect-ratio:1.82/1;margin:4px 6px 6px;background:#0a2130}
.mc-pitch-surface{background:url('/mc-pitch-bg.png') center/cover no-repeat!important;filter:saturate(1.02) brightness(.98)}
.mc-pitch::before,.mc-pitch::after,.mc-pitch-halfway,.mc-pitch-circle,.mc-box,.mc-six,.mc-goal{display:none!important}
.mc-pitch-text{max-width:82%;bottom:6px;padding:5px 10px;font-size:.52rem}

.mc-event-ball{width:18px;height:18px;border-radius:0;background:transparent!important;box-shadow:none!important;background-image:url('/mc-matchball.png');background-position:center;background-repeat:no-repeat;background-size:contain}
.mc-action-outcome{width:26px;height:26px;border:0!important;background:transparent!important;filter:drop-shadow(0 2px 8px rgba(0,0,0,.35))}
.mc-action-outcome::before,.mc-action-outcome::after{display:none!important}
.mc-action-outcome.is-shot_off_target,.mc-action-outcome.is-gk_distribution_lost{background-image:url('/mc-miss.png')!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
.mc-action-outcome.is-save,.mc-action-outcome.is-penalty_saved{background-image:url('/mc-matchsave.png')!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important}
.mc-action-outcome.is-goal{width:auto;height:auto;padding:4px 10px;border-radius:999px;background:rgba(71,222,152,.18)!important;border:2px solid rgba(111,240,173,.86)!important;color:#d9ffe9;box-shadow:0 0 0 7px rgba(74,220,148,.08),0 0 24px rgba(74,220,148,.32)}

.mc-pitch.mode-live .mc-player-marker{filter:drop-shadow(0 6px 8px rgba(0,0,0,.42))}
.mc-pitch.mode-live .mc-player-number{width:38px;height:38px;overflow:hidden;border:2px solid rgba(229,245,255,.32);border-radius:50%;background:#20323c;box-shadow:0 0 0 4px rgba(255,255,255,.05)}
.mc-pitch.mode-live .mc-player-marker.is-away .mc-player-number{background:#302342}
.mc-pitch.mode-live .mc-player-marker.is-goalkeeper .mc-player-number{background:#3c3323}
.mc-pitch.mode-live .mc-rating-face{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center 18%}
.mc-pitch.mode-live .mc-kit-value{display:none}
.mc-pitch.mode-live .mc-rating-fallback{display:none;color:#fff;font-size:.64rem;font-weight:950}
.mc-pitch.mode-live .mc-player-marker.has-portrait-error .mc-rating-face{display:none}
.mc-pitch.mode-live .mc-player-marker.has-portrait-error .mc-rating-fallback{display:block}
.mc-pitch.mode-live .mc-pitch-rating{display:none!important}
.mc-pitch.mode-live .mc-player-label{display:block;max-width:76px;padding:3px 6px;background:rgba(2,8,15,.84);font-size:.52rem}
.mc-pitch.mode-ratings .mc-player-number{overflow:hidden!important}
.mc-pitch.mode-ratings .mc-rating-face{object-fit:cover;object-position:center 18%}
.mc-pitch.mode-ratings .mc-player-label{font-size:.54rem}

.mc-live-stats{grid-template-columns:repeat(6,minmax(0,1fr));background:linear-gradient(180deg,rgba(13,12,10,0.96),rgba(13,12,10,0.96));border:1px solid rgba(212,169,79,0.1)}
.mc-live-possession{display:grid!important;grid-template-columns:1fr 44px 1fr!important;align-items:center;gap:8px}
.mc-live-possession strong.is-home{justify-self:end;color:#e5c377!important}
.mc-live-possession strong.is-away{justify-self:start;color:#e5c377!important}
.mc-possession-donut{--home-possession:50%;position:relative;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(from -90deg,#4c3915 0 var(--home-possession),#4c3915 var(--home-possession) 100%);box-shadow:0 0 16px rgba(212,169,79,0.12)}
.mc-possession-donut::before{content:"";position:absolute;inset:7px;border-radius:50%;background:#0d0c0a}

.mc-momentum{min-height:138px}
.mc-momentum-card small{display:block}
.mc-momentum-column{display:grid;grid-template-rows:1fr 2px 1fr;align-items:center}
.mc-momentum-column b{background:rgba(255,255,255,.18);height:2px;width:100%}
.mc-momentum-column i.is-home{align-self:end;background:linear-gradient(180deg,rgba(76,57,21,0.18),#4c3915)}
.mc-momentum-column i.is-away{align-self:start;background:linear-gradient(180deg,#4c3915,rgba(76,57,21,0.18))}

.mc-commentary-row{border:1px solid rgba(212,169,79,0.08);border-radius:14px;padding:10px;background:rgba(13,12,10,0.9)}
.mc-commentary-row.is-home{background:linear-gradient(180deg,rgba(23,21,15,0.96),rgba(13,12,10,0.96));border-color:rgba(212,169,79,0.18)}
.mc-commentary-row.is-away{background:linear-gradient(180deg,rgba(23,21,15,0.96),rgba(13,12,10,0.96));border-color:rgba(212,169,79,0.2)}
.mc-commentary-row.is-neutral{background:rgba(13,12,10,0.92)}
.mc-commentary-icon img{display:block;width:20px;height:20px;object-fit:contain}
.mc-inline-icon-passing{filter:brightness(0) invert(1)}
.mc-inline-glyph{display:grid;place-items:center;width:20px;height:20px;color:#fbf7ef;font-weight:900}

.mc-event-card{margin-bottom:0}
.mc-event-portrait img,.mc-event-portrait .mc-inline-icon{display:block;width:100%;height:100%;object-fit:cover}
.mc-event-portrait .mc-inline-icon{object-fit:contain}

.mc-stat-club-head strong:first-child,.mc-stat-values strong:first-child{color:#e5c377!important}
.mc-stat-club-head strong:last-child,.mc-stat-values strong:last-child{color:#e5c377!important}
.mc-stat-bars i{background:linear-gradient(90deg,#2a2214,#4c3915)!important}
.mc-stat-bars i:last-child{background:linear-gradient(90deg,#4c3915,#4c3915)!important}

@media (max-width: 1080px){
  .mc-live-grid{grid-template-columns:1fr}
  .mc-commentary{max-height:unset}
}
@media (max-width: 680px){
  .mc-score{font-size:2.25rem!important}
  .mc-pitch{min-height:235px;aspect-ratio:1.6/1}
  .mc-pitch.mode-live .mc-player-number{width:30px;height:30px}
  .mc-pitch.mode-live .mc-player-label{max-width:64px;font-size:.45rem}
  .mc-live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-live-possession{grid-column:1/-1}
}

/* 3.0A.50.23-preview.15 refinements */
.mc-event-ball{width:24px!important;height:24px!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important}
.mc-action-outcome{width:30px!important;height:30px!important;background-color:transparent!important;border:0!important;box-shadow:none!important;filter:none!important}
.mc-action-outcome.is-shot_off_target,.mc-action-outcome.is-gk_distribution_lost{background-size:100% 100%!important}
.mc-commentary-card>.mc-event-card{display:none!important}
.mc-commentary-icon,.mc-commentary-icon img,.mc-inline-icon{width:20px!important;height:20px!important;display:inline-grid!important;place-items:center;object-fit:contain!important;vertical-align:middle}
.mc-inline-icon-passing{width:18px!important;height:18px!important;filter:brightness(0) invert(1)}
.mc-inline-glyph{width:20px!important;height:20px!important}
.mc-possession-donut{background:linear-gradient(90deg,#4c3915 0 var(--home-possession),#4c3915 var(--home-possession) 100%)!important}
.mc-pitch.mode-ratings .mc-player-marker{overflow:visible!important}
.mc-pitch.mode-ratings .mc-pitch-rating{display:grid!important;z-index:9!important}
.mc-tab-icon img{width:18px!important;height:18px!important;object-fit:contain!important}

/* 3.0A.50.23-preview.15 — transparent pitch assets, aligned commentary, restored ratings and sound-ready tabs */
.mc-tab-icon{width:18px!important;height:18px!important;display:inline-block!important;background:currentColor!important;opacity:.92;mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain}
.mc-tab-icon-live{mask-image:url('/mc-matchlive.png');-webkit-mask-image:url('/mc-matchlive.png')}
.mc-tab-icon-statistics{mask-image:url('/mc-stats.png');-webkit-mask-image:url('/mc-stats.png')}
.mc-tab-icon-players{mask-image:url('/mc-players.png');-webkit-mask-image:url('/mc-players.png')}
.mc-tabs button.active .mc-tab-icon{opacity:1}

.mc-score{font-size:3.55rem!important;line-height:.82!important}

.mc-live-grid{align-items:stretch!important}
.mc-commentary-card{position:static!important;top:auto!important;min-height:0!important;max-height:none!important;height:100%!important;display:flex!important;flex-direction:column!important;align-self:stretch!important}
.mc-commentary-card>header,.mc-commentary-filters,.mc-commentary-latest{flex:0 0 auto}
.mc-commentary{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}

.mc-pitch{aspect-ratio:1518/866!important;background:transparent!important;overflow:hidden!important}
.mc-pitch-surface{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-fit:fill!important;object-position:center!important;background:none!important;filter:saturate(1.02) brightness(.98);border-radius:inherit}

.mc-event-ball{display:block!important;width:30px!important;height:30px!important;padding:0!important;border:0!important;border-radius:50%!important;background:none!important;box-shadow:none!important;object-fit:contain!important;filter:drop-shadow(0 2px 5px rgba(0,0,0,.55));z-index:12!important}
.mc-event-ball.hidden{display:none!important}
.mc-action-outcome{display:block;width:34px!important;height:34px!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;object-fit:contain!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.28))!important;transform:translate(-50%,-50%) translate(var(--mc-outcome-offset-x,0),var(--mc-outcome-offset-y,0))!important;z-index:13!important}
.mc-action-outcome.hidden{display:none!important}
.mc-action-outcome.is-gk_distribution_lost{width:30px!important;height:30px!important}

.mc-pitch.mode-ratings .mc-player-number{overflow:visible!important}
.mc-pitch.mode-ratings .mc-rating-face{display:block!important;width:100%!important;height:100%!important;border-radius:50%!important;clip-path:circle(49% at 50% 50%);object-fit:cover!important;object-position:center 18%!important}
.mc-pitch.mode-ratings .mc-pitch-rating{display:grid!important;position:absolute!important;z-index:20!important;right:-10px!important;top:-10px!important;visibility:visible!important;opacity:1!important}

.mc-possession-donut{background:linear-gradient(90deg,#4c3915 0 var(--home-possession),#4c3915 var(--home-possession) 100%)!important}

@media(max-width:1080px){
  .mc-commentary-card{height:auto!important}
  .mc-commentary{max-height:520px!important}
}
@media(max-width:680px){
  .mc-score{font-size:2.55rem!important}
  .mc-event-ball{width:24px!important;height:24px!important}
  .mc-action-outcome{width:28px!important;height:28px!important}
}

/* 3.0A.50.23-preview.15 refinements */
.mc-pitch{background:transparent!important}
.mc-pitch-surface{background:url('/mc-pitch-bg.png') center center/100% 100% no-repeat!important;background-color:transparent!important}

/* Tabs: tint monochrome icons to match label color */
.mc-tabs button .mc-tab-icon img{filter:brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%)}
.mc-tabs button.active .mc-tab-icon img{filter:brightness(0) invert(89%) sepia(19%) saturate(560%) hue-rotate(349deg) brightness(104%) contrast(96%)}

/* Score slightly bigger */
.mc-score{font-size:3.35rem!important;line-height:1!important}

/* Fixed-height live commentary aligned with momentum area; internal scrolling only */
.mc-live-grid{align-items:stretch!important}
.mc-live-main{min-height:0!important}
.mc-commentary-card{display:flex!important;flex-direction:column!important;align-self:stretch!important;height:auto!important;max-height:min(770px, calc(100vh - 170px))!important;min-height:min(770px, calc(100vh - 170px))!important;overflow:hidden!important}
.mc-commentary{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important}

/* Smaller pitch markers */
.mc-event-ball{display:block!important;width:21px!important;height:21px!important;max-width:21px!important;max-height:21px!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;object-fit:contain!important;object-position:center!important;filter:drop-shadow(0 2px 4px rgba(0,0,0,.35));image-rendering:auto}
.mc-action-outcome{display:block!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;object-fit:contain!important;object-position:center!important}
.mc-action-outcome.is-shot_off_target{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;filter:none!important}
.mc-action-outcome.is-gk_distribution_lost{width:26px!important;height:26px!important;max-width:26px!important;max-height:26px!important;filter:none!important}
.mc-action-outcome.is-save,.mc-action-outcome.is-penalty_saved{width:30px!important;height:30px!important;max-width:30px!important;max-height:30px!important}

/* ratings portraits and badge */
.mc-pitch.mode-ratings .mc-player-number{overflow:hidden!important}
.mc-pitch.mode-ratings .mc-rating-face{display:block!important;width:100%!important;height:100%!important;border-radius:50%!important;clip-path:circle(49% at 50% 50%);object-fit:cover!important;object-position:center 8%!important;transform:scale(1.03)!important}
.mc-pitch.mode-ratings .mc-pitch-rating{display:grid!important;position:absolute!important;z-index:25!important;right:-9px!important;top:-8px!important;visibility:visible!important;opacity:1!important}

@media (max-width: 1080px){
  .mc-commentary-card{max-height:none!important;min-height:0!important}
}
@media (max-width: 680px){
  .mc-score{font-size:2.45rem!important}
  .mc-event-ball{width:17px!important;height:17px!important}
  .mc-action-outcome.is-shot_off_target,.mc-action-outcome.is-gk_distribution_lost{width:22px!important;height:22px!important}
}

/* 3.0A.50.23-preview.15 — crop portrait only; never clip the rating badge */
.mc-pitch.mode-ratings .mc-player-marker,
.mc-pitch.mode-ratings .mc-player-number{overflow:visible!important}
.mc-pitch.mode-ratings .mc-rating-face{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border-radius:50%!important;
  clip-path:circle(48% at 50% 46%)!important;
  object-fit:cover!important;
  object-position:center 12%!important;
  transform:translateY(-2px) scale(1.06)!important;
}
.mc-pitch.mode-ratings .mc-pitch-rating{
  display:grid!important;
  position:absolute!important;
  z-index:40!important;
  right:-9px!important;
  top:-8px!important;
  visibility:visible!important;
  opacity:1!important;
}

/* 3.0A.50.23-preview.15 — fixed portrait mask with independent rating badge */
.mc-player-portrait-mask{display:none;position:absolute;inset:0;border-radius:50%;overflow:hidden;z-index:1}
.mc-player-portrait-mask .mc-rating-face{position:absolute;left:50%;top:0;width:108%!important;height:114%!important;max-width:none!important;max-height:none!important;border-radius:0!important;clip-path:none!important;object-fit:cover!important;object-position:center top!important;transform:translate(-50%,-3px)!important}
.mc-player-portrait-mask .mc-rating-fallback{position:absolute;inset:0;place-items:center;border-radius:50%}
.mc-pitch.mode-live .mc-player-portrait-mask,
.mc-pitch.mode-ratings .mc-player-portrait-mask{display:block!important}
.mc-pitch.mode-live .mc-player-number,
.mc-pitch.mode-ratings .mc-player-number{overflow:visible!important}
.mc-pitch.mode-live .mc-rating-face,
.mc-pitch.mode-ratings .mc-rating-face{display:block!important}
.mc-pitch.mode-live .mc-player-marker.has-portrait-error .mc-player-portrait-mask .mc-rating-face,
.mc-pitch.mode-ratings .mc-player-marker.has-portrait-error .mc-player-portrait-mask .mc-rating-face{display:none!important}
.mc-pitch.mode-live .mc-player-marker.has-portrait-error .mc-player-portrait-mask .mc-rating-fallback,
.mc-pitch.mode-ratings .mc-player-marker.has-portrait-error .mc-player-portrait-mask .mc-rating-fallback{display:grid!important}
.mc-pitch.mode-ratings .mc-pitch-rating{z-index:50!important;right:-9px!important;top:-8px!important}

/* 3.0A.50.23-preview.15 — final centred portrait mask; crop bottom only */
.mc-pitch.mode-ratings .mc-player-portrait-mask,
.mc-pitch.mode-live .mc-player-portrait-mask{
  display:block!important;
  position:absolute!important;
  inset:2px!important;
  overflow:hidden!important;
  border-radius:50%!important;
  z-index:1!important;
}
.mc-pitch.mode-ratings .mc-player-portrait-mask .mc-rating-face,
.mc-pitch.mode-live .mc-player-portrait-mask .mc-rating-face{
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:-4px!important;
  width:110%!important;
  height:118%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border-radius:0!important;
  clip-path:none!important;
  object-fit:cover!important;
  object-position:center top!important;
  transform:translateX(-50%)!important;
  transform-origin:center top!important;
}
.mc-pitch.mode-ratings .mc-player-number,
.mc-pitch.mode-ratings .mc-player-marker{
  overflow:visible!important;
}
.mc-pitch.mode-ratings .mc-pitch-rating{
  display:grid!important;
  z-index:60!important;
  visibility:visible!important;
  opacity:1!important;
}

/* 3.0A.50.23-preview.15 — commentary alignment, media sizing, attacking zones */
@media (min-width:1081px){
  .mc-live-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1.32fr) 360px!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .mc-live-main,.mc-live-side{display:contents!important}
  .mc-pitch-card{grid-column:1;grid-row:1;min-height:0}
  .mc-momentum-section{grid-column:1;grid-row:2;min-width:0}
  .mc-commentary-card{
    grid-column:2;grid-row:1;
    display:flex!important;
    flex-direction:column!important;
    align-self:stretch!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  .mc-commentary{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}
  .mc-attacking-zones-card{grid-column:2;grid-row:2;align-self:stretch;min-height:0}
}

.mc-commentary-row{grid-template-columns:34px 38px minmax(0,1fr)!important;align-items:start}
.mc-commentary-icon{width:30px!important;height:30px!important;display:grid!important;place-items:center!important;overflow:visible!important}
.mc-commentary-icon>span{display:grid;place-items:center;width:100%;height:100%}
.mc-commentary-icon img.mc-inline-icon{width:22px!important;height:22px!important;object-fit:contain!important}
.mc-commentary-icon.is-player-portrait{width:34px!important;height:34px!important;border-radius:50%!important;overflow:hidden!important;border:2px solid rgba(202,231,255,.32);background:#1b2b45}
.mc-commentary-icon.is-player-portrait img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 14%!important}
.mc-commentary-row.is-shot_off_target .mc-commentary-icon img,
.mc-commentary-row.is-gk_distribution_lost .mc-commentary-icon img{width:15px!important;height:15px!important}
.mc-commentary-row.is-corner .mc-commentary-icon img{width:25px!important;height:25px!important}

.mc-attacking-zones-card{display:grid;grid-template-rows:auto 1fr;gap:7px;padding:10px 12px!important;overflow:hidden}
.mc-attacking-zones-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mc-attacking-zones-card>header span{color:#fbf7ef;font-size:.69rem;font-weight:950;letter-spacing:.09em}
.mc-attacking-zones-card>header small{color:#d9d1c2;font-size:.5rem}
.mc-attacking-zones{display:grid;grid-template-rows:minmax(92px,1fr) auto;gap:5px;min-height:0}
.mc-zone-pitch{position:relative;display:grid;grid-template-rows:repeat(3,1fr);overflow:hidden;border:1px solid rgba(170,197,230,.22);border-radius:10px;background:linear-gradient(90deg,rgba(42,190,255,.045),rgba(255,255,255,.018) 49.7%,rgba(255,255,255,.12) 50%,rgba(162,101,255,.045));box-shadow:inset 0 0 22px rgba(0,0,0,.2)}
.mc-zone-pitch::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:rgba(191,215,242,.2)}
.mc-zone-pitch::after{content:"";position:absolute;inset:8% 4%;border:1px solid rgba(191,215,242,.12);border-radius:4px;pointer-events:none}
.mc-zone-row{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;border-bottom:1px solid rgba(212,169,79,0.09);padding:3px 9px;gap:12px}
.mc-zone-row:last-child{border-bottom:0}
.mc-zone-home,.mc-zone-away{position:relative;height:24px;display:flex;align-items:center;min-width:58px;width:clamp(30%,var(--zone-value),96%);font-size:.57rem;font-weight:950}
.mc-zone-home{justify-self:end;justify-content:flex-end;padding:0 9px 0 5px;color:#1a1207;background:linear-gradient(90deg,rgba(42,34,20,0.68),#4c3915);clip-path:polygon(0 50%,12px 0,100% 0,100% 100%,12px 100%)}
.mc-zone-away{justify-self:start;justify-content:flex-start;padding:0 5px 0 9px;color:#fff;background:linear-gradient(90deg,#4c3915,rgba(42,34,20,0.72));clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)}
.mc-zone-home span,.mc-zone-away span{position:relative;z-index:1;padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.82);color:#1a1207}
.mc-zone-away span{background:rgba(13,12,10,0.82);color:#fff}
.mc-zone-home small,.mc-zone-away small{position:absolute;bottom:-12px;color:#d9d1c2;font-size:.4rem;text-transform:uppercase;letter-spacing:.08em}
.mc-zone-home small{right:3px}.mc-zone-away small{left:3px}
.mc-zone-legend{display:grid;grid-template-columns:1fr 1fr;gap:10px;color:#d9d1c2;font-size:.5rem;overflow:hidden}
.mc-zone-legend strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-zone-legend .is-home{color:#e5c377}.mc-zone-legend .is-away{text-align:right;color:#e5c377}

@media (max-width:1080px){
  .mc-live-main,.mc-live-side{display:grid!important;gap:10px!important}
  .mc-live-side{margin-top:10px}
  .mc-commentary-card{height:auto!important;min-height:400px!important;max-height:none!important}
  .mc-commentary{max-height:510px!important}
  .mc-attacking-zones-card{min-height:170px}
}


/* 3.0A.50.23-preview.35 — match centre audio/UI, calendar layout, objectives/settings */
.goat-calendar-friendly-available,
.goat-calendar-modern .goat-calendar-friendly-available,
.goat-calendar-day-entry.is-friendly.goat-calendar-friendly-available{border-color:rgba(255,206,86,.42)!important;background:rgba(255,206,86,.12)!important;color:#ffe082!important}
.goat-calendar-day-entry.is-friendly.goat-calendar-friendly-available small{color:#ffe8b0!important}
.goat-calendar-modern .goat-calendar-next-match-shell{grid-template-columns:minmax(0,1fr) minmax(150px,.9fr) minmax(0,1fr)!important;align-items:stretch!important}
.goat-calendar-modern .goat-calendar-next-match-clubs,.goat-calendar-modern .goat-calendar-next-match-datetime,.goat-calendar-modern .goat-calendar-next-match-info{height:100%!important}
.goat-calendar-modern .goat-calendar-next-match-datetime{display:grid!important;align-content:center!important;justify-items:center!important;gap:5px!important;padding:8px 12px!important;border-left:1px solid rgba(255,255,255,.09)!important;border-right:1px solid rgba(255,255,255,.09)!important}
.goat-calendar-next-match-datetime>strong{font-size:1rem!important;line-height:1.25!important;text-align:center!important}
.goat-calendar-next-match-datetime>span{display:block!important;font-size:.76rem!important;line-height:1.2!important;color:var(--muted)!important;letter-spacing:.08em!important;text-transform:uppercase!important;text-align:center!important}
.goat-calendar-next-match-datetime>small{font-size:1.28rem!important;line-height:1!important;text-align:center!important}
.goat-calendar-modern .goat-calendar-team-block{align-content:start!important;min-width:0!important}
.goat-calendar-modern .goat-calendar-team-block strong{max-width:100%!important;min-height:2.65em!important;white-space:normal!important;overflow:visible!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;line-height:1.25!important}
.goat-calendar-modern .goat-calendar-next-match-info{display:grid!important;align-content:center!important;gap:10px!important}
.goat-calendar-modern .goat-calendar-detail-line small{white-space:normal!important;word-break:break-word!important}
@media (max-width: 980px){.goat-calendar-modern .goat-calendar-next-match-shell{grid-template-columns:1fr!important}.goat-calendar-modern .goat-calendar-next-match-datetime{border-left:0!important;border-right:0!important;border-top:1px solid rgba(255,255,255,.09)!important;border-bottom:1px solid rgba(255,255,255,.09)!important}}

.mc-live-grid{align-items:stretch!important}
@media (min-width:1081px){.mc-live-grid{grid-template-columns:minmax(0,1.32fr) 370px!important;grid-template-rows:auto auto!important}.mc-pitch-card,.mc-momentum-section,.mc-commentary-card,.mc-attacking-zones-card{height:100%!important}.mc-momentum-section,.mc-attacking-zones-card{align-self:stretch!important}}
.mc-commentary-row{grid-template-columns:34px 46px minmax(0,1fr)!important}
.mc-commentary-icon{width:38px!important;height:38px!important}
.mc-commentary-icon.is-player-portrait{width:40px!important;height:40px!important}
.mc-commentary-row.is-shot_off_target .mc-commentary-icon img,.mc-commentary-row.is-gk_distribution_lost .mc-commentary-icon img{width:12px!important;height:12px!important}
.mc-commentary-row.is-goal .mc-commentary-action{color:#56e381!important;font-weight:1000!important;font-size:.98rem!important;letter-spacing:.06em!important}
.mc-commentary-row.is-yellow_card .mc-commentary-action{color:#ffd94a!important;font-weight:1000!important}
.mc-commentary-row.is-red_card .mc-commentary-action{color:#ff6464!important;font-weight:1000!important}
.mc-attacking-zones{display:grid;grid-template-rows:minmax(112px,1fr) auto;gap:8px;min-height:0}
.mc-zone-row{grid-template-columns:1fr 1fr!important;gap:14px!important;align-items:center!important;padding:4px 9px!important}
.mc-zone-away,.mc-zone-home{width:100%!important;max-width:none!important}
.mc-zone-away{justify-self:start!important}
.mc-zone-home{justify-self:end!important}
.mc-zone-legend{grid-template-columns:1fr 1fr!important}.mc-zone-legend .is-away{text-align:left!important}.mc-zone-legend .is-home{text-align:right!important}


/* 3.0A.50.23-preview.35 — Match Centre crash fix and centred attacking zones */
.mc-zone-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:16px!important;
  padding:5px 12px!important;
  align-items:center!important;
}
.mc-zone-half{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
}
.mc-zone-half.is-home-half{justify-content:flex-end!important}
.mc-zone-half.is-away-half{justify-content:flex-start!important}
.mc-zone-home,.mc-zone-away{
  width:var(--zone-width)!important;
  max-width:94%!important;
  min-width:44%!important;
  height:26px!important;
  margin:0!important;
}
/* Home is left and attacks left-to-right: arrowhead points right toward centre. */
.mc-zone-home{
  justify-content:flex-end!important;
  justify-self:auto!important;
  padding:0 12px 0 7px!important;
  clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)!important;
}
/* Away is right and attacks right-to-left: arrowhead points left toward centre. */
.mc-zone-away{
  justify-content:flex-start!important;
  justify-self:auto!important;
  padding:0 7px 0 12px!important;
  clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%)!important;
}
.mc-zone-home small{right:8px!important;left:auto!important}
.mc-zone-away small{left:8px!important;right:auto!important}
.mc-zone-legend{grid-template-columns:1fr 1fr!important}
.mc-zone-legend .is-home{text-align:left!important;color:#e5c377!important}
.mc-zone-legend .is-away{text-align:right!important;color:#e5c377!important}


/* 3.0A.50.23-preview.35 — final attacking-zones/audio/pitch presentation overrides */
@media (min-width:1081px){
  .mc-momentum-section,
  .mc-attacking-zones-card{min-height:216px!important;height:216px!important;align-self:stretch!important}
  .mc-live-grid{grid-template-rows:auto 216px!important;align-items:stretch!important}
}
.mc-attacking-zones-card{display:grid!important;grid-template-rows:auto 1fr!important;overflow:hidden!important}
.mc-attacking-zones{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:8px!important;min-height:0!important;height:100%!important}
.mc-zone-pitch{height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;align-items:stretch!important}
.mc-zone-row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:center!important;gap:14px!important;padding:0 12px!important;min-height:0!important;height:100%!important}
.mc-zone-half{display:flex!important;align-items:center!important;width:100%!important;height:100%!important;min-width:0!important}
.mc-zone-half.is-home-half{justify-content:flex-start!important}
.mc-zone-half.is-away-half{justify-content:flex-end!important}
.mc-zone-home,.mc-zone-away{position:relative!important;height:26px!important;max-width:92%!important;min-width:44%!important;width:var(--zone-width)!important;margin:0!important}
/* Home team shown on the left, arrow points right from the left edge toward midfield. */
.mc-zone-home{justify-self:auto!important;justify-content:flex-end!important;padding:0 12px 0 7px!important;color:#1a1207!important;background:linear-gradient(90deg,rgba(42,34,20,0.68),#4c3915)!important;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)!important}
/* Away team shown on the right, arrow points left from the right edge toward midfield. */
.mc-zone-away{justify-self:auto!important;justify-content:flex-start!important;padding:0 7px 0 12px!important;color:#fff!important;background:linear-gradient(90deg,#4c3915,rgba(42,34,20,0.72))!important;clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%)!important}
.mc-zone-home span,.mc-zone-away span{position:relative!important;z-index:1!important;padding:2px 5px!important;border-radius:999px!important}
.mc-zone-home small,.mc-zone-away small{position:absolute!important;bottom:-12px!important;font-size:.4rem!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#d9d1c2!important}
.mc-zone-home small{right:8px!important;left:auto!important}
.mc-zone-away small{left:8px!important;right:auto!important}
.mc-zone-legend{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.mc-zone-legend .is-home{text-align:left!important;color:#e5c377!important}
.mc-zone-legend .is-away{text-align:right!important;color:#e5c377!important}
.mc-commentary-row.is-goal .mc-commentary-action{font-size:1.05rem!important;letter-spacing:.08em!important}


/* 3.0A.50.23-preview.35 — canonical Attacking Zones geometry */
@media (min-width:1081px){
  .mc-live-grid{grid-template-rows:auto 216px!important;align-items:stretch!important}
  .mc-momentum-section,.mc-attacking-zones-card{height:216px!important;min-height:216px!important;max-height:216px!important;align-self:stretch!important}
}
.mc-attacking-zones-card{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;gap:7px!important;overflow:hidden!important}
.mc-attacking-zones{display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;gap:7px!important;height:100%!important;min-height:0!important}
.mc-zone-pitch{position:relative!important;display:grid!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;grid-auto-rows:0!important;align-items:stretch!important;height:100%!important;min-height:0!important;overflow:hidden!important}
.mc-zone-pitch>.mc-zone-divider{display:none!important;position:absolute!important}
.mc-zone-pitch::before{content:""!important;position:absolute!important;z-index:3!important;left:50%!important;top:0!important;bottom:0!important;width:1px!important;background:rgba(191,215,242,.24)!important;pointer-events:none!important}
.mc-zone-row{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;align-items:center!important;gap:0!important;width:100%!important;height:100%!important;min-height:0!important;padding:0 12px!important;border-bottom:1px solid rgba(212,169,79,0.09)!important;box-sizing:border-box!important}
.mc-zone-row:last-child{border-bottom:0!important}
.mc-zone-half{position:relative!important;display:flex!important;align-items:center!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}
/* Both bars are anchored at the centre line, like the supplied reference. */
.mc-zone-half.is-home-half{justify-content:flex-end!important;padding-right:7px!important}
.mc-zone-half.is-away-half{justify-content:flex-start!important;padding-left:7px!important}
.mc-zone-home,.mc-zone-away{position:relative!important;display:flex!important;align-items:center!important;width:var(--zone-width)!important;min-width:54%!important;max-width:94%!important;height:28px!important;margin:0!important;box-sizing:border-box!important}
/* Home is shown on the left: tail at centre, arrowhead at the outer-left edge. */
.mc-zone-home{justify-content:flex-end!important;padding:0 8px 0 15px!important;color:#1a1207!important;background:linear-gradient(90deg,rgba(42,34,20,0.74),#4c3915)!important;clip-path:polygon(12px 0,100% 0,100% 100%,12px 100%,0 50%)!important}
/* Away is shown on the right: tail at centre, arrowhead at the outer-right edge. */
.mc-zone-away{justify-content:flex-start!important;padding:0 15px 0 8px!important;color:#fff!important;background:linear-gradient(90deg,#4c3915,rgba(42,34,20,0.82))!important;clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%)!important}
.mc-zone-home span,.mc-zone-away span{position:relative!important;z-index:2!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:2px 6px!important;border-radius:999px!important;font-size:.57rem!important;font-weight:950!important;line-height:1!important}
.mc-zone-home span{background:rgba(255,255,255,.88)!important;color:#1a1207!important}
.mc-zone-away span{background:rgba(13,12,10,0.86)!important;color:#fff!important}
.mc-zone-home small,.mc-zone-away small{display:none!important}
.mc-zone-legend{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;overflow:hidden!important;font-size:.5rem!important}
.mc-zone-legend .is-home{text-align:left!important;color:#e5c377!important}
.mc-zone-legend .is-away{text-align:right!important;color:#e5c377!important}
@media (max-width:1080px){
  .mc-momentum-section,.mc-attacking-zones-card{height:auto!important;min-height:170px!important;max-height:none!important}
  .mc-zone-row{padding:0 8px!important}
  .mc-zone-half.is-home-half{padding-right:5px!important}.mc-zone-half.is-away-half{padding-left:5px!important}
}


/* 3.0A.50.23-preview.35 attacking-zones row order/frame cleanup */
.mc-zone-pitch::after{display:none!important;content:none!important}


/* 3.0A.50.23-preview.35 — Calendar cleanup and Match Centre World background */
.goat-calendar-friendly-available,
.goat-calendar-modern .goat-calendar-friendly-available,
.goat-calendar-day-entry.is-friendly.goat-calendar-friendly-available{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
}
.goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.goat-calendar-modern .goat-calendar-next-match-card{grid-column:auto!important}
@media(max-width:980px){.goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:1fr!important}}
body.match-centre-world-background .world-bg{
  background:#0d0c0a!important;
  overflow:hidden!important;
}
body.match-centre-world-background .world-bg::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-6px;
  background:url('/world-background-v164.png') center center/cover no-repeat;
  filter:blur(2px) brightness(.56) saturate(.98);
  transform:scale(1.01);
}
body.match-centre-world-background .world-gradient,
body.match-centre-world-background .world-grid{z-index:1}
body.match-centre-world-background .world-gradient{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.8) 0%,rgba(13,12,10,0.34) 28%,rgba(13,12,10,0.18) 52%,rgba(13,12,10,0.4) 78%,rgba(13,12,10,0.78) 100%),
    linear-gradient(180deg,rgba(13,12,10,0.18) 0%,rgba(13,12,10,0.3) 48%,rgba(13,12,10,0.88) 100%),
    radial-gradient(circle at 52% 28%,rgba(76,57,21,0.1),transparent 34rem)!important;
  animation:none!important;
}
body.match-centre-world-background .world-grid{opacity:.025!important}
.match-centre-open{background:transparent!important}


/* 3.0A.50.23-preview.35 — authoritative public Calendar dashboard layout.
   This is intentionally the only post-preview.35 Calendar dashboard override.
   The Match Centre viewer is untouched. */
@media (min-width: 1181px) {
  .goat-calendar-modern .goat-calendar-dashboard {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .goat-calendar-modern .goat-calendar-overview-card {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .goat-calendar-modern .goat-calendar-next-match-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  .goat-calendar-modern .goat-calendar-registration-card {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
}
@media (max-width: 1180px) {
  .goat-calendar-modern .goat-calendar-dashboard {
    grid-template-columns: 1fr !important;
  }
}


/* 3.0A.50.23-preview.35 — Next Match column proportions and Match menu order */
@media (min-width: 981px){
  .goat-calendar-modern .goat-calendar-next-match-shell{
    grid-template-columns:minmax(0,1.7fr) minmax(148px,.78fr) minmax(150px,.86fr)!important;
    column-gap:0!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-clubs{
    min-width:0!important;
    padding:0 12px 0 4px!important;
    gap:10px!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-datetime{
    min-width:0!important;
    padding:8px 8px!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-info{
    min-width:0!important;
    padding-left:10px!important;
    padding-right:4px!important;
    gap:8px!important;
  }
  .goat-calendar-modern .goat-calendar-team-block strong{
    max-width:118px!important;
    min-height:0!important;
    line-height:1.15!important;
  }
  .goat-calendar-modern .goat-calendar-detail-line{
    gap:7px!important;
  }
}


/* 3.0A.50.23-preview.35 — focused finishing pass */
@media (min-width:981px){
  .goat-calendar-modern .goat-calendar-team-block strong.is-long-club-name{
    width:100%!important;
    max-width:122px!important;
    min-height:0!important;
    margin:0 auto!important;
    font-size:.54rem!important;
    line-height:1.05!important;
    letter-spacing:-.025em!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-align:center!important;
  }
}
.match-centre-hub.is-watch-only{display:grid;gap:18px;max-width:860px;margin:0 auto}
.match-centre-watch-card{position:relative;display:grid;justify-items:center;gap:10px;padding:clamp(24px,5vw,52px);border:1px solid rgba(212,169,79,0.18);border-radius:22px;background:linear-gradient(145deg,rgba(23,21,15,0.88),rgba(23,21,15,0.88));text-align:center;box-shadow:0 24px 55px rgba(0,0,0,.22)}
.match-centre-watch-card>.match-centre-hub-status{position:absolute;top:16px;right:16px;min-width:100px;text-align:center}
.match-centre-watch-card>.match-centre-watch-label{color:#e5c377;font-size:.64rem;font-weight:950;letter-spacing:.14em}
.match-centre-watch-card>strong{font-family:var(--display);font-size:clamp(1.5rem,3.5vw,2.6rem);line-height:1.08}
.match-centre-watch-card>small{color:var(--muted);font-size:.78rem}
.match-centre-watch-card>p{margin:14px 0 4px;color:#fbf7ef;font-family:var(--display);font-size:clamp(1.2rem,3vw,2rem);font-weight:950}
.match-centre-watch-card>button{min-width:210px;min-height:52px;border:1px solid rgba(212,169,79,0.44);border-radius:14px;background:linear-gradient(135deg,#2a2214,#4c3915);color:#fff;font-family:var(--display);font-size:.94rem;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;box-shadow:0 12px 30px rgba(212,169,79,0.24)}
.match-centre-watch-card>button:disabled{cursor:not-allowed;opacity:.42;filter:saturate(.35);box-shadow:none}
.goat-world-detail-main-stats.is-goalkeeper-gym{grid-template-columns:repeat(3,minmax(0,1fr))}
.goat-world-detail-main-stats.is-goalkeeper-training{grid-template-columns:repeat(4,minmax(0,1fr))}
.goat-world-detail-main-stats.is-goalkeeper-gym>span,.goat-world-detail-main-stats.is-goalkeeper-training>span{min-width:0}
.goat-world-detail-main-stats.is-goalkeeper-gym b,.goat-world-detail-main-stats.is-goalkeeper-training b{font-size:.52rem;white-space:normal;text-align:center}

/* Match Centre dashboard preview 3.0A.50.24 */
.mc-hub-page{position:relative;min-height:calc(100vh - 170px);padding:20px 0 28px;color:#fbf7ef}
.mc-hub-page::before{content:"";position:absolute;inset:-18px -28px -35px;z-index:-1;background:radial-gradient(circle at 42% 0,rgba(42,34,20,0.15),transparent 35%),linear-gradient(180deg,rgba(13,12,10,0.08),rgba(13,12,10,0.42));pointer-events:none}
.mc-hub-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px}
.mc-hub-page-header .eyebrow{display:flex;align-items:center;gap:12px;margin:0;color:#fbf7ef;font-family:var(--display);font-size:clamp(1.3rem,2vw,1.85rem);font-weight:1000;letter-spacing:.035em}
.mc-hub-page-header .eyebrow i{display:block;width:31px;height:2px;background:linear-gradient(90deg,#4c3915,transparent);box-shadow:0 0 12px rgba(212,169,79,0.55)}
.mc-hub-page-header h1{margin:5px 0 0;color:#d9d1c2;font-size:.79rem;font-weight:600;letter-spacing:.01em}
.mc-hub-server-state{padding:7px 10px;border:1px solid rgba(212,169,79,0.18);border-radius:999px;background:rgba(23,21,15,0.55);color:#e5c377;font-size:.57rem;font-weight:950;letter-spacing:.11em}
.mc-hub-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(390px,.95fr);gap:16px;align-items:start}
.mc-hub-left-column,.mc-hub-right-column{display:grid;gap:16px;min-width:0}
.mc-hub-right-bottom{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}
.mc-hub-panel{position:relative;overflow:hidden;border:1px solid rgba(212,169,79,0.31);border-radius:17px;background:linear-gradient(145deg,rgba(23,21,15,0.91),rgba(13,12,10,0.88));box-shadow:inset 0 1px 0 rgba(212,169,79,0.04),0 18px 45px rgba(0,0,0,.2);backdrop-filter:blur(15px)}
.mc-hub-panel::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(118deg,rgba(76,57,21,0.025),transparent 42%,rgba(76,57,21,0.04));pointer-events:none}
.mc-hub-panel>*{position:relative;z-index:1}
.mc-hub-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px 0}
.mc-hub-section-label{color:#e5c377;font-family:var(--display);font-size:.71rem;font-weight:1000;letter-spacing:.075em}
.mc-hub-section-label small{color:#d9d1c2;font:inherit;font-size:.92em;letter-spacing:.03em}
.mc-hub-status{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border:1px solid rgba(212,169,79,0.3);border-radius:999px;background:rgba(42,34,20,0.3);color:#e5c377;font-size:.57rem;font-weight:1000;letter-spacing:.08em}
.mc-hub-status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}
.mc-hub-status.is-live{border-color:rgba(255,86,107,.42);background:rgba(127,16,42,.35);color:#ff687e}
.mc-hub-status.is-live i{animation:mcHubPulse 1.2s infinite}
.mc-hub-status.is-processing{color:#ffce66;border-color:rgba(255,196,73,.3);background:rgba(109,73,11,.3)}
.mc-hub-status.is-finished{color:#62ed9d;border-color:rgba(73,223,139,.3);background:rgba(16,99,61,.3)}
.mc-hub-status.is-recovery{color:#ff9cb0;border-color:rgba(255,108,136,.3);background:rgba(109,24,47,.3)}
@keyframes mcHubPulse{50%{opacity:.32;transform:scale(.7)}}
.mc-hub-next{min-height:360px;padding-bottom:16px;background:radial-gradient(circle at 50% 48%,rgba(42,34,20,0.32),transparent 43%),linear-gradient(145deg,rgba(23,21,15,0.94),rgba(13,12,10,0.9))}
.mc-hub-next::before{content:"";position:absolute;inset:55px 0 0;background:linear-gradient(180deg,rgba(13,12,10,0.08),rgba(13,12,10,0.72)),url('/club-profile-bg-v4388.png') center 56%/cover no-repeat;opacity:.22;filter:blur(1px);pointer-events:none}
.mc-hub-competition{text-align:center;margin:6px 0 0;color:#e5c377;font-size:.63rem;font-weight:950;letter-spacing:.1em;text-transform:uppercase}
.mc-hub-versus{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);align-items:center;gap:10px;max-width:720px;margin:8px auto 4px;padding:0 20px}
.mc-hub-club{display:grid;justify-items:center;gap:5px;min-width:0;text-align:center}
.mc-hub-club strong{max-width:220px;overflow:hidden;color:#fff;font-family:var(--display);font-size:clamp(.93rem,1.5vw,1.22rem);font-weight:1000;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-club small{color:#d9d1c2;font-size:.53rem;font-weight:900;letter-spacing:.12em}
.mc-hub-club-logo{position:relative;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;border:1px solid rgba(86,206,255,.3);border-radius:17px;background:linear-gradient(145deg,rgba(39,83,151,.82),rgba(9,22,53,.94));box-shadow:0 10px 28px rgba(0,0,0,.28),inset 0 0 22px rgba(40,181,255,.08)}
.mc-hub-club-logo img{position:absolute;inset:7%;width:86%;height:86%;object-fit:contain}
.mc-hub-club-logo b{display:none;color:#9feeff;font-family:var(--display);font-size:.72rem;letter-spacing:.03em}
.mc-hub-club-logo:not(:has(img)) b,.mc-hub-club-logo.is-fallback b{display:block}
.mc-hub-club-logo.is-large{width:91px;height:105px;border-radius:22px}
.mc-hub-club-logo.is-large b{font-size:1.25rem}
.mc-hub-club-logo.is-normal{width:52px;height:52px}
.mc-hub-club-logo.is-small{width:34px;height:34px;border-radius:10px}
.mc-hub-club-logo.is-tiny{width:22px;height:22px;border-radius:7px}
.mc-hub-club-logo.is-tiny b{font-size:.48rem}
.mc-hub-score-area{display:grid;justify-items:center;gap:4px;color:#d9d1c2}
.mc-hub-score-area span{font-size:.5rem;font-weight:900;letter-spacing:.1em}
.mc-hub-score-area b{color:#d9d1c2;font-family:var(--display);font-size:clamp(1.15rem,2.2vw,1.7rem)}
.mc-hub-next.is-finished .mc-hub-score-area b{color:#fff;font-size:2rem}
.mc-hub-fixture-meta{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 23px;margin:6px 16px;color:#fbf7ef;font-size:.62rem;font-weight:700}
.mc-hub-fixture-meta span{display:inline-flex;align-items:center;gap:7px}
.mc-hub-fixture-meta b{color:#e5c377;font-size:.8rem}
.mc-hub-countdown{min-height:25px;margin:12px 0 8px;text-align:center;color:#d9d1c2;font-size:.65rem;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.mc-hub-takeover-lock{display:grid;gap:3px;width:min(100%,560px);margin:8px auto 12px;padding:10px 14px;border:1px solid rgba(212,169,79,.36);border-radius:10px;background:rgba(56,39,12,.34);color:#d9d1c2;text-align:center}
.mc-hub-takeover-lock strong{color:#f0d79b;font-size:.63rem;letter-spacing:.1em}
.mc-hub-takeover-lock span{font-size:.68rem;line-height:1.45}
.mc-hub-primary-button,.mc-hub-secondary-button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin:0 auto;padding:0 26px;border:1px solid rgba(212,169,79,0.68);border-radius:10px;background:linear-gradient(180deg,#2a2214,#2a2214);box-shadow:0 0 20px rgba(212,169,79,0.4),inset 0 0 15px rgba(212,169,79,0.2);color:#fbf7ef;font-family:var(--display);font-size:.76rem;font-weight:1000;letter-spacing:.065em;cursor:pointer}
.mc-hub-primary-button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.12)}
.mc-hub-primary-button:disabled{border-color:rgba(212,169,79,0.25);background:linear-gradient(180deg,rgba(42,34,20,0.68),rgba(23,21,15,0.75));box-shadow:none;color:#d9d1c2;cursor:not-allowed}
.mc-hub-primary-button:focus-visible,.mc-hub-secondary-button:focus-visible,.mc-hub-match-row:focus-visible,.mc-hub-player-row:focus-visible,.mc-hub-text-button:focus-visible{outline:2px solid #d4a94f;outline-offset:3px}
.mc-hub-empty-state{display:grid;justify-items:center;min-height:360px;padding:24px;text-align:center}
.mc-hub-empty-state .mc-hub-section-label{justify-self:start}
.mc-hub-empty-icon{display:grid;place-items:center;width:72px;height:72px;margin-top:25px;border:1px solid rgba(212,169,79,0.25);border-radius:50%;background:rgba(23,21,15,0.28);color:#e5c377;font-size:2rem}
.mc-hub-empty-state h2{margin:8px 0 0;font-family:var(--display);font-size:1.25rem}
.mc-hub-empty-state p{max-width:390px;margin:0;color:#d9d1c2;font-size:.72rem}
.mc-hub-secondary-button{margin-top:10px;background:rgba(23,21,15,0.65);box-shadow:none}
.mc-hub-past{padding-bottom:12px}
.mc-hub-match-table{padding:10px 14px 0}
.mc-hub-match-head,.mc-hub-match-row{display:grid;grid-template-columns:minmax(155px,1.45fr) minmax(88px,.8fr) 60px 66px 94px 126px;align-items:center;gap:10px}
.mc-hub-match-head{padding:0 10px 7px;color:#d9d1c2;font-size:.52rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
.mc-hub-match-row{width:100%;min-height:48px;margin:0 0 6px;padding:6px 9px;border:1px solid rgba(212,169,79,0.22);border-radius:9px;background:rgba(23,21,15,0.66);color:#fbf7ef;text-align:left;cursor:pointer}
.mc-hub-match-row:hover{border-color:rgba(212,169,79,0.42);background:rgba(23,21,15,0.74)}
.mc-hub-match-row>span:not(.mc-hub-opponent),.mc-hub-match-row>time{color:#d9d1c2;font-size:.67rem}
.mc-hub-match-row> b{font-family:var(--display);font-size:.83rem;color:#fff}
.mc-hub-opponent{display:flex;align-items:center;gap:9px;min-width:0}
.mc-hub-opponent>span{display:grid;min-width:0}
.mc-hub-opponent strong{overflow:hidden;color:#fbf7ef;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-opponent small{color:#d9d1c2;font-size:.48rem;font-weight:850;letter-spacing:.08em}
.mc-hub-result{font-size:.61rem;letter-spacing:.06em}
.mc-hub-result.is-win{color:#58e786}.mc-hub-result.is-draw{color:#ffc74d}.mc-hub-result.is-loss{color:#ff687b}
.mc-hub-report-link{display:flex;align-items:center;justify-content:center;gap:7px;min-height:30px;border:1px solid rgba(212,169,79,0.27);border-radius:7px;color:#e5c377!important;font-size:.54rem!important;font-weight:900;letter-spacing:.04em}
.mc-hub-text-button{border:0;background:transparent;color:#e5c377;font-size:.57rem;font-weight:950;letter-spacing:.055em;cursor:pointer}
.mc-hub-history-link,.mc-hub-table-link{display:block;margin:5px 16px 0 auto;padding:7px 0}
.mc-hub-list-empty{display:grid;gap:5px;padding:32px 18px;text-align:center}
.mc-hub-list-empty strong{font-family:var(--display);font-size:.85rem}.mc-hub-list-empty p{margin:0;color:#d9d1c2;font-size:.65rem}
.mc-hub-form-players{padding-bottom:12px}
.mc-hub-player-list{display:grid;gap:7px;padding:10px 13px 0}
.mc-hub-player-row{display:grid;grid-template-columns:28px 57px minmax(0,1fr) 52px;align-items:center;gap:9px;min-height:74px;padding:0 10px 0 0;border:1px solid rgba(212,169,79,0.27);border-radius:9px;background:linear-gradient(100deg,rgba(42,34,20,0.77),rgba(23,21,15,0.69));color:#fff;text-align:left;cursor:pointer}
.mc-hub-player-row:hover{border-color:rgba(212,169,79,0.48);transform:translateX(1px)}
.mc-hub-rank{display:grid;place-items:center;align-self:stretch;border-right:1px solid rgba(212,169,79,0.18);color:#e5c377;font-family:var(--display);font-size:.89rem}
.mc-hub-player-portrait{position:relative;align-self:stretch;overflow:hidden;background:linear-gradient(180deg,rgba(38,91,150,.15),rgba(11,30,65,.65))}
.mc-hub-player-portrait img{position:absolute;inset:2px 0 0;width:100%;height:calc(100% - 2px);object-fit:contain;object-position:bottom}
.mc-hub-player-portrait i{display:grid;place-items:center;height:100%;color:#4ccce9;font-family:var(--display);font-size:1.2rem}
.mc-hub-player-copy{display:grid;gap:3px;min-width:0}
.mc-hub-player-copy>strong{overflow:hidden;font-family:var(--display);font-size:.72rem;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-player-copy>small{color:#e5c377;font-size:.51rem;font-weight:900}
.mc-hub-player-copy>span{display:flex;gap:11px;color:#d9d1c2;font-size:.5rem}.mc-hub-player-copy>span b{font-weight:800}
.mc-hub-latest-rating{display:grid;justify-items:end}.mc-hub-latest-rating small{color:#d9d1c2;font-size:.45rem;font-weight:850}.mc-hub-latest-rating strong{font-family:var(--display);font-size:1rem}
.mc-hub-club-form,.mc-hub-table{min-height:232px;padding-bottom:10px}
.mc-hub-form-boxes{display:flex;justify-content:center;gap:7px;padding:15px 10px 10px}
.mc-hub-form-boxes>div{display:grid;justify-items:center;gap:3px;min-width:37px}
.mc-hub-form-boxes b{display:grid;place-items:center;width:36px;height:36px;border:1px solid currentColor;border-radius:6px;font-family:var(--display);font-size:.78rem}.mc-hub-form-boxes b.is-win{background:rgba(45,142,55,.48);color:#66e677}.mc-hub-form-boxes b.is-draw{background:rgba(155,112,21,.4);color:#ffd056}.mc-hub-form-boxes b.is-loss{background:rgba(151,42,54,.42);color:#ff6c7e}
.mc-hub-form-boxes strong{font-size:.52rem}.mc-hub-form-boxes small{color:#d9d1c2;font-size:.43rem}
.mc-hub-form-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:8px 12px 0;padding-top:10px;border-top:1px solid rgba(212,169,79,0.19)}
.mc-hub-form-stats div{display:grid;justify-items:center;gap:3px}.mc-hub-form-stats dt{color:#d9d1c2;font-size:.47rem;text-align:center}.mc-hub-form-stats dd{margin:0;color:#fbf7ef;font-family:var(--display);font-size:.77rem}
.mc-hub-league-table{padding:12px 11px 0}.mc-hub-league-head,.mc-hub-league-row{display:grid;grid-template-columns:28px minmax(0,1fr) 28px 34px 32px;align-items:center;gap:4px}.mc-hub-league-head{padding:0 6px 5px;color:#d9d1c2;font-size:.45rem}.mc-hub-league-row{min-height:30px;padding:3px 6px;border-radius:6px;color:#d9d1c2;font-size:.55rem}.mc-hub-league-row.is-user{border:1px solid rgba(212,169,79,0.52);background:linear-gradient(90deg,rgba(42,34,20,0.64),rgba(23,21,15,0.64));box-shadow:0 0 12px rgba(212,169,79,0.15);color:#fff}.mc-hub-league-row>span:nth-child(2){display:flex;align-items:center;gap:6px;min-width:0}.mc-hub-league-row strong{overflow:hidden;color:inherit;font-size:.56rem;text-overflow:ellipsis;white-space:nowrap}.mc-hub-league-row>b:last-child{color:#fbf7ef}
.mc-hub-fallback-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:15px}.mc-hub-fallback-stats div{padding:10px;border:1px solid rgba(212,169,79,0.2);border-radius:8px;background:rgba(23,21,15,0.55)}.mc-hub-fallback-stats dt{color:#d9d1c2;font-size:.52rem}.mc-hub-fallback-stats dd{margin:4px 0 0;color:#fff;font-family:var(--display);font-size:1rem}
.mc-hub-loading,.mc-hub-error{display:grid;place-items:center;gap:8px;min-height:360px;padding:30px;border:1px solid rgba(212,169,79,0.24);border-radius:16px;background:rgba(13,12,10,0.75);text-align:center}.mc-hub-loading i{width:34px;height:34px;border:3px solid rgba(212,169,79,0.2);border-top-color:#d4a94f;border-radius:50%;animation:mcHubSpin .9s linear infinite}.mc-hub-loading strong,.mc-hub-error strong{color:#fbf7ef;font-family:var(--display);font-size:1rem}.mc-hub-loading span,.mc-hub-error p{margin:0;color:#d9d1c2;font-size:.68rem}@keyframes mcHubSpin{to{transform:rotate(360deg)}}
.mc-hub-inline-message{min-height:18px;margin-top:7px;color:#ff9db2;font-size:.65rem;text-align:center}
.mc-hub-history-page>.mc-hub-past{min-height:450px}.mc-hub-history-page .mc-hub-match-table{padding-bottom:10px}
.goat-calendar-match-centre-button{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;margin:12px auto 0;padding:0 18px;border:1px solid rgba(212,169,79,0.42);border-radius:8px;background:linear-gradient(180deg,rgba(42,34,20,0.84),rgba(42,34,20,0.9));color:#fff;font-size:.62rem;font-weight:950;letter-spacing:.06em;cursor:pointer}
.goat-calendar-match-centre-button:disabled{opacity:.45;cursor:not-allowed;filter:saturate(.4)}
.goat-calendar-match-centre-button:focus-visible{outline:2px solid #d4a94f;outline-offset:3px}
@media(max-width:1260px){.mc-hub-dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(340px,.9fr)}.mc-hub-right-bottom{grid-template-columns:1fr}.mc-hub-match-head,.mc-hub-match-row{grid-template-columns:minmax(145px,1.4fr) minmax(80px,.75fr) 55px 60px 90px 110px}}
@media(max-width:980px){.mc-hub-dashboard-grid{grid-template-columns:1fr}.mc-hub-right-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}.mc-hub-next{min-height:350px}}
@media(max-width:720px){.mc-hub-page{padding-top:12px}.mc-hub-page-header{align-items:flex-start;flex-direction:column}.mc-hub-server-state{display:none}.mc-hub-right-bottom{grid-template-columns:1fr}.mc-hub-versus{grid-template-columns:minmax(0,1fr) 58px minmax(0,1fr);padding:0 8px}.mc-hub-club-logo.is-large{width:68px;height:78px}.mc-hub-club strong{font-size:.8rem}.mc-hub-match-head{display:none}.mc-hub-match-row{grid-template-columns:minmax(0,1fr) 54px 57px;gap:7px;padding:8px}.mc-hub-match-row>span:nth-child(2),.mc-hub-match-row>time{display:none}.mc-hub-report-link{grid-column:1/-1}.mc-hub-player-row{grid-template-columns:24px 48px minmax(0,1fr) 42px}.mc-hub-player-copy>span{gap:7px}.mc-hub-fixture-meta{gap:8px 13px}.mc-hub-status{padding:5px 8px}.mc-hub-section-label{font-size:.64rem}}
@media(prefers-reduced-motion:reduce){.mc-hub-status.is-live i,.mc-hub-loading i{animation:none}.mc-hub-player-row,.mc-hub-primary-button{transition:none}}
.mail-message.is-match-report{border-color:rgba(212,169,79,0.34);background:linear-gradient(145deg,rgba(23,21,15,0.75),rgba(23,21,15,0.78))}
.mail-report-actions{display:flex;justify-content:flex-end;margin-top:10px}
.mail-report-actions button{min-height:38px;padding:0 16px;border:1px solid rgba(212,169,79,0.45);border-radius:8px;background:linear-gradient(180deg,rgba(42,34,20,0.88),rgba(42,34,20,0.92));color:#fff;font-size:.62rem;font-weight:950;letter-spacing:.055em;cursor:pointer}
.mail-report-actions button:focus-visible{outline:2px solid #d4a94f;outline-offset:3px}
.mc-tab-icon-tactics::before{content:"";display:block;width:14px;height:14px;border:1px solid currentColor;border-radius:3px;box-shadow:inset 0 0 0 3px rgba(212,169,79,0.08)}
.mc-tactics-report{display:grid;gap:16px}.mc-report-team-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.mc-report-team-tactics{overflow:hidden;border:1px solid rgba(212,169,79,0.22);border-radius:13px;background:linear-gradient(145deg,rgba(23,21,15,0.84),rgba(23,21,15,0.83))}.mc-report-team-tactics>header{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid rgba(212,169,79,0.18);background:rgba(23,21,15,0.52)}.mc-report-team-tactics>header span{color:#e5c377;font-size:.52rem;font-weight:950;letter-spacing:.09em}.mc-report-team-tactics>header strong{font-family:var(--display);font-size:.86rem}.mc-report-team-tactics>header small{color:#d9d1c2;font-size:.59rem}.mc-report-team-tactics>header small b{color:#e5c377;margin:0 4px}.mc-report-tactic-section{padding:12px 14px;border-bottom:1px solid rgba(212,169,79,0.13)}.mc-report-tactic-section:last-child{border-bottom:0}.mc-report-tactic-section h3{margin:0 0 9px;color:#e5c377;font-size:.61rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase}.mc-report-tactic-grid,.mc-report-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.mc-report-tactic-grid div,.mc-report-summary-grid div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;padding:6px 8px;border:1px solid rgba(212,169,79,0.15);border-radius:7px;background:rgba(23,21,15,0.56)}.mc-report-tactic-grid dt,.mc-report-summary-grid dt{color:#d9d1c2;font-size:.51rem}.mc-report-tactic-grid dd,.mc-report-summary-grid dd{margin:0;color:#fbf7ef;font-size:.56rem;font-weight:850;text-align:right}.mc-report-change-list{display:grid;gap:6px}.mc-report-change-list article{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:9px;padding:8px;border:1px solid rgba(212,169,79,0.16);border-radius:7px;background:rgba(23,21,15,0.52)}.mc-report-change-list article>b{display:grid;place-items:center;align-self:stretch;border-right:1px solid rgba(212,169,79,0.18);color:#e5c377;font-family:var(--display);font-size:.62rem}.mc-report-change-list article span{display:grid;gap:2px}.mc-report-change-list article strong{font-size:.59rem}.mc-report-change-list article small{color:#d9d1c2;font-size:.51rem}.mc-report-change-list.is-subs i{color:#62e796;font-style:normal;font-size:.48rem}.mc-tactics-empty{margin:0;color:#d9d1c2;font-size:.56rem;line-height:1.45}.mc-tactics-report>.mc-panel-heading>p{max-width:420px;margin:0;color:#d9d1c2;font-size:.62rem;text-align:right}
@media(max-width:860px){.mc-report-team-columns{grid-template-columns:1fr}.mc-report-team-tactics>header{grid-template-columns:auto 1fr}.mc-report-team-tactics>header small{grid-column:1/-1}.mc-tactics-report>.mc-panel-heading>p{text-align:left}}
@media(max-width:520px){.mc-report-tactic-grid,.mc-report-summary-grid{grid-template-columns:1fr}}

/* 3.0A.50.24-preview.3 — premium Match Centre art-direction pass */
.mc-hub-page{
  --mcp-cyan:#d4a94f;
  --mcp-cyan-soft:#d4a94f;
  --mcp-blue:#4c3915;
  --mcp-ink:#1a1207;
  --mcp-panel:rgba(13,12,10,0.88);
  --mcp-panel-strong:rgba(13,12,10,0.95);
  --mcp-line:rgba(76,57,21,0.26);
  --mcp-muted:#d9d1c2;
  position:relative;
  min-height:calc(100vh - 154px);
  padding:24px 0 30px;
  color:#fbf7ef;
}
.mc-hub-page::before{
  content:"";
  position:absolute;
  inset:-28px -70px -50px;
  z-index:-2;
  background:
    radial-gradient(ellipse at 54% -8%,rgba(76,57,21,0.2),transparent 38%),
    radial-gradient(ellipse at 95% 32%,rgba(42,34,20,0.11),transparent 34%),
    linear-gradient(180deg,rgba(13,12,10,0.05),rgba(13,12,10,0.52));
  pointer-events:none;
}
.mc-hub-page::after{
  content:"";
  position:absolute;
  inset:-28px -70px -50px;
  z-index:-1;
  opacity:.035;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:screen;
  pointer-events:none;
}
.mc-hub-page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:0 0 19px;
}
.mc-hub-page-header .eyebrow{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0;
  color:#fff;
  font-family:var(--display);
  font-size:clamp(1.65rem,2.15vw,2.15rem);
  font-weight:900;
  line-height:.95;
  letter-spacing:.025em;
  text-shadow:0 4px 18px rgba(0,0,0,.36);
}
.mc-hub-page-header .eyebrow i{
  display:block;
  width:38px;
  height:2px;
  background:linear-gradient(90deg,var(--mcp-cyan),rgba(84,230,255,0));
  box-shadow:0 0 14px rgba(212,169,79,0.62);
}
.mc-hub-page-header h1{
  margin:8px 0 0;
  color:#d9d1c2;
  font-size:.88rem;
  font-weight:550;
  letter-spacing:.005em;
}
.mc-hub-server-state{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(212,169,79,0.18);
  border-radius:999px;
  background:rgba(23,21,15,0.52);
  color:#e5c377;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.10em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.mc-hub-server-state i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#62edb1;
  box-shadow:0 0 9px rgba(98,237,177,.85);
}
.mc-hub-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.58fr) minmax(400px,.98fr);
  gap:17px;
  align-items:start;
}
.mc-hub-left-column,.mc-hub-right-column{display:grid;gap:17px;min-width:0}
.mc-hub-right-bottom{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:14px}
.mc-hub-panel{
  position:relative;
  overflow:hidden;
  border:1px solid var(--mcp-line);
  border-radius:18px;
  background:
    linear-gradient(135deg,rgba(23,21,15,0.9),rgba(13,12,10,0.91));
  box-shadow:
    inset 0 1px 0 rgba(212,169,79,0.045),
    inset 0 -1px 0 rgba(0,0,0,.24),
    0 24px 62px rgba(9,7,4,0.26);
  backdrop-filter:blur(18px) saturate(1.12);
}
.mc-hub-panel::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background:
    linear-gradient(115deg,rgba(76,57,21,0.025),transparent 35%,rgba(76,57,21,0.035)),
    radial-gradient(circle at 100% 0,rgba(76,57,21,0.07),transparent 30%);
  pointer-events:none;
}
.mc-hub-panel>*{position:relative;z-index:1}
.mc-hub-panel-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:17px 20px 0;
}
.mc-hub-panel-title>div{display:grid;gap:4px}
.mc-hub-panel-title>div>small{
  color:#d9d1c2;
  font-size:.67rem;
  font-weight:600;
}
.mc-hub-section-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--mcp-cyan);
  font-family:var(--display);
  font-size:.86rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.06em;
}
.mc-hub-section-label small{
  color:#d9d1c2;
  font:inherit;
  font-size:.88em;
  font-weight:700;
  letter-spacing:.025em;
}
.mc-hub-icon{
  width:1.15em;
  height:1.15em;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.mc-hub-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:0 13px;
  border:1px solid rgba(212,169,79,0.34);
  border-radius:999px;
  background:linear-gradient(180deg,rgba(42,34,20,0.52),rgba(23,21,15,0.43));
  color:#e5c377;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.075em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 18px rgba(212,169,79,0.1);
}
.mc-hub-status i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}
.mc-hub-status.is-live{border-color:rgba(255,92,117,.52);background:rgba(116,18,40,.50);color:#ff6e84}
.mc-hub-status.is-live i{animation:mcHubPremiumPulse 1.25s ease-in-out infinite}
.mc-hub-status.is-processing{border-color:rgba(255,199,82,.38);background:rgba(105,72,13,.43);color:#ffd06b}
.mc-hub-status.is-finished{border-color:rgba(73,225,145,.38);background:rgba(14,90,56,.46);color:#62eca4}
.mc-hub-status.is-recovery{border-color:rgba(255,121,149,.38);background:rgba(101,25,48,.46);color:#ff96ae}
@keyframes mcHubPremiumPulse{50%{opacity:.35;transform:scale(.72)}}

/* Featured fixture */
.mc-hub-next{
  min-height:386px;
  padding-bottom:18px;
  background:linear-gradient(140deg,rgba(23,21,15,0.96),rgba(13,12,10,0.93));
  isolation:isolate;
}
.mc-hub-next::before{
  content:"";
  position:absolute;
  inset:48px 0 0;
  z-index:0;
  background:
    linear-gradient(180deg,rgba(13,12,10,0.22),rgba(13,12,10,0.7) 80%,rgba(13,12,10,0.92)),
    linear-gradient(90deg,rgba(13,12,10,0.5),transparent 28%,transparent 72%,rgba(13,12,10,0.5)),
    url('/club-profile-bg-v4388.png') center 53%/cover no-repeat;
  opacity:.47;
  filter:saturate(.92) contrast(1.07);
  pointer-events:none;
}
.mc-hub-next::after{
  background:
    radial-gradient(ellipse at 50% 69%,rgba(212,169,79,.09),transparent 39%),
    radial-gradient(circle at 17% 45%,rgba(212,169,79,.045),transparent 26%),
    radial-gradient(circle at 83% 45%,rgba(156,113,40,.04),transparent 26%),
    linear-gradient(180deg,rgba(240,215,155,.018),transparent 45%);
}
.mc-hub-hero-stage{display:grid;justify-items:center;padding:2px 24px 0}
.mc-hub-competition{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:1px 0 0;
  color:#e5c377;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.115em;
  text-transform:uppercase;
}
.mc-hub-competition>span{display:grid;place-items:center;width:22px;height:22px;color:#e5c377}
.mc-hub-versus{
  display:grid;
  grid-template-columns:minmax(0,1fr) 114px minmax(0,1fr);
  align-items:center;
  gap:12px;
  width:min(100%,760px);
  margin:2px auto 0;
  padding:0 12px;
}
.mc-hub-club{
  position:relative;
  display:grid;
  grid-template-rows:116px auto auto;
  justify-items:center;
  gap:2px;
  min-width:0;
  text-align:center;
}
.mc-hub-crest-light{
  position:absolute;
  top:12px;
  width:126px;
  height:88px;
  border-radius:50%;
  background:radial-gradient(ellipse,rgba(52,146,255,.31),rgba(30,79,184,.08) 54%,transparent 72%);
  filter:blur(8px);
  opacity:.9;
}
.mc-hub-club.is-away .mc-hub-crest-light{background:radial-gradient(ellipse,rgba(116,101,235,.24),rgba(43,91,185,.07) 54%,transparent 72%)}
.mc-hub-club strong{
  max-width:240px;
  overflow:hidden;
  color:#fff;
  font-family:var(--display);
  font-size:clamp(1.05rem,1.55vw,1.38rem);
  font-weight:900;
  line-height:1;
  letter-spacing:.015em;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:0 5px 20px rgba(0,0,0,.55);
}
.mc-hub-club small{
  order:2;
  margin-top:4px;
  color:#d9d1c2;
  font-size:.60rem;
  font-weight:850;
  letter-spacing:.14em;
}
.mc-hub-club-logo{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.mc-hub-club-logo::after{
  content:"";
  position:absolute;
  left:13%;right:13%;bottom:1%;height:10px;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  filter:blur(7px);
  z-index:-1;
}
.mc-hub-club-logo img{
  position:relative;
  inset:auto;
  width:100%;
  height:100%;
  object-fit:contain;
  filter:drop-shadow(0 9px 12px rgba(0,0,0,.47)) drop-shadow(0 0 12px rgba(69,156,255,.13));
}
.mc-hub-club-logo b{display:none}
.mc-hub-club-logo.is-fallback b{
  display:grid;
  place-items:center;
  width:82%;
  height:92%;
  padding:0 8px 8px;
  clip-path:polygon(50% 0,92% 14%,88% 67%,50% 100%,12% 67%,8% 14%);
  border:1px solid rgba(166,218,255,.7);
  background:
    linear-gradient(145deg,rgba(196,224,244,.94),rgba(95,125,160,.92) 48%,rgba(29,48,79,.96));
  color:#071329;
  font-family:var(--display);
  font-size:1.28rem;
  font-weight:900;
  letter-spacing:.02em;
  text-shadow:0 1px 0 rgba(255,255,255,.45);
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.14);
}
.mc-hub-club-logo.is-large{width:104px;height:116px}
.mc-hub-club-logo.is-large b{font-size:1.35rem}
.mc-hub-club-logo.is-normal{width:54px;height:54px}
.mc-hub-club-logo.is-small,.mc-hub-club-logo.is-tiny{
  overflow:hidden;
  border:1px solid rgba(100,184,241,.27);
  border-radius:26%;
  background:linear-gradient(145deg,rgba(28,68,122,.88),rgba(7,20,49,.96));
  box-shadow:inset 0 0 14px rgba(58,173,255,.08),0 5px 14px rgba(0,0,0,.22);
}
.mc-hub-club-logo.is-small::after,.mc-hub-club-logo.is-tiny::after{display:none}
.mc-hub-club-logo.is-small{width:38px;height:38px}
.mc-hub-club-logo.is-tiny{width:24px;height:24px}
.mc-hub-club-logo.is-small img,.mc-hub-club-logo.is-tiny img{width:82%;height:82%;margin:auto}
.mc-hub-club-logo.is-user-avatar,
.mc-hub-club-logo.is-user-avatar img{border-radius:26%}
.mc-hub-club-logo.is-user-avatar img{width:100%;height:100%;margin:0;object-fit:cover}
.mc-hub-club-logo.is-small.is-fallback b,.mc-hub-club-logo.is-tiny.is-fallback b{
  width:100%;height:100%;padding:0;clip-path:none;border:0;background:transparent;color:#9feeff;text-shadow:none;box-shadow:none
}
.mc-hub-club-logo.is-small.is-fallback b{font-size:.72rem}
.mc-hub-club-logo.is-tiny.is-fallback b{font-size:.48rem}
.mc-hub-score-area{display:grid;justify-items:center;gap:3px;color:#d9d1c2}
.mc-hub-score-area span{color:#d9d1c2;font-size:.56rem;font-weight:850;letter-spacing:.11em}
.mc-hub-score-area b{
  color:#d9d1c2;
  font-family:var(--display);
  font-size:2.05rem;
  font-weight:900;
  line-height:.9;
  letter-spacing:.035em;
  text-shadow:0 0 22px rgba(212,169,79,0.18);
}
.mc-hub-score-area em{color:#e5c377;font-size:.54rem;font-style:normal;font-weight:900;letter-spacing:.12em}
.mc-hub-next.is-finished .mc-hub-score-area b{color:#fff;font-size:2.55rem;text-shadow:0 0 26px rgba(212,169,79,0.28)}
.mc-hub-fixture-meta{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:11px 24px;
  margin:3px 0 0;
  color:#fbf7ef;
}
.mc-hub-fixture-meta span{display:inline-flex;align-items:center;gap:7px;color:#e5c377}
.mc-hub-fixture-meta .mc-hub-icon{width:16px;height:16px}
.mc-hub-fixture-meta b{color:#fbf7ef;font-size:.68rem;font-weight:750;letter-spacing:.02em}
.mc-hub-countdown{
  display:grid;
  justify-items:center;
  gap:5px;
  min-height:62px;
  margin:7px 0 7px;
}
.mc-hub-countdown-label{
  color:#d9d1c2;
  font-size:.57rem;
  font-weight:850;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.mc-hub-countdown-units{display:flex;align-items:flex-start;justify-content:center;gap:8px}
.mc-hub-countdown-units>span{display:grid;justify-items:center;min-width:39px}
.mc-hub-countdown-units b{
  color:#fff;
  font-family:var(--display);
  font-size:1.55rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.04em;
  text-shadow:0 0 15px rgba(212,169,79,0.18);
}
.mc-hub-countdown-units small{margin-top:3px;color:#d9d1c2;font-size:.45rem;font-weight:850;letter-spacing:.09em}
.mc-hub-countdown-units>i{margin-top:1px;color:#d9d1c2;font-family:var(--display);font-size:1.25rem;font-style:normal;font-weight:700}
.mc-hub-countdown.is-message{display:grid;place-items:center;min-height:52px;margin:10px 0 7px}
.mc-hub-countdown.is-message .mc-hub-countdown-label{color:#d9d1c2;font-size:.72rem}
.mc-hub-primary-button,.mc-hub-secondary-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:50px;
  margin:0 auto;
  padding:0 29px;
  border:1px solid rgba(212,169,79,0.79);
  border-radius:10px;
  background:
    linear-gradient(180deg,rgba(76,57,21,0.98),rgba(42,34,20,0.98));
  box-shadow:
    0 0 0 1px rgba(212,169,79,0.13),
    0 0 24px rgba(212,169,79,0.48),
    0 10px 24px rgba(9,7,4,0.43),
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -8px 18px rgba(9,7,4,0.22);
  color:#fbf7ef;
  font-family:var(--display);
  font-size:.91rem;
  font-weight:900;
  letter-spacing:.055em;
  text-shadow:0 1px 3px rgba(9,7,4,0.55);
  cursor:pointer;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.mc-hub-button-icon{display:grid;place-items:center;width:22px;height:22px;color:#fbf7ef}
.mc-hub-button-icon .mc-hub-icon{width:19px;height:19px;stroke-width:1.8}
.mc-hub-primary-button:hover:not(:disabled){transform:translateY(-2px);filter:brightness(1.12);box-shadow:0 0 32px rgba(212,169,79,0.62),0 14px 28px rgba(9,7,4,0.48),inset 0 1px 0 rgba(255,255,255,.36)}
.mc-hub-primary-button:disabled{
  border-color:rgba(212,169,79,0.28);
  background:linear-gradient(180deg,rgba(42,34,20,0.8),rgba(23,21,15,0.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  color:#d9d1c2;
  text-shadow:none;
  cursor:not-allowed;
}
.mc-hub-primary-button:disabled .mc-hub-button-icon{color:#d9d1c2}
.mc-hub-primary-button:focus-visible,.mc-hub-secondary-button:focus-visible,.mc-hub-match-row:focus-visible,.mc-hub-player-row:focus-visible,.mc-hub-text-button:focus-visible{outline:2px solid #d4a94f;outline-offset:3px}

/* Published matches */
.mc-hub-past{padding-bottom:10px}
.mc-hub-past .mc-hub-panel-title{align-items:center}
.mc-hub-match-table{padding:11px 15px 0}
.mc-hub-match-head,.mc-hub-match-row{
  display:grid;
  grid-template-columns:minmax(170px,1.48fr) minmax(105px,.82fr) 66px 72px 100px 126px;
  align-items:center;
  gap:10px;
}
.mc-hub-match-head{
  padding:0 13px 7px;
  color:#d9d1c2;
  font-size:.54rem;
  font-weight:850;
  letter-spacing:.075em;
}
.mc-hub-match-row{
  position:relative;
  width:100%;
  min-height:52px;
  margin:0 0 6px;
  padding:6px 10px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.2);
  border-radius:10px;
  background:linear-gradient(90deg,rgba(23,21,15,0.76),rgba(23,21,15,0.72));
  color:#fbf7ef;
  text-align:left;
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
.mc-hub-match-row::before{
  content:"";
  position:absolute;
  left:0;top:9px;bottom:9px;
  width:2px;
  border-radius:2px;
  background:transparent;
  box-shadow:none;
}
.mc-hub-match-row:has(.mc-hub-result.is-win)::before{background:#55e583;box-shadow:0 0 10px rgba(85,229,131,.42)}
.mc-hub-match-row:has(.mc-hub-result.is-draw)::before{background:#ffc34f;box-shadow:0 0 10px rgba(255,195,79,.35)}
.mc-hub-match-row:has(.mc-hub-result.is-loss)::before{background:#ff6378;box-shadow:0 0 10px rgba(255,99,120,.35)}
.mc-hub-match-row:hover{transform:translateX(2px);border-color:rgba(212,169,79,0.4);background:linear-gradient(90deg,rgba(23,21,15,0.88),rgba(23,21,15,0.83))}
.mc-hub-opponent{display:flex;align-items:center;gap:11px;min-width:0}
.mc-hub-opponent>span{display:grid;gap:2px;min-width:0}
.mc-hub-opponent strong{overflow:hidden;color:#fbf7ef;font-family:var(--display);font-size:.83rem;font-weight:800;letter-spacing:.015em;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-opponent small{display:flex;align-items:center;gap:5px;color:#d9d1c2;font-size:.50rem;font-weight:800;letter-spacing:.08em}
.mc-hub-opponent small i{display:grid;place-items:center;width:15px;height:15px;border:1px solid rgba(212,169,79,0.22);border-radius:4px;color:#e5c377;font-style:normal;font-size:.45rem}
.mc-hub-competition-cell{display:flex;align-items:center;gap:7px;color:#d9d1c2}
.mc-hub-competition-cell .mc-hub-icon{width:15px;height:15px;color:#e5c377}
.mc-hub-competition-cell b{overflow:hidden;color:#d9d1c2;font-size:.64rem;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-row-score{color:#fff;font-family:var(--display);font-size:.96rem;font-weight:850;letter-spacing:.04em}
.mc-hub-result{display:inline-flex;align-items:center;gap:7px;font-size:.65rem;font-weight:900;letter-spacing:.055em}
.mc-hub-result i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 7px currentColor}
.mc-hub-result.is-win{color:#5bea8b}.mc-hub-result.is-draw{color:#ffc84f}.mc-hub-result.is-loss{color:#ff687d}
.mc-hub-match-row>time{color:#d9d1c2;font-size:.59rem;font-weight:650}
.mc-hub-report-link{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:32px;
  border:1px solid rgba(212,169,79,0.3);
  border-radius:7px;
  background:rgba(23,21,15,0.44);
  color:#e5c377;
}
.mc-hub-report-link .mc-hub-icon{width:14px;height:14px}
.mc-hub-report-link b{font-size:.55rem;font-weight:900;letter-spacing:.045em}
.mc-hub-text-button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:0;
  background:transparent;
  color:#e5c377;
  font-size:.61rem;
  font-weight:900;
  letter-spacing:.055em;
  cursor:pointer;
}
.mc-hub-text-button .mc-hub-icon{width:15px;height:15px}
.mc-hub-history-link,.mc-hub-table-link{margin:4px 17px 0 auto;padding:8px 0}

/* Form players */
.mc-hub-form-players{padding-bottom:14px}
.mc-hub-player-list{display:grid;gap:8px;padding:12px 14px 0}
.mc-hub-player-row{
  position:relative;
  display:grid;
  grid-template-columns:38px 82px minmax(0,1fr) 78px;
  align-items:center;
  gap:0;
  min-height:91px;
  overflow:hidden;
  padding:0 13px 0 0;
  border:1px solid rgba(212,169,79,0.27);
  border-radius:11px;
  background:
    radial-gradient(circle at 20% 20%,rgba(76,57,21,0.12),transparent 32%),
    linear-gradient(100deg,rgba(42,34,20,0.84),rgba(23,21,15,0.78));
  color:#fff;
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.028);
  transition:transform .18s ease,border-color .18s ease,filter .18s ease;
}
.mc-hub-player-row::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(76,57,21,0.035),transparent 38%,rgba(76,57,21,0.035));
  pointer-events:none;
}
.mc-hub-player-row:hover{transform:translateX(2px);border-color:rgba(212,169,79,0.48);filter:brightness(1.06)}
.mc-hub-rank{
  position:relative;
  z-index:1;
  display:grid;
  place-items:center;
  align-self:stretch;
  border-right:1px solid rgba(212,169,79,0.17);
  color:#e5c377;
  font-family:var(--display);
  font-size:1.24rem;
  font-weight:800;
  text-shadow:0 0 15px rgba(212,169,79,0.35);
}
.mc-hub-rank span{transform:translateY(1px)}
.mc-hub-player-portrait{
  position:relative;
  align-self:stretch;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(44,103,164,.12),rgba(9,24,58,.52));
}
.mc-hub-player-portrait::after{
  content:"";
  position:absolute;
  left:12%;right:12%;bottom:-3px;height:10px;
  border-radius:50%;
  background:rgba(22,140,215,.30);
  filter:blur(8px);
}
.mc-hub-player-portrait img{position:absolute;z-index:1;inset:1px 0 0;width:100%;height:calc(100% - 1px);object-fit:contain;object-position:center bottom;filter:drop-shadow(0 7px 8px rgba(0,0,0,.25))}
.mc-hub-player-portrait i{display:grid;place-items:center;height:100%;color:#55dff7;font-family:var(--display);font-size:1.45rem;font-style:normal}
.mc-hub-player-copy{position:relative;z-index:1;display:grid;gap:11px;min-width:0;padding:10px 13px}
.mc-hub-player-name{display:flex;align-items:baseline;gap:8px;min-width:0}
.mc-hub-player-name strong{overflow:hidden;color:#fbf7ef;font-family:var(--display);font-size:.98rem;font-weight:850;letter-spacing:.015em;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-player-name small{color:#e5c377;font-size:.68rem;font-weight:900}
.mc-hub-player-metrics{display:flex;align-items:center;gap:17px}
.mc-hub-player-metrics>b{display:grid;grid-template-columns:16px auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;color:#d9d1c2;font-weight:700}
.mc-hub-player-metrics .mc-hub-icon{grid-row:1/3;width:15px;height:15px;color:#fbf7ef}
.mc-hub-player-metrics strong{color:#fbf7ef;font-size:.72rem;font-weight:850;line-height:1}
.mc-hub-player-metrics small{color:#d9d1c2;font-size:.44rem;font-weight:800;letter-spacing:.065em}
.mc-hub-latest-rating{position:relative;z-index:1;display:grid;justify-items:end;gap:2px;padding-left:11px;border-left:1px solid rgba(212,169,79,0.14)}
.mc-hub-latest-rating small{color:#d9d1c2;font-size:.47rem;font-weight:850;letter-spacing:.05em;white-space:nowrap}
.mc-hub-latest-rating strong{color:#fff;font-family:var(--display);font-size:1.42rem;font-weight:800;line-height:1}
.mc-hub-latest-rating i{display:block;width:29px;height:25px;margin-top:3px;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);border:1px solid #d4a94f;background:rgba(42,34,20,0.24);box-shadow:inset 0 0 0 1px rgba(212,169,79,0.35)}

/* Club form */
.mc-hub-club-form,.mc-hub-table{min-height:252px;padding-bottom:11px}
.mc-hub-form-boxes{display:flex;justify-content:center;gap:8px;padding:17px 12px 12px}
.mc-hub-form-boxes>div{display:grid;justify-items:center;gap:5px;min-width:42px}
.mc-hub-form-boxes b{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid currentColor;
  border-radius:7px;
  font-family:var(--display);
  font-size:1rem;
  font-weight:850;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.mc-hub-form-boxes b.is-win{background:linear-gradient(145deg,rgba(41,141,61,.64),rgba(22,91,43,.62));color:#6ae879}
.mc-hub-form-boxes b.is-draw{background:linear-gradient(145deg,rgba(158,112,20,.57),rgba(95,68,18,.58));color:#ffd05a}
.mc-hub-form-boxes b.is-loss{background:linear-gradient(145deg,rgba(153,39,55,.59),rgba(91,25,39,.61));color:#ff6e81}
.mc-hub-form-boxes strong{color:#fbf7ef;font-size:.61rem;font-weight:850}
.mc-hub-form-boxes small{color:#d9d1c2;font-size:.48rem;font-weight:750}
.mc-hub-form-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:5px 14px 0;padding-top:12px;border-top:1px solid rgba(212,169,79,0.17)}
.mc-hub-form-stats div{display:grid;justify-items:center;gap:5px;padding:0 5px;text-align:center}
.mc-hub-form-stats div+div{border-left:1px solid rgba(212,169,79,0.13)}
.mc-hub-form-stats dt{color:#d9d1c2;font-size:.48rem;font-weight:850;letter-spacing:.055em}
.mc-hub-form-stats dd{display:flex;align-items:baseline;justify-content:center;gap:3px;margin:0;color:#fbf7ef;font-family:var(--display);font-size:1rem;font-weight:800}
.mc-hub-form-stats dd small{color:#d9d1c2;font-family:var(--body);font-size:.41rem;font-weight:700}
.mc-hub-form-stats dd i{margin:0 1px;color:#d9d1c2;font-style:normal;font-size:.65rem}

/* Standings */
.mc-hub-league-table{padding:12px 12px 0}
.mc-hub-league-head,.mc-hub-league-row{display:grid;grid-template-columns:30px minmax(0,1fr) 30px 38px 34px;align-items:center;gap:5px}
.mc-hub-league-head{padding:0 8px 6px;color:#d9d1c2;font-size:.47rem;font-weight:850;letter-spacing:.07em}
.mc-hub-league-row{min-height:34px;padding:4px 8px;border:1px solid transparent;border-radius:7px;color:#d9d1c2;font-size:.59rem}
.mc-hub-league-row:nth-child(odd):not(.is-user){background:rgba(23,21,15,0.28)}
.mc-hub-league-row.is-user{border-color:rgba(212,169,79,0.48);background:linear-gradient(90deg,rgba(42,34,20,0.72),rgba(23,21,15,0.7));box-shadow:0 0 18px rgba(212,169,79,0.14),inset 0 1px 0 rgba(255,255,255,.05);color:#fff}
.mc-hub-league-row>span:nth-child(2){display:flex;align-items:center;gap:7px;min-width:0}
.mc-hub-league-row strong{overflow:hidden;color:inherit;font-family:var(--display);font-size:.68rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.mc-hub-league-row>b{font-family:var(--display);font-size:.69rem;font-weight:800}
.mc-hub-league-row>b:last-child{color:#fbf7ef}
.mc-hub-fallback-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;padding:15px}
.mc-hub-fallback-stats div{padding:11px;border:1px solid rgba(212,169,79,0.19);border-radius:9px;background:linear-gradient(145deg,rgba(23,21,15,0.62),rgba(23,21,15,0.58))}
.mc-hub-fallback-stats dt{color:#d9d1c2;font-size:.58rem;font-weight:700}
.mc-hub-fallback-stats dd{margin:5px 0 0;color:#fff;font-family:var(--display);font-size:1.22rem;font-weight:800}

/* Empty, loading and history states */
.mc-hub-empty-state{display:grid;justify-items:center;min-height:386px;padding:0 26px 25px;text-align:center}
.mc-hub-empty-state .mc-hub-panel-title{justify-self:stretch;width:100%;padding-left:0;padding-right:0}
.mc-hub-empty-icon{display:grid;place-items:center;width:76px;height:76px;margin-top:35px;border:1px solid rgba(212,169,79,0.24);border-radius:50%;background:radial-gradient(circle,rgba(42,34,20,0.37),rgba(23,21,15,0.22));color:#e5c377;box-shadow:0 0 28px rgba(212,169,79,0.12)}
.mc-hub-empty-icon .mc-hub-icon{width:31px;height:31px}
.mc-hub-empty-state h2{margin:10px 0 0;font-family:var(--display);font-size:1.42rem;font-weight:850}
.mc-hub-empty-state p{max-width:410px;margin:0;color:#d9d1c2;font-size:.76rem;line-height:1.55}
.mc-hub-secondary-button{margin-top:12px;background:linear-gradient(180deg,rgba(42,34,20,0.77),rgba(23,21,15,0.81));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 22px rgba(0,0,0,.18)}
.mc-hub-list-empty{display:grid;gap:7px;padding:38px 20px;text-align:center}
.mc-hub-list-empty strong{font-family:var(--display);font-size:1rem;font-weight:800}
.mc-hub-list-empty p{margin:0;color:#d9d1c2;font-size:.72rem;line-height:1.5}
.mc-hub-loading,.mc-hub-error{display:grid;place-items:center;gap:10px;min-height:390px;padding:32px;border:1px solid rgba(212,169,79,0.25);border-radius:18px;background:linear-gradient(145deg,rgba(23,21,15,0.86),rgba(13,12,10,0.88));text-align:center;box-shadow:0 24px 60px rgba(0,0,0,.22)}
.mc-hub-loading i{width:38px;height:38px;border:3px solid rgba(212,169,79,0.18);border-top-color:#d4a94f;border-radius:50%;animation:mcHubSpin .9s linear infinite}
.mc-hub-loading strong,.mc-hub-error strong{color:#fbf7ef;font-family:var(--display);font-size:1.18rem;font-weight:800}
.mc-hub-loading span,.mc-hub-error p{margin:0;color:#d9d1c2;font-size:.76rem}

.mc-hub-inline-message{min-height:18px;margin-top:8px;color:#ff9db2;font-size:.7rem;text-align:center}
.mc-hub-history-page>.mc-hub-past{min-height:470px}
.mc-hub-history-page .mc-hub-match-table{padding-bottom:11px}

@media(max-width:1320px){
  .mc-hub-dashboard-grid{grid-template-columns:minmax(0,1.36fr) minmax(365px,.92fr)}
  .mc-hub-right-bottom{grid-template-columns:1fr}
  .mc-hub-match-head,.mc-hub-match-row{grid-template-columns:minmax(155px,1.35fr) minmax(90px,.76fr) 60px 66px 88px 112px}
  .mc-hub-player-row{grid-template-columns:36px 74px minmax(0,1fr) 70px}
  .mc-hub-player-metrics{gap:11px}
}
@media(max-width:980px){
  .mc-hub-dashboard-grid{grid-template-columns:1fr}
  .mc-hub-right-bottom{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc-hub-next{min-height:380px}
}
@media(max-width:740px){
  .mc-hub-page{padding-top:15px}
  .mc-hub-page-header{align-items:flex-start;flex-direction:column}
  .mc-hub-server-state{display:none}
  .mc-hub-right-bottom{grid-template-columns:1fr}
  .mc-hub-versus{grid-template-columns:minmax(0,1fr) 66px minmax(0,1fr);padding:0}
  .mc-hub-club{grid-template-rows:88px auto auto}
  .mc-hub-club-logo.is-large{width:76px;height:88px}
  .mc-hub-club strong{max-width:125px;font-size:.93rem}
  .mc-hub-score-area b{font-size:1.45rem}
  .mc-hub-fixture-meta{gap:8px 13px}
  .mc-hub-fixture-meta span:last-child{width:100%;justify-content:center}
  .mc-hub-countdown-units{gap:4px}
  .mc-hub-countdown-units>span{min-width:34px}
  .mc-hub-countdown-units b{font-size:1.25rem}
  .mc-hub-match-head{display:none}
  .mc-hub-match-row{grid-template-columns:minmax(0,1fr) 62px 70px;gap:8px;padding:8px 10px}
  .mc-hub-match-row>.mc-hub-competition-cell,.mc-hub-match-row>time{display:none}
  .mc-hub-report-link{grid-column:1/-1}
  .mc-hub-player-row{grid-template-columns:32px 66px minmax(0,1fr) 60px;min-height:84px}
  .mc-hub-player-copy{gap:8px;padding:9px 10px}
  .mc-hub-player-metrics{gap:9px}
  .mc-hub-player-metrics>b:nth-child(3){display:none}
  .mc-hub-latest-rating small{font-size:.4rem}
  .mc-hub-section-label{font-size:.78rem}
}
@media(max-width:460px){
  .mc-hub-page-header .eyebrow{font-size:1.45rem}
  .mc-hub-hero-stage{padding-left:12px;padding-right:12px}
  .mc-hub-club strong{max-width:105px;font-size:.82rem}
  .mc-hub-club small{font-size:.5rem}
  .mc-hub-primary-button{width:min(100%,260px)}
  .mc-hub-player-row{grid-template-columns:30px 60px minmax(0,1fr) 52px}
  .mc-hub-player-name{display:grid;gap:2px}
  .mc-hub-player-metrics>b:nth-child(2){display:none}
  .mc-hub-form-boxes{gap:5px}
  .mc-hub-form-boxes b{width:38px;height:38px}
}
@media(prefers-reduced-motion:reduce){
  .mc-hub-status.is-live i,.mc-hub-loading i{animation:none}
  .mc-hub-player-row,.mc-hub-primary-button,.mc-hub-match-row{transition:none}
}

/* Premium Match Centre refinement: stadium atmosphere and clearer centre stage */
.mc-hub-next::before{
  background:
    linear-gradient(180deg,rgba(13,12,10,0.28),rgba(13,12,10,0.62) 72%,rgba(13,12,10,0.92)),
    linear-gradient(90deg,rgba(13,12,10,0.54),transparent 26%,transparent 74%,rgba(13,12,10,0.54)),
    url('/management-backgrounds/page-bg-club-main.webp') center 43%/cover no-repeat;
  opacity:.42;
  filter:saturate(.82) contrast(1.08) blur(.35px);
}
.mc-hub-score-area{
  position:relative;
  min-width:104px;
  padding:13px 8px 12px;
  border:1px solid rgba(212,169,79,0.13);
  border-radius:20px;
  background:radial-gradient(circle at 50% 45%,rgba(42,34,20,0.44),rgba(13,12,10,0.58) 68%,rgba(13,12,10,0.24));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 0 30px rgba(212,169,79,0.13);
  backdrop-filter:blur(5px);
}
.mc-hub-score-area::before,.mc-hub-score-area::after{
  content:"";
  position:absolute;
  top:50%;
  width:25px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(76,57,21,0.3));
}
.mc-hub-score-area::before{right:100%}
.mc-hub-score-area::after{left:100%;transform:scaleX(-1)}
.mc-hub-competition{
  min-height:24px;
  padding:0 10px;
  border:1px solid rgba(212,169,79,0.12);
  border-radius:999px;
  background:rgba(13,12,10,0.44);
  backdrop-filter:blur(4px);
}

/* Match Centre preview.3 refinements */
@media(min-width:981px){
  .mc-hub-next,.mc-hub-form-players{height:386px;min-height:386px}
  .mc-hub-form-players{display:flex;flex-direction:column}
  .mc-hub-form-players .mc-hub-player-list{flex:1;grid-template-rows:repeat(3,minmax(0,1fr));min-height:0}
  .mc-hub-form-players .mc-hub-player-row{min-height:0;height:100%}
}
.mc-hub-next::before{
  inset:0;
  background:
    linear-gradient(180deg,rgba(17,14,9,.42),rgba(11,9,6,.44) 26%,rgba(10,8,5,.68) 73%,rgba(7,6,4,.94)),
    linear-gradient(90deg,rgba(15,12,8,.58),transparent 25%,transparent 75%,rgba(15,12,8,.58)),
    url('/management-backgrounds/page-bg-club-main.webp') center 43%/cover no-repeat;
  opacity:.54;
}
.mc-hub-next .mc-hub-panel-title{z-index:3;padding-bottom:9px;background:linear-gradient(180deg,rgba(13,12,10,0.62),rgba(13,12,10,0.18),transparent)}
.mc-hub-score-area{
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.mc-hub-score-area::before,.mc-hub-score-area::after{display:none}
.mc-hub-score-area b{color:#fbf7ef;font-size:2.65rem;letter-spacing:.045em;text-shadow:0 0 24px rgba(212,169,79,0.34),0 5px 20px rgba(0,0,0,.72)}
.mc-hub-next.is-finished .mc-hub-score-area b{font-size:2.7rem}
.mc-hub-player-name strong{font-size:1.12rem;line-height:1.05}
.mc-hub-player-name-link{position:relative;width:max-content;max-width:100%;cursor:pointer}
.mc-hub-player-name-link::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:#4c3915;transform:scaleX(0);transform-origin:left;transition:transform .18s ease}
.mc-hub-player-row:hover .mc-hub-player-name-link::after,.mc-hub-player-row:focus-visible .mc-hub-player-name-link::after{transform:scaleX(1)}
.mc-hub-form-stats dd>span{font:inherit;color:inherit}
.mc-hub-history-link,.mc-hub-table-link{display:flex;width:max-content;margin:7px 0 11px 25px;padding:8px 0}

/* Permanent Match Report popup */
body.centre-report-modal-open{overflow:hidden}
.centre-report-modal{position:fixed;inset:0;z-index:4200;display:grid;place-items:center;padding:22px}
.centre-report-modal.hidden{display:none}
.centre-report-backdrop{position:absolute;inset:0;border:0;background:rgba(13,12,10,0.82);backdrop-filter:blur(13px) saturate(.9);cursor:default}
.centre-report-sheet{
  position:relative;
  width:min(1180px,calc(100vw - 44px));
  height:min(830px,calc(100vh - 44px));
  overflow:hidden;
  display:grid;
  grid-template-rows:auto auto auto minmax(0,1fr);
  border:1px solid rgba(212,169,79,0.35);
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 0,rgba(76,57,21,0.18),transparent 33%),
    linear-gradient(145deg,rgba(23,21,15,0.985),rgba(13,12,10,0.99));
  box-shadow:0 42px 110px rgba(0,0,0,.62),inset 0 1px 0 rgba(212,169,79,0.075),inset 0 0 70px rgba(212,169,79,0.055);
}
.centre-report-sheet::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,rgba(76,57,21,0.025),transparent 30%,rgba(76,57,21,0.035));z-index:0}
.centre-report-sheet>*{position:relative;z-index:1}
.centre-report-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px 14px;border-bottom:1px solid rgba(212,169,79,0.16);background:linear-gradient(180deg,rgba(23,21,15,0.66),rgba(23,21,15,0.28))}
.centre-report-header>div{display:grid;gap:3px}
.centre-report-header span{color:#e5c377;font-size:.63rem;font-weight:900;letter-spacing:.13em}
.centre-report-header h2{margin:0;color:#fff;font-family:var(--display);font-size:1.45rem;font-weight:900;letter-spacing:.015em}
.centre-report-close{display:grid;place-items:center;width:38px;height:38px;border:1px solid rgba(212,169,79,0.28);border-radius:10px;background:rgba(23,21,15,0.62);color:#fbf7ef;font-size:1.5rem;line-height:1;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.centre-report-close:hover{transform:translateY(-1px);border-color:rgba(212,169,79,0.58);background:rgba(23,21,15,0.78)}
.centre-report-close:focus-visible,.centre-report-tabs button:focus-visible,.mc-report-pitch-player:focus-visible,.mc-report-rating-row:focus-visible,.mc-report-player-table button:focus-visible{outline:2px solid #d4a94f;outline-offset:2px}
.centre-report-summary{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 170px minmax(0,1fr);align-items:center;gap:18px;min-height:126px;padding:16px 30px 38px;border-bottom:1px solid rgba(212,169,79,0.14);background:radial-gradient(ellipse at 50% 42%,rgba(42,34,20,0.18),transparent 58%)}
.mc-report-summary-club{display:flex;align-items:center;gap:15px;min-width:0}
.mc-report-summary-club.is-home{justify-content:flex-end;text-align:right}
.mc-report-summary-club.is-away{justify-content:flex-start}
.mc-report-summary-club strong{max-width:270px;overflow:hidden;color:#fbf7ef;font-family:var(--display);font-size:1.25rem;font-weight:900;text-overflow:ellipsis;white-space:nowrap}
.mc-report-summary-score{display:grid;justify-items:center;gap:2px}
.mc-report-summary-score small{color:#e5c377;font-size:.57rem;font-weight:900;letter-spacing:.14em}
.mc-report-summary-score b{color:#fff;font-family:var(--display);font-size:2.25rem;font-weight:900;letter-spacing:.05em;text-shadow:0 0 24px rgba(212,169,79,0.28)}
.mc-report-summary-score b i{color:#d9d1c2;font-style:normal;font-weight:600}
.mc-report-summary-score span{color:#d9d1c2;font-size:.58rem;font-weight:800;letter-spacing:.06em}
.mc-report-summary-score .mc-report-summary-penalties{color:#f0d79b;font-family:var(--body);font-size:.69rem;font-style:normal;font-weight:900;letter-spacing:.06em}
.mc-report-summary-score .mc-report-summary-winner{max-width:210px;color:#fbf7ef;font-family:var(--body);font-size:.58rem;font-weight:850;line-height:1.25;text-align:center}
.centre-report-summary>footer{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px 22px;min-height:32px;padding:0 22px;border-top:1px solid rgba(212,169,79,0.11);background:rgba(13,12,10,0.38)}
.centre-report-summary>footer span{display:inline-flex;align-items:center;gap:6px;color:#d9d1c2;font-size:.55rem;font-weight:750}
.centre-report-summary>footer .mc-hub-icon{width:13px;height:13px;color:#e5c377}
.centre-report-tabs{display:flex;align-items:center;gap:5px;padding:10px 18px;border-bottom:1px solid rgba(212,169,79,0.16);background:rgba(13,12,10,0.56)}
.centre-report-tabs button{min-height:36px;padding:0 18px;border:1px solid transparent;border-radius:8px;background:transparent;color:#d9d1c2;font-family:var(--display);font-size:.67rem;font-weight:900;letter-spacing:.065em;cursor:pointer;transition:color .18s ease,border-color .18s ease,background .18s ease}
.centre-report-tabs button:hover{color:#fbf7ef;background:rgba(42,34,20,0.28)}
.centre-report-tabs button.is-active{border-color:rgba(212,169,79,0.34);background:linear-gradient(180deg,rgba(42,34,20,0.6),rgba(23,21,15,0.48));color:#e5c377;box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 0 17px rgba(212,169,79,0.08)}
.centre-report-body{min-height:0;overflow:auto;padding:18px 20px 22px;scrollbar-color:rgba(212,169,79,0.45) rgba(212,169,79,0.45);scrollbar-width:thin}

.mc-report-popup-loading,.mc-report-popup-error{display:grid;place-items:center;align-content:center;gap:9px;min-height:100%;text-align:center;color:#fff}
.mc-report-popup-loading i{width:34px;height:34px;border:3px solid rgba(212,169,79,0.18);border-top-color:#d4a94f;border-radius:50%;animation:mcHubSpin .8s linear infinite}
.mc-report-popup-loading strong,.mc-report-popup-error strong{font-family:var(--display);font-size:1.05rem}
.mc-report-popup-loading span,.mc-report-popup-error p{margin:0;color:#d9d1c2;font-size:.72rem}
.mc-report-popup-error button{margin-top:6px;padding:10px 22px;border:1px solid rgba(212,169,79,0.42);border-radius:8px;background:rgba(42,34,20,0.62);color:#fff;font-weight:900;cursor:pointer}
.mc-report-popup-empty{margin:0;padding:18px;border:1px dashed rgba(212,169,79,0.22);border-radius:9px;color:#d9d1c2;font-size:.68rem;text-align:center}

/* Formation */
.mc-report-formation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:960px;margin:0 auto}
.mc-report-formation-team{overflow:hidden;border:1px solid rgba(212,169,79,0.22);border-radius:15px;background:linear-gradient(150deg,rgba(23,21,15,0.7),rgba(13,12,10,0.76));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.mc-report-formation-team>header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid rgba(212,169,79,0.14)}
.mc-report-formation-team>header>span{display:grid;gap:1px}
.mc-report-formation-team>header small{color:#e5c377;font-size:.49rem;font-weight:900;letter-spacing:.12em}
.mc-report-formation-team>header strong{color:#fff;font-family:var(--display);font-size:.93rem;font-weight:850}
.mc-report-formation-team>header em{color:#d9d1c2;font-size:.58rem;font-style:normal;font-weight:800}
.mc-report-pitch{position:relative;height:460px;margin:13px;overflow:hidden;border:1px solid rgba(136,222,194,.24);border-radius:12px;background:linear-gradient(90deg,rgba(20,87,91,.83),rgba(20,104,99,.83) 50%,rgba(17,82,85,.84));box-shadow:inset 0 0 45px rgba(2,21,31,.34)}
.mc-report-pitch::before{content:"";position:absolute;inset:3.5%;border:1px solid rgba(211,255,239,.36);border-radius:3px;pointer-events:none}
.mc-report-pitch::after{content:"";position:absolute;left:3.5%;right:3.5%;top:50%;height:1px;background:rgba(211,255,239,.34);pointer-events:none}
.mc-report-pitch-lines{position:absolute;left:50%;top:50%;width:82px;height:82px;transform:translate(-50%,-50%);border:1px solid rgba(211,255,239,.34);border-radius:50%}
.mc-report-pitch-lines::before,.mc-report-pitch-lines::after{content:"";position:absolute;left:50%;transform:translateX(-50%);width:58%;height:64px;border:1px solid rgba(211,255,239,.30)}
.mc-report-pitch-lines::before{top:-190px;border-top:0}
.mc-report-pitch-lines::after{bottom:-190px;border-bottom:0}
.mc-report-pitch-player{position:absolute;z-index:2;display:grid;justify-items:center;gap:2px;width:74px;padding:0;border:0;background:transparent;color:#fff;transform:translate(-50%,-50%);cursor:pointer;text-align:center}
.mc-report-pitch-player .mc-report-player-portrait{width:36px;height:36px;border:2px solid rgba(124,231,255,.75);box-shadow:0 0 0 3px rgba(4,30,58,.72),0 5px 12px rgba(0,0,0,.42)}
.mc-report-pitch-player>span:last-child{display:grid;justify-items:center;min-width:72px;padding:3px 5px;border:1px solid rgba(82,161,207,.18);border-radius:6px;background:rgba(3,18,42,.78);box-shadow:0 4px 10px rgba(0,0,0,.25)}
.mc-report-pitch-player strong{max-width:68px;overflow:hidden;color:#f9fcff;font-family:var(--display);font-size:.57rem;font-weight:800;text-overflow:ellipsis;white-space:nowrap}
.mc-report-pitch-player small{color:#63e6ff;font-size:.43rem;font-weight:900}
.mc-report-formation-team>footer{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 12px;border-top:1px solid rgba(212,169,79,0.14);color:#d9d1c2}
.mc-report-formation-team>footer span{font-size:.48rem;font-weight:850;letter-spacing:.07em}
.mc-report-formation-team>footer strong{color:#fbf7ef;font-family:var(--display);font-size:.72rem}
.mc-report-formation-team>footer i{color:#e5c377;font-style:normal}

/* Tactics */
.mc-report-tactics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mc-report-tactics-team{overflow:hidden;border:1px solid rgba(212,169,79,0.22);border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.75))}
.mc-report-tactics-team>header{display:flex;align-items:center;gap:11px;padding:13px 15px;border-bottom:1px solid rgba(212,169,79,0.15);background:rgba(23,21,15,0.32)}
.mc-report-tactics-team>header>div{display:grid;gap:2px}
.mc-report-tactics-team>header small{color:#e5c377;font-size:.46rem;font-weight:900;letter-spacing:.12em}
.mc-report-tactics-team>header strong{color:#fff;font-family:var(--display);font-size:.91rem;font-weight:850}
.mc-report-tactics-team>header span{color:#d9d1c2;font-size:.56rem;font-weight:750}
.mc-report-tactic-block{padding:13px 15px;border-top:1px solid rgba(212,169,79,0.1)}
.mc-report-tactic-block:first-of-type{border-top:0}
.mc-report-tactic-block h3{margin:0 0 9px;color:#d9d1c2;font-family:var(--display);font-size:.67rem;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.mc-report-popup-tactic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}
.mc-report-popup-tactic-grid div{padding:9px 10px;border:1px solid rgba(212,169,79,0.15);border-radius:8px;background:rgba(13,12,10,0.44)}
.mc-report-popup-tactic-grid dt{color:#d9d1c2;font-size:.48rem;font-weight:800}
.mc-report-popup-tactic-grid dd{margin:3px 0 0;color:#fbf7ef;font-size:.62rem;font-weight:800}
.mc-report-popup-changes{display:grid;gap:6px}
.mc-report-popup-changes article{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:9px;padding:8px 10px;border:1px solid rgba(212,169,79,0.15);border-radius:8px;background:rgba(13,12,10,0.43)}
.mc-report-popup-changes article>b{display:grid;place-items:center;min-height:30px;border-radius:7px;background:rgba(42,34,20,0.54);color:#e5c377;font-family:var(--display);font-size:.65rem}
.mc-report-popup-changes article>span{display:grid;gap:2px}
.mc-report-popup-changes strong{color:#fbf7ef;font-size:.61rem;font-weight:850}
.mc-report-popup-changes small{color:#d9d1c2;font-size:.54rem;line-height:1.35}

/* Ratings */
.mc-report-player-portrait{position:relative;display:grid;place-items:center;flex:0 0 auto;width:42px;height:42px;overflow:hidden;border:1px solid rgba(83,199,239,.33);border-radius:50%;background:linear-gradient(145deg,rgba(28,83,139,.88),rgba(8,26,60,.94))}
.mc-report-player-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
.mc-report-player-portrait i{color:#66e6ff;font-family:var(--display);font-size:.88rem;font-style:normal;font-weight:850}
.mc-report-potm{display:grid;grid-template-columns:58px minmax(0,1fr) 66px;align-items:center;gap:13px;max-width:600px;margin:0 auto 15px;padding:12px 15px;border:1px solid rgba(239,195,74,.32);border-radius:13px;background:linear-gradient(110deg,rgba(106,76,15,.30),rgba(23,21,15,0.55));box-shadow:0 0 24px rgba(218,169,43,.07)}
.mc-report-potm .mc-report-player-portrait{width:54px;height:54px;border-color:rgba(255,219,104,.58)}
.mc-report-potm>div{display:grid;gap:2px}
.mc-report-potm small{color:#ffd86c;font-size:.50rem;font-weight:900;letter-spacing:.11em}
.mc-report-potm strong{color:#fff;font-family:var(--display);font-size:1rem;font-weight:900}
.mc-report-potm span{color:#d9d1c2;font-size:.56rem;font-weight:700}
.mc-report-potm>b{display:grid;place-items:center;width:54px;height:48px;clip-path:polygon(50% 0,94% 25%,94% 75%,50% 100%,6% 75%,6% 25%);background:linear-gradient(145deg,#ffd86b,#8e6414);color:#1a1207;font-family:var(--display);font-size:1.25rem;font-weight:900}
.mc-report-ratings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mc-report-ratings-team{overflow:hidden;border:1px solid rgba(212,169,79,0.2);border-radius:13px;background:rgba(23,21,15,0.54)}
.mc-report-ratings-team>header{display:flex;align-items:center;gap:10px;padding:11px 13px;border-bottom:1px solid rgba(212,169,79,0.15)}
.mc-report-ratings-team>header strong{flex:1;color:#fff;font-family:var(--display);font-size:.86rem;font-weight:850}
.mc-report-ratings-team>header>span:last-child{color:#e5c377;font-size:.58rem;font-weight:850}
.mc-report-ratings-team>div{display:grid}
.mc-report-rating-row{display:grid;grid-template-columns:42px minmax(0,1fr) 80px 48px;align-items:center;gap:10px;min-height:57px;padding:7px 11px;border:0;border-bottom:1px solid rgba(212,169,79,0.11);background:transparent;color:#fff;text-align:left;cursor:pointer}
.mc-report-rating-row:last-child{border-bottom:0}
.mc-report-rating-row:hover{background:rgba(42,34,20,0.34)}
.mc-report-rating-row>span{display:grid;gap:2px;min-width:0}
.mc-report-rating-row>span strong{overflow:hidden;color:#fbf7ef;font-size:.64rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.mc-report-rating-row>span small{color:#d9d1c2;font-size:.49rem;font-weight:750}
.mc-report-rating-row em{color:#d9d1c2;font-size:.50rem;font-style:normal;font-weight:700;text-align:right}
.mc-report-rating-row>b,.mc-report-table-rating{display:inline-grid;place-items:center;min-width:42px;min-height:30px;border-radius:7px;font-family:var(--display);font-size:.75rem;font-weight:900}
.mc-report-rating-row>b.is-elite,.mc-report-table-rating.is-elite{background:rgba(41,141,91,.55);color:#6af0a3}
.mc-report-rating-row>b.is-good,.mc-report-table-rating.is-good{background:rgba(42,34,20,0.54);color:#e5c377}
.mc-report-rating-row>b.is-average,.mc-report-table-rating.is-average{background:rgba(133,100,28,.52);color:#ffd063}
.mc-report-rating-row>b.is-poor,.mc-report-table-rating.is-poor{background:rgba(132,42,57,.52);color:#ff7c90}

/* Statistics and timeline */
.mc-report-stats-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(330px,.8fr);gap:16px}
.mc-report-team-stats,.mc-report-timeline{overflow:hidden;border:1px solid rgba(212,169,79,0.2);border-radius:14px;background:rgba(13,12,10,0.58)}
.mc-report-team-stats>header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(212,169,79,0.14)}
.mc-report-team-stats>header>span{display:flex;align-items:center;gap:8px;min-width:0}
.mc-report-team-stats>header>span:last-child{justify-content:flex-end;text-align:right}
.mc-report-team-stats>header strong{overflow:hidden;color:#fbf7ef;font-family:var(--display);font-size:.72rem;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.mc-report-team-stats>header>small{color:#e5c377;font-size:.50rem;font-weight:900;letter-spacing:.10em}
.mc-report-stat-periods{display:flex;justify-content:center;gap:6px;padding:10px 12px 0}
.mc-report-stat-periods button{min-width:82px;padding:7px 11px;border:1px solid rgba(212,169,79,0.18);border-radius:999px;background:rgba(23,21,15,0.64);color:#d9d1c2;font-family:var(--display);font-size:.52rem;font-weight:900;letter-spacing:.055em;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease}
.mc-report-stat-periods button:hover:not(:disabled){transform:translateY(-1px);border-color:rgba(212,169,79,0.45);color:#fbf7ef}
.mc-report-stat-periods button.is-active{border-color:rgba(212,169,79,0.58);background:linear-gradient(180deg,rgba(42,34,20,0.78),rgba(23,21,15,0.84));color:#e5c377;box-shadow:0 0 16px rgba(212,169,79,0.1)}
.mc-report-stat-periods button:disabled{cursor:not-allowed;opacity:.34}
.mc-report-stat-period-note{display:block;padding:7px 14px 0;color:#d9d1c2;font-size:.49rem;text-align:center}
.mc-report-team-stats>div{padding:10px 15px 14px}
.mc-report-stat-row{display:grid;grid-template-columns:54px minmax(0,1fr) 54px;align-items:center;gap:11px;min-height:41px;border-bottom:1px solid rgba(212,169,79,0.1)}
.mc-report-stat-row:last-child{border-bottom:0}
.mc-report-stat-row>b{color:#fbf7ef;font-family:var(--display);font-size:.72rem;font-weight:850;text-align:center}
.mc-report-stat-row>span{display:grid;gap:5px;text-align:center}
.mc-report-stat-row small{color:#d9d1c2;font-size:.54rem;font-weight:750}
.mc-report-stat-row i{position:relative;display:block;height:4px;overflow:hidden;border-radius:99px;background:rgba(42,34,20,0.6)}
.mc-report-stat-row i::after{content:"";position:absolute;inset:0 0 0 50%;background:rgba(76,57,21,0.48)}
.mc-report-stat-row i em{position:absolute;z-index:1;left:0;top:0;bottom:0;background:linear-gradient(90deg,#4c3915,#4c3915);border-radius:99px}
.mc-report-timeline>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;border-bottom:1px solid rgba(212,169,79,0.14)}
.mc-report-timeline>header span{color:#e5c377;font-family:var(--display);font-size:.67rem;font-weight:900;letter-spacing:.055em}
.mc-report-timeline>header small{color:#d9d1c2;font-size:.51rem;font-weight:700}
.mc-report-timeline>div{max-height:560px;overflow:auto;padding:7px 11px 12px}
.mc-report-timeline article{display:grid;grid-template-columns:35px 8px minmax(0,1fr);align-items:start;gap:8px;padding:8px 4px;border-bottom:1px solid rgba(212,169,79,0.1)}
.mc-report-timeline article>b{color:#e5c377;font-family:var(--display);font-size:.61rem;text-align:right}
.mc-report-timeline article>i{width:7px;height:7px;margin-top:3px;border-radius:50%;background:#2a2214;box-shadow:0 0 7px rgba(212,169,79,0.48)}
.mc-report-timeline article>i.is-goal{background:#5ee28c;box-shadow:0 0 8px rgba(94,226,140,.65)}
.mc-report-timeline article>i.is-yellow_card{background:#ffd152}.mc-report-timeline article>i.is-red_card{background:#ff647b}.mc-report-timeline article>i.is-injury{background:#f59559}
.mc-report-timeline article>span{display:grid;gap:2px}
.mc-report-timeline article strong{color:#d9d1c2;font-size:.50rem;font-weight:900;letter-spacing:.045em}
.mc-report-timeline article small{color:#d9d1c2;font-size:.53rem;line-height:1.4}

/* Player statistics */
.mc-report-player-table-wrap{overflow:auto;border:1px solid rgba(212,169,79,0.2);border-radius:13px;background:rgba(13,12,10,0.58)}
.mc-report-player-table{width:100%;min-width:1420px;border-collapse:separate;border-spacing:0;color:#d9d1c2;font-size:.56rem}
.mc-report-player-table th{position:sticky;top:0;z-index:3;height:40px;padding:0 10px;border-bottom:1px solid rgba(212,169,79,0.2);background:#17150f;color:#d9d1c2;font-size:.48rem;font-weight:900;letter-spacing:.07em;text-align:center;white-space:nowrap}
.mc-report-player-table th:first-child{text-align:left}
.mc-report-player-table td{height:52px;padding:5px 10px;border-bottom:1px solid rgba(212,169,79,0.1);text-align:center;white-space:nowrap}
.mc-report-player-table tbody tr:hover{background:rgba(42,34,20,0.27)}
.mc-report-player-table td:first-child{text-align:left}
.mc-report-player-table td>button{display:flex;align-items:center;gap:9px;min-width:210px;padding:0;border:0;background:transparent;color:#fff;text-align:left;cursor:pointer}
.mc-report-player-table .mc-report-player-portrait{width:36px;height:36px}
.mc-report-player-table td>button>span{display:grid;gap:1px}
.mc-report-player-table td>button strong{color:#fbf7ef;font-size:.62rem;font-weight:850}
.mc-report-player-table td>button small{color:#d9d1c2;font-size:.43rem;font-weight:800}
.mc-report-player-table tbody tr:last-child td{border-bottom:0}

@media(max-width:980px){
  .mc-hub-next,.mc-hub-form-players{height:auto}
  .centre-report-sheet{height:calc(100vh - 24px);width:calc(100vw - 24px)}
  .centre-report-summary{grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr);padding-left:18px;padding-right:18px}
  .mc-report-summary-club strong{font-size:1rem}
  .mc-report-formation-grid,.mc-report-tactics-grid,.mc-report-ratings-grid,.mc-report-stats-layout{grid-template-columns:1fr}
  .mc-report-formation-grid{max-width:560px}
}
@media(max-width:680px){
  .centre-report-modal{padding:0}
  .centre-report-sheet{width:100vw;height:100vh;border:0;border-radius:0}
  .centre-report-header{padding:13px 15px}
  .centre-report-header h2{font-size:1.05rem}
  .centre-report-summary{grid-template-columns:1fr 90px 1fr;gap:7px;min-height:104px;padding:12px 10px 35px}
  .mc-report-summary-club{gap:6px}.mc-report-summary-club strong{font-size:.72rem}.mc-report-summary-club .mc-hub-club-logo.is-normal{width:42px;height:42px}
  .mc-report-summary-score b{font-size:1.45rem}.mc-report-summary-score small{font-size:.43rem}
  .mc-report-summary-score .mc-report-summary-penalties{font-size:.59rem}.mc-report-summary-score .mc-report-summary-winner{max-width:110px;font-size:.48rem}
  .centre-report-summary>footer{gap:6px 10px;padding:0 9px}.centre-report-summary>footer span{font-size:.44rem}
  .centre-report-tabs{overflow-x:auto;padding:8px 10px}.centre-report-tabs button{flex:0 0 auto;padding:0 13px;font-size:.58rem}
  .centre-report-body{padding:11px}
  .mc-report-pitch{height:420px}
  .mc-report-popup-tactic-grid{grid-template-columns:1fr}
  .mc-report-potm{grid-template-columns:48px minmax(0,1fr) 50px}.mc-report-potm .mc-report-player-portrait{width:46px;height:46px}
}
@media(prefers-reduced-motion:reduce){.mc-hub-player-name-link::after,.centre-report-close{transition:none}.mc-report-popup-loading i{animation:none}}

/* Match Centre preview.4 — performance and layout refinement */
@media (min-width:981px){
  .mc-hub-next,
  .mc-hub-form-players{
    box-sizing:border-box;
    height:420px;
    min-height:420px;
  }
  .mc-hub-next .mc-hub-hero-stage{
    box-sizing:border-box;
    padding-bottom:26px;
  }
  .mc-hub-past:not(.is-history),
  .mc-hub-club-form,
  .mc-hub-table{
    box-sizing:border-box;
    height:330px;
    min-height:330px;
  }
  .mc-hub-past:not(.is-history){
    display:flex;
    flex-direction:column;
  }
  .mc-hub-past:not(.is-history) .mc-hub-match-table{
    flex:1 1 auto;
    min-height:0;
  }
  .mc-hub-past:not(.is-history) .mc-hub-match-row{
    min-height:48px;
    margin-bottom:5px;
  }
}

/* Keep the featured action comfortably inside the cinematic panel. */
.mc-hub-next{padding-bottom:24px}
.mc-hub-primary-button{flex:0 0 auto;margin-bottom:2px}

/* Position is an intentional, colour-coded role badge rather than secondary copy. */
.mc-hub-player-name{align-items:center}
.mc-hub-position{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  min-height:22px;
  padding:0 8px;
  border:1px solid rgba(212,169,79,0.34);
  border-radius:999px;
  color:#fbf7ef!important;
  background:linear-gradient(180deg,rgba(42,34,20,0.74),rgba(23,21,15,0.72));
  font-family:var(--display);
  font-size:.58rem!important;
  font-weight:950!important;
  line-height:1;
  letter-spacing:.055em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 0 14px rgba(212,169,79,0.1);
}
.mc-hub-position.is-goalkeeper{border-color:rgba(255,199,76,.54);color:#ffe08a!important;background:linear-gradient(180deg,rgba(154,104,18,.78),rgba(91,61,13,.76));box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 0 14px rgba(255,186,54,.11)}
.mc-hub-position.is-defender{border-color:rgba(212,169,79,0.54);color:#d9d1c2!important;background:linear-gradient(180deg,rgba(42,34,20,0.82),rgba(23,21,15,0.78))}
.mc-hub-position.is-midfielder{border-color:rgba(212,169,79,0.57);color:#fbf7ef!important;background:linear-gradient(180deg,rgba(76,57,21,0.82),rgba(42,34,20,0.8));box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 0 14px rgba(212,169,79,0.13)}
.mc-hub-position.is-attacker{border-color:rgba(255,99,151,.55);color:#ffc0d8!important;background:linear-gradient(180deg,rgba(168,45,95,.82),rgba(103,27,66,.80));box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 0 14px rgba(255,82,143,.12)}

/* Permanent report: reduce repaint cost while preserving the premium glass treatment. */
.centre-report-backdrop{backdrop-filter:blur(7px) saturate(.92)}
.centre-report-sheet{
  contain:layout paint;
  transform:translateZ(0);
}
.centre-report-body{
  contain:layout paint;
  overscroll-behavior:contain;
}
.mc-report-rating-row,
.mc-report-timeline article,
.mc-report-popup-changes article,
.mc-report-player-table tbody tr{
  content-visibility:auto;
  contain-intrinsic-size:auto 56px;
}
.mc-report-player-table-wrap,
.mc-report-timeline>div{
  overscroll-behavior:contain;
}

/* Formation report reuses the same supplied pitch and player-card language as Lineup / Club Profile. */
.mc-report-formation-grid{
  align-items:start;
  max-width:920px;
}
.mc-report-formation-team{
  display:grid;
  grid-template-rows:auto auto auto;
}
.mc-report-lineup-pitch.profile-active-lineup-pitch{
  width:min(100% - 30px,350px);
  margin:15px auto;
  border-radius:14px;
  box-shadow:inset 0 0 46px rgba(2,18,13,.18),0 18px 38px rgba(0,3,16,.34);
}
.mc-report-lineup-player.profile-active-lineup-player{
  width:clamp(36px,11.2%,50px);
}
.mc-report-lineup-player .profile-active-lineup-name{
  max-width:74px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mc-report-formation-team>footer{
  display:grid;
  grid-template-columns:auto 1fr auto auto 1fr;
  align-items:center;
  gap:7px;
  min-height:42px;
  padding:7px 13px;
  border-top:1px solid rgba(212,169,79,0.14);
  color:#d9d1c2;
  background:rgba(13,12,10,0.46);
}
.mc-report-formation-team>footer span{font-size:.45rem;font-weight:900;letter-spacing:.075em}
.mc-report-formation-team>footer strong{color:#fbf7ef;font-family:var(--display);font-size:.62rem;font-weight:900}
.mc-report-formation-team>footer i{color:#e5c377;font-style:normal}

@media (max-width:980px){
  .mc-hub-past:not(.is-history),
  .mc-hub-club-form,
  .mc-hub-table{height:auto;min-height:0}
  .mc-report-lineup-pitch.profile-active-lineup-pitch{width:min(100% - 24px,390px)}
}
@media (max-width:680px){
  .mc-report-lineup-pitch.profile-active-lineup-pitch{width:min(100% - 18px,350px)}
  .mc-report-formation-team>footer{grid-template-columns:1fr auto 1fr;text-align:center}
  .mc-report-formation-team>footer span{display:none}
}

/* Site-wide artwork delivery: modern browsers select the smaller WebP derivative;
   the established PNG declarations above remain as visual fallbacks. */
body.preseason-background .world-bg{
  background-image:image-set(url('/preseason-bg-v4387.webp') type('image/webp'),url('/preseason-bg-v4387.png') type('image/png'));
}
body.match-centre-world-background .world-bg::before{
  background-image:image-set(url('/world-background-v164.webp') type('image/webp'),url('/world-background-v164.png') type('image/png'))!important;
}
/* Canonical redesign: the World page's own ambient backdrop (behind the
   isometric town map) — separate from Match Centre's own world-themed
   background above, which is untouched. */
body.goat-world-background .world-bg::before{
  background-image:var(--goat-world-background-image,url('/world-big-page.webp'))!important;
}
.mc-hub-next::before{
  background-image:
    linear-gradient(180deg,rgba(17,14,9,.42),rgba(11,9,6,.44) 26%,rgba(10,8,5,.68) 73%,rgba(7,6,4,.94)),
    linear-gradient(90deg,rgba(15,12,8,.58),transparent 25%,transparent 75%,rgba(15,12,8,.58)),
    url('/management-backgrounds/page-bg-club-main.webp');
}
.mc-pitch-surface{
  background-image:image-set(url('/mc-pitch-bg.webp') type('image/webp'),url('/mc-pitch-bg.png') type('image/png'))!important;
}
.profile-active-lineup-pitch,
.tc5-pitch{
  background-image:url('/ui-icons/tactics-pitch-2026.webp')!important;
  background-size:100% 100%!important;
}

/* World artwork refresh: this selector is intentionally scoped to World. */
body.goat-world-background .world-bg::before{
  inset:-6px!important;
  background-image:var(--goat-world-background-image,url('/management-backgrounds/world-page-4c186bc2f137.webp'))!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:blur(.5px) brightness(.72) saturate(.92)!important;
  transform:scale(1.01)!important;
}

/* Owner-only club-level progress ring around the existing, unchanged logo. */
#profileOverviewPanel .club-overview-logo.has-level-progress[data-layout-clip="1"]{overflow:visible!important}
#profileOverviewPanel .club-overview-logo.has-level-progress>img{border-radius:50%}
#profileOverviewPanel .club-overview-level-ring{
  position:absolute;
  z-index:3;
  inset:0 auto auto 0;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  overflow:visible;
  pointer-events:none;
}
#profileOverviewPanel .club-overview-level-ring circle{
  fill:none;
  stroke-width:1.3;
}
#profileOverviewPanel .club-overview-level-track{stroke:rgba(111,78,29,.78)}
#profileOverviewPanel .club-overview-level-fill{
  stroke:#f0c86f;
  stroke-linecap:round;
  filter:drop-shadow(0 0 3px rgba(241,190,79,.58));
  animation:club-level-ring-fill .6s ease-out both;
}
@keyframes club-level-ring-fill{from{stroke-dasharray:0 318.2433358165}}
#profileOverviewPanel .club-overview-logo>.club-overview-level-tooltip{
  position:absolute;
  z-index:12;
  top:auto;
  bottom:0;
  left:50%;
  width:max-content;
  max-width:210px;
  padding:8px 11px;
  transform:translate(-50%,4px);
  border:1px solid rgba(224,178,86,.42);
  border-radius:8px;
  background:rgba(8,6,3,.96);
  box-shadow:0 10px 24px rgba(0,0,0,.48);
  color:#f2d38e;
  font:800 11px/1.4 var(--body);
  letter-spacing:.055em;
  text-align:center;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
}
#profileOverviewPanel .club-overview-logo.has-level-progress:is(:hover,:focus)>.club-overview-level-tooltip{
  opacity:1;
  transform:translate(-50%,0);
}
@media(prefers-reduced-motion:reduce){
  #profileOverviewPanel .club-overview-level-fill{animation:none}
  #profileOverviewPanel .club-overview-level-tooltip{transition:none}
}

/* Match Centre preview.5 — permanent report responsiveness and input refinement */
.centre-report-backdrop{
  background:rgba(13,12,10,0.93);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.centre-report-sheet{
  contain:none;
  transform:none;
  background:#17150f;
  box-shadow:0 28px 72px rgba(0,0,0,.55),inset 0 1px 0 rgba(212,169,79,0.065);
}
.centre-report-sheet::before{display:none}
.centre-report-body{
  contain:none;
  overflow-anchor:none;
  scroll-behavior:auto;
  background:linear-gradient(180deg,rgba(13,12,10,0.36),rgba(13,12,10,0.18));
}
.mc-report-tab-panel{min-height:100%}
.mc-report-tab-panel[hidden]{display:none!important}
.mc-report-rating-row,
.mc-report-timeline article,
.mc-report-popup-changes article,
.mc-report-player-table tbody tr{
  content-visibility:visible;
  contain:none;
  contain-intrinsic-size:none;
}
.mc-report-player-table-wrap{
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
  scroll-behavior:auto;
  scrollbar-gutter:stable;
}
.mc-report-player-table{table-layout:fixed}
.mc-report-player-table th:first-child,
.mc-report-player-table td:first-child{width:230px}
.mc-report-lineup-fallback{
  position:absolute;
  inset:10px 0 0;
  z-index:0;
  display:grid;
  place-items:center;
  color:rgba(251,247,239,0.78);
  font-family:var(--display);
  font-size:1rem;
  font-style:normal;
  font-weight:950;
  text-shadow:0 2px 8px rgba(0,0,0,.42);
}
.profile-active-lineup-portrait.has-image .mc-report-lineup-fallback{opacity:0}
.profile-active-lineup-portrait.is-fallback .mc-report-lineup-fallback{opacity:1}
.mc-report-lineup-player .profile-active-lineup-portrait img{z-index:1}
@media(min-width:981px){
  .mc-hub-past:not(.is-history) .mc-hub-match-row{min-height:46px}
  .mc-hub-past:not(.is-history) .mc-hub-history-link{
    margin-top:12px;
    margin-bottom:3px;
    transform:translateY(3px);
  }
}

/* Match Centre preview.6 — report rendering, calendar and mail refinements */
body.centre-report-modal-open{
  overflow:hidden;
  background:#0d0c0a;
}
body.centre-report-modal-open > .world-bg,
body.centre-report-modal-open > .site-header,
body.centre-report-modal-open > .page-shell{
  visibility:hidden;
  pointer-events:none;
}
.centre-report-modal:not(.hidden){isolation:isolate}
.centre-report-body{
  overscroll-behavior:contain;
  background:#0d0c0a;
}
.mc-report-tab-panel{
  min-height:100%;
  contain:layout paint style;
}
/* Keep the first three report views premium without repaint-heavy effects. */
.mc-report-formation-grid,
.mc-report-tactics-grid,
.mc-report-ratings-grid{transform:translateZ(0)}
.mc-report-formation-team,
.mc-report-tactics-team,
.mc-report-ratings-team,
.mc-report-potm,
.mc-report-tactic-block{
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.mc-report-formation-team,
.mc-report-tactics-team{
  background:#17150f!important;
}
.mc-report-ratings-team{background:#17150f!important}
.mc-report-formation-team>header,
.mc-report-tactics-team>header,
.mc-report-ratings-team>header{
  background:#17150f!important;
}
.mc-report-lineup-player,
.mc-report-rating-row{
  will-change:auto;
  filter:none!important;
}
.mc-report-lineup-player .profile-active-lineup-portrait{
  box-shadow:0 4px 10px rgba(0,0,0,.28)!important;
}
.mc-report-rating-row:hover{background:#17150f}
.mc-report-player-portrait img,
.mc-report-lineup-player img{content-visibility:auto}

/* Mail bulk delete and message-only friendly delete controls. */
.mail-tabs .mail-delete-all{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#ff8795;
  border-color:rgba(255,83,105,.38);
  background:rgba(117,22,39,.24);
}
.mail-tabs .mail-delete-all:hover{background:rgba(153,30,50,.36);color:#ffb1ba}
.mail-tabs .mail-delete-all img{width:14px;height:14px;object-fit:contain}

@media(max-width:760px){
  .mail-tabs .mail-delete-all{margin-left:0}
}

/* Match Centre preview.7 — requested spacing and report-height refinement. */
@media(min-width:981px){
  .mc-hub-past:not(.is-history) .mc-hub-history-link{
    margin:17px 0 8px 25px;
    padding:8px 0;
    transform:none;
  }
}
@media(min-width:761px){
  .centre-report-sheet{
    height:min(930px,calc(100vh - 30px));
  }
}

/* Match Centre preview.8 — final spacing and report-summary cleanup. */
@media(min-width:981px){
  .mc-hub-past:not(.is-history) .mc-hub-history-link{
    margin:23px 0 8px 25px;
  }
}
.centre-report-summary>footer{
  border-top:0;
  background:transparent;
}


/* Match Centre preview.9 — formation cleanup, history spacing and club profile links. */
.mc-report-formation-team>footer{
  border-top:0!important;
  background:transparent!important;
}
.mc-hub-club{
  margin:0;
  padding:0!important;
  border:0;
  appearance:none;
  background:transparent;
  box-shadow:none!important;
  color:inherit;
  font:inherit;
}
.mc-hub-club.is-clickable{cursor:pointer}
.mc-hub-club.is-clickable .mc-hub-club-logo,
.mc-hub-club.is-clickable strong{transition:transform .18s ease,filter .18s ease,color .18s ease}
.mc-hub-club.is-clickable:hover .mc-hub-club-logo,
.mc-hub-club.is-clickable:focus-visible .mc-hub-club-logo{transform:translateY(-3px) scale(1.025);filter:brightness(1.12)}
.mc-hub-club.is-clickable:hover strong,
.mc-hub-club.is-clickable:focus-visible strong{color:#e5c377}
.mc-hub-club.is-clickable:focus-visible{outline:2px solid rgba(212,169,79,0.9);outline-offset:6px;border-radius:18px}
.mc-hub-club:disabled{opacity:1}
.goat-calendar-team-block.is-clickable{cursor:pointer;border-radius:14px;transition:transform .18s ease}
.goat-calendar-team-block.is-clickable:hover{transform:translateY(-2px)}
.goat-calendar-team-block.is-clickable:hover strong{color:#e5c377!important}
.goat-calendar-team-block.is-clickable:focus-visible{outline:2px solid rgba(212,169,79,0.9);outline-offset:5px}
@media(min-width:981px){
  .mc-hub-past:not(.is-history) .mc-hub-history-link{
    margin-top:38px;
  }
}

/* Match Centre preview.10 — reserve real layout space beneath the fourth result. */
@media(min-width:981px){
  .mc-hub-past:not(.is-history){
    display:grid;
    grid-template-rows:auto minmax(0,1fr) auto;
    padding-bottom:14px;
  }
  .mc-hub-past:not(.is-history) .mc-hub-match-table{
    min-height:0;
    overflow:hidden;
    padding-bottom:0;
  }
  .mc-hub-past:not(.is-history) .mc-hub-match-row{
    box-sizing:border-box;
    height:46px;
    min-height:46px;
    margin-bottom:5px;
  }
  .mc-hub-past:not(.is-history) .mc-hub-history-link{
    align-self:end;
    width:max-content;
    margin:15px 0 0 25px;
    padding:0;
    transform:none;
  }
}

/* Match Centre preview.11 — preserve the authoritative homepage artwork exactly.
   The homepage and shared header crest intentionally use the original PNG assets. */

/* v3.0A.50.24-preview.12 — premium Squad and Objectives presentation. */
#profileSquadPanel,
#profileObjectivesPanel {
  --premium-panel: rgba(13,12,10,0.88);
  --premium-panel-soft: rgba(23,21,15,0.72);
  --premium-line: rgba(76,57,21,0.22);
  --premium-line-strong: rgba(76,57,21,0.46);
  --premium-copy: rgba(251,247,239,0.72);
}

#profileSquadPanel .squad-command-centre,
#profileObjectivesPanel .objectives-command-centre {
  margin: 28px 0 72px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
}
#profileSquadPanel .squad-command-centre::before,
#profileObjectivesPanel .objectives-command-centre::before { display: none; }

/* Squad hero --------------------------------------------------------- */
.squad-command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(410px, .85fr);
  align-items: end;
  min-height: 294px;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.28);
  border-radius: 28px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  isolation: isolate;
}
.squad-command-hero::before { display: none; }
.squad-command-hero::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #4c3915, rgba(76,57,21,0.65), transparent 82%);
  box-shadow: 0 0 24px rgba(212,169,79,0.45);
}
.squad-command-copy { position: relative; z-index: 2; max-width: 680px; }
.squad-command-copy .eyebrow,
.objectives-command-copy .eyebrow {
  margin-bottom: 10px;
  color: #e5c377;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .17em;
}
.squad-command-copy h2,
.objectives-command-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(4.2rem, 6.2vw, 6.8rem);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.squad-command-copy > p:last-child,
.objectives-command-copy > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(251,247,239,0.76);
  font-size: 1rem;
  line-height: 1.65;
}
.squad-command-hero .profile-squad-watermark {
  top: auto;
  right: 34px;
  bottom: -14px;
  z-index: 0;
  max-width: 60%;
  overflow: hidden;
  color: rgba(217,209,194,0.055);
  font-size: clamp(4.6rem, 9vw, 9.5rem);
  line-height: .8;
  white-space: nowrap;
  text-overflow: clip;
  filter: none;
}
.squad-command-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.squad-command-metrics article {
  position: relative;
  min-height: 108px;
  padding: 18px 20px 16px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(23,21,15,0.7), rgba(13,12,10,0.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 14px 30px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.squad-command-metrics article::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 2px;
  background: #4c3915;
  box-shadow: 0 0 18px rgba(212,169,79,0.55);
}
.squad-command-metrics span,
.squad-command-metrics small {
  display: block;
  color: rgba(251,247,239,0.64);
  font-family: var(--mono);
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.squad-command-metrics strong {
  display: block;
  margin: 7px 0 5px;
  color: #fff;
  font-family: var(--display);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: .85;
}
.squad-command-metrics small { font-size: .55rem; letter-spacing: .045em; text-transform: none; }

/* Squad database ----------------------------------------------------- */
.squad-database-shell {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--premium-line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(76,57,21,0.1), transparent 31%),
    linear-gradient(155deg, rgba(23,21,15,0.94), rgba(13,12,10,0.94));
  box-shadow: 0 26px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.045);
}
.squad-database-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.squad-database-toolbar .eyebrow { margin: 0 0 7px; color: #e5c377; font-size: .62rem; letter-spacing: .16em; }
.squad-database-toolbar h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.squad-database-toolbar > div > p:last-child {
  margin: 9px 0 0;
  color: var(--premium-copy);
  font-size: .83rem;
}
.squad-heading-actions { align-items: flex-end; gap: 10px; }
#profileSquadPanel .results-count {
  color: rgba(251,247,239,0.68);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.squad-view-toggle {
  padding: 4px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 12px;
  background: rgba(13,12,10,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.squad-view-toggle button {
  min-width: 82px;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  color: rgba(251,247,239,0.66);
  background: transparent;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .055em;
}
.squad-view-toggle button.active,
.squad-view-toggle button[aria-pressed="true"] {
  color: #1a1207;
  background: linear-gradient(135deg, #4c3915, #4c3915);
  box-shadow: 0 8px 20px rgba(212,169,79,0.25), inset 0 1px 0 rgba(255,255,255,.55);
}
#profileSquadPanel .squad-filter-console {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13,12,10,0.92), rgba(13,12,10,0.82));
  clip-path: none;
}
#profileSquadPanel .squad-search-filter { grid-column: span 2; }
#profileSquadPanel .squad-filter-console label { gap: 7px; }
#profileSquadPanel .squad-filter-console label span {
  color: rgba(217,209,194,0.68);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .09em;
}
#profileSquadPanel .squad-filter-console input,
#profileSquadPanel .squad-filter-console select {
  min-height: 47px;
  padding: 0 13px;
  border: 1px solid rgba(212,169,79,0.17);
  border-radius: 10px;
  color: #fbf7ef;
  background: rgba(23,21,15,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  font-size: .75rem;
}
#profileSquadPanel .squad-age-range-inputs {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 7px;
  align-items: center;
}
#profileSquadPanel .squad-age-range-inputs input { min-width: 0; width: 100%; }
#profileSquadPanel .squad-age-range-inputs em {
  color: rgba(217,209,194,0.48);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}
#profileSquadPanel .squad-filter-console input:hover,
#profileSquadPanel .squad-filter-console select:hover { border-color: rgba(212,169,79,0.34); }
#profileSquadPanel .squad-filter-console input:focus,
#profileSquadPanel .squad-filter-console select:focus {
  border-color: #d4a94f;
  box-shadow: 0 0 0 3px rgba(212,169,79,0.09), inset 0 1px 0 rgba(255,255,255,.03);
}
#profileSquadPanel .clear-button {
  min-height: 47px;
  align-self: end;
  border: 1px solid rgba(255, 121, 147, .24);
  border-radius: 10px;
  color: #ff9aad;
  background: rgba(74, 19, 43, .22);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
}
#profileSquadPanel .clear-button:hover,
#profileSquadPanel .clear-button:focus-visible {
  color: #fff;
  border-color: rgba(255, 121, 147, .56);
  background: rgba(114, 28, 57, .34);
  outline: none;
}
.squad-results-stage {
  margin-top: 17px;
  padding: 20px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 20px;
  background: rgba(13,12,10,0.5);
}
#profileSquadPanel .message { min-height: 0; margin: 0 0 10px; }
#profileSquadPanel .card-grid { gap: 24px 18px; }
#profileSquadPanel .squad-player-tile {
  border-radius: 20px;
  transition: transform .2s ease, filter .2s ease;
}
#profileSquadPanel .squad-player-tile:hover,
#profileSquadPanel .squad-player-tile:focus-visible {
  transform: translateY(-5px);
  filter: brightness(1.06);
  outline: none;
}
#profileSquadPanel .pagination {
  margin: 26px 0 0;
  padding-top: 19px;
  border-top: 1px solid rgba(212,169,79,0.14);
}
#profileSquadPanel .pagination button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 10px;
  color: rgba(251,247,239,0.76);
  background: rgba(23,21,15,0.72);
}
#profileSquadPanel .pagination button:hover:not(:disabled),
#profileSquadPanel .pagination button:focus-visible:not(:disabled) {
  color: #fff;
  border-color: rgba(212,169,79,0.5);
  background: rgba(23,21,15,0.76);
  outline: none;
}
#profileSquadPanel .page-indicator,
#profileSquadPanel #pageIndicator { color: #e5c377; font-weight: 850; }

#profileSquadPanel .card-grid.squad-list-mode {
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 17px;
  background: rgba(13,12,10,0.7);
  box-shadow: none;
}
#profileSquadPanel .squad-list-table { border-radius: 16px; }
#profileSquadPanel .squad-list-header {
  min-height: 50px;
  padding-inline: 18px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(100deg, rgba(42,34,20,0.98), rgba(23,21,15,0.98));
  font-size: .65rem;
}
#profileSquadPanel .squad-list-row:not(.squad-list-header) {
  min-height: 64px;
  padding-inline: 18px;
  border-left-width: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rarity-color,#4c3915) 9%, rgba(23,21,15,0.98)), rgba(13,12,10,0.98));
}
#profileSquadPanel .squad-list-row:not(.squad-list-header):hover,
#profileSquadPanel .squad-list-row:not(.squad-list-header):focus-visible {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rarity-color,#4c3915) 16%, rgba(23,21,15,0.99)), rgba(13,12,10,0.99));
}
#profileSquadPanel .squad-list-player strong { font-size: .88rem; }

/* Objectives hero ---------------------------------------------------- */
.objectives-command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 262px;
  padding: clamp(32px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.27);
  border-radius: 28px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  isolation: isolate;
}
.objectives-command-hero::before { display: none; }
.objectives-command-hero::after {
  content: "OBJECTIVES";
  position: absolute;
  right: 34px;
  bottom: -20px;
  z-index: -1;
  color: rgba(229,195,119,0.045);
  font-family: var(--display);
  font-size: clamp(5rem, 10vw, 10rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.04em;
}
.objectives-command-copy { max-width: 720px; }
.objectives-overall-progress {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  flex: 0 0 152px;
  border-radius: 50%;
  background: conic-gradient(#4c3915 var(--objective-progress), rgba(76,57,21,0.16) 0);
  box-shadow: 0 0 36px rgba(212,169,79,0.16);
}
.objectives-overall-progress::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: inherit;
  background: radial-gradient(circle at 45% 35%, rgba(23,21,15,0.98), rgba(13,12,10,0.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
.objectives-overall-progress span,
.objectives-overall-progress small { position: relative; z-index: 1; }
.objectives-overall-progress span {
  color: #fff;
  font-family: var(--display);
  font-size: 3.05rem;
  font-weight: 900;
  line-height: .9;
}
.objectives-overall-progress small {
  margin-top: -28px;
  color: rgba(251,247,239,0.67);
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.objectives-overall-progress.is-complete { filter: drop-shadow(0 0 18px rgba(83,227,154,.28)); }

.objectives-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.objective-summary-card {
  --cycle-color: #4c3915;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 118px;
  padding: 20px 22px 18px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cycle-color) 24%, transparent);
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--cycle-color) 8%, rgba(23,21,15,0.94)), rgba(13,12,10,0.95));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 15px 32px rgba(0,0,0,.16);
}
.objective-summary-card.is-weekly { --cycle-color: #4c3915; }
.objective-summary-card.is-monthly { --cycle-color: #ffb04e; }
.objective-summary-card.is-monthly-bonus { --cycle-color: #d4a94f; }
.objective-summary-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  width: 70px;
  height: 2px;
  background: var(--cycle-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--cycle-color) 50%, transparent);
}
.objective-summary-card > span,
.objective-summary-card > small {
  grid-column: 1;
  color: color-mix(in srgb, var(--cycle-color) 82%, white 18%);
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .14em;
}
.objective-summary-card > strong {
  grid-column: 1;
  margin: 7px 0 4px;
  color: #fff;
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 900;
  line-height: .85;
}
.objective-summary-card > small { color: rgba(251,247,239,0.62); font-size: .55rem; letter-spacing: .035em; text-transform: none; }
.objective-summary-card > div {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 64px;
  height: 64px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(var(--cycle-color) var(--cycle-progress), rgba(76,57,21,0.13) 0);
}
.objective-summary-card > div i {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%;
  background: #0d0c0a;
}
.objective-summary-card.is-complete { border-color: color-mix(in srgb, var(--cycle-color) 48%, transparent); }
.objective-summary-card.is-monthly-bonus > strong {
  max-width: calc(100% - 12px);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.objective-summary-card.is-monthly-bonus > small {
  max-width: calc(100% - 12px);
  line-height: 1.35;
}
.objective-summary-card.is-monthly-bonus > b {
  grid-column: 1;
  margin-top: 8px;
  color: #f0d79b;
  font-family: var(--mono);
  font-size: .56rem;
  letter-spacing: .04em;
}
.objective-summary-card.is-monthly-bonus > div { grid-row: 1 / span 4; }
.objective-summary-card.is-monthly-bonus.is-loading { visibility: hidden; }
.objective-summary-card .monthly-bonus-indicator { position: relative; }
.objective-summary-card .monthly-bonus-indicator > svg {
  position: absolute;
  inset: 15px;
  display: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.objective-summary-card.is-monthly-bonus.is-ready .monthly-bonus-indicator {
  box-shadow: 0 0 0 2px rgba(212,169,79,.2), 0 0 20px rgba(212,169,79,.2);
}
.objective-summary-card.is-monthly-bonus.is-claimed .monthly-bonus-indicator {
  padding: 5px;
  background: #3a8451;
  box-shadow: 0 0 0 2px rgba(99,211,134,.2), 0 0 22px rgba(65,174,99,.28);
}
.objective-summary-card.is-monthly-bonus.is-claimed .monthly-bonus-indicator > i {
  border-color: rgba(255,255,255,.14);
  background: #2f6f44;
}
.objective-summary-card.is-monthly-bonus.is-claimed .monthly-bonus-indicator > svg { display: block; }

/* Objectives dashboard ---------------------------------------------- */
#profileObjectivesPanel .objectives-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
#profileObjectivesPanel .mission-panel {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(23,21,15,0.96), rgba(13,12,10,0.96));
  box-shadow: 0 22px 50px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.045);
  clip-path: none;
}
#profileObjectivesPanel .weekly-mission-panel,
#profileObjectivesPanel .monthly-mission-panel { grid-column: span 6; }

#profileObjectivesPanel .mission-panel { position: relative; }
#profileObjectivesPanel .mission-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  width: 82px;
  height: 2px;
  background: var(--mission-cycle-color, #4c3915);
  box-shadow: 0 0 16px color-mix(in srgb, var(--mission-cycle-color, #d4a94f) 55%, transparent);
}
#profileObjectivesPanel .weekly-mission-panel { --mission-cycle-color: #4c3915; }
#profileObjectivesPanel .monthly-mission-panel { --mission-cycle-color: #ffad4e; }
#profileObjectivesPanel .mission-panel-heading {
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212,169,79,0.14);
}
#profileObjectivesPanel .mission-panel-heading > div { display: grid; gap: 4px; }
#profileObjectivesPanel .mission-panel-heading span {
  color: color-mix(in srgb, var(--mission-cycle-color) 88%, white 12%);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .14em;
}
#profileObjectivesPanel .mission-panel-heading small {
  color: rgba(217,209,194,0.56);
  font-size: .66rem;
}
#profileObjectivesPanel .mission-panel-heading b {
  padding: 6px 9px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 8px;
  color: rgba(251,247,239,0.64);
  background: rgba(13,12,10,0.68);
  font-size: .53rem;
  font-weight: 750;
  letter-spacing: .045em;
}
#profileObjectivesPanel .mission-list { gap: 10px; }
#profileObjectivesPanel .mission-item {
  grid-template-columns: 42px minmax(0, 1fr) minmax(92px, auto);
  min-height: 91px;
  gap: 13px;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.13);
  border-left: 1px solid rgba(212,169,79,0.13);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(23,21,15,0.76), rgba(13,12,10,0.76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
#profileObjectivesPanel .mission-item:hover {
  border-color: color-mix(in srgb, var(--mission-cycle-color) 30%, rgba(212,169,79,0.13));
  background: linear-gradient(100deg, rgba(23,21,15,0.82), rgba(13,12,10,0.82));
}
#profileObjectivesPanel .mission-item.complete {
  border-color: rgba(82, 224, 154, .24);
  background: linear-gradient(100deg, rgba(20, 73, 67, .38), rgba(13,12,10,0.68));
  opacity: 1;
}
#profileObjectivesPanel .mission-status {
  width: 39px;
  height: 39px;
  border: 1px solid color-mix(in srgb, var(--mission-cycle-color) 42%, transparent);
  border-radius: 12px;
  color: color-mix(in srgb, var(--mission-cycle-color) 88%, white 12%);
  background: color-mix(in srgb, var(--mission-cycle-color) 8%, rgba(13,12,10,0.9));
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 900;
}
#profileObjectivesPanel .mission-item.complete .mission-status {
  color: #071d1a;
  border-color: #5be0a0;
  background: #5be0a0;
}
.mission-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}
#profileObjectivesPanel .mission-copy strong {
  color: #fbf7ef;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.25;
}
#profileObjectivesPanel .mission-title-row em {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--mission-cycle-color) 85%, white 15%);
  font-family: var(--mono);
  font-size: .5rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
}
#profileObjectivesPanel .mission-copy > small {
  display: block;
  margin-top: 5px;
  color: rgba(217,209,194,0.59);
  font-size: .64rem;
  line-height: 1.4;
}
#profileObjectivesPanel .mission-progress {
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(76,57,21,0.13);
}
#profileObjectivesPanel .mission-progress span {
  display: block;
  width: var(--mission-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mission-cycle-color), color-mix(in srgb, var(--mission-cycle-color) 60%, white 40%));
  box-shadow: 0 0 12px color-mix(in srgb, var(--mission-cycle-color) 45%, transparent);
}
#profileObjectivesPanel .mission-reward {
  display: grid;
  justify-items: end;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid rgba(212,169,79,0.13);
  text-align: right;
}
#profileObjectivesPanel .mission-reward span,
#profileObjectivesPanel .mission-reward small {
  color: rgba(217,209,194,0.54);
  font-family: var(--mono);
  font-size: .5rem;
  font-weight: 800;
  letter-spacing: .07em;
}
#profileObjectivesPanel .mission-reward b {
  color: #fff;
  font-size: .7rem;
  font-weight: 850;
}
#profileObjectivesPanel .mission-item-bonus .mission-status span {
  font-size: .42rem;
  letter-spacing: .04em;
}
#profileObjectivesPanel .mission-reward-art {
  width: 28px;
  height: 42px;
  grid-row: 1 / span 3;
  grid-column: 1;
  margin-right: 5px;
  object-fit: contain;
}
#profileObjectivesPanel .mission-item-bonus .mission-reward {
  grid-template-columns: auto auto;
}
#profileObjectivesPanel .mission-item-bonus .mission-reward :is(span,b,small) {
  grid-column: 2;
}
#profileObjectivesPanel .mission-set-reward {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 14px;
  min-height: 66px;
  margin-top: 13px;
  padding: 13px 15px;
  border: 1px dashed color-mix(in srgb, var(--mission-cycle-color) 30%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--mission-cycle-color) 5%, rgba(13,12,10,0.76));
}
#profileObjectivesPanel .mission-set-reward span,
#profileObjectivesPanel .mission-set-reward small {
  color: color-mix(in srgb, var(--mission-cycle-color) 75%, white 25%);
  font-family: var(--mono);
  font-size: .53rem;
  font-weight: 850;
  letter-spacing: .08em;
}
#profileObjectivesPanel .mission-set-reward strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #fff;
  font-size: .78rem;
  text-align: right;
}
#profileObjectivesPanel .mission-set-reward small { grid-column: 1; color: rgba(217,209,194,0.52); letter-spacing: .025em; }
#profileObjectivesPanel .mission-set-reward.complete {
  border-style: solid;
  border-color: rgba(82, 224, 154, .35);
  background: rgba(24, 85, 70, .23);
}

@media (max-width: 1280px) {
  .squad-command-hero { grid-template-columns: minmax(0, 1fr) 380px; }
  #profileSquadPanel .squad-filter-console { grid-template-columns: repeat(4, minmax(0,1fr)); }
  #profileSquadPanel .squad-search-filter { grid-column: span 2; }
}
@media (max-width: 980px) {
  .squad-command-hero { grid-template-columns: 1fr; align-items: start; gap: 30px; }
  .squad-command-metrics { max-width: 700px; }
  .squad-database-toolbar { align-items: flex-start; flex-direction: column; }
  .squad-heading-actions { align-items: flex-start; flex-direction: row; width: 100%; justify-content: space-between; }
  #profileSquadPanel .squad-filter-console { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .objectives-command-hero { grid-template-columns: 1fr auto; }
  #profileObjectivesPanel .weekly-mission-panel,
  #profileObjectivesPanel .monthly-mission-panel { grid-column: span 6; }
}
@media (max-width: 720px) {
  .squad-command-hero,
  .objectives-command-hero { padding: 28px 22px; border-radius: 22px; }
  .squad-command-copy h2,
  .objectives-command-copy h2 { font-size: 4.1rem; }
  .squad-command-metrics { grid-template-columns: repeat(2, 1fr); }
  .squad-command-metrics article { min-height: 95px; padding: 15px; }
  .squad-database-shell { padding: 18px 14px; border-radius: 20px; }
  .squad-heading-actions { align-items: stretch; flex-direction: column; }
  #profileSquadPanel .squad-filter-console { grid-template-columns: 1fr; padding: 14px; }
  #profileSquadPanel .squad-search-filter { grid-column: auto; }
  .squad-results-stage { padding: 14px 10px; }
  .objectives-command-hero { grid-template-columns: 1fr; gap: 25px; }
  .objectives-overall-progress { width: 124px; height: 124px; }
  .objectives-overall-progress span { font-size: 2.55rem; }
  .objectives-summary-grid { grid-template-columns: 1fr; }
  #profileObjectivesPanel .weekly-mission-panel,
  #profileObjectivesPanel .monthly-mission-panel { grid-column: 1 / -1; }
  #profileObjectivesPanel .mission-item { grid-template-columns: 38px minmax(0,1fr); }
  #profileObjectivesPanel .mission-reward {
    grid-column: 2;
    justify-items: start;
    padding: 9px 0 0;
    border-top: 1px solid rgba(212,169,79,0.13);
    border-left: 0;
    text-align: left;
  }
  #profileObjectivesPanel .mission-set-reward { grid-template-columns: 1fr; }
  #profileObjectivesPanel .mission-set-reward strong { grid-column: 1; grid-row: auto; text-align: left; }
}
@media (max-width: 460px) {
  .squad-command-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .squad-command-metrics strong { font-size: 1.9rem; }
  .squad-view-toggle { width: 100%; }
  .squad-view-toggle button { min-width: 0; flex: 1; }
}


/* v3.0A.50.24-preview.13 — Squad/Objectives header refinements. */
.squad-command-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.objectives-overall-progress {
  display: block;
}
.objectives-overall-copy {
  position: absolute;
  inset: 9px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  text-align: center;
}
.objectives-overall-copy span,
.objectives-overall-copy small {
  position: static;
  margin: 0;
}
.objectives-overall-copy span {
  display: block;
  line-height: .82;
}
.objectives-overall-copy small {
  display: block;
  max-width: 92px;
  line-height: 1.25;
}

/* v3.0A.50.24-preview.14 — Squad/Objectives refinement and premium Lineup polish. */

/* Squad header refinements ------------------------------------------------ */
#profileSquadPanel .squad-command-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
  min-height: 250px;
  border: 0;
  box-shadow: none;
  padding-inline: clamp(6px, 1vw, 14px) 0;
}
#profileSquadPanel .squad-command-hero::after {
  left: 0;
  right: 0;
  opacity: .92;
}
#profileSquadPanel .squad-command-hero .profile-squad-watermark { display: none; }
#profileSquadPanel .squad-command-metrics {
  width: min(75%, 360px);
  justify-self: center;
  align-self: center;
  margin-inline: auto;
  gap: 14px;
}
#profileSquadPanel .squad-command-metrics article {
  min-height: 98px;
  padding: 16px 18px 14px;
  text-align: center;
}
#profileSquadPanel .squad-command-metrics strong {
  margin: 8px 0 4px;
  font-size: 2.18rem;
}
#profileSquadPanel .squad-command-metrics span,
#profileSquadPanel .squad-command-metrics small {
  text-align: center;
}

/* Objectives header refinements ------------------------------------------ */
#profileObjectivesPanel .objectives-command-hero {
  min-height: 236px;
  border: 0;
  box-shadow: none;
  padding-inline: clamp(6px, 1vw, 14px) 0;
}
#profileObjectivesPanel .objectives-command-hero::after { content: none; }
#profileObjectivesPanel .objectives-overall-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#profileObjectivesPanel .objectives-overall-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  text-align: center;
}
#profileObjectivesPanel .objectives-overall-progress span {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}
#profileObjectivesPanel .objectives-overall-progress small {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

/* Premium Lineup page ----------------------------------------------------- */
#profileLineupPanel {
  --lineup-premium-panel: rgba(13,12,10,0.9);
  --lineup-premium-panel-soft: rgba(23,21,15,0.74);
  --lineup-premium-line: rgba(76,57,21,0.22);
  --lineup-premium-line-strong: rgba(76,57,21,0.46);
  --lineup-premium-copy: rgba(251,247,239,0.74);
}
/* Tablet: the whole "premium" Lineup pass above is its own self-contained
   indigo/cyan theme, driven mostly by these five custom properties — redefine
   them once here rather than re-fighting every var(--lineup-premium-*)
   consumer individually. Hardcoded literals that don't route through these
   vars (the pitch-view toggle's active gradient, eyebrow colors, etc.) still
   need their own overrides further down. */
.office-app-scroll #profileLineupPanel {
  --lineup-premium-panel: rgba(23,21,15,.9);
  --lineup-premium-panel-soft: rgba(19,17,13,.74);
  --lineup-premium-line: rgba(212,169,79,.18);
  --lineup-premium-line-strong: rgba(212,169,79,.46);
  --lineup-premium-copy: rgba(217,209,194,.78);
}
#profileLineupPanel .lineup-builder.section-frame {
  margin: 28px 0 72px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
}
#profileLineupPanel .lineup-builder.section-frame::before,
#profileLineupPanel .lineup-builder.section-frame::after { display: none; }
#profileLineupPanel .lineup-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 20px;
  min-height: 248px;
  padding: clamp(30px, 4vw, 48px) 0 28px;
  border: 0;
}
#profileLineupPanel .lineup-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #4c3915, rgba(76,57,21,0.65), transparent 82%);
  box-shadow: 0 0 24px rgba(212,169,79,0.45);
}
#profileLineupPanel .lineup-heading .eyebrow {
  margin: 0 0 10px;
  color: #e5c377;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .17em;
}
#profileLineupPanel .lineup-heading h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(4rem, 5.9vw, 6.1rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0,0,0,.42);
}
#profileLineupPanel .lineup-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--lineup-premium-copy);
  font-size: 1rem;
  line-height: 1.65;
}
#profileLineupPanel .lineup-public-status {
  align-self: start;
  padding: 10px 16px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 999px;
  color: rgba(251,247,239,0.8);
  background: linear-gradient(145deg, rgba(23,21,15,0.84), rgba(13,12,10,0.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  font-size: .74rem;
  letter-spacing: .06em;
}
#profileLineupPanel .lineup-public-status.is-public {
  color: #fbf7ef;
  border-color: rgba(212,169,79,0.42);
  box-shadow: 0 0 24px rgba(212,169,79,0.12), inset 0 1px 0 rgba(255,255,255,.07);
}
#profileLineupPanel .lineup-public-navigation,
#profileLineupPanel .lineup-owner-controls {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--lineup-premium-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23,21,15,0.94), rgba(13,12,10,0.92));
  box-shadow: 0 20px 56px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
}
#profileLineupPanel .lineup-public-navigation label > span,
#profileLineupPanel .lineup-owner-controls label > span,
#profileLineupPanel .lineup-role-controls label > span,
#profileLineupPanel .lineup-search > span,
#profileLineupPanel .lineup-filters label > span {
  color: #e5c377;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}
#profileLineupPanel .lineup-public-navigation select,
#profileLineupPanel .lineup-owner-controls input,
#profileLineupPanel .lineup-owner-controls select,
#profileLineupPanel .lineup-role-controls select,
#profileLineupPanel .lineup-search input,
#profileLineupPanel .lineup-filters input,
#profileLineupPanel .lineup-filters select {
  min-height: 46px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 11px;
  color: #fbf7ef;
  background: rgba(23,21,15,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
#profileLineupPanel .lineup-public-navigation select:hover,
#profileLineupPanel .lineup-owner-controls input:hover,
#profileLineupPanel .lineup-owner-controls select:hover,
#profileLineupPanel .lineup-role-controls select:hover,
#profileLineupPanel .lineup-search input:hover,
#profileLineupPanel .lineup-filters input:hover,
#profileLineupPanel .lineup-filters select:hover { border-color: rgba(212,169,79,0.34); }
#profileLineupPanel .lineup-public-navigation select:focus,
#profileLineupPanel .lineup-owner-controls input:focus,
#profileLineupPanel .lineup-owner-controls select:focus,
#profileLineupPanel .lineup-role-controls select:focus,
#profileLineupPanel .lineup-search input:focus,
#profileLineupPanel .lineup-filters input:focus,
#profileLineupPanel .lineup-filters select:focus {
  border-color: #d4a94f;
  box-shadow: 0 0 0 3px rgba(212,169,79,0.09), inset 0 1px 0 rgba(255,255,255,.03);
}
#profileLineupPanel .lineup-message {
  margin: 16px 0 18px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(13,12,10,0.4);
}
#profileLineupPanel .lineup-workspace {
  grid-template-columns: minmax(220px, .78fr) minmax(450px, 1.54fr) minmax(255px, .84fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}
#profileLineupPanel .lineup-left-panel,
#profileLineupPanel .lineup-side-panel { gap: 18px; }
#profileLineupPanel .lineup-available-panel,
#profileLineupPanel .lineup-roles-panel,
#profileLineupPanel .lineup-bench-panel,
#profileLineupPanel .lineup-public-roles-panel {
  border: 1px solid var(--lineup-premium-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(76,57,21,0.1), transparent 31%),
    linear-gradient(155deg, rgba(23,21,15,0.94), rgba(13,12,10,0.94));
  box-shadow: 0 26px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.045);
}
#profileLineupPanel .lineup-panel-summary,
#profileLineupPanel .lineup-roles-summary-toggle,
#profileLineupPanel .lineup-side-heading {
  min-height: 70px;
  padding: 16px 18px;
}
#profileLineupPanel .lineup-side-heading h3,
#profileLineupPanel .lineup-panel-summary strong,
#profileLineupPanel .lineup-roles-summary-toggle strong {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: -.01em;
}
#profileLineupPanel .lineup-panel-summary .eyebrow,
#profileLineupPanel .lineup-roles-summary-toggle .eyebrow,
#profileLineupPanel .lineup-side-heading .eyebrow {
  color: #e5c377;
  font-size: .56rem;
  letter-spacing: .14em;
}
#profileLineupPanel .lineup-selection-hint,
#profileLineupPanel .lineup-side-heading small,
#profileLineupPanel .lineup-role-summary span { color: rgba(251,247,239,0.68); }
#profileLineupPanel .lineup-empty-state { color: #fbf7ef; }
#profileLineupPanel .lineup-view-toggle {
  width: min(100%, 620px);
  margin: 0 auto 14px;
  padding: 6px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 14px;
  background: rgba(13,12,10,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
#profileLineupPanel .lineup-view-toggle > span {
  margin-right: 8px;
  color: rgba(251,247,239,0.7);
  font-size: .6rem;
  letter-spacing: .12em;
}
#profileLineupPanel .lineup-view-toggle button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  color: rgba(251,247,239,0.7);
  background: transparent;
  font-size: .67rem;
  letter-spacing: .05em;
}
#profileLineupPanel .lineup-view-toggle button.active,
#profileLineupPanel .lineup-view-toggle button[aria-pressed="true"] {
  color: #1a1207;
  background: linear-gradient(135deg, #4c3915, #4c3915);
  box-shadow: 0 8px 20px rgba(212,169,79,0.25), inset 0 1px 0 rgba(255,255,255,.55);
}
#profileLineupPanel .lineup-pitch {
  width: min(100%, 620px);
  aspect-ratio: .82;
  border: 1px solid rgba(220,255,247,.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 52%, rgba(255,255,255,.055), transparent 14%),
    linear-gradient(90deg, transparent 49.85%, rgba(233,255,247,.14) 49.85% 50.15%, transparent 50.15%),
    repeating-linear-gradient(0deg, rgba(22,111,85,.94) 0 12.5%, rgba(18,96,74,.94) 12.5% 25%),
    linear-gradient(180deg, #165a46, #123f35);
  box-shadow: inset 0 0 86px rgba(2,18,13,.34), 0 28px 66px rgba(2,3,14,.28);
}
#profileLineupPanel .lineup-pitch-markings { border-radius: 26px; }
#profileLineupPanel .lineup-slot { width: clamp(76px, 8vw, 98px); }
#profileLineupPanel .lineup-slot.empty {
  border-color: rgba(228, 255, 246, .36);
  background: rgba(13,12,10,0.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
#profileLineupPanel .lineup-slot.empty:hover,
#profileLineupPanel .lineup-slot.empty:focus-visible {
  border-color: var(--lineup-premium-line-strong);
  background: rgba(76,57,21,0.13);
}
#profileLineupPanel .lineup-slot .lineup-mini-card,
#profileLineupPanel .lineup-available-grid .lineup-mini-card,
#profileLineupPanel .lineup-player-list .lineup-mini-card {
  border-color: rgba(212,169,79,0.18);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(23,21,15,0.76), rgba(13,12,10,0.88));
  box-shadow: 0 13px 24px rgba(9,7,4,0.22), inset 0 1px 0 rgba(255,255,255,.05);
}
#profileLineupPanel .lineup-card-visual {
  border-radius: 11px;
  background: linear-gradient(155deg, rgba(76,57,21,0.2), rgba(76,57,21,0.28));
}
#profileLineupPanel .lineup-card-copy b,
#profileLineupPanel .lineup-player-name { font-weight: 900; }
#profileLineupPanel .lineup-card-copy small,
#profileLineupPanel .lineup-card-copy em,
#profileLineupPanel .lineup-bench-panel #lineupBenchCount { color: rgba(251,247,239,0.68); }
#profileLineupPanel .lineup-owner-actions { gap: 10px; margin-top: 16px; }
#profileLineupPanel .lineup-owner-actions button,
#profileLineupPanel .lineup-control-actions button,
#profileLineupPanel .lineup-public-navigation button {
  min-height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(212,169,79,0.2);
  color: rgba(251,247,239,0.78);
  background: rgba(23,21,15,0.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
#profileLineupPanel .lineup-owner-actions button:hover,
#profileLineupPanel .lineup-owner-actions button:focus-visible,
#profileLineupPanel .lineup-control-actions button:hover,
#profileLineupPanel .lineup-control-actions button:focus-visible,
#profileLineupPanel .lineup-public-navigation button:hover,
#profileLineupPanel .lineup-public-navigation button:focus-visible {
  color: #fff;
  border-color: rgba(212,169,79,0.5);
  background: rgba(23,21,15,0.76);
  outline: none;
}
#profileLineupPanel .lineup-save-button {
  color: #1a1207 !important;
  border-color: rgba(212,169,79,0.52) !important;
  background: linear-gradient(135deg, #4c3915, #4c3915) !important;
  box-shadow: 0 10px 24px rgba(212,169,79,0.22), inset 0 1px 0 rgba(255,255,255,.55);
}
#profileLineupPanel .lineup-public-captain {
  width: min(100%, 620px);
  margin-top: 14px;
  border-color: rgba(216,255,97,.22);
  border-radius: 15px;
  background: rgba(13,12,10,0.78);
}
#profileLineupPanel .lineup-role-summary article {
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 12px;
  background: rgba(13,12,10,0.42);
}
#profileLineupPanel .lineup-slot-picker {
  border-color: rgba(212,169,79,0.32);
  border-radius: 14px;
  background: rgba(13,12,10,0.98);
}
#profileLineupPanel .lineup-slot-picker-list > button {
  border-color: rgba(212,169,79,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}
#profileLineupPanel .lineup-slot-picker-list > button:hover,
#profileLineupPanel .lineup-slot-picker-list > button:focus-visible {
  background: rgba(76,57,21,0.09);
}

@media (max-width: 1040px) {
  #profileSquadPanel .squad-command-hero,
  #profileObjectivesPanel .objectives-command-hero,
  #profileLineupPanel .lineup-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding-inline: 0;
  }
  #profileSquadPanel .squad-command-metrics {
    width: min(100%, 420px);
    justify-self: start;
    margin-inline: 0;
  }
  #profileLineupPanel .lineup-workspace {
    grid-template-columns: 1fr;
  }
  #profileLineupPanel .lineup-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 860px) {
  #profileLineupPanel .lineup-side-panel { grid-template-columns: 1fr; }
  #profileLineupPanel .lineup-public-navigation,
  #profileLineupPanel .lineup-owner-controls { padding: 14px; }
}

/* v3.0A.50.24-preview.15 — Squad/Objectives alignment fixes and Lineup sticky controls. */

/* Squad: move Players and Wonderkids further right while keeping vertical centering. */
#profileSquadPanel .squad-command-metrics {
  width: min(75%, 360px);
  justify-self: end;
  align-self: center;
  margin-left: auto;
  margin-right: 0;
}

/* Objectives: bring the progress ring slightly left and centre the percentage. */
#profileObjectivesPanel .objectives-command-hero {
  grid-template-columns: minmax(0, 1fr) 176px;
}
#profileObjectivesPanel .objectives-overall-progress {
  justify-self: end;
  margin-right: 18px;
  overflow: visible;
}
#profileObjectivesPanel .objectives-overall-copy {
  position: relative;
}
#profileObjectivesPanel #objectivesOverallPercent {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -58%);
  margin: 0;
  white-space: nowrap;
}
#profileObjectivesPanel #objectivesOverallCount {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 110px;
  margin: 0;
  line-height: 1.2;
}

/* Lineup: keep the preset bar sticky, remove tips bar, and fix icon visibility. */
#profileLineupPanel #lineupOwnerControls {
  position: sticky;
  top: 78px;
  z-index: 48;
}
#profileLineupPanel #lineupMessage {
  display: none !important;
}
#profileLineupPanel .lineup-icon-button img,
#profileLineupPanel .lineup-action-icon-button img,
#profileLineupPanel #lineupVisibilityButton img,
#profileLineupPanel #lineupResetButton img,
#profileLineupPanel #lineupActivateButton img,
#profileLineupPanel #lineupNewPreset img,
#profileLineupPanel #lineupRenamePreset img {
  filter: invert(1) brightness(1.15) opacity(.92) !important;
}

@media (max-width: 1040px) {
  #profileSquadPanel .squad-command-metrics {
    justify-self: end;
    margin-left: auto;
    margin-right: 0;
  }
  #profileObjectivesPanel .objectives-command-hero {
    grid-template-columns: 1fr;
  }
  #profileObjectivesPanel .objectives-overall-progress {
    justify-self: start;
    margin-right: 0;
  }
  #profileObjectivesPanel #objectivesOverallPercent {
    transform: translate(-50%, -56%);
  }
}

/* v3.0A.50.24-preview.18 — professional account pages and viewport refinements. */

/* Lineup: compact sticky preset strip, production-scale pitch and precise icon colours. */
#profileLineupPanel .lineup-heading {
  min-height: 154px;
  padding: 18px 0 20px;
  align-items: center;
}
#profileLineupPanel .lineup-heading h2 {
  font-size: clamp(3.25rem, 4.5vw, 4.8rem);
}
#profileLineupPanel .lineup-heading > div:first-child > p:last-child {
  margin-top: 11px;
  font-size: .88rem;
  line-height: 1.5;
}
#profileLineupPanel #lineupOwnerControls {
  position: sticky !important;
  top: 78px !important;
  z-index: 120 !important;
  grid-template-columns: minmax(145px, 1.08fr) minmax(145px, .9fr) minmax(112px, .55fr) auto;
  gap: 7px;
  margin: 10px 0 8px;
  padding: 7px 9px;
  border-radius: 13px;
  background: rgba(13,12,10,0.97);
  box-shadow: 0 14px 34px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}
#profileLineupPanel #lineupOwnerControls label { gap: 3px; }
#profileLineupPanel #lineupOwnerControls label > span {
  font-size: .49rem;
  line-height: 1;
}
#profileLineupPanel #lineupOwnerControls input,
#profileLineupPanel #lineupOwnerControls select {
  min-height: 31px;
  height: 31px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: .68rem;
}
#profileLineupPanel #lineupOwnerControls .lineup-control-actions { gap: 4px; }
#profileLineupPanel #lineupOwnerControls .lineup-icon-button {
  min-height: 30px;
  height: 30px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: .61rem;
}
#profileLineupPanel #lineupOwnerControls .lineup-icon-button img {
  width: 15px;
  height: 15px;
}
#profileLineupPanel #lineupMessage { display: none !important; }
#profileLineupPanel .lineup-pitch {
  width: min(100%, 580px) !important;
  max-height: 720px;
}
#profileLineupPanel .lineup-view-toggle {
  width: min(100%, 580px);
  margin-bottom: 10px;
}
#profileLineupPanel .lineup-public-captain { width: min(100%,580px); }
#profileLineupPanel .lineup-icon-button img,
#profileLineupPanel .lineup-action-icon-button img,
#profileLineupPanel #lineupVisibilityButton img {
  filter: invert(1) brightness(1.15) opacity(.92) !important;
}
#profileLineupPanel #lineupDeletePreset img,
#profileLineupPanel #lineupSaveButton img {
  filter: none !important;
}

/* Objectives: percentage only, precisely centred. */
#profileObjectivesPanel #objectivesOverallCount { display: none !important; }
#profileObjectivesPanel .objectives-overall-copy {
  display: grid;
  place-items: center;
}
#profileObjectivesPanel #objectivesOverallPercent {
  position: static;
  transform: none;
  width: auto;
  line-height: 1;
}

/* Registration: premium football operations presentation. */
#profileRegistrationPanel {
  --registration-panel: rgba(13,12,10,0.9);
  --registration-line: rgba(76,57,21,0.21);
  --registration-copy: rgba(251,247,239,0.72);
}
#profileRegistrationPanel .league-registration-screen {
  gap: 16px;
  margin: 28px 0 72px;
  padding: 0 0 112px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#profileRegistrationPanel .league-registration-heading {
  position: relative;
  min-height: 220px;
  padding: 28px 0 26px;
  align-items: center;
}
#profileRegistrationPanel .league-registration-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,#4c3915,rgba(76,57,21,0.65),transparent 82%);
  box-shadow: 0 0 24px rgba(212,169,79,0.45);
}
#profileRegistrationPanel .league-registration-heading .eyebrow {
  color: #e5c377;
  font-size: .69rem;
  letter-spacing: .17em;
}
#profileRegistrationPanel .league-registration-title-row h2 {
  color: #fff;
  font-size: clamp(3.7rem,5.5vw,5.8rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0,0,0,.42);
}
#profileRegistrationPanel .league-registration-heading-copy > p:last-child {
  max-width: 720px;
  margin-top: 16px;
  color: var(--registration-copy);
  font-size: .96rem;
  line-height: 1.6;
}
#profileRegistrationPanel .league-registration-status {
  min-height: 36px;
  padding: 0 16px;
  border-color: rgba(212,169,79,0.32);
  background: rgba(23,21,15,0.38);
  color: #e5c377;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
#profileRegistrationPanel .league-registration-summary {
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
#profileRegistrationPanel .league-registration-summary-item {
  min-height: 104px;
  padding: 17px 18px;
  border: 1px solid var(--registration-line) !important;
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.9));
  box-shadow: 0 18px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
}
#profileRegistrationPanel .league-registration-summary-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 13px;
  background: rgba(42,34,20,0.24);
  color: #e5c377;
}
#profileRegistrationPanel .league-registration-summary-copy strong {
  color: #fff;
  font-size: 1.55rem;
}
#profileRegistrationPanel .league-registration-summary-copy small,
#profileRegistrationPanel .league-registration-summary-copy em { color: rgba(217,209,194,0.68); }
#profileRegistrationPanel .league-registration-deadline,
#profileRegistrationPanel .league-registration-workflow,
#profileRegistrationPanel .league-registration-validation,
#profileRegistrationPanel .league-registration-panel,
#profileRegistrationPanel .league-registration-sidebar,
#profileRegistrationPanel .league-registration-u17,
#profileRegistrationPanel .league-registration-swap,
#profileRegistrationPanel .league-registration-review {
  border: 1px solid var(--registration-line);
  background: linear-gradient(155deg,rgba(23,21,15,0.94),rgba(13,12,10,0.94));
  box-shadow: 0 22px 54px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.04);
}
#profileRegistrationPanel .league-registration-deadline {
  border-radius: 17px;
  background: linear-gradient(105deg,rgba(94,63,17,.45),rgba(23,21,15,0.94));
}
#profileRegistrationPanel .league-registration-workflow { border-radius: 17px; }
#profileRegistrationPanel .league-registration-step { min-height: 76px; padding: 15px 19px; }
#profileRegistrationPanel .league-registration-step.is-current > span {
  border-color: #d4a94f;
  background: rgba(42,34,20,0.2);
  box-shadow: 0 0 18px rgba(212,169,79,0.24);
}
#profileRegistrationPanel .league-registration-validation { border-radius: 17px; padding: 17px 18px; }
#profileRegistrationPanel .league-registration-rules-button {
  border-color: rgba(212,169,79,0.36);
  background: rgba(42,34,20,0.22);
  color: #e5c377;
}
#profileRegistrationPanel .league-registration-workspace { gap: 14px; }
#profileRegistrationPanel .league-registration-panel { border-radius: 19px; }
#profileRegistrationPanel .league-registration-panel-heading {
  min-height: 72px;
  padding: 16px 18px;
  border-bottom-color: rgba(212,169,79,0.15);
}
#profileRegistrationPanel .league-registration-panel-heading h3,
#profileRegistrationPanel .league-registration-validation h3 {
  font-family: var(--display);
  font-size: 1.15rem;
}
#profileRegistrationPanel .league-registration-player {
  min-height: 62px;
  border-color: rgba(212,169,79,0.15);
  border-radius: 12px;
  background: linear-gradient(90deg,rgba(23,21,15,0.78),rgba(23,21,15,0.88));
}
#profileRegistrationPanel .league-registration-player:hover {
  border-color: rgba(212,169,79,0.4);
  background: linear-gradient(90deg,rgba(42,34,20,0.88),rgba(23,21,15,0.92));
}
#profileRegistrationPanel .league-registration-action-bar {
  border: 1px solid rgba(212,169,79,0.3);
  border-radius: 16px;
  background: rgba(13,12,10,0.97);
  box-shadow: 0 18px 48px rgba(0,0,0,.48),0 0 30px rgba(212,169,79,0.14);
}

/* Legacy: premium honours room. */
#profileLegacyPanel .legacy-command-centre,
#profileSettingsPanel .settings-command-centre {
  margin: 28px 0 72px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  backdrop-filter: none;
}
#profileLegacyPanel .legacy-command-centre::before,
#profileSettingsPanel .settings-command-centre::before { display: none; }
.legacy-command-hero,
.settings-command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 232px;
  padding: 28px 0 26px;
}
.legacy-command-hero::after,
.settings-command-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg,#4c3915,rgba(76,57,21,0.65),transparent 82%);
  box-shadow: 0 0 24px rgba(212,169,79,0.45);
}
.legacy-command-copy .eyebrow,
.settings-command-copy .eyebrow {
  color: #e5c377;
  font-size: .69rem;
  letter-spacing: .17em;
}
.legacy-command-copy h2,
.settings-command-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(4rem,5.8vw,6rem);
  font-weight: 900;
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0,0,0,.42);
}
.legacy-command-copy > p:last-child,
.settings-command-copy > p:last-child {
  max-width: 680px;
  margin: 17px 0 0;
  color: rgba(251,247,239,0.74);
  font-size: .96rem;
  line-height: 1.6;
}
.legacy-command-metric {
  display: grid;
  justify-items: center;
  min-width: 190px;
  padding: 20px 24px;
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.9));
  box-shadow: 0 18px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
  text-align: center;
}
.legacy-command-metric span,
.legacy-command-metric small {
  color: rgba(217,209,194,0.68);
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legacy-command-metric strong {
  margin: 8px 0 6px;
  color: #fff;
  font-family: var(--display);
  font-size: 1.35rem;
}
.legacy-content-shell,
.settings-content-shell {
  margin-top: 18px;
  padding: clamp(22px,3vw,32px);
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 24px;
  background: radial-gradient(circle at 92% 0%,rgba(76,57,21,0.1),transparent 31%),linear-gradient(155deg,rgba(23,21,15,0.94),rgba(13,12,10,0.94));
  box-shadow: 0 26px 70px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.045);
}
.legacy-content-shell > header { margin-bottom: 18px; }
.legacy-content-shell > header .eyebrow { margin: 0 0 6px; color: #e5c377; font-size: .61rem; letter-spacing: .15em; }
.legacy-content-shell > header h3 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(1.8rem,2.7vw,2.7rem);
  text-transform: uppercase;
}
#profileLegacyPanel .milestone-track {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
}
#profileLegacyPanel .milestone-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(212,169,79,0.17);
  border-radius: 17px;
  background: linear-gradient(145deg,rgba(23,21,15,0.78),rgba(13,12,10,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
#profileLegacyPanel .milestone-card.claimable {
  border-color: rgba(255,209,82,.46);
  box-shadow: 0 0 24px rgba(255,196,62,.10),inset 0 1px 0 rgba(255,255,255,.05);
}
#profileLegacyPanel .milestone-target {
  color: #e5c377;
  font-family: var(--display);
  font-size: 2rem;
}
#profileLegacyPanel .milestone-card strong { font-size: .92rem; }
#profileLegacyPanel .milestone-claim-button {
  border-color: rgba(255,209,82,.44);
  border-radius: 10px;
  background: linear-gradient(135deg,#e5aa31,#c77d1e);
  color: #151008;
  font-weight: 900;
}
#profileLegacyPanel .badge-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px;
}
#profileLegacyPanel .achievement-badge {
  min-height: 112px;
  padding: 17px;
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 17px;
  background: linear-gradient(145deg,rgba(23,21,15,0.76),rgba(13,12,10,0.92));
}
#profileLegacyPanel .achievement-badge.unlocked {
  border-color: color-mix(in srgb,var(--badge-color) 48%,transparent);
  box-shadow: inset 3px 0 0 var(--badge-color),0 13px 30px rgba(0,0,0,.16);
}
#profileLegacyPanel .badge-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: color-mix(in srgb,var(--badge-color) 18%,rgba(13,12,10,0.9));
}

/* Settings: professional club administration control room. */
#profileSettingsPanel .settings-content-shell { padding: clamp(22px,3vw,32px); }
#profileSettingsPanel .settings-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
/* Settings cards participate directly in the responsive two-column grid. */
#profileSettingsPanel .settings-content-shell {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  align-items: start;
}
#profileSettingsPanel #settingsAccount { display: contents; }
#profileSettingsPanel #settingsMessage { grid-column: 1/-1; }
@media(max-width:780px){
  #profileSettingsPanel .settings-content-shell{grid-template-columns:1fr}
}
#profileSettingsPanel .settings-grid article {
  position: relative;
  min-height: 148px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.17);
  border-radius: 18px;
  background: linear-gradient(145deg,rgba(23,21,15,0.78),rgba(13,12,10,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
#profileSettingsPanel .settings-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  width: 52px;
  height: 2px;
  background: #4c3915;
  box-shadow: 0 0 18px rgba(212,169,79,0.48);
}
#profileSettingsPanel .settings-grid span {
  color: #e5c377;
  font-size: .59rem;
  letter-spacing: .13em;
}
#profileSettingsPanel .settings-grid strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.22rem;
}
#profileSettingsPanel .settings-grid small { color: rgba(217,209,194,0.68); }
#profileSettingsPanel .settings-editor form {
  align-items: center;
  margin-top: 5px;
}
#profileSettingsPanel .settings-editor input,
#profileSettingsPanel .settings-editor select {
  min-height: 44px;
  border-color: rgba(212,169,79,0.2);
  border-radius: 11px;
  background: rgba(13,12,10,0.92);
}
#profileSettingsPanel .settings-editor input:focus,
#profileSettingsPanel .settings-editor select:focus {
  border-color: #d4a94f;
  box-shadow: 0 0 0 3px rgba(212,169,79,0.08);
  outline: none;
}
#profileSettingsPanel .settings-editor button:not([data-disconnect-discord]),
#profileSettingsPanel .settings-link-button,
#profileSettingsPanel .file-picker-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 10px;
  background: rgba(42,34,20,0.3);
  color: #e5c377;
  font-weight: 850;
}
#profileSettingsPanel .settings-danger-zone {
  border-color: rgba(255,93,117,.28);
  background: linear-gradient(145deg,rgba(80,24,44,.46),rgba(35,12,29,.82));
}
#profileSettingsPanel .settings-danger-zone::before {
  background: #ff657b !important;
  box-shadow: 0 0 18px rgba(255,101,123,.40) !important;
}

/* Mail: section-specific bulk deletion and consistent friendly delete icon. */
.mail-tabs .mail-delete-all { display: none !important; }
.mail-folder-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgba(212,169,79,0.16);
}
.mail-folder-toolbar > div { display: grid; gap: 3px; }
.mail-folder-toolbar span {
  color: #e5c377;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.mail-folder-toolbar h3 { margin: 0; font-family: var(--display); font-size: 1.25rem; }
.mail-folder-toolbar .mail-delete-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,83,105,.38);
  border-radius: 9px;
  background: rgba(117,22,39,.24);
  color: #ff8795;
  font: inherit;
  font-size: .58rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}
.mail-folder-toolbar .mail-delete-all:hover {
  background: rgba(153,30,50,.36);
  color: #ffb1ba;
}
.mail-folder-toolbar .mail-delete-all img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

@media (max-width: 1120px) {
  #profileLegacyPanel .milestone-track { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #profileLegacyPanel .badge-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
  #profileRegistrationPanel .league-registration-heading,
  .legacy-command-hero,
  .settings-command-hero { grid-template-columns: 1fr; min-height: 0; }
  #profileRegistrationPanel .league-registration-title-row h2,
  .legacy-command-copy h2,
  .settings-command-copy h2 { font-size: clamp(3.2rem,11vw,4.8rem); }
  .legacy-command-metric { justify-self: start; }
  #profileSettingsPanel .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #profileLineupPanel #lineupOwnerControls { position: relative !important; top: auto !important; }
  #profileRegistrationPanel .league-registration-screen { padding-bottom: 150px; }
  #profileLegacyPanel .milestone-track,
  #profileLegacyPanel .badge-grid { grid-template-columns: 1fr; }
  .mail-folder-toolbar { align-items: flex-start; }
}

/* v3.0A.50.24-preview.18 — comparison, unified page styling and performance. */

/* Lineup: match Squad header rhythm, add breathing room, and keep preset bar fixed in normal flow. */
#profileLineupPanel .lineup-heading {
  min-height: 250px;
  padding: clamp(30px,4vw,48px) 0 28px;
  align-items: end;
}
#profileLineupPanel .lineup-heading h2 {
  font-size: clamp(4.2rem,6.2vw,6.8rem);
  line-height: .82;
}
#profileLineupPanel .lineup-heading > div:first-child > p:last-child {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.65;
}
#profileLineupPanel #lineupOwnerControls {
  position: relative !important;
  top: auto !important;
  z-index: 20 !important;
  margin: 24px 0 14px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#profileLineupPanel .lineup-pitch { width: min(100%,580px) !important; }

/* Objectives percentage adjustment requested after visual review. */
#profileObjectivesPanel #objectivesOverallPercent {
  transform: translate(-54%, -63%) !important;
}

/* Mail bulk delete buttons use the same red bin treatment as individual deletion. */
.mail-folder-toolbar .mail-delete-all {
  color: #fff !important;
  border-color: rgba(255,74,98,.68) !important;
  background: linear-gradient(145deg,rgba(178,34,55,.96),rgba(126,20,41,.98)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12),0 8px 20px rgba(84,8,25,.24) !important;
}
.mail-folder-toolbar .mail-delete-all img {
  filter: invert(1) brightness(1.2) !important;
}
.mail-folder-toolbar .mail-delete-all:hover {
  border-color: rgba(255,145,158,.9) !important;
  background: linear-gradient(145deg,rgba(207,45,66,.98),rgba(154,27,48,.99)) !important;
}

/* Squad player comparison. */
.squad-compare-open {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(212,169,79,0.34);
  border-radius: 10px;
  color: #e5c377;
  background: rgba(42,34,20,0.3);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}
.squad-compare-open:hover,.squad-compare-open:focus-visible { color:#fff;border-color:#d4a94f;background:rgba(42,34,20,0.42);outline:none; }
.squad-comparison-modal { position:fixed;inset:0;z-index:1500;display:none;place-items:center;padding:24px; }
.squad-comparison-modal.open { display:grid; }
.squad-comparison-backdrop { position:absolute;inset:0;background:rgba(13,12,10,0.88); }
.squad-comparison-content { position:relative;z-index:1;width:min(1180px,96vw);max-height:92vh;overflow:auto;padding:24px;border:1px solid rgba(212,169,79,0.25);border-radius:24px;background:linear-gradient(155deg,rgba(23,21,15,0.99),rgba(13,12,10,0.99));box-shadow:0 34px 90px rgba(0,0,0,.55); }
.squad-comparison-content>header { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid rgba(212,169,79,0.14); }
.squad-comparison-content>header h2 { margin:0;font-family:var(--display);font-size:clamp(2.2rem,4vw,3.8rem);text-transform:uppercase; }
.squad-comparison-content>header button { width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;background:rgba(255,255,255,.05);font-size:1.5rem;cursor:pointer; }
.squad-compare-selectors { display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:18px;margin:20px 0; }
.squad-compare-selectors label { display:grid;gap:7px; }
.squad-compare-selectors label span { color:#e5c377;font-size:.58rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase; }
.squad-compare-selectors select { min-height:46px;border:1px solid rgba(212,169,79,0.2);border-radius:11px;padding:0 12px;color:#fff;background:#17150f; }
.squad-compare-selectors>span { padding-bottom:13px;color:#e5c377;font-family:var(--display);font-size:1.2rem;font-weight:900; }
.squad-compare-stage { display:grid;grid-template-columns:minmax(250px,.8fr) minmax(240px,.7fr) minmax(250px,.8fr);gap:18px;align-items:start; }
.squad-compare-player { overflow:hidden;border:1px solid color-mix(in srgb,var(--rarity-color) 35%,transparent);border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--rarity-color) 9%,rgba(23,21,15,0.95)),rgba(13,12,10,0.97)); }
.squad-compare-profile { display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:13px;align-items:center;width:100%;padding:16px;border:0;color:#fff;background:transparent;text-align:left;cursor:pointer; }
.squad-compare-profile img { width:100px;height:112px;object-fit:contain;object-position:bottom;border-radius:13px;background:rgba(255,255,255,.035); }
.squad-compare-profile span { display:grid;gap:4px;min-width:0; }
.squad-compare-profile small { color:#e5c377;font-size:.57rem;font-weight:900;letter-spacing:.08em; }
.squad-compare-profile strong { overflow:hidden;font-size:1rem;text-overflow:ellipsis;white-space:nowrap; }
.squad-compare-profile em { color:rgba(251,247,239,0.68);font-size:.68rem;font-style:normal; }
.squad-compare-profile>b { color:#fff;font-family:var(--display);font-size:2.4rem; }
.squad-compare-stat-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 16px 16px; }
.squad-compare-stat-grid div { display:flex;justify-content:space-between;gap:8px;padding:8px;border:1px solid rgba(212,169,79,0.12);border-radius:9px;background:rgba(13,12,10,0.45); }
.squad-compare-stat-grid span { color:rgba(217,209,194,0.68);font-size:.58rem; }
.squad-compare-stat-grid strong { font-size:.68rem; }
.squad-compare-metrics { display:grid;gap:7px;padding-top:4px; }
.squad-compare-row { display:grid;grid-template-columns:55px 1fr 55px;align-items:center;gap:9px;min-height:38px;padding:6px 9px;border:1px solid rgba(212,169,79,0.13);border-radius:10px;background:rgba(13,12,10,0.48);text-align:center; }
.squad-compare-row span { color:rgba(251,247,239,0.72);font-size:.58rem;font-weight:800;text-transform:uppercase; }
.squad-compare-row strong { color:rgba(251,247,239,0.78);font-size:.78rem; }
.squad-compare-row strong.winner { color:#65efa5; }
.squad-comparison-loading { padding:60px;text-align:center;color:rgba(251,247,239,0.72); }

/* Tactics unified with Objectives/Squad premium language. */
#profileTacticsPanel .tactics-centre { margin:28px 0 72px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none; }
#profileTacticsPanel .tactics-centre-header { position:relative;min-height:232px;align-items:center;margin:0 0 18px;padding:28px 0 26px; }
#profileTacticsPanel .tactics-centre-header::after { content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#4c3915,rgba(76,57,21,0.65),transparent 82%);box-shadow:0 0 24px rgba(212,169,79,0.45); }
#profileTacticsPanel .tactics-centre-header h2 { margin:.35rem 0 .5rem;font-family:var(--display);font-size:clamp(4rem,5.8vw,6rem);font-weight:900;line-height:.84;letter-spacing:-.035em;text-transform:uppercase; }
#profileTacticsPanel .tactics-centre-header p { max-width:700px;font-size:.96rem; }
#profileTacticsPanel .tactics-lineup-strip,#profileTacticsPanel .tactics-plan-block,#profileTacticsPanel .tactics-setting-card,#profileTacticsPanel .conditional-tactics-card,#profileTacticsPanel .tactics-warning-panel { border-color:rgba(212,169,79,0.2);background:linear-gradient(155deg,rgba(23,21,15,0.94),rgba(13,12,10,0.94));box-shadow:0 20px 50px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.04); }
#profileTacticsPanel .tactics-setting-card { border-radius:18px;padding:18px; }
#profileTacticsPanel .tactics-setting-card select { min-height:44px;border-color:rgba(212,169,79,0.2);border-radius:11px;background:rgba(13,12,10,0.92); }

/* World facilities unified styling and stable player preview interaction.
   Canonical redesign: this is the shared facility chrome — the header divider,
   the PLAYER DETAILS / squad-picker side panels, the locked-preview state and
   the repeat-session button — used identically by every facility (Gym,
   Training Pitch, Medical, ...). Fixed once here rather than per facility, so
   every facility interior inherits the black/gold treatment. */
.goat-world-inline-header { position:relative;min-height:210px;padding:28px 0 26px;align-items:center; }
.goat-world-inline-header::after { content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#d4a94f,rgba(212,169,79,.45),transparent 82%);box-shadow:0 0 20px rgba(212,169,79,.35); }
.goat-world-inline-header h2 { margin:.3rem 0 .5rem;font-family:var(--display);font-size:clamp(3.6rem,5.2vw,5.5rem);font-weight:900;line-height:.86;letter-spacing:-.035em;text-transform:uppercase;color:#fbf7ef; }
.goat-world-inline-layout { margin-top:18px;gap:16px; }
.goat-world-player-detail-rail,.goat-world-inline-picker { border:1px solid rgba(212,169,79,.22)!important;border-radius:22px!important;background:linear-gradient(155deg,rgba(23,21,15,.94),rgba(8,7,6,.96))!important;box-shadow:0 24px 62px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }
.goat-world-picker-player { transition:border-color .15s ease,background .15s ease!important; }
.goat-world-picker-player.preview-locked { border-color:#d4a94f!important;background:rgba(212,169,79,.14)!important;box-shadow:inset 3px 0 0 #d4a94f; }
.goat-world-repeat-session { width:100%;min-height:40px;margin-top:10px;border:1px solid rgba(212,169,79,.4);border-radius:10px;color:#f0d79b;background:rgba(212,169,79,.12);font-size:.62rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase;cursor:pointer; }
.goat-world-repeat-session:hover,.goat-world-repeat-session:focus-visible { color:#fbf7ef;border-color:#d4a94f;background:rgba(212,169,79,.22);outline:none; }

/* Performance: avoid costly filters/repaints on large, frequently scrolled surfaces. */
#profileLineupPanel #lineupOwnerControls,.squad-comparison-content,.goat-world-player-detail-rail,.goat-world-inline-stage-wrap,.goat-world-inline-picker,.tactics-centre,.mc-hub-page { backdrop-filter:none!important;-webkit-backdrop-filter:none!important; }
#cardGrid,.mission-list,.lineup-available-grid,.goat-world-picker-grid,.mail-list,.legacy-content-shell,.settings-content-shell { contain:layout paint style; }
.squad-player-tile,.mission-card,.goat-world-picker-player,.mail-message-row { will-change:auto!important; }

.mail-development-report{display:grid;gap:14px}.mail-development-report>p{margin:0;color:var(--muted,#d9d1c2)}.mail-development-player{display:grid;gap:10px;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.035)}.mail-development-player header,.mail-development-player footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.mail-development-player header>span,.mail-development-player footer{color:var(--muted,#d9d1c2);font-size:.82rem}.mail-development-player section{display:grid;gap:5px}.mail-development-player section>strong{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#88d4a3}.mail-development-player section.is-decline>strong{color:#f19a9a}.mail-development-player ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:5px 12px;margin:0;padding:0;list-style:none}.mail-development-player li{display:flex;justify-content:space-between;gap:10px;color:#fbf7ef}.mail-development-player li b{color:#88d4a3}.mail-development-player .is-decline li b{color:#f19a9a}.mail-development-reason{margin:0;padding:9px 10px;border-radius:8px;background:rgba(255,255,255,.05);color:#fbf7ef}.mail-development-player footer{justify-content:flex-start;gap:18px}

@media(max-width:900px){.squad-compare-stage{grid-template-columns:1fr}.squad-compare-metrics{order:3}.squad-compare-selectors{grid-template-columns:1fr}.squad-compare-selectors>span{display:none}}

/* v3.0A.50.24-preview.21 — comparison depth, scrolling performance and layout corrections. */

/* Squad controls share the same visible height. */
#profileSquadPanel .squad-view-toggle { padding: 3px; }
#profileSquadPanel .squad-view-toggle button { min-height: 40px; }
#profileSquadPanel .squad-compare-open { min-height: 46px; }

/* Player comparison now includes a full, scrollable detailed-attribute section. */
.squad-compare-metrics {
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(192,143,52,.82) #080603;
}
.squad-compare-section-label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 9px;
  background: rgba(23,21,15,0.98);
  color: #e5c377;
  font-size: .56rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.squad-compare-section-label.is-sub { margin-top: 9px; }
.squad-compare-row.is-detailed { min-height: 34px; }
.squad-compare-row.is-detailed span { text-transform: none; letter-spacing: .015em; }
.squad-compare-no-details { margin: 0; padding: 18px; color: rgba(251,247,239,0.62); font-size: .67rem; text-align: center; }

/* Match Centre: remove costly scroll-time painting while preserving the established look. */
.mc-hub-page::after { display: none !important; }
.mc-hub-page::before {
  inset: -20px -24px -30px !important;
  background: linear-gradient(180deg,rgba(13,12,10,0.08),rgba(13,12,10,0.38)) !important;
}
.mc-hub-panel {
  contain: paint;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: inset 0 1px 0 rgba(212,169,79,0.04), 0 14px 34px rgba(9,7,4,0.2) !important;
}
.mc-hub-panel::after { display: none !important; }
.mc-hub-crest-light { filter: none !important; opacity: .34 !important; }
.mc-hub-club-logo img,
.mc-hub-player-portrait img { filter: none !important; }
.mc-hub-player-portrait::after,
.mc-hub-club-logo::after { filter: none !important; opacity: .32; }

/* Objectives: use an explicit visual centre rather than compounding transforms. */
#profileObjectivesPanel .objectives-overall-copy {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
}
#profileObjectivesPanel #objectivesOverallPercent {
  position: absolute !important;
  left: 49% !important;
  top: 47% !important;
  width: auto !important;
  margin: 0 !important;
  transform: translate(-50%,-50%) !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Mail bulk-delete labels remain white on the red destructive controls. */
.mail-folder-toolbar .mail-delete-all,
.mail-folder-toolbar .mail-delete-all span { color: #fff !important; }

/* World: stable estimate loading and unframed facility artwork. */
.goat-world-session-projection.is-loading p { color: rgba(251,247,239,0.62); }
.goat-world-inline-stage-wrap {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.goat-world-inline-stage-wrap .goat-world-interior-stage,
.goat-world-inline-stage-wrap .goat-world-interior-stage > img {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Registration: Selected and Available panels share an identical desktop height. */
#profileRegistrationPanel .league-registration-workspace { align-items: stretch; }
#profileRegistrationPanel .league-registration-selected-panel,
#profileRegistrationPanel .league-registration-available-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 720px;
  min-height: 720px;
}
#profileRegistrationPanel .league-registration-selected-panel .league-registration-player-list,
#profileRegistrationPanel .league-registration-available-panel .league-registration-player-list {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
}

@media (max-width: 980px) {
  #profileRegistrationPanel .league-registration-selected-panel,
  #profileRegistrationPanel .league-registration-available-panel {
    height: auto;
    min-height: 0;
  }
  #profileRegistrationPanel .league-registration-selected-panel .league-registration-player-list,
  #profileRegistrationPanel .league-registration-available-panel .league-registration-player-list {
    max-height: 500px;
  }
}

/* v3.0A.50.24-preview.21 — comparison grouping, readable reports and atomic World estimates. */

/* Squad comparison: make the relationship between every main attribute and its
   sub-attributes explicit, with green/red comparison language. */
.squad-compare-attribute-group {
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 13px;
  background: rgba(13,12,10,0.64);
}
.squad-compare-attribute-group + .squad-compare-attribute-group { margin-top: 9px; }
.squad-compare-attribute-group > header {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr) 55px;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(212,169,79,0.14);
  background: linear-gradient(90deg, rgba(23,21,15,0.88), rgba(23,21,15,0.92));
  text-align: center;
}
.squad-compare-attribute-group > header > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.squad-compare-attribute-group > header b {
  color: #e5c377;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.squad-compare-attribute-group > header em {
  color: rgba(251,247,239,0.72);
  font-size: .61rem;
  font-style: normal;
  font-weight: 800;
}
.squad-compare-attribute-group > div {
  display: grid;
  gap: 5px;
  padding: 7px;
}
.squad-compare-attribute-group .squad-compare-row {
  border: 0;
  border-radius: 8px;
  background: rgba(13,12,10,0.6);
}
.squad-compare-row > strong,
.squad-compare-attribute-group > header > strong {
  display: inline-grid;
  place-items: center;
  justify-self: center;
  min-width: 31px;
  min-height: 31px;
  padding: 0 5px;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.squad-compare-row > strong.is-better,
.squad-compare-attribute-group > header > strong.is-better {
  color: #effff5;
  background: #159357;
  box-shadow: 0 0 0 3px rgba(56, 230, 139, .13), 0 5px 12px rgba(0, 79, 43, .24);
}
.squad-compare-row > strong.is-lower,
.squad-compare-attribute-group > header > strong.is-lower {
  color: #ff8294;
  background: rgba(126, 28, 48, .26);
}
.squad-compare-row > strong.is-equal,
.squad-compare-attribute-group > header > strong.is-equal {
  color: rgba(251,247,239,0.82);
  background: rgba(42,34,20,0.16);
}
.squad-compare-row.is-main { min-height: 42px; }
.squad-compare-row.is-main span {
  color: #fbf7ef;
  font-size: .61rem;
  letter-spacing: .035em;
}
.squad-compare-attribute-group.is-supporting > header {
  grid-template-columns: 1fr;
}

/* Match Report: use a wider, highly legible interface font for data-heavy views.
   Condensed display typography remains only on the main title and score. */
.centre-report-sheet {
  --report-readable-font: "Segoe UI Variable", "Segoe UI", Arial, Helvetica, sans-serif;
}
.centre-report-header span,
.centre-report-tabs button,
.centre-report-body,
.mc-report-formation-team,
.mc-report-tactics-team,
.mc-report-ratings-team,
.mc-report-team-stats,
.mc-report-timeline,
.mc-report-player-table,
.mc-report-popup-loading,
.mc-report-popup-error {
  font-family: var(--report-readable-font) !important;
}
.centre-report-tabs button {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .025em;
}
.mc-report-formation-team > header strong,
.mc-report-tactics-team > header strong,
.mc-report-ratings-team > header strong,
.mc-report-team-stats > header strong,
.mc-report-timeline > header span {
  font-family: var(--report-readable-font) !important;
  font-weight: 750;
}
.mc-report-rating-row > span strong {
  font-size: .75rem;
  font-weight: 700;
}
.mc-report-rating-row > span small,
.mc-report-rating-row em {
  font-size: .60rem;
  line-height: 1.35;
}
.mc-report-rating-row > b,
.mc-report-table-rating {
  font-family: var(--report-readable-font) !important;
  font-size: .78rem;
  font-weight: 800;
}
.mc-report-team-stats > header strong { font-size: .79rem; }
.mc-report-stat-row { min-height: 46px; }
.mc-report-stat-row > b {
  font-family: var(--report-readable-font) !important;
  font-size: .82rem;
  font-weight: 750;
}
.mc-report-stat-row small {
  color: #d9d1c2;
  font-size: .66rem;
  font-weight: 650;
}
.mc-report-timeline article strong { font-size: .63rem; }
.mc-report-timeline article small {
  color: #d9d1c2;
  font-size: .65rem;
  line-height: 1.5;
}
.mc-report-player-table {
  color: #d9d1c2;
  font-family: var(--report-readable-font) !important;
  font-size: .68rem;
}
.mc-report-player-table th {
  height: 44px;
  color: #d9d1c2;
  font-family: var(--report-readable-font) !important;
  font-size: .59rem;
  font-weight: 750;
  letter-spacing: .035em;
}
.mc-report-player-table td {
  height: 56px;
  font-size: .69rem;
}
.mc-report-player-table td > button strong {
  font-family: var(--report-readable-font) !important;
  font-size: .72rem;
  font-weight: 750;
}
.mc-report-player-table td > button small {
  color: #d9d1c2;
  font-size: .55rem;
}

/* World: prevent stale estimate layers and layout flashes during player changes. */
.goat-world-player-detail-card {
  isolation: isolate;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.goat-world-session-projection {
  position: relative;
  min-height: 114px;
  contain: layout paint style;
  background: transparent;
}
.goat-world-session-projection::before,
.goat-world-session-projection::after { content: none !important; }
.goat-world-session-projection > * {
  animation: none !important;
  transition: none !important;
}
.goat-world-session-projection.is-loading {
  display: block;
}
.goat-world-session-projection.is-loading p {
  min-height: 50px;
  margin-top: 10px;
}

/* v3.0A.50.24-preview.21 — fully staged World player-detail transitions. */
.goat-world-player-detail-card {
  position: relative;
}
.goat-world-detail-transition {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 24px;
  border-radius: inherit;
  color: #fbf7ef;
  background: linear-gradient(155deg, rgba(23,21,15,.995), rgba(8,7,6,.995));
  text-align: center;
  contain: strict;
}
.goat-world-detail-transition > span {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(212,169,79,.24);
  border-top-color: #d4a94f;
  border-radius: 50%;
  animation: goat-world-detail-spin .72s linear infinite;
}
.goat-world-detail-transition > strong {
  max-width: 90%;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes goat-world-detail-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .goat-world-detail-transition > span { animation: none; border-top-color: rgba(212,169,79,.72); }
}

/* v3.0A.50.24.1 — lineup rarity, public-view and privacy hotfixes. */

/* The professional Lineup pass introduced high-specificity general surfaces.
   Restore the collectible rarity identity after those shared rules. */
#profileLineupPanel .lineup-mini-card.rarity-starter {
  border-color: rgba(105,190,255,.86);
  background:
    radial-gradient(circle at 78% 8%,rgba(215,244,255,.42),transparent 29%),
    linear-gradient(145deg,rgba(67,161,231,.94),rgba(24,68,145,.96) 54%,rgba(10,26,66,.98));
  box-shadow: 0 12px 25px rgba(38,113,235,.23),inset 0 1px 0 rgba(224,248,255,.42);
}
#profileLineupPanel .lineup-mini-card.rarity-starter .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-starter .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(251,247,239,0.52),transparent 32%),
    linear-gradient(155deg,#4aa9e9 0%,#1b539d 48%,#0a1b42 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-prime {
  border-color: rgba(205,136,255,.86);
  background:
    radial-gradient(circle at 78% 8%,rgba(244,220,255,.46),transparent 29%),
    linear-gradient(145deg,rgba(174,103,232,.95),rgba(102,45,175,.96) 54%,rgba(35,16,72,.98));
  box-shadow: 0 12px 25px rgba(131,61,224,.24),inset 0 1px 0 rgba(247,224,255,.44);
}
#profileLineupPanel .lineup-mini-card.rarity-prime .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-prime .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(251,247,239,0.58),transparent 32%),
    linear-gradient(155deg,#b471e9 0%,#6938a4 48%,#251147 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-legend {
  border-color: rgba(255,190,74,.9);
  background:
    radial-gradient(circle at 78% 8%,rgba(255,238,151,.52),transparent 28%),
    linear-gradient(145deg,rgba(244,154,48,.97),rgba(214,71,20,.97) 54%,rgba(65,17,12,.99));
  box-shadow: 0 12px 26px rgba(255,107,25,.27),inset 0 1px 0 rgba(255,246,205,.54) !important;
}
#profileLineupPanel .lineup-mini-card.rarity-legend .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-legend .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(255,250,205,.66),transparent 32%),
    linear-gradient(155deg,#ffc154 0%,#f77422 48%,#7d1c12 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-goat {
  border-color: rgba(255,242,167,.94);
  background:
    radial-gradient(circle at 76% 9%,rgba(255,255,255,.74),transparent 24%),
    radial-gradient(circle at 12% 92%,rgba(128,93,255,.42),transparent 42%),
    linear-gradient(140deg,#f5e9a0 0%,#d3a943 31%,#6e52d4 67%,#17132f 100%);
  box-shadow: 0 13px 28px rgba(92,68,188,.27),inset 0 1px 0 rgba(255,255,255,.68) !important;
}
#profileLineupPanel .lineup-mini-card.rarity-goat .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-goat .lineup-card-front {
  background:
    radial-gradient(circle at 67% 10%,rgba(255,255,255,.8),transparent 30%),
    linear-gradient(155deg,#f8edb0 0%,#dfbb55 38%,#4c3915 72%,#17150f 100%);
}

/* The active lineup is hidden only from the next opponent. Show a neutral
   notice rather than a miniature pitch when that opponent opens the profile. */
.profile-active-lineup-empty.is-hidden-lineup {
  min-height: 170px;
  border-style: solid;
  border-color: rgba(212,169,79,.34);
  background: linear-gradient(145deg,rgba(24,20,14,.96),rgba(8,7,6,.98));
}
#profileLineupPanel .lineup-pitch.hidden-lineup-placeholder {
  width: min(100%,620px);
  min-height: 170px;
  aspect-ratio: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212,169,79,.34);
  background: linear-gradient(145deg,rgba(24,20,14,.98),rgba(8,7,6,.99)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035),0 18px 44px rgba(0,0,0,.2);
}
#profileLineupPanel .lineup-pitch.hidden-lineup-placeholder .lineup-no-public-lineup {
  position: static;
  transform: none;
}

/* Current public lineup and immutable match snapshots share one reliable
   selector. This prevents historical data from replacing the current build on load. */
#profileLineupPanel .lineup-history-navigation {
  display: grid;
  grid-template-columns: minmax(260px,1fr) minmax(240px,.8fr);
  align-items: end;
  gap: 16px;
}
#profileLineupPanel .lineup-history-navigation.hidden { display: none !important; }
#profileLineupPanel .lineup-history-navigation .lineup-fixture-status {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 11px;
  background: rgba(13,12,10,0.42);
}
#profileLineupPanel .lineup-history-navigation .lineup-fixture-status strong {
  color: #fff;
  font-size: .72rem;
}
#profileLineupPanel .lineup-history-navigation .lineup-fixture-status span {
  color: rgba(251,247,239,0.64);
  font-size: .61rem;
  line-height: 1.35;
}
@media (max-width:760px) {
  #profileLineupPanel .lineup-history-navigation { grid-template-columns:1fr; }
}

/* v3.0A.50.24.2 — public Lineup geometry, complete rarity identity,
   Match Centre rarity cards and Match Report comparison controls. */

/* Public Lineup: never allow the pitch column to collapse beside the bench. */
#profileLineupPanel .lineup-workspace.public-view {
  display: grid !important;
  grid-template-columns: minmax(560px, 620px) minmax(320px, 390px) !important;
  justify-content: center;
  align-items: start;
  gap: 24px !important;
  width: min(100%, 1040px) !important;
  max-width: 1040px;
  margin-inline: auto;
}
#profileLineupPanel .lineup-workspace.public-view .lineup-pitch-column {
  width: 620px !important;
  max-width: 100%;
  min-width: 560px;
}
#profileLineupPanel .lineup-workspace.public-view .lineup-pitch {
  display: block;
  width: 620px !important;
  max-width: 100%;
  min-width: 560px;
  height: auto;
  min-height: 700px;
  max-height: none;
  aspect-ratio: .80;
  margin: 34px auto 0;
}
#profileLineupPanel .lineup-workspace.public-view .lineup-side-panel {
  display: grid !important;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
}
#profileLineupPanel .lineup-workspace.public-view .lineup-bench-panel {
  width: 100%;
  min-width: 0;
}
#profileLineupPanel .lineup-workspace.public-view .lineup-slot {
  width: 94px;
}
@media (max-width: 1120px) {
  #profileLineupPanel .lineup-workspace.public-view {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 720px;
  }
  #profileLineupPanel .lineup-workspace.public-view .lineup-pitch-column,
  #profileLineupPanel .lineup-workspace.public-view .lineup-pitch {
    width: min(100%, 620px) !important;
    min-width: 0;
  }
  #profileLineupPanel .lineup-workspace.public-view .lineup-pitch {
    min-height: 0;
  }
  #profileLineupPanel .lineup-workspace.public-view .lineup-side-panel {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 680px) {
  #profileLineupPanel .lineup-workspace.public-view .lineup-pitch {
    margin-top: 26px;
  }
  #profileLineupPanel .lineup-workspace.public-view .lineup-slot {
    width: clamp(66px, 19vw, 82px);
  }
}

/* Complete seven-tier Lineup rarity identity. */
#profileLineupPanel .lineup-mini-card.rarity-prospect {
  border-color: rgba(210,218,231,.82);
  background:
    radial-gradient(circle at 78% 8%,rgba(255,255,255,.42),transparent 29%),
    linear-gradient(145deg,#d9dde7 0%,#9fa8b7 52%,#293140 100%);
  box-shadow: 0 12px 25px rgba(32,42,58,.24),inset 0 1px 0 rgba(255,255,255,.46);
}
#profileLineupPanel .lineup-mini-card.rarity-prospect .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-prospect .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(255,255,255,.58),transparent 32%),
    linear-gradient(155deg,#edf2fa 0%,#8897ac 50%,#293140 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-reserve {
  border-color: rgba(255,226,83,.88);
  background:
    radial-gradient(circle at 78% 8%,rgba(255,250,202,.48),transparent 29%),
    linear-gradient(145deg,#ffe884 0%,#e9bb31 54%,#4a3807 100%);
  box-shadow: 0 12px 25px rgba(206,158,24,.25),inset 0 1px 0 rgba(255,250,207,.48);
}
#profileLineupPanel .lineup-mini-card.rarity-reserve .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-reserve .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(255,255,224,.64),transparent 32%),
    linear-gradient(155deg,#fff19a 0%,#f2c94c 50%,#6a4e09 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-squad {
  border-color: rgba(93,232,157,.88);
  background:
    radial-gradient(circle at 78% 8%,rgba(215,255,234,.46),transparent 29%),
    linear-gradient(145deg,#7bf4b1 0%,#3fc67e 54%,#0b4932 100%);
  box-shadow: 0 12px 25px rgba(37,178,109,.24),inset 0 1px 0 rgba(223,255,238,.46);
}
#profileLineupPanel .lineup-mini-card.rarity-squad .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-squad .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%,rgba(229,255,240,.60),transparent 32%),
    linear-gradient(155deg,#8af6bb 0%,#55df91 50%,#126442 100%);
}

/* Match Centre top-three cards inherit each player's rarity. */
.mc-hub-player-row.rarity-prospect {
  border-color: rgba(205,215,230,.46);
  background: linear-gradient(100deg,rgba(118,132,153,.84),rgba(34,44,61,.90));
}
.mc-hub-player-row.rarity-reserve {
  border-color: rgba(255,226,79,.60);
  background: linear-gradient(100deg,rgba(186,142,21,.88),rgba(73,54,8,.92));
}
.mc-hub-player-row.rarity-squad {
  border-color: rgba(85,223,145,.58);
  background: linear-gradient(100deg,rgba(35,151,93,.88),rgba(10,66,45,.92));
}
.mc-hub-player-row.rarity-starter {
  border-color: rgba(77,159,255,.62);
  background: linear-gradient(100deg,rgba(33,111,201,.90),rgba(12,49,104,.94));
}
.mc-hub-player-row.rarity-prime {
  border-color: rgba(170,104,255,.64);
  background: linear-gradient(100deg,rgba(119,58,190,.90),rgba(53,20,94,.94));
}
.mc-hub-player-row.rarity-legend {
  border-color: rgba(255,135,61,.68);
  background: linear-gradient(100deg,rgba(205,82,25,.92),rgba(91,30,11,.95));
}
.mc-hub-player-row.rarity-goat {
  border-color: rgba(255,233,154,.72);
  background:
    radial-gradient(circle at 18% 0%,rgba(255,255,255,.24),transparent 34%),
    linear-gradient(100deg,rgba(188,147,48,.93),rgba(77,54,151,.92) 72%,rgba(31,24,66,.96));
}
.mc-hub-player-row[class*="rarity-"] .mc-hub-player-portrait {
  background: linear-gradient(180deg,color-mix(in srgb,var(--form-rarity,#4d9fff) 34%,transparent),rgba(5,14,34,.58));
}
.mc-hub-player-row[class*="rarity-"] .mc-hub-rank {
  color: #fff;
  text-shadow: 0 0 14px color-mix(in srgb,var(--form-rarity,#4d9fff) 72%,transparent);
}

/* Match Report statistics: distinct club colours and clear better/worse values. */
.mc-report-stat-row {
  grid-template-columns: 48px minmax(0,1fr) 48px;
  gap: 12px;
  min-height: 52px;
}
.mc-report-stat-row > b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-inline: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #fbf7ef;
  font-family: var(--report-readable-font,"Segoe UI",sans-serif) !important;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}
.mc-report-stat-row > b.is-better {
  color: #f4fff8;
  border-color: rgba(116,245,169,.70);
  background: linear-gradient(145deg,rgba(35,177,103,.95),rgba(18,104,66,.98));
  box-shadow: 0 0 0 3px rgba(64,219,133,.10),0 7px 18px rgba(17,111,66,.28);
}
.mc-report-stat-row > b.is-worse {
  color: #ff9aa8;
  border-color: rgba(255,104,124,.22);
  background: rgba(91,24,39,.34);
}
.mc-report-stat-row > b.is-even {
  color: #fbf7ef;
  border-color: rgba(212,169,79,0.2);
  background: rgba(23,21,15,0.36);
}
.mc-report-stat-row .mc-report-stat-bar {
  position: relative;
  display: flex !important;
  gap: 3px;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23,21,15,0.78);
  box-shadow: inset 0 0 0 1px rgba(212,169,79,0.1);
}
.mc-report-stat-row .mc-report-stat-bar::after { content: none !important; }
.mc-report-stat-row .mc-report-stat-bar em {
  position: static !important;
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 999px;
}
.mc-report-stat-row .mc-report-stat-bar em.is-home {
  background: linear-gradient(90deg,#4c3915,#4c3915);
  box-shadow: 0 0 9px rgba(212,169,79,0.42);
}
.mc-report-stat-row .mc-report-stat-bar em.is-away {
  background: linear-gradient(90deg,#ff5e87,#4c3915);
  box-shadow: 0 0 9px rgba(221,91,190,.38);
}

/* Player Stats team filter. */
.mc-report-player-stats {
  display: grid;
  gap: 10px;
}
.mc-report-player-filter {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 12px;
  background: rgba(13,12,10,0.7);
}
.mc-report-player-filter label {
  display: grid;
  gap: 5px;
  width: min(100%,280px);
}
.mc-report-player-filter label > span {
  color: #e5c377;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .10em;
}
.mc-report-player-filter select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(212,169,79,0.26);
  border-radius: 9px;
  color: #fbf7ef;
  background: #17150f;
  font: 700 .70rem var(--report-readable-font,"Segoe UI",sans-serif);
}
.mc-report-player-filter > small {
  padding-bottom: 10px;
  color: #d9d1c2;
  font-size: .62rem;
}
.mc-report-player-filter > small b { color: #fff; }
.mc-report-player-table tbody tr[hidden] { display: none !important; }
@media (max-width: 680px) {
  .mc-report-player-filter { align-items: stretch; flex-direction: column; }
  .mc-report-player-filter label { width: 100%; }
  .mc-report-player-filter > small { padding-bottom: 0; }
}

/* v3.0A.50.24.3 — public Lineup simplification, rarity calibration,
   Match Report readability and locked-player removal access. */

/* Public Lineup shows the current public team directly without the View Lineup bar. */
#profileLineupPanel .lineup-history-navigation {
  display: none !important;
}

/* Reserve and Squad are lower-tier cards: retain identity without elite saturation. */
#profileLineupPanel .lineup-mini-card.rarity-reserve {
  border-color: rgba(191, 174, 104, .72);
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 252, 221, .24), transparent 30%),
    linear-gradient(145deg, #cfc59a 0%, #a9975e 55%, #554c31 100%);
  box-shadow: 0 10px 22px rgba(72, 62, 33, .18), inset 0 1px 0 rgba(255, 252, 222, .28);
  filter: saturate(.72);
}
#profileLineupPanel .lineup-mini-card.rarity-reserve .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-reserve .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%, rgba(255, 255, 234, .34), transparent 32%),
    linear-gradient(155deg, #d9d0aa 0%, #b6a36c 52%, #655b39 100%);
}
#profileLineupPanel .lineup-mini-card.rarity-squad {
  border-color: rgba(111, 171, 139, .70);
  background:
    radial-gradient(circle at 78% 8%, rgba(226, 247, 235, .22), transparent 30%),
    linear-gradient(145deg, #9fbcae 0%, #6f9d85 55%, #344f43 100%);
  box-shadow: 0 10px 22px rgba(30, 75, 54, .17), inset 0 1px 0 rgba(229, 247, 237, .26);
  filter: saturate(.70);
}
#profileLineupPanel .lineup-mini-card.rarity-squad .lineup-card-visual,
#profileLineupPanel .lineup-pitch-card.rarity-squad .lineup-card-front {
  background:
    radial-gradient(circle at 65% 12%, rgba(232, 249, 239, .32), transparent 32%),
    linear-gradient(155deg, #abc7b8 0%, #79a68e 52%, #3e5f50 100%);
}

/* Bench information uses dark ink against the rarity surfaces for legibility. */
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-copy,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-name-row b,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-meta-row,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-meta-row span,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-eligibility {
  color: #1a1207 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .24);
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-registration-badge {
  color: #1a1207;
  border-color: rgba(212,169,79,0.24);
  background: rgba(255, 255, 255, .34);
}
#profileLineupPanel #lineupBench .lineup-bench-card.is-unavailable .lineup-card-actions {
  grid-template-columns: 1fr;
}
#profileLineupPanel #lineupBench .lineup-bench-card.is-unavailable .lineup-card-action.view,
#profileLineupPanel #lineupBench .lineup-bench-card.is-unavailable .lineup-card-action[data-lineup-action="remove"] {
  grid-column: 1;
  width: 100%;
}

/* Formation footer: centre both formation states as one balanced unit. */
.mc-report-formation-team > footer {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 8px 14px;
  text-align: center;
}
.mc-report-formation-team > footer .mc-report-formation-state {
  display: grid;
  min-width: 112px;
  gap: 3px;
  justify-items: center;
  color: inherit;
}
.mc-report-formation-team > footer .mc-report-formation-state small {
  color: #d9d1c2;
  font-family: var(--report-readable-font, "Segoe UI", sans-serif);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .07em;
}
.mc-report-formation-team > footer .mc-report-formation-state strong {
  color: #fbf7ef;
  font-family: var(--report-readable-font, "Segoe UI", sans-serif);
  font-size: .76rem;
  font-weight: 800;
}
.mc-report-formation-team > footer > i {
  color: #e5c377;
  font-size: 1rem;
  font-style: normal;
}

/* Tactics tab: wider interface font, larger values and stronger contrast. */
.mc-report-tactics-grid,
.mc-report-tactics-team,
.mc-report-tactic-block,
.mc-report-tactic-grid,
.mc-report-change-list {
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
}
.mc-report-tactics-team > header strong {
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: 1rem;
  font-weight: 800;
}
.mc-report-tactics-team > header span {
  color: #d9d1c2;
  font-size: .66rem;
  line-height: 1.4;
}
.mc-report-tactic-block h3 {
  color: #fbf7ef;
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.mc-report-tactic-grid div,
.mc-report-summary-grid div {
  min-height: 38px;
  padding: 8px 10px;
}
.mc-report-tactic-grid dt,
.mc-report-summary-grid dt {
  color: #d9d1c2;
  font-size: .64rem;
  line-height: 1.35;
}
.mc-report-tactic-grid dd,
.mc-report-summary-grid dd {
  color: #fbf7ef;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.35;
}
.mc-report-change-list article {
  min-height: 46px;
  padding: 9px 10px;
}
.mc-report-change-list article > b {
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .72rem;
  font-weight: 800;
}
.mc-report-change-list article strong {
  color: #fbf7ef;
  font-size: .68rem;
  line-height: 1.4;
}
.mc-report-change-list article small,
.mc-tactics-empty {
  color: #d9d1c2;
  font-size: .62rem;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .mc-report-formation-team > footer {
    display: flex !important;
  }
  .mc-report-formation-team > footer .mc-report-formation-state {
    min-width: 94px;
  }
}

/* v3.0A.50.24.4 — preserve portrait colour, improve bench information
   contrast and make Match Report tactical values unmistakably readable. */

/* Reserve and Squad keep muted card surfaces without filtering portrait art. */
#profileLineupPanel .lineup-mini-card.rarity-reserve,
#profileLineupPanel .lineup-mini-card.rarity-squad {
  filter: none !important;
}
#profileLineupPanel .lineup-mini-card.rarity-reserve .lineup-card-visual img,
#profileLineupPanel .lineup-pitch-card.rarity-reserve .lineup-card-front img,
#profileLineupPanel .lineup-mini-card.rarity-squad .lineup-card-visual img,
#profileLineupPanel .lineup-pitch-card.rarity-squad .lineup-card-front img {
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

/* Put all bench identity and session information on one readable backplate. */
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-copy {
  box-sizing: border-box;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 9px;
  color: #1a1207 !important;
  background: linear-gradient(145deg, rgba(251,247,239,0.94), rgba(251,247,239,0.88));
  box-shadow: 0 5px 12px rgba(9,7,4,0.18), inset 0 1px 0 rgba(255, 255, 255, .82);
  text-shadow: none !important;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-copy *,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-name-row b,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-meta-row,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-meta-row span,
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-eligibility {
  color: #1a1207 !important;
  text-shadow: none !important;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-meta-row {
  font-size: .61rem;
  font-weight: 700;
  line-height: 1.28;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-eligibility {
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.28;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-registration-badge {
  color: #1a1207 !important;
  border-color: rgba(212,169,79,0.25);
  background: rgba(255, 255, 255, .64);
}

/* The active Match Report uses popup tactic grids. Give labels and values
   larger type, stronger contrast and dedicated value pills. */
.mc-report-popup-tactic-grid,
.mc-report-tactic-grid,
.mc-report-summary-grid {
  gap: 9px;
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
}
.mc-report-popup-tactic-grid div,
.mc-report-tactic-grid div,
.mc-report-summary-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(212,169,79,0.27);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(23,21,15,0.94), rgba(13,12,10,0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.mc-report-popup-tactic-grid dt,
.mc-report-tactic-grid dt,
.mc-report-summary-grid dt {
  color: #fbf7ef !important;
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .72rem !important;
  font-weight: 750 !important;
  line-height: 1.35;
  letter-spacing: 0;
}
.mc-report-popup-tactic-grid dd,
.mc-report-tactic-grid dd,
.mc-report-summary-grid dd {
  min-width: 70px;
  margin: 0 !important;
  padding: 5px 9px;
  border: 1px solid rgba(212,169,79,0.56);
  border-radius: 999px;
  color: #1a1207 !important;
  background: linear-gradient(135deg, #4c3915, #4c3915);
  box-shadow: 0 5px 13px rgba(212,169,79,0.2), inset 0 1px 0 rgba(255, 255, 255, .70);
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .75rem !important;
  font-weight: 850 !important;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.mc-report-tactic-block h3,
.mc-report-tactic-section h3 {
  margin-bottom: 11px;
  color: #fbf7ef !important;
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .79rem !important;
  font-weight: 850 !important;
  letter-spacing: .025em;
}
.mc-report-popup-empty,
.mc-tactics-empty {
  color: #d9d1c2 !important;
  font-family: var(--report-readable-font, "Segoe UI", Arial, sans-serif) !important;
  font-size: .68rem !important;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .mc-report-popup-tactic-grid,
  .mc-report-tactic-grid,
  .mc-report-summary-grid {
    grid-template-columns: 1fr !important;
  }
  .mc-report-popup-tactic-grid div,
  .mc-report-tactic-grid div,
  .mc-report-summary-grid div {
    min-height: 44px;
  }
}

/* 3.0A.50.24.5 — rarity-backed lineup information, key events and Match Centre polish. */
#profileLineupPanel .lineup-bench-card,
#profileLineupPanel .lineup-registered-card {
  --lineup-info-surface: linear-gradient(145deg, rgba(251,247,239,0.97), rgba(76,57,21,0.95));
  --lineup-info-border: rgba(212,169,79,0.55);
  --lineup-info-text: #1a1207;
}
#profileLineupPanel .lineup-bench-card.rarity-prospect,
#profileLineupPanel .lineup-registered-card.rarity-prospect {
  --lineup-info-surface: linear-gradient(145deg, rgba(224,228,234,.98), rgba(175,184,197,.96));
  --lineup-info-border: rgba(112,124,140,.68);
}
#profileLineupPanel .lineup-bench-card.rarity-reserve,
#profileLineupPanel .lineup-registered-card.rarity-reserve {
  --lineup-info-surface: linear-gradient(145deg, rgba(245,235,190,.98), rgba(202,180,114,.96));
  --lineup-info-border: rgba(160,128,50,.70);
}
#profileLineupPanel .lineup-bench-card.rarity-squad,
#profileLineupPanel .lineup-registered-card.rarity-squad {
  --lineup-info-surface: linear-gradient(145deg, rgba(205,235,213,.98), rgba(126,185,144,.96));
  --lineup-info-border: rgba(51,130,78,.70);
}
#profileLineupPanel .lineup-bench-card.rarity-starter,
#profileLineupPanel .lineup-registered-card.rarity-starter {
  --lineup-info-surface: linear-gradient(145deg, rgba(199,229,253,.98), rgba(105,173,226,.96));
  --lineup-info-border: rgba(41,112,176,.72);
}
#profileLineupPanel .lineup-bench-card.rarity-prime,
#profileLineupPanel .lineup-registered-card.rarity-prime {
  --lineup-info-surface: linear-gradient(145deg, rgba(229,208,251,.98), rgba(166,113,217,.96));
  --lineup-info-border: rgba(107,55,164,.72);
}
#profileLineupPanel .lineup-bench-card.rarity-legend,
#profileLineupPanel .lineup-registered-card.rarity-legend {
  --lineup-info-surface: linear-gradient(145deg, rgba(255,222,190,.98), rgba(228,135,76,.96));
  --lineup-info-border: rgba(170,76,30,.74);
}
#profileLineupPanel .lineup-bench-card.rarity-goat,
#profileLineupPanel .lineup-registered-card.rarity-goat {
  --lineup-info-surface: linear-gradient(145deg, rgba(255,244,190,.99), rgba(218,184,99,.97));
  --lineup-info-border: rgba(155,116,30,.76);
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-copy,
#profileLineupPanel #lineupAvailable .lineup-registered-card .lineup-card-copy {
  padding: 9px 11px;
  border: 1px solid var(--lineup-info-border);
  border-radius: 11px;
  color: var(--lineup-info-text);
  background: var(--lineup-info-surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 5px 14px rgba(0,0,0,.12);
}
#profileLineupPanel #lineupAvailable .lineup-registered-card {
  border-color: color-mix(in srgb, var(--rarity-color) 52%, rgba(255,255,255,.16));
  background: linear-gradient(145deg, color-mix(in srgb, var(--rarity-color) 24%, rgba(23,21,15,0.96)), rgba(13,12,10,0.97));
}
#profileLineupPanel .lineup-bench-card .lineup-card-copy b,
#profileLineupPanel .lineup-bench-card .lineup-card-copy small,
#profileLineupPanel .lineup-bench-card .lineup-card-copy span,
#profileLineupPanel .lineup-registered-card .lineup-card-copy b,
#profileLineupPanel .lineup-registered-card .lineup-card-copy small,
#profileLineupPanel .lineup-registered-card .lineup-card-copy span { color: #1a1207 !important; }
#profileLineupPanel .lineup-registration-badge {
  border: 1px solid currentColor !important;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
#profileLineupPanel .lineup-registration-badge.is-registered {
  color: #075b33 !important;
  background: #a9efc6 !important;
  border-color: #249763 !important;
}
#profileLineupPanel .lineup-registration-badge.is-u17 {
  color: #e5c377 !important;
  background: #fbf7ef !important;
  border-color: #d4a94f !important;
}
#profileLineupPanel .lineup-registration-badge.is-locked,
#profileLineupPanel .lineup-eligibility.unavailable {
  color: #7a1021 !important;
  background: #ffc4cc !important;
  border: 1px solid #df5267 !important;
  border-radius: 999px;
  padding: 3px 6px;
  font-weight: 900;
}

/* Match Report: FotMob-inspired key-events timeline. */
.mc-report-key-timeline > div {
  position: relative;
  display: grid;
  gap: 0;
  padding: 10px 0;
}
.mc-report-key-timeline > div::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(76,57,21,0.2);
}
.mc-report-key-timeline .mc-report-key-event {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 64px minmax(0,1fr) !important;
  align-items: center;
  min-height: 62px;
  padding: 5px 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.mc-report-key-timeline .mc-report-event-home,
.mc-report-key-timeline .mc-report-event-away {
  display: flex;
  align-items: center;
  min-width: 0;
}
.mc-report-key-timeline .mc-report-event-home { justify-content: flex-end; text-align: right; padding-right: 14px; }
.mc-report-key-timeline .mc-report-event-away { justify-content: flex-start; text-align: left; padding-left: 14px; }
.mc-report-event-centre {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 64px;
}
.mc-report-event-centre > b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: #2a2214;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .78rem;
  font-weight: 800;
  box-shadow: 0 0 0 4px rgba(9,7,4,0.94);
}
.mc-report-event-copy { display: grid; gap: 3px; max-width: 360px; }
.mc-report-event-copy strong { color: #fff; font-family: "Segoe UI", system-ui, sans-serif; font-size: .86rem; font-weight: 750; line-height: 1.25; }
.mc-report-event-copy small { color: rgba(251,247,239,0.7); font-family: "Segoe UI", system-ui, sans-serif; font-size: .71rem; line-height: 1.3; }
.mc-report-event-ball,
.mc-report-event-save,
.mc-report-event-injury,
.mc-report-event-dot,
.mc-report-event-card,
.mc-report-event-sub {
  position: absolute;
  left: calc(50% + 18px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50%;
  color: #fff;
  background: #0d0c0a;
  font-size: .72rem;
}
.mc-report-event-ball { color: #fbf7ef; font-size: .9rem; }
.mc-report-event-card { width: 12px; height: 18px; border-radius: 3px; }
.mc-report-event-card.is-yellow { background: #ffd530; }
.mc-report-event-card.is-red { background: #f14555; }
.mc-report-event-sub { display: flex; gap: 0; font-size: .64rem; }
.mc-report-event-sub i { color: #ff4054; font-style: normal; }
.mc-report-event-sub b { color: #42db8a; }
.mc-report-event-injury { color: #fff; background: #cf3d4d; font-weight: 1000; }
.mc-report-event-divider {
  position: relative;
  z-index: 3;
  display: flex !important;
  justify-content: center;
  min-height: 40px;
  padding: 8px 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.mc-report-event-divider span {
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #fff;
  background: #0d0c0a;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 850;
}

/* Match Centre logo clipping and top-player rating cleanup. */
.mc-hub-next .mc-hub-club-logo.is-large {
  overflow: hidden;
  border-radius: 20px;
}
.mc-hub-next .mc-hub-club-logo.is-large img {
  border-radius: 16px;
}
.mc-hub-latest-rating i { display: none !important; }

@media (max-width: 680px) {
  .mc-report-key-timeline .mc-report-key-event { grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr) !important; }
  .mc-report-event-centre { min-width: 56px; }
  .mc-report-event-centre > b { width: 37px; height: 37px; font-size: .7rem; }
  .mc-report-event-copy strong { font-size: .75rem; }
  .mc-report-event-copy small { font-size: .64rem; }
  .mc-report-key-timeline .mc-report-event-home { padding-right: 9px; }
  .mc-report-key-timeline .mc-report-event-away { padding-left: 9px; }
}

/* v3.0A.50.24.6 — native Legal & Support, World facility controls and report timeline. */

/* Legal and Support ------------------------------------------------------- */
.legal-support-view {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 76px;
  color: #fbf7ef;
}
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-bottom: 16px;
  color: rgba(251,247,239,0.62);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 750;
}
.legal-breadcrumb a { color: #e5c377; text-decoration: none; }
.legal-breadcrumb a:hover,
.legal-breadcrumb a:focus-visible { color: #fff; outline: none; }
.legal-page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 48px) 0 30px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #d4a94f, rgba(212,169,79,0.65), transparent 84%) 1;
}
.legal-page-hero .eyebrow { margin: 0 0 10px; color: #e5c377; letter-spacing: .17em; }
.legal-page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6vw, 6.2rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.legal-page-hero div > p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(251,247,239,0.75);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
}
.legal-updated {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid rgba(212,169,79,0.24);
  border-radius: 999px;
  color: rgba(251,247,239,0.78);
  background: rgba(13,12,10,0.72);
  font-family: var(--body);
  font-size: .65rem;
  font-weight: 800;
  white-space: nowrap;
}
.legal-support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}
.legal-support-grid > a {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 174px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(212,169,79,0.2);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(150deg, rgba(23,21,15,0.92), rgba(13,12,10,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 18px 42px rgba(0,0,0,.18);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.legal-support-grid > a:hover,
.legal-support-grid > a:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(212,169,79,0.54);
  background: linear-gradient(150deg, rgba(23,21,15,0.96), rgba(13,12,10,0.96));
  outline: none;
}
.legal-support-grid > a > span { color: #e5c377; font-family: var(--mono); font-size: .64rem; font-weight: 900; letter-spacing: .13em; }
.legal-support-grid > a > strong { margin-top: 16px; font-family: var(--display); font-size: 1.45rem; line-height: 1; text-transform: uppercase; }
.legal-support-grid > a > small { margin-top: 11px; color: rgba(251,247,239,0.7); font-family: var(--body); font-size: .78rem; line-height: 1.55; }
.legal-draft-note { margin: 18px 2px 0; color: rgba(217,209,194,0.58); font-family: var(--body); font-size: .72rem; }
.legal-document { max-width: 1000px; margin-inline: auto; }
.legal-document > section {
  margin-top: 16px;
  padding: clamp(21px, 3vw, 31px);
  border: 1px solid rgba(212,169,79,0.16);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(23,21,15,0.92), rgba(13,12,10,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.legal-document h2 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 850;
  line-height: 1.25;
}
.legal-document h3 { color: #fbf7ef; font-family: var(--body); font-size: .96rem; }
.legal-document p,
.legal-document li {
  color: rgba(251,247,239,0.78);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .91rem;
  line-height: 1.75;
}
.legal-document p { margin: 0; }
.legal-document p + p { margin-top: 12px; }
.legal-document ul,
.legal-document ol { display: grid; gap: 9px; margin: 0; padding-left: 22px; }
.legal-document a { color: #e5c377; overflow-wrap: anywhere; }
.legal-document a:hover,
.legal-document a:focus-visible { color: #fff; outline: none; }
.support-contact-card { border-color: rgba(212,169,79,0.3) !important; }
.legal-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(212,169,79,0.55);
  border-radius: 11px;
  color: #1a1207 !important;
  background: linear-gradient(135deg, #4c3915, #4c3915);
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-decoration: none;
}
.profile-account-menu .account-legal-link { border-top: 1px solid rgba(212,169,79,0.1); }

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  width: min(1440px, calc(100% - 32px));
  margin: 20px auto 22px;
  padding: 16px 20px;
  border: 1px solid rgba(212,169,79,0.14);
  border-radius: 16px;
  color: rgba(251,247,239,0.62);
  background: rgba(13,12,10,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  font-family: var(--body);
}
.site-footer-brand { display: flex; align-items: center; gap: 10px; }
.site-footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.site-footer-brand span { display: grid; }
/* Canonical redesign: reuses the homepage's own footer brand treatment
   (#homeView.gd-home .gd-footer-brand strong/small — see this file) rather
   than the legacy plain-white Barlow Condensed + cool-blue-grey pairing, so
   the shared footer reads as the same footer wherever it appears. */
.site-footer-brand strong { color: #fbf7ef; font-family: "Poppins", "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer-brand small { color: #d9d1c2; font-size: .57rem; }
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 15px; }
.site-footer-links a { color: #d9d1c2; font-size: .64rem; font-weight: 750; text-decoration: none; }
.site-footer-links a:hover,
.site-footer-links a:focus-visible { color: #f0d79b; outline: none; }
.site-footer > p { margin: 0; font-size: .59rem; white-space: nowrap; color: #d9d1c2; }
body.match-centre-open .site-footer,
body.world-interior-open .site-footer { display: none !important; }

/* Native Match Report key-events timeline -------------------------------- */
.mc-report-key-timeline {
  border: 1px solid rgba(212,169,79,.28) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(212,169,79,.08), transparent 36%),
    linear-gradient(155deg, rgba(32,26,19,.94), rgba(12,10,8,.96)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 20px 48px rgba(0,0,0,.18) !important;
}
.mc-report-key-timeline > header {
  padding: 18px 20px 13px !important;
  border-bottom: 0 !important;
}
.mc-report-key-timeline > header h4 { color: #fbf7ef; font-family: var(--body); font-size: 1rem; letter-spacing: .015em; }
.mc-report-key-timeline > div { padding: 9px 14px 13px; }
.mc-report-key-timeline > div::before { background: linear-gradient(180deg, transparent, rgba(212,169,79,.32) 12%, rgba(212,169,79,.24) 88%, transparent); }
.mc-report-key-timeline .mc-report-key-event {
  min-height: 68px;
  margin: 4px 0;
  padding: 7px 0 !important;
  border-radius: 13px !important;
}
.mc-report-key-timeline .mc-report-key-event:hover { background: rgba(212,169,79,.055) !important; }
.mc-report-event-centre > b {
  width: 43px;
  height: 43px;
  color: #fbf7ef;
  background: linear-gradient(145deg, #49391e, #211a12);
  box-shadow: 0 0 0 4px rgba(15,12,9,.98), 0 7px 18px rgba(0,0,0,.24);
}
.mc-report-event-copy strong { font-size: .88rem; }
.mc-report-event-copy small { color: #d9d1c2; font-size: .72rem; }
.mc-report-event-ball {
  width: 24px !important;
  height: 24px !important;
  padding: 3px;
  object-fit: contain;
  border-color: rgba(212,169,79,.28) !important;
  background: #17150f !important;
}
.mc-report-event-divider span {
  border-color: rgba(212,169,79,.20);
  color: #fbf7ef;
  background: #211a12;
}

/* World interior controls ------------------------------------------------ */
.goat-world-current-activity-list > section { overflow: hidden; }
.goat-world-current-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 11px 14px;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.goat-world-current-toggle > span { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.goat-world-current-toggle b { color: #e5c377; font-size: .62rem; letter-spacing: .12em; }
.goat-world-current-toggle small { color: rgba(217,209,194,.66); font-size: .62rem; font-weight: 750; }
.goat-world-current-toggle i { margin-left: 12px; color: #e5c377; font-size: 1rem; font-style: normal; transition: transform .16s ease; }
.goat-world-current-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
.goat-world-current-toggle:hover,
.goat-world-current-toggle:focus-visible { background: rgba(212,169,79,.06); outline: none; }
.goat-world-current-activity-list .goat-world-current-player-grid { margin-top: 0; padding: 0 12px 12px; }
.goat-world-detail-availability { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; }
.goat-world-detail-potential {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border: 1px solid rgba(212,169,79,.4);
  border-radius: 999px;
  color: #f0d79b;
  background: rgba(212,169,79,.16);
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .045em;
}
.goat-world-repeat-session { margin-top: 10px; }

@media (max-width: 900px) {
  .legal-support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-page-hero { display: grid; align-items: start; }
  .legal-updated { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer > p { white-space: normal; }
}
@media (max-width: 600px) {
  .legal-support-view { width: min(100% - 20px, 1180px); margin-top: 15px; }
  .legal-support-grid { grid-template-columns: 1fr; }
  .legal-support-grid > a { min-height: 145px; }
  .legal-document > section { padding: 19px 17px; }
  .legal-document p,
  .legal-document li { font-size: .87rem; line-height: 1.68; }
  .site-footer { width: calc(100% - 20px); padding: 15px; }
  .site-footer-links { gap: 9px 13px; }
}


/* 3.0A.50.25-preview.1 — compact collapsed facility occupancy and two-stat homepage. */
.home-rebuild .hero-stats {
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  width: min(410px, 100%);
}
.goat-world-current-activity-list > section.is-collapsed .goat-world-current-toggle {
  min-height: 38px;
  padding: 6px 10px;
}
.goat-world-current-activity-list > section.is-collapsed .goat-world-current-toggle b,
.goat-world-current-activity-list > section.is-collapsed .goat-world-current-toggle small {
  font-size: .55rem;
}
.goat-world-current-activity-list > section.is-collapsed .goat-world-current-toggle i {
  font-size: .88rem;
}
@media (max-width: 460px) {
  .home-rebuild .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* Professional audit accessibility and overflow guard. */
html { overflow-x: hidden; }
.legal-breadcrumb a,
.legal-document a,
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-block: 4px;
}
.site-footer-links a { padding-inline: 2px; }
.hero-carousel-dots button {
  position: relative;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
.hero-carousel-dots button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(251,247,239,0.25);
  transform: translateY(-50%);
}
.hero-carousel-dots button.active { background: transparent; box-shadow: none; }
.hero-carousel-dots button.active::before { background: var(--accent-cyan); box-shadow: 0 0 12px rgba(212,169,79,0.55); }
.hero-carousel-dots button:focus-visible { outline: 2px solid rgba(212,169,79,0.76); outline-offset: 2px; }

/* Native error pages. */
.error-page-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(76,57,21,0.16), transparent 34%),
    var(--background);
}
.error-page {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23,21,15,0.96), rgba(13,12,10,0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .05);
  text-align: center;
}
.error-page img { width: 88px; height: 88px; object-fit: contain; }
.error-page h1 { margin: 14px 0 12px; color: #fff; font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: .9; text-transform: uppercase; }
.error-page > p:not(.eyebrow) { margin: 0 auto; max-width: 480px; color: rgba(251,247,239,0.72); line-height: 1.65; }
.error-page nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.error-page nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; text-decoration: none; }


/* 3.0A.50.25 — expired calendar dates and friendly availability. */
.goat-calendar-modern .goat-calendar-day-cell.is-past {
  opacity: .52;
  filter: saturate(.58);
}
.goat-calendar-modern .goat-calendar-day-cell.is-past:hover,
.goat-calendar-modern .goat-calendar-day-cell.is-past.is-selected {
  opacity: .72;
}
.goat-calendar-modern .goat-calendar-day-cell.is-past .goat-calendar-day-head strong,
.goat-calendar-modern .goat-calendar-day-cell.is-past .goat-calendar-day-entry {
  color: rgba(217,209,194,0.68);
}


/* 3.0A.50.26 preview: compact registered-squad cards and reaction reset. */
.tc5-automation > header { justify-content: space-between; gap: 10px; }
.tc5-clear-reactions {
  min-height: 25px;
  border: 1px solid rgba(255, 93, 112, .58);
  border-radius: 7px;
  padding: 4px 8px;
  color: #ffdce0;
  background: linear-gradient(145deg, rgba(151, 26, 45, .88), rgba(95, 15, 31, .92));
  font-family: var(--mono);
  font-size: .56rem;
  font-weight: 950;
  letter-spacing: .08em;
  cursor: pointer;
}
.tc5-clear-reactions:hover,
.tc5-clear-reactions:focus-visible {
  border-color: rgba(255, 126, 141, .9);
  background: linear-gradient(145deg, rgba(185, 34, 55, .96), rgba(116, 18, 38, .98));
  outline: none;
}
#profileLineupPanel #lineupAvailable .lineup-mini-card,
#profileLineupPanel #lineupRegisteredPanel .lineup-mini-card {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 7px;
  padding: 5px 6px;
  border-radius: 11px;
}
#profileLineupPanel #lineupAvailable .lineup-card-visual,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-visual {
  width: 46px;
  height: 58px;
  border-radius: 8px;
}
#profileLineupPanel #lineupAvailable .lineup-card-visual img,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-visual img {
  inset: 14px -7px 0;
  width: calc(100% + 14px);
  height: calc(100% - 14px);
  object-position: bottom center;
}
#profileLineupPanel #lineupAvailable .lineup-card-copy,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-copy { gap: 1px; }
#profileLineupPanel #lineupAvailable .lineup-card-copy b,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-copy b { font-size: .72rem; }
#profileLineupPanel #lineupAvailable .lineup-card-copy small,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-copy small { font-size: .61rem; }
#profileLineupPanel #lineupAvailable .lineup-card-actions,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-actions { gap: 4px; }
#profileLineupPanel #lineupAvailable .lineup-card-action,
#profileLineupPanel #lineupRegisteredPanel .lineup-card-action {
  min-height: 24px;
  padding: 3px 7px;
  font-size: .58rem;
}

/* 3.0A.50.29.26 — private Matchday Test Mode (only rendered with devMatchday=1). */
.mc-dev-matchday{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:18px;
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid rgba(212,169,79,0.24);
  border-radius:14px;
  background:linear-gradient(100deg,rgba(13,12,10,0.88),rgba(13,12,10,0.9) 58%,rgba(23,21,15,0.84));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.mc-dev-matchday-copy{display:grid;gap:3px;min-width:0}
.mc-dev-matchday-copy>span{color:var(--accent-cyan);font-size:.58rem;font-weight:950;letter-spacing:.14em}
.mc-dev-matchday-copy>strong{color:#fff;font-size:.92rem}
.mc-dev-matchday-copy>small{max-width:720px;color:var(--muted);font-size:.68rem;line-height:1.35}
.mc-dev-matchday-state{display:grid;justify-items:end;gap:3px;min-width:120px;text-align:right}
.mc-dev-matchday-state>b{padding:5px 8px;border:1px solid rgba(212,169,79,0.2);border-radius:999px;color:#d9d1c2;font-size:.61rem;letter-spacing:.08em}
.mc-dev-matchday-state>b.is-active{border-color:rgba(212,169,79,0.38);background:rgba(76,57,21,0.08);color:#fbf7ef}
.mc-dev-matchday-state>small{color:#d9d1c2;font-size:.67rem}
.mc-dev-matchday-actions{display:flex;gap:8px;justify-content:flex-end}
.mc-dev-matchday-actions button{min-height:36px;padding:7px 11px;border:1px solid rgba(212,169,79,0.38);border-radius:9px;background:rgba(76,57,21,0.1);color:#fbf7ef;font:900 .62rem var(--body);letter-spacing:.04em;cursor:pointer}
.mc-dev-matchday-actions button.secondary{border-color:rgba(212,169,79,0.24);background:rgba(76,57,21,0.08);color:#d9d1c2}
.mc-dev-matchday-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:760px){
  .mc-dev-matchday{grid-template-columns:1fr;gap:10px}
  .mc-dev-matchday-state{justify-items:start;text-align:left}
  .mc-dev-matchday-actions{justify-content:flex-start;flex-wrap:wrap}
}


/* THE G.O.A.T 3.0A.50.29.33 — post-deploy responsiveness and modal/mail fixes */
.mail-message-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.mail-mark-read.icon-only{display:grid;place-items:center;width:30px;min-width:30px;height:30px;padding:0;border:1px solid rgba(82,225,181,.38);border-radius:7px;background:rgba(20,104,78,.48);color:#91f4d0;font:900 1rem/1 var(--body);cursor:pointer}
.mail-mark-read.icon-only:hover,.mail-mark-read.icon-only:focus-visible{border-color:rgba(115,255,213,.72);background:rgba(24,131,96,.66);outline:none}
.mail-mark-read.icon-only:disabled{opacity:.55;cursor:wait}
body.centre-report-modal-open.player-profile-open .player-modal{z-index:4300}

/* 3.0A.50.29.35 — private developer console + compact drag-first lineup cards. */
#devTabButton {
  border-top: 1px solid rgba(212,169,79,0.1);
}
#devTabButton small {
  margin-left: auto;
  color: #e5c377;
  font-size: .48rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.dev-console {
  display: grid;
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
}
.dev-console-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(212,169,79,0.22);
  border-radius: 18px;
  background: linear-gradient(115deg,rgba(13,12,10,0.96),rgba(13,12,10,0.95) 58%,rgba(23,21,15,0.9));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 48px rgba(9,7,4,0.22);
}
.dev-console-hero h2 { margin: 3px 0 5px; font-family: var(--display); font-size: clamp(2rem,4vw,3.5rem); }
.dev-console-hero p:last-child { max-width: 760px; margin: 0; color: #d9d1c2; }
.dev-mode-state {
  display: grid;
  min-width: 118px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(212,169,79,0.18);
  border-radius: 13px;
  background: rgba(13,12,10,0.42);
  text-align: right;
}
.dev-mode-state span { color: #d9d1c2; font-size: .58rem; font-weight: 950; letter-spacing: .13em; }
.dev-mode-state strong { color: #d9d1c2; font-family: var(--mono); font-size: 1.08rem; }
.dev-mode-state.enabled { border-color: rgba(80,226,158,.36); background: rgba(17,90,61,.18); }
.dev-mode-state.enabled strong { color: #7ef0ad; }
.dev-console-body { display: grid; gap: 14px; }
.dev-mode-control,.dev-health-card,.dev-tool-card,.dev-recovery-section,.dev-console-sleep,.dev-console-loading,.dev-console-denied {
  border: 1px solid rgba(212,169,79,0.17);
  border-radius: 15px;
  background: rgba(13,12,10,0.75);
}
.dev-mode-control,.dev-health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
}
.dev-mode-control > div,.dev-health-card > div,.dev-tool-card { display: grid; gap: 4px; }
.dev-mode-control span,.dev-health-card span,.dev-tool-card > span,.dev-recovery-section header span,.dev-recovery-row span {
  color: #d9d1c2;
  font-size: .57rem;
  font-weight: 950;
  letter-spacing: .11em;
}
.dev-mode-control strong,.dev-health-card strong,.dev-tool-card strong { color: #fbf7ef; }
.dev-mode-control small,.dev-health-card small,.dev-tool-card small { color: #d9d1c2; font-size: .68rem; line-height: 1.45; }
.dev-mode-control button,.dev-health-card button,.dev-tool-actions button {
  min-height: 34px;
  border: 1px solid rgba(212,169,79,0.32);
  border-radius: 9px;
  padding: 7px 12px;
  color: #fbf7ef;
  background: rgba(42,34,20,0.2);
  font-size: .59rem;
  font-weight: 950;
  letter-spacing: .07em;
  cursor: pointer;
}
.dev-mode-control button.is-on { border-color: rgba(255,95,113,.38); color: #ffd7dc; background: rgba(125,29,47,.25); }
.dev-health-card.healthy { border-color: rgba(75,226,148,.27); }
.dev-health-card.healthy strong { color: #79eeac; }
.dev-health-card.recovering { border-color: rgba(255,206,82,.30); }
.dev-health-card.recovering strong,.dev-health-card.warning strong { color: #ffdc78; }
.dev-health-card.warning { border-color: rgba(255,169,65,.42); background: rgba(91,57,13,.25); }
.dev-health-card.attention { border-color: rgba(255,90,109,.48); background: rgba(91,23,37,.28); }
.dev-health-card.attention strong { color: #ff93a0; }
.dev-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.dev-tool-card { padding: 17px; }
.dev-tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.dev-tool-actions button.secondary { border-color: rgba(212,169,79,0.18); color: #d9d1c2; background: rgba(23,21,15,0.45); }
.dev-recovery-section { display: grid; gap: 10px; padding: 15px; }
.dev-recovery-section > header { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.dev-recovery-section > header > div { display: grid; gap: 3px; }
.dev-recovery-section > header strong { color: #fbf7ef; font-size: .88rem; }
.dev-recovery-section > header > small { color: #d9d1c2; font-size: .61rem; }
.dev-recovery-row {
  display: grid;
  grid-template-columns: minmax(230px,1.25fr) minmax(120px,.55fr) minmax(120px,.55fr) minmax(230px,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(212,169,79,0.13);
  border-radius: 12px;
  background: rgba(13,12,10,0.48);
}
.dev-recovery-row > div { display: grid; gap: 3px; min-width: 0; }
.dev-recovery-row strong { overflow: hidden; color: #fbf7ef; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.dev-recovery-row small { overflow: hidden; color: #d9d1c2; font-size: .58rem; line-height: 1.35; text-overflow: ellipsis; }
.dev-recovery-main strong i { color: #d9d1c2; font-style: normal; font-weight: 500; }
.dev-recovery-error small { white-space: normal; }
.dev-recovery-flags { display: flex !important; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 5px !important; }
.dev-pill { display: inline-flex; align-items: center; min-height: 22px; border: 1px solid rgba(212,169,79,0.18); border-radius: 999px; padding: 3px 6px; color: #d9d1c2 !important; background: rgba(42,34,20,0.2); font-size: .48rem !important; white-space: nowrap; }
.dev-pill.protected { border-color: rgba(255,190,64,.30); color: #ffd979 !important; background: rgba(116,73,12,.2); }
.dev-pill.retry { border-color: rgba(212,169,79,0.3); color: #d9d1c2 !important; background: rgba(42,34,20,0.2); }
.dev-recovery-row.resolved { opacity: .72; }
.dev-empty,.dev-console-sleep,.dev-console-loading,.dev-console-denied { display: grid; gap: 4px; padding: 20px; color: #d9d1c2; }
.dev-empty strong,.dev-console-sleep strong,.dev-console-denied strong { color: #fbf7ef; }
.dev-empty.compact { padding: 13px; }

#profileLineupPanel #lineupAvailable .lineup-registered-card {
  grid-template-columns: 42px minmax(0,1fr) !important;
  min-height: 68px;
  padding: 5px 5px !important;
  gap: 6px !important;
  cursor: grab;
}
#profileLineupPanel #lineupAvailable .lineup-registered-card:active,
#profileLineupPanel #lineupBench .lineup-bench-card:active { cursor: grabbing; }
#profileLineupPanel #lineupAvailable .lineup-registered-card .lineup-card-visual {
  width: 42px !important;
  height: 58px !important;
}
#profileLineupPanel #lineupAvailable .lineup-registered-card .lineup-card-copy {
  padding: 6px 8px !important;
  gap: 1px !important;
}
#profileLineupPanel #lineupAvailable .lineup-registered-card .lineup-card-actions { display: none !important; }

#profileLineupPanel #lineupBench {
  grid-template-rows: none !important;
  grid-auto-rows: auto;
  align-content: start;
  overflow-y: auto;
}
#profileLineupPanel #lineupBench .lineup-bench-card {
  grid-template-columns: 42px minmax(0,1fr) !important;
  height: auto !important;
  min-height: 66px !important;
  max-height: 78px !important;
  padding: 4px 5px !important;
  gap: 6px !important;
  cursor: grab;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-visual {
  width: 42px !important;
  height: 58px !important;
}
#profileLineupPanel #lineupBench .lineup-bench-card .lineup-card-copy {
  padding: 6px 8px !important;
  gap: 0 !important;
}
#profileLineupPanel #lineupBench .lineup-card-actions { display: none !important; }
.lineup-registration-controls { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.lineup-registration-controls .lineup-registration-badge { margin-left: 0 !important; }
.lineup-bench-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(221,62,82,.7);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: #bd263d;
  font-size: .74rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}
.lineup-bench-remove:hover,.lineup-bench-remove:focus-visible { background: #e13b53; outline: 2px solid rgba(255,112,130,.28); outline-offset: 1px; }
body.lineup-dragging #profileLineupPanel #lineupBench .lineup-bench-card { border-color: color-mix(in srgb,var(--rarity-color) 68%,#d4a94f) !important; }
body.lineup-dragging #profileLineupPanel #lineupBench { background: rgba(42,34,20,0.08); }

@media (max-width: 900px) {
  .dev-console-hero,.dev-mode-control,.dev-health-card,.dev-recovery-section > header { align-items: stretch; flex-direction: column; }
  .dev-mode-state { align-self: stretch; text-align: left; }
  .dev-tool-grid { grid-template-columns: 1fr; }
  .dev-recovery-row { grid-template-columns: 1fr 1fr; }
  .dev-recovery-main,.dev-recovery-error,.dev-recovery-flags { grid-column: 1 / -1; }
  .dev-recovery-flags { justify-content: flex-start; }
}


/* THE G.O.A.T 3.0A.50.29.37 — Reaction Plan modal should open below the sticky Club/Match submenu */
/* 3.0A.50.29.45 — universal click acknowledgement without overriding component transforms. */
@keyframes goat-button-click-confirm {
  0%,100% { scale:1; filter:none; }
  45% { scale:.97; filter:brightness(1.12); }
}
button.goat-button-click-confirm:not(:disabled) { animation:goat-button-click-confirm 180ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  button.goat-button-click-confirm:not(:disabled) { animation:none; filter:brightness(1.10); }
}

/* Independent substitution-plan status in Automated Reactions. */
.tc5-sub-plan-status { display:grid; justify-items:end; gap:5px; min-width:210px; }
.tc5-sub-plan-status > strong { color:#e5c377; font-size:.62rem; }
.tc5-sub-plan-status .tc5-switch { justify-content:flex-end; }
@media(max-width:700px) {
  .tc5-sub-plan > header { align-items:stretch; flex-direction:column; }
  .tc5-sub-plan-status { justify-items:start; min-width:0; }
  .tc5-sub-plan-status .tc5-switch { justify-content:flex-start; }
}

/* Match Report stats: Key Match Events shares the report body's scrollbar and full column height. */
.mc-report-stats-layout { align-items:stretch; }
.mc-report-key-timeline > div { max-height:none; overflow:visible; }


/* 3.0A.50.29.54 — permanent club location + persisted fixture weather */
.home-location-setting form { flex-wrap: wrap; align-items: flex-end !important; }
.home-location-setting form > label { display:grid; gap:6px; min-width:170px; flex:1 1 210px; }
.home-location-setting form > label > small { color:rgba(217,209,194,0.72); font-size:.62rem; letter-spacing:.07em; text-transform:uppercase; }
.home-location-setting.is-locked b { display:block; margin:.25rem 0 .4rem; color:#d9d1c2; font-family:var(--display); font-size:1.05rem; }
.location-city-picker { position:relative; }
.location-city-results { position:absolute; z-index:40; left:0; right:0; top:100%; max-height:260px; overflow:auto; margin-top:5px; padding:6px; border:1px solid rgba(212,169,79,0.2); border-radius:12px; background:rgba(13,12,10,0.98); box-shadow:0 18px 44px rgba(0,0,0,.38); }
.location-city-results.hidden { display:none !important; }
.location-city-results button { width:100%; min-height:0 !important; display:flex !important; justify-content:space-between !important; gap:12px; padding:9px 10px !important; border:0 !important; background:transparent !important; text-align:left; color:var(--text) !important; }
.location-city-results button:hover,.location-city-results button:focus-visible { background:rgba(76,57,21,0.1) !important; outline:none; }
.location-city-results button strong { font-family:inherit !important; font-size:.78rem !important; }
.location-city-results button small { font-size:.62rem; text-align:right; }
.location-capital-help { flex:1 0 100%; color:rgba(217,209,194,0.72) !important; }
.location-capital-help b { color:#e5c377; }
.location-confirm-card { border-color:rgba(212,169,79,0.28); }
.location-confirm-card .eyebrow { color:#e5c377; }
.location-confirm-detail { padding:12px 14px; border:1px solid rgba(212,169,79,0.12); border-radius:12px; background:rgba(76,57,21,0.05); }
.onboarding-form .location-city-results { top:100%; }

.goat-calendar-weather-icon svg,.goat-calendar-row-weather svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.goat-calendar-weather-row small strong { color:#fbf7ef; font-size:.72rem; letter-spacing:0; text-transform:none; }
.goat-calendar-fixture-row { grid-template-columns:48px 76px 58px minmax(0,1fr) 124px 72px; }
.goat-calendar-row-weather { display:flex; align-items:center; gap:6px; min-width:0; color:#e5c377; }
.goat-calendar-row-weather svg { width:16px; height:16px; flex:0 0 auto; }
.goat-calendar-row-weather small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:rgba(217,209,194,0.72); font-size:.56rem; }
@media(max-width:900px){.goat-calendar-row-weather{display:none}.goat-calendar-fixture-row{grid-template-columns:42px 62px 52px minmax(0,1fr) 72px}}
@media(max-width:620px){.goat-calendar-fixture-row{grid-template-columns:40px 56px minmax(0,1fr)}.goat-calendar-fixture-row .goat-calendar-side-pill{grid-column:3;grid-row:2}.goat-calendar-row-status{grid-column:1/-1}}

/* Weather is now populated; override the legacy Coming-soon suppression. */
.goat-calendar-modern .goat-calendar-match-card.modern .goat-calendar-weather-row.is-compact { display:flex; }


/* 3.0A.50.29.55 — focused weather UI + city picker refinement */
#profileSettingsPanel .settings-grid article.home-location-setting { overflow:visible; z-index:6; }
.location-city-results { max-height:132px; overflow-y:auto; overscroll-behavior:contain; }
.location-city-results button { min-height:40px !important; }
.goat-calendar-next-weather-icon { width:20px; height:20px; flex:0 0 20px; display:inline-grid; place-items:center; color:#7be9ff; }
.goat-calendar-next-weather-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
/* Weather is intentionally limited to the Calendar Next Match card. */
.goat-calendar-weather-row.is-compact,.goat-calendar-row-weather { display:none !important; }
/* Restore the five-column upcoming-fixture layout now that weather is not shown there. */
.goat-calendar-fixture-row { grid-template-columns:48px 76px 58px minmax(0,1fr) 72px; }
@media(max-width:900px){.goat-calendar-fixture-row{grid-template-columns:42px 62px 52px minmax(0,1fr)}}
@media(max-width:620px){.goat-calendar-fixture-row{grid-template-columns:40px 56px minmax(0,1fr)}}


/* 3.0A.50.29.56 — calendar/match-centre weather alignment + settings consistency */
.goat-calendar-next-weather { align-items:center !important; }
.goat-calendar-next-weather-icon {
  width:13px !important;
  height:13px !important;
  flex:0 0 13px !important;
  display:inline-grid;
  place-items:center;
  align-self:center;
  color:#7be9ff;
}
.goat-calendar-next-weather-icon svg { width:13px !important; height:13px !important; }
.goat-calendar-next-weather-copy {
  width:auto !important;
  display:grid !important;
  gap:2px;
  min-width:0;
  text-align:left !important;
}
.goat-calendar-modern .goat-calendar-next-weather-copy strong {
  color:var(--text);
  font-size:.62rem;
  line-height:1;
  font-weight:850;
}
.goat-calendar-modern .goat-calendar-next-weather-copy small {
  color:rgba(217,209,194,0.72);
  font-size:.55rem !important;
  line-height:1.1;
  text-transform:uppercase;
  letter-spacing:.015em !important;
  white-space:normal !important;
}
.mc-hub-fixture-meta .mc-hub-weather { color:#e5c377; }
.mc-hub-fixture-meta .mc-hub-weather b { color:#fbf7ef; }
@media(max-width:740px){
  .mc-hub-fixture-meta .mc-hub-weather { width:100%; justify-content:center; }
}


/* v3.0A.50.29.64 — direct apartment-to-apartment navigation inside World interiors. */
.goat-world-apartment-switch {
  display:flex;
  width:max-content;
  max-width:100%;
  margin:14px 0 2px;
  padding:4px;
  gap:4px;
  border:1px solid rgba(212,169,79,.22);
  border-radius:12px;
  background:rgba(8,7,6,.7);
}
.goat-world-apartment-switch.hidden { display:none!important; }
.goat-world-apartment-switch button {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:7px 11px;
  border:1px solid transparent;
  border-radius:9px;
  color:rgba(217,209,194,.72);
  background:transparent;
  font:inherit;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
}
.goat-world-apartment-switch button small { color:rgba(217,209,194,.6);font-size:.58rem;font-weight:900; }
.goat-world-apartment-switch button:hover,.goat-world-apartment-switch button:focus-visible { color:#fbf7ef;border-color:rgba(212,169,79,.3);background:rgba(212,169,79,.1);outline:none; }
.goat-world-apartment-switch button.active { color:#fbf7ef;border-color:rgba(212,169,79,.5);background:rgba(212,169,79,.16);box-shadow:inset 0 0 0 1px rgba(212,169,79,.1);cursor:default; }
.goat-world-apartment-switch button.active small { color:#e5c377; }
@media(max-width:620px){.goat-world-apartment-switch{width:100%}.goat-world-apartment-switch button{flex:1;justify-content:center;padding-inline:7px}.goat-world-apartment-switch button span{white-space:nowrap}}

/* v3.0A.50.31 — Economy / Finances V1 (private Developer Mode). */
.finance-command-centre{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(23,21,15,0.98),rgba(13,12,10,0.98));border:1px solid rgba(212,169,79,0.16);box-shadow:0 20px 50px rgba(0,0,0,.22)}
.finance-command-centre:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#4c3915,rgba(76,57,21,0.85),transparent);opacity:.82}
.finance-hero{display:flex;align-items:stretch;justify-content:space-between;gap:24px;padding:24px 26px 18px;border-bottom:1px solid rgba(212,169,79,0.13)}
.finance-hero>div:first-child{max-width:720px}.finance-hero h2{margin:3px 0 7px;font-size:1.55rem}.finance-hero p:not(.eyebrow){margin:0;color:rgba(251,247,239,0.72);line-height:1.55}
.finance-balance-card{min-width:250px;padding:15px 18px;border:1px solid rgba(212,169,79,0.25);border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.55),rgba(23,21,15,0.72));display:flex;flex-direction:column;justify-content:center}
.finance-balance-card span,.finance-summary-grid span,.finance-category-card header span,.finance-strategy-card header span,.finance-contract-card header span,.finance-ledger-card header span{font-size:.68rem;font-weight:900;letter-spacing:.12em;color:#e5c377}.finance-balance-card strong{font-size:1.85rem;letter-spacing:-.035em;color:#fbf7ef;margin:3px 0}.finance-balance-card small{color:rgba(251,247,239,0.62);font-size:.65rem}.finance-balance-card small.warning{color:#ffbd7b}
.finance-periods{display:flex;gap:6px;padding:14px 26px 0}.finance-periods button{border:1px solid rgba(212,169,79,0.18);border-radius:9px;background:rgba(13,12,10,0.56);color:rgba(251,247,239,0.66);padding:8px 12px;font:inherit;font-size:.66rem;font-weight:850;cursor:pointer}.finance-periods button.active{color:#fff;border-color:rgba(212,169,79,0.5);background:rgba(42,34,20,0.22)}
.finance-body{display:grid;gap:14px;padding:16px 26px 26px}.finance-loading,.finance-error,.finance-empty{padding:28px;border:1px dashed rgba(212,169,79,0.22);border-radius:12px;color:rgba(251,247,239,0.65);text-align:center}.finance-error{display:grid;gap:5px}.finance-error strong{color:#ffb9b9}
.finance-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.finance-summary-grid article{padding:14px 15px;border:1px solid rgba(212,169,79,0.14);border-radius:12px;background:rgba(13,12,10,0.56);display:grid;gap:5px}.finance-summary-grid strong{font-size:1.12rem}.finance-body .positive{color:#65efbe}.finance-body .negative{color:#ff8e9e}
.finance-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.finance-category-card,.finance-strategy-card,.finance-contract-card,.finance-ledger-card{border:1px solid rgba(212,169,79,0.14);border-radius:13px;background:rgba(13,12,10,0.5);overflow:hidden}.finance-category-card header,.finance-strategy-card header,.finance-contract-card header,.finance-ledger-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid rgba(212,169,79,0.11)}.finance-category-card header strong,.finance-strategy-card header>b{font-size:.61rem;color:rgba(251,247,239,0.5);letter-spacing:.08em}.finance-category-card>div{padding:7px 14px 10px}.finance-category-card p{display:flex;justify-content:space-between;gap:10px;margin:0;padding:7px 0;border-bottom:1px solid rgba(212,169,79,0.08);font-size:.72rem}.finance-category-card p:last-child{border-bottom:0}.finance-category-card p span{color:rgba(251,247,239,0.65)}
.finance-strategy-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.finance-strategy-card{padding-bottom:13px}.finance-strategy-card:nth-child(3){grid-column:1/-1}.finance-strategy-card header div{display:grid;gap:3px}.finance-strategy-card header strong,.finance-contract-card header strong,.finance-ledger-card header strong{font-size:.88rem;color:#fbf7ef}.finance-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 14px 0}.finance-mini-grid p{margin:0;padding:9px;border-radius:9px;background:rgba(23,21,15,0.5);display:grid;gap:3px}.finance-mini-grid span{font-size:.58rem;color:rgba(251,247,239,0.56);text-transform:uppercase}.finance-mini-grid strong{font-size:.78rem}.stadium-card>p{margin:12px 14px;color:rgba(251,247,239,0.63);font-size:.7rem;line-height:1.45}.stadium-card>button,.finance-sponsor-option,.finance-contract-actions button{font:inherit;cursor:pointer}.stadium-card>button{margin:0 14px;border:1px solid rgba(212,169,79,0.35);border-radius:8px;background:rgba(42,34,20,0.18);color:#e5c377;padding:8px 11px;font-size:.66rem;font-weight:850}.stadium-card>button:disabled{opacity:.45;cursor:default}
.finance-sponsor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 14px 0}.finance-sponsor-option{text-align:left;border:1px solid rgba(212,169,79,0.18);border-radius:10px;background:rgba(23,21,15,0.65);color:#fbf7ef;padding:12px;display:grid;gap:4px}.finance-sponsor-option:hover{border-color:rgba(212,169,79,0.48);transform:translateY(-1px)}.finance-sponsor-option>span{font-size:.56rem;font-weight:900;letter-spacing:.08em;color:#e5c377}.finance-sponsor-option>strong{font-size:.77rem}.finance-sponsor-option>small,.finance-sponsor-option>em{font-size:.61rem;color:rgba(251,247,239,0.62);font-style:normal;line-height:1.35}.sponsor-selected{grid-column:1/-1}
.finance-contract-card header small,.finance-ledger-card header small{font-size:.62rem;color:rgba(251,247,239,0.56)}.finance-table-wrap{overflow:auto}.finance-contract-card table{width:100%;border-collapse:collapse;min-width:780px}.finance-contract-card th{text-align:left;padding:9px 11px;font-size:.56rem;letter-spacing:.08em;color:rgba(229,195,119,0.65);border-bottom:1px solid rgba(212,169,79,0.1)}.finance-contract-card td{padding:9px 11px;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.67rem;color:rgba(251,247,239,0.78)}.finance-contract-card td strong{display:block;color:#fbf7ef;font-size:.69rem}.finance-contract-card td small{display:block;margin-top:2px;color:rgba(217,209,194,0.48);font-size:.56rem}.finance-contract-card select{background:#17150f;color:#fbf7ef;border:1px solid rgba(212,169,79,0.2);border-radius:7px;padding:6px;font:inherit;font-size:.62rem}.finance-contract-actions{white-space:nowrap}.finance-contract-actions button{border:1px solid rgba(212,169,79,0.3);border-radius:7px;background:rgba(42,34,20,0.17);color:#e5c377;padding:6px 8px;font-size:.6rem;font-weight:850;margin-right:5px}.finance-contract-actions button.danger{border-color:rgba(255,100,118,.27);background:rgba(139,42,59,.17);color:#ff9daa}
.finance-transactions{padding:3px 14px 8px}.finance-transaction{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid rgba(212,169,79,0.08)}.finance-transaction:last-child{border-bottom:0}.finance-transaction>div{display:grid;gap:2px}.finance-transaction span{font-size:.56rem;font-weight:900;letter-spacing:.06em;color:#e5c377;text-transform:uppercase}.finance-transaction strong{font-size:.69rem;color:#fbf7ef}.finance-transaction small{font-size:.56rem;color:rgba(217,209,194,0.48)}.finance-transaction>b{font-size:.76rem}
.finance-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px}.finance-modal.hidden{display:none!important}.finance-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(13,12,10,0.78);backdrop-filter:blur(5px);cursor:pointer}.finance-modal-card{position:relative;z-index:1;width:min(460px,100%);padding:22px;border:1px solid rgba(255,111,128,.3);border-radius:15px;background:linear-gradient(150deg,#17150f,#0d0c0a);box-shadow:0 28px 80px rgba(0,0,0,.5)}.finance-modal-card h3{margin:4px 0 8px}.finance-modal-card>p:not(.eyebrow){color:rgba(251,247,239,0.72);font-size:.73rem;line-height:1.5}.finance-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.finance-modal-actions .danger-button{border:1px solid rgba(255,98,117,.45);border-radius:8px;background:rgba(145,40,58,.34);color:#ffd4da;padding:9px 12px;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}
@media(max-width:880px){.finance-hero{flex-direction:column}.finance-balance-card{min-width:0}.finance-summary-grid{grid-template-columns:1fr 1fr}.finance-category-grid,.finance-strategy-grid{grid-template-columns:1fr}.finance-strategy-card:nth-child(3){grid-column:auto}.finance-sponsor-grid{grid-template-columns:1fr}.sponsor-selected{grid-column:auto}}
@media(max-width:560px){.finance-hero,.finance-body{padding-left:16px;padding-right:16px}.finance-periods{padding-left:16px;padding-right:16px;overflow:auto}.finance-summary-grid{grid-template-columns:1fr 1fr}.finance-summary-grid article{padding:11px}.finance-balance-card strong{font-size:1.55rem}}
.finance-reputation-grid{margin-top:0}.finance-reputation-grid article strong{font-size:.92rem}.finance-construction-card{grid-column:1/-1}.finance-active-builds{display:grid;gap:6px;padding:10px 14px;border-top:1px solid rgba(212,169,79,0.08);border-bottom:1px solid rgba(212,169,79,0.08);background:rgba(76,57,21,0.055)}.finance-active-builds p{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:.62rem}.finance-active-builds span{color:#e5c377;text-transform:capitalize}.finance-active-builds strong{color:rgba(251,247,239,0.78);font-weight:750}.finance-build-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px 14px}.finance-build-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid rgba(212,169,79,0.12);border-radius:9px;background:rgba(23,21,15,0.48)}.finance-build-row>div{display:grid;gap:2px;text-transform:capitalize}.finance-build-row strong{font-size:.67rem;color:#fbf7ef}.finance-build-row small{font-size:.56rem;color:rgba(217,209,194,0.52)}.finance-build-row button{border:1px solid rgba(212,169,79,0.28);border-radius:7px;background:rgba(42,34,20,0.15);color:#e5c377;padding:7px 9px;font-size:.58rem;font-weight:850}.finance-build-row button:disabled{opacity:.42;cursor:default}.finance-contract-actions button[data-finance-external]{border-color:rgba(125,214,169,.28);background:rgba(48,131,91,.16);color:#a9f0c8}@media(max-width:760px){.finance-build-list{grid-template-columns:1fr}}

/* 3.0A.50.35.8 — explicit registration draft save feedback. */
#profileRegistrationPanel #leagueRegistrationSaveDraft.is-saving {
  border-color: rgba(240,215,155,.72) !important;
  color: #fff4e3 !important;
  box-shadow: 0 0 0 3px rgba(212,169,79,.10), 0 0 20px rgba(212,169,79,.16) !important;
}
#profileRegistrationPanel #leagueRegistrationSaveDraft.is-save-confirmed {
  border-color: rgba(94,230,156,.72) !important;
  background: rgba(38,145,93,.28) !important;
  color: #fff4e3 !important;
  animation: leagueRegistrationSaveConfirm 520ms ease both;
}
@keyframes leagueRegistrationSaveConfirm {
  0% { transform: scale(.96); }
  55% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

/* v3.0A.50.35.9 Developer Mode — separated club management preview. */
/* Finance dashboard ------------------------------------------------------- */
.finance-summary-grid-clean article{position:relative;overflow:hidden;min-height:92px;padding:16px 17px;background:linear-gradient(145deg,rgba(13,12,10,0.78),rgba(13,12,10,0.7));border-color:rgba(212,169,79,0.17)}
.finance-summary-grid-clean article:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,rgba(76,57,21,0.42),transparent)}
.finance-summary-grid-clean article:nth-child(1) strong{color:#69efbd}.finance-summary-grid-clean article:nth-child(2) strong{color:#ff8fa1}.finance-summary-grid-clean article:nth-child(4) strong{color:#d9d1c2}
.finance-main-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.75fr);gap:12px;align-items:stretch}
.finance-cashflow-card,.finance-breakdown-card,.finance-commitment-card,.finance-compact-card,.finance-outlook-card{border:1px solid rgba(212,169,79,0.15);border-radius:14px;background:linear-gradient(145deg,rgba(13,12,10,0.66),rgba(13,12,10,0.65));box-shadow:inset 0 1px 0 rgba(255,255,255,.018)}
.finance-cashflow-card{padding:15px 16px;min-height:310px;display:grid;grid-template-rows:auto 1fr auto;gap:10px}.finance-cashflow-card header,.finance-breakdown-card header,.finance-commitment-card header,.finance-compact-card header,.finance-outlook-card header{display:flex;align-items:center;justify-content:space-between;gap:12px}.finance-cashflow-card header span,.finance-breakdown-card header span,.finance-commitment-card header span,.finance-compact-card header span,.finance-outlook-card header span{font-size:.6rem;font-weight:900;letter-spacing:.12em;color:#e5c377}.finance-cashflow-card header b,.finance-breakdown-card header b,.finance-commitment-card header b,.finance-compact-card header b,.finance-outlook-card header b{font-size:.59rem;letter-spacing:.08em;color:rgba(251,247,239,0.48)}
.finance-cashflow-chart{width:100%;height:220px;overflow:visible}.finance-chart-area{fill:rgba(229,195,119,0.07)}.finance-chart-line{fill:none;stroke:#e5c377;stroke-width:2.2;filter:drop-shadow(0 0 5px rgba(76,57,21,0.3))}.finance-cashflow-chart circle{fill:#fbf7ef;stroke:#e5c377;stroke-width:1.4}.finance-chart-labels{display:flex;justify-content:space-between;gap:6px;color:rgba(217,209,194,0.48);font-size:.55rem}.finance-chart-empty,.stadium-chart-empty{display:grid;place-items:center;min-height:190px;color:rgba(217,209,194,0.52);border:1px dashed rgba(212,169,79,0.15);border-radius:10px}
.finance-breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:12px}.finance-breakdown-card{padding:14px}.finance-breakdown-card>div{margin-top:9px}.finance-breakdown-card p{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;gap:9px;align-items:center;margin:0;padding:7px 0;border-bottom:1px solid rgba(212,169,79,0.08);font-size:.68rem}.finance-breakdown-card p span{color:rgba(251,247,239,0.68)}.finance-breakdown-card p strong{color:#fbf7ef}.finance-breakdown-card p em{text-align:right;font-style:normal;color:rgba(217,209,194,0.54);font-size:.59rem}.finance-breakdown-card footer{display:flex;justify-content:space-between;padding-top:10px;font-size:.65rem;font-weight:900;color:#fbf7ef}
.finance-commitment-card{padding:15px 16px}.finance-commitment-card>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;margin-top:11px}.finance-commitment-card p{margin:0;padding:10px;border-radius:9px;background:rgba(23,21,15,0.42);display:grid;gap:4px}.finance-commitment-card p span{font-size:.55rem;letter-spacing:.06em;color:rgba(217,209,194,0.55)}.finance-commitment-card p strong{font-size:.76rem;color:#fbf7ef}.finance-commitment-card p.total{border:1px solid rgba(212,169,79,0.2);background:rgba(42,34,20,0.15)}
.finance-support-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:12px}.finance-compact-card,.finance-outlook-card{padding:15px 16px}.finance-compact-card>strong,.finance-outlook-card>strong{display:block;margin:14px 0 4px;color:#fbf7ef;font-size:1.05rem}.finance-compact-card>p,.finance-outlook-card>p{margin:4px 0;color:rgba(251,247,239,0.62);font-size:.66rem;line-height:1.45}.finance-sponsor-compact-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:12px}.finance-sponsor-compact-options button{border:1px solid rgba(212,169,79,0.2);border-radius:9px;background:rgba(23,21,15,0.48);color:#fbf7ef;padding:9px;font:inherit;font-size:.6rem;font-weight:850;cursor:pointer}.finance-sponsor-compact-options button:hover{border-color:rgba(212,169,79,0.48)}.finance-outlook-card strong.healthy{color:#69efbd}.finance-outlook-card strong.caution{color:#f2c94c}.finance-outlook-card strong.critical{color:#ff8fa1}
.finance-ledger-clean{padding-bottom:4px}.finance-ledger-clean .finance-table-wrap{max-height:295px}.finance-ledger-clean table{width:100%;border-collapse:collapse;min-width:680px}.finance-ledger-clean th,.finance-ledger-clean td{text-align:left;padding:10px 12px;border-bottom:1px solid rgba(212,169,79,0.08);font-size:.64rem}.finance-ledger-clean th{font-size:.54rem;letter-spacing:.08em;color:rgba(229,195,119,0.6)}.finance-ledger-clean td{color:rgba(251,247,239,0.75)}.finance-ledger-clean td strong{font-size:.67rem;color:#fbf7ef}.finance-type-pill{display:inline-flex;padding:4px 7px;border-radius:99px;border:1px solid rgba(212,169,79,0.17);font-size:.52rem;font-weight:900;letter-spacing:.05em}.finance-type-pill.positive{border-color:rgba(99,234,185,.25);background:rgba(60,147,112,.12)}.finance-type-pill.negative{border-color:rgba(255,117,136,.25);background:rgba(153,52,69,.12)}

/* Contracts --------------------------------------------------------------- */
.contracts-kpi-grid,.stadium-kpi-grid,.infrastructure-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.contracts-kpi-grid article,.stadium-kpi-grid article,.infrastructure-summary article{padding:14px 15px;border:1px solid rgba(212,169,79,0.15);border-radius:12px;background:linear-gradient(145deg,rgba(13,12,10,0.68),rgba(13,12,10,0.62));display:grid;gap:5px}.contracts-kpi-grid span,.stadium-kpi-grid span,.infrastructure-summary span{font-size:.56rem;font-weight:900;letter-spacing:.1em;color:#e5c377}.contracts-kpi-grid strong,.stadium-kpi-grid strong,.infrastructure-summary strong{font-size:1.08rem;color:#fbf7ef}.contracts-kpi-grid small,.stadium-kpi-grid small,.infrastructure-summary small{font-size:.58rem;color:rgba(217,209,194,0.52)}
.contract-toolbar{margin-top:12px;padding:11px;border:1px solid rgba(212,169,79,0.14);border-radius:12px;background:rgba(13,12,10,0.56);display:flex;align-items:center;justify-content:space-between;gap:10px}.contract-filter-tabs{display:flex;gap:5px;flex-wrap:wrap}.contract-filter-tabs button{border:1px solid rgba(212,169,79,0.16);border-radius:8px;background:rgba(23,21,15,0.48);color:rgba(251,247,239,0.63);padding:7px 9px;font:inherit;font-size:.56rem;font-weight:900;cursor:pointer}.contract-filter-tabs button.active{color:#fff;border-color:rgba(212,169,79,0.42);background:rgba(42,34,20,0.18)}.contract-filter-inputs{display:flex;gap:6px}.contract-filter-inputs input,.contract-filter-inputs select{min-height:34px;border:1px solid rgba(212,169,79,0.17);border-radius:8px;background:#17150f;color:#fbf7ef;padding:0 9px;font:inherit;font-size:.6rem}.contract-filter-inputs input{width:170px}.contract-filter-inputs select{max-width:130px}
.contracts-main-layout{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(300px,.8fr);gap:12px;margin-top:12px;align-items:start}.contract-table-panel,.contract-detail-panel,.contract-urgent-panel{border:1px solid rgba(212,169,79,0.14);border-radius:13px;background:linear-gradient(145deg,rgba(13,12,10,0.62),rgba(13,12,10,0.6));overflow:hidden}.contract-table-panel table{width:100%;border-collapse:collapse;min-width:930px}.contract-table-panel th{padding:9px 10px;text-align:left;font-size:.52rem;letter-spacing:.07em;color:rgba(229,195,119,0.58);border-bottom:1px solid rgba(212,169,79,0.1)}.contract-table-panel td{padding:9px 10px;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.62rem;color:rgba(251,247,239,0.75);vertical-align:middle}.contract-table-panel tbody tr{cursor:pointer;transition:background .15s ease}.contract-table-panel tbody tr:hover,.contract-table-panel tbody tr.selected{background:rgba(42,34,20,0.11)}.contract-player-cell{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:center;min-width:175px}.contract-player-cell img{width:36px;height:36px;border-radius:8px;object-fit:cover;background:rgba(23,21,15,0.45)}.contract-player-cell strong{display:block;color:#fbf7ef;font-size:.64rem}.contract-player-cell small{display:block;margin-top:2px;color:rgba(217,209,194,0.48);font-size:.53rem}.contract-rating-badge,.contract-loyalty-badge{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;border:1px solid rgba(212,169,79,0.2);background:rgba(23,21,15,0.45);font-size:.66rem;font-weight:900;color:#fbf7ef}.contract-loyalty-badge.high{color:#6cefc0;border-color:rgba(108,239,192,.3)}.contract-loyalty-badge.low{color:#ff9a9f;border-color:rgba(255,120,130,.3)}.contract-status{display:inline-flex;padding:4px 7px;border-radius:99px;border:1px solid rgba(212,169,79,0.18);font-size:.49rem;font-weight:900;letter-spacing:.05em;white-space:nowrap}.contract-status.eligible,.contract-status.renewed{color:#6cefc0;border-color:rgba(108,239,192,.25);background:rgba(48,141,105,.1)}.contract-status.negotiation{color:#f4d56d;border-color:rgba(244,213,109,.25)}.contract-status.expiring-soon,.contract-status.at-risk,.contract-status.not-interested{color:#ff939f;border-color:rgba(255,122,140,.25);background:rgba(143,46,61,.1)}.contract-row-cta{border:1px solid rgba(212,169,79,0.3);border-radius:7px;background:rgba(42,34,20,0.17);color:#e5c377;padding:6px 8px;font:inherit;font-size:.53rem;font-weight:900;cursor:pointer}.contract-row-menu{display:inline-block;margin-left:3px;position:relative}.contract-row-menu summary{list-style:none;cursor:pointer;color:rgba(251,247,239,0.6);font-size:1rem;line-height:1}.contract-row-menu summary::-webkit-details-marker{display:none}.contract-row-menu>div{position:absolute;right:0;z-index:30;min-width:130px;margin-top:6px;padding:5px;border:1px solid rgba(212,169,79,0.18);border-radius:8px;background:#0d0c0a;box-shadow:0 12px 28px rgba(0,0,0,.38)}.contract-row-menu button{width:100%;text-align:left;border:0;background:transparent;color:#fbf7ef;padding:7px;border-radius:6px;font:inherit;font-size:.55rem;cursor:pointer}.contract-row-menu button:hover{background:rgba(42,34,20,0.14)}.contract-row-menu button.danger{color:#ff9ca8}
.contract-pagination{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding:10px 12px;color:rgba(217,209,194,0.5);font-size:.55rem}.contract-pagination button{border:1px solid rgba(212,169,79,0.17);border-radius:7px;background:rgba(23,21,15,0.48);color:#fbf7ef;padding:5px 8px;font:inherit;font-size:.55rem;cursor:pointer}.contract-pagination button:disabled{opacity:.3;cursor:default}.contract-side-stack{display:grid;gap:12px}.contract-detail-panel,.contract-urgent-panel{padding:14px}.contract-player-hero{display:grid;grid-template-columns:58px minmax(0,1fr) auto;gap:10px;align-items:center;padding-bottom:12px;border-bottom:1px solid rgba(212,169,79,0.09)}.contract-player-hero img{width:58px;height:58px;border-radius:11px;object-fit:cover;background:rgba(23,21,15,0.5)}.contract-player-hero h3{margin:0;color:#fbf7ef;font-size:.9rem}.contract-player-hero p{margin:3px 0 0;color:rgba(217,209,194,0.57);font-size:.58rem}.contract-player-hero>b{font-size:.85rem;color:#fff}.contract-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:11px}.contract-detail-grid p{margin:0;padding:8px;border-radius:8px;background:rgba(23,21,15,0.4);display:grid;gap:3px}.contract-detail-grid span,.contract-expectation-grid span{font-size:.5rem;letter-spacing:.06em;color:rgba(217,209,194,0.5)}.contract-detail-grid strong,.contract-expectation-grid strong{font-size:.64rem;color:#fbf7ef}.contract-detail-panel>h4{margin:14px 0 6px;font-size:.58rem;letter-spacing:.09em;color:#e5c377}.contract-detail-panel>p{margin:0;color:rgba(251,247,239,0.65);font-size:.63rem;line-height:1.5}.contract-expectation-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.contract-expectation-grid p{margin:0;padding:8px;border:1px solid rgba(212,169,79,0.1);border-radius:8px;display:grid;gap:3px}.contract-primary-cta{width:100%;margin-top:11px;border:1px solid rgba(212,169,79,0.48);border-radius:9px;background:linear-gradient(135deg,rgba(76,57,21,0.86),rgba(76,57,21,0.82));color:#fff;padding:10px;font:inherit;font-size:.61rem;font-weight:950;letter-spacing:.05em;cursor:pointer;box-shadow:0 8px 22px rgba(212,169,79,0.22)}.contract-negotiation-box{margin-top:10px;padding:10px;border:1px solid rgba(212,169,79,0.22);border-radius:9px;background:rgba(42,34,20,0.12);font-size:.58rem;color:rgba(251,247,239,0.7)}.contract-urgent-panel header{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.contract-urgent-panel header span{font-size:.57rem;font-weight:900;letter-spacing:.1em;color:#ff98a6}.contract-urgent-panel button{border:0;background:none;color:#e5c377;font:inherit;font-size:.52rem;font-weight:900;cursor:pointer}.contract-urgent-panel p{display:grid;grid-template-columns:1fr auto;gap:3px 8px;margin:0;padding:8px 0;border-bottom:1px solid rgba(212,169,79,0.08)}.contract-urgent-panel p strong{font-size:.61rem;color:#fbf7ef}.contract-urgent-panel p span,.contract-urgent-panel p small{font-size:.52rem;color:rgba(217,209,194,0.5)}.contract-urgent-panel p small{grid-column:2}

/* Infrastructure ---------------------------------------------------------- */
.infrastructure-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.infrastructure-active{margin-top:12px;padding:13px 15px;border:1px solid rgba(244,201,76,.18);border-radius:12px;background:rgba(104,81,24,.09)}.infrastructure-active>span{font-size:.57rem;font-weight:900;letter-spacing:.09em;color:#f2c94c}.infrastructure-active p{display:flex;justify-content:space-between;margin:9px 0 0;font-size:.63rem;color:#fbf7ef}.infrastructure-active small{color:rgba(217,209,194,0.5)}.infrastructure-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.infrastructure-grid article{padding:14px;border:1px solid rgba(212,169,79,0.14);border-radius:12px;background:linear-gradient(145deg,rgba(13,12,10,0.64),rgba(13,12,10,0.6));display:grid;gap:9px}.infrastructure-grid header{display:flex;justify-content:space-between;gap:8px}.infrastructure-grid header span{font-size:.58rem;font-weight:900;letter-spacing:.08em;color:#e5c377;text-transform:uppercase}.infrastructure-grid header b{font-size:.57rem;color:rgba(251,247,239,0.65)}.infrastructure-grid>article>strong{font-size:1rem;color:#fbf7ef}.infrastructure-grid>article>strong small{margin-left:3px;font-size:.53rem;color:rgba(217,209,194,0.48)}.infrastructure-grid article>div{display:flex;justify-content:space-between;font-size:.6rem;color:rgba(217,209,194,0.57)}.infrastructure-grid article>div b{color:#fbf7ef}.infrastructure-grid button{margin-top:3px;border:1px solid rgba(212,169,79,0.28);border-radius:8px;background:rgba(42,34,20,0.16);color:#e5c377;padding:8px;font:inherit;font-size:.57rem;font-weight:900;cursor:pointer}.infrastructure-grid button:disabled{opacity:.4;cursor:default}

/* Stadium ----------------------------------------------------------------- */
.stadium-kpi-grid{margin-bottom:12px}.stadium-hero-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.7fr);gap:12px}.stadium-visual-card{position:relative;min-height:390px;overflow:hidden;border:1px solid rgba(212,169,79,0.18);border-radius:15px;background-image:linear-gradient(90deg,rgba(13,12,10,0.86) 0%,rgba(13,12,10,0.38) 42%,rgba(13,12,10,0.15) 100%),var(--stadium-visual);background-size:cover;background-position:center;box-shadow:0 20px 48px rgba(0,0,0,.23)}.stadium-visual-card:after{content:"";position:absolute;inset:auto 0 0;height:50%;background:linear-gradient(transparent,rgba(13,12,10,0.72));pointer-events:none}.stadium-visual-overlay{position:absolute;z-index:1;left:25px;bottom:24px;max-width:55%;display:grid;gap:5px}.stadium-visual-overlay span{font-size:.56rem;font-weight:900;letter-spacing:.14em;color:#e5c377}.stadium-visual-overlay h3{margin:0;font-size:1.7rem;letter-spacing:-.035em;color:#fff;text-shadow:0 3px 16px rgba(0,0,0,.65)}.stadium-visual-overlay p{margin:0;color:rgba(251,247,239,0.72);font-size:.66rem}.stadium-visual-overlay b{width:max-content;margin-top:7px;padding:5px 8px;border:1px solid rgba(212,169,79,0.35);border-radius:99px;background:rgba(42,34,20,0.18);font-size:.52rem;letter-spacing:.07em;color:#fbf7ef}.stadium-control-column{display:grid;grid-template-rows:auto 1fr;gap:12px}.stadium-level-card,.stadium-upgrade-card,.stadium-data-card{border:1px solid rgba(212,169,79,0.14);border-radius:13px;background:linear-gradient(145deg,rgba(13,12,10,0.68),rgba(13,12,10,0.64));padding:14px}.stadium-level-card header,.stadium-upgrade-card header,.stadium-data-card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.stadium-level-card header span,.stadium-upgrade-card header span,.stadium-data-card header span{font-size:.56rem;font-weight:900;letter-spacing:.09em;color:#e5c377}.stadium-level-card header b,.stadium-upgrade-card header b,.stadium-data-card header b{font-size:.58rem;color:rgba(251,247,239,0.6)}.stadium-level-card>div{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding:10px;border-radius:9px;background:rgba(23,21,15,0.42)}.stadium-level-card>div span{font-size:.52rem;color:rgba(217,209,194,0.5)}.stadium-level-card>div strong{font-size:.68rem;color:#f2d36a}.stadium-readiness{margin:10px 0 0;padding:8px;border-left:2px solid rgba(212,169,79,0.55);background:rgba(42,34,20,0.08);font-size:.6rem;color:rgba(251,247,239,0.69)}.stadium-upgrade-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.stadium-upgrade-stats p{margin:0;padding:9px;border-radius:8px;background:rgba(23,21,15,0.4);display:grid;gap:3px}.stadium-upgrade-stats span{font-size:.49rem;color:rgba(217,209,194,0.5)}.stadium-upgrade-stats strong{font-size:.64rem;color:#fbf7ef}.stadium-upgrade-card>button{width:100%;margin-top:11px;border:1px solid rgba(212,169,79,0.4);border-radius:9px;background:linear-gradient(135deg,rgba(42,34,20,0.3),rgba(42,34,20,0.28));color:#d9d1c2;padding:10px;font:inherit;font-size:.59rem;font-weight:950;cursor:pointer}.stadium-upgrade-card>button:disabled{opacity:.42;cursor:default}.stadium-upgrade-card>small{display:block;margin-top:8px;color:rgba(217,209,194,0.44);font-size:.52rem}.stadium-construction-progress{display:grid;gap:8px;margin-top:12px}.stadium-construction-progress>span{font-size:.57rem;font-weight:900;color:#f0d26d}.stadium-construction-progress>div{height:7px;overflow:hidden;border-radius:99px;background:rgba(76,57,21,0.14)}.stadium-construction-progress>div i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4c3915,#4c3915)}.stadium-construction-progress strong{font-size:.69rem;color:#fbf7ef}.stadium-construction-progress small{font-size:.52rem;color:rgba(217,209,194,0.49)}
.stadium-lower-grid{display:grid;grid-template-columns:.72fr 1.15fr 1fr .9fr;gap:10px;margin-top:12px;align-items:start}.stadium-data-card{min-height:225px}.stadium-revenue-total{margin:15px 0 8px;display:grid;gap:2px}.stadium-revenue-total strong{font-size:1.18rem;color:#66efbe}.stadium-revenue-total small,.stadium-data-card>small{font-size:.53rem;color:rgba(217,209,194,0.48)}.stadium-data-card>p{display:flex;justify-content:space-between;gap:8px;margin:7px 0;font-size:.58rem;color:rgba(251,247,239,0.62)}.stadium-data-card>p b{color:#fbf7ef}.stadium-attendance-card svg{width:100%;height:150px;margin-top:13px;overflow:visible}.stadium-attendance-line{fill:none;stroke:#e5c377;stroke-width:2.2;filter:drop-shadow(0 0 4px rgba(76,57,21,0.25))}.stadium-capacity-line{stroke:rgba(217,209,194,0.55);stroke-width:1;stroke-dasharray:5 5}.stadium-attendance-card circle{fill:#fbf7ef;stroke:#e5c377;stroke-width:1.3}.stadium-path-card>div{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:12px}.stadium-path-card>div p{margin:0;padding:8px 6px;border:1px solid rgba(212,169,79,0.11);border-radius:8px;text-align:center;display:grid;gap:2px}.stadium-path-card>div p.current{border-color:rgba(212,169,79,0.38);background:rgba(42,34,20,0.11)}.stadium-path-card>div span{font-size:.48rem;color:#e5c377}.stadium-path-card>div strong{font-size:.62rem;color:#fbf7ef}.stadium-path-card>div small{font-size:.47rem;color:rgba(217,209,194,0.47)}.stadium-path-card details{margin-top:11px}.stadium-path-card summary{color:#e5c377;font-size:.52rem;font-weight:900;cursor:pointer}.stadium-full-path{max-height:300px;overflow:auto;margin-top:8px;padding-right:3px}.stadium-full-path p{display:grid;grid-template-columns:30px 70px 70px 1fr;gap:6px;align-items:center;margin:0;padding:6px;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.5rem}.stadium-full-path em{font-style:normal;color:#75efc2}.stadium-full-path small{color:rgba(217,209,194,0.5)}.stadium-next-card>strong{display:block;margin:17px 0 4px;font-size:.72rem;color:#fbf7ef}.stadium-next-card>strong i{margin:0 4px;color:#e5c377;font-style:normal}.stadium-next-card>small{font-size:.53rem;color:rgba(217,209,194,0.5)}.stadium-next-card>div{display:flex;justify-content:space-between;gap:8px;margin-top:12px;padding:8px;border-radius:8px;background:rgba(23,21,15,0.38);font-size:.54rem;color:rgba(217,209,194,0.55)}.stadium-next-card>div b{color:#fbf7ef}

/* Detailed player profile — Developer Mode preview only ------------------ */
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet{width:min(1480px,calc(100vw - 24px));height:min(900px,calc(100vh - 18px));max-width:none;max-height:calc(100vh - 18px);padding:0;overflow:auto;background:linear-gradient(145deg,#0d0c0a,#0d0c0a 48%,#0d0c0a);border-color:rgba(212,169,79,0.2)}
.player-profile-v3{padding:18px;color:#fbf7ef}.player-profile-v3-header{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding:3px 4px 15px;border-bottom:1px solid rgba(212,169,79,0.13)}.player-profile-v3-identity>span{font-size:.58rem;font-weight:900;letter-spacing:.1em;color:var(--rarity-color,#e5c377);text-transform:uppercase}.player-profile-v3-identity h2{margin:4px 0 3px;font-size:1.65rem;letter-spacing:-.035em;color:#fff}.player-profile-v3-identity p{margin:0;color:rgba(251,247,239,0.61);font-size:.63rem}.player-owner-actions{display:grid;grid-template-columns:auto auto;gap:6px;min-width:260px}.player-owner-actions>span{grid-column:1/-1;text-align:right;font-size:.5rem;font-weight:900;letter-spacing:.1em;color:rgba(217,209,194,0.5)}.player-owner-actions button{border:1px solid rgba(212,169,79,0.2);border-radius:8px;background:rgba(23,21,15,0.45);color:#fbf7ef;padding:8px 10px;font:inherit;font-size:.55rem;font-weight:900;cursor:pointer}.player-owner-actions button.primary{grid-column:1/-1;background:linear-gradient(135deg,rgba(76,57,21,0.9),rgba(76,57,21,0.82));border-color:rgba(212,169,79,0.48);color:#fff}.player-owner-actions.public{grid-template-columns:1fr;min-width:130px}.player-owner-actions.public>span{grid-column:auto}
.player-profile-v3-layout{display:grid;grid-template-columns:255px minmax(0,1fr);gap:13px;margin-top:14px;align-items:start}.player-profile-v3-left{display:grid;gap:10px}.player-profile-v3-left .profile-footballer-card{width:100%;max-width:255px;margin:0 auto}.player-basic-info{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:9px;border:1px solid rgba(212,169,79,0.14);border-radius:12px;background:rgba(13,12,10,0.56)}.player-basic-info p{margin:0;padding:6px;border-radius:7px;background:rgba(23,21,15,0.35);display:grid;gap:2px}.player-basic-info span{font-size:.48rem;color:rgba(217,209,194,0.48)}.player-basic-info strong{font-size:.61rem;color:#fbf7ef}.player-profile-v3-main{display:grid;gap:10px;min-width:0}.player-profile-v3-top-grid{display:grid;grid-template-columns:1fr .9fr 1.25fr .95fr;gap:8px}.player-detail-panel,.player-attributes-panel,.player-dna-panel{border:1px solid rgba(212,169,79,0.14);border-radius:11px;background:linear-gradient(145deg,rgba(13,12,10,0.66),rgba(13,12,10,0.6));padding:11px;min-width:0}.player-detail-panel header,.player-attributes-panel header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.player-detail-panel header span,.player-attributes-panel header span,.player-dna-panel>span{font-size:.52rem;font-weight:900;letter-spacing:.1em;color:#e5c377}.player-detail-panel header b,.player-attributes-panel header b{font-size:.48rem;color:rgba(217,209,194,0.48)}.player-contract-facts{display:grid;grid-template-columns:1fr 1fr;gap:5px}.player-contract-facts p,.player-positions-panel>p,.player-info-panel>p{margin:0;padding:6px;border-radius:7px;background:rgba(23,21,15,0.35);display:grid;gap:2px}.player-contract-facts span,.player-positions-panel>p span,.player-season-performance span,.player-info-panel>p span{font-size:.46rem;color:rgba(217,209,194,0.48)}.player-contract-facts strong,.player-positions-panel>p strong,.player-season-performance strong,.player-info-panel>p strong{font-size:.59rem;color:#fbf7ef}.player-position-chips{display:flex;gap:5px;flex-wrap:wrap}.player-position-chips>span{display:grid;place-items:center;min-width:35px;height:29px;padding:0 7px;border:1px solid rgba(212,169,79,0.17);border-radius:7px;background:rgba(23,21,15,0.42);font-size:.57rem;font-weight:900;color:#fbf7ef}.player-position-chips>span.primary{border-color:rgba(212,169,79,0.48);background:rgba(42,34,20,0.2);color:#fbf7ef}.player-position-chips small{font-size:.34rem;line-height:1;color:rgba(251,247,239,0.6)}.player-position-pitch{position:relative;height:62px;margin:7px 0;border:1px solid rgba(99,194,176,.15);border-radius:7px;background:linear-gradient(90deg,rgba(24,83,70,.19),rgba(16,69,67,.12));overflow:hidden}.player-position-pitch:before{content:"";position:absolute;inset:9px;border:1px solid rgba(160,225,208,.14)}.player-position-pitch i{position:absolute;left:12%;top:23%;width:8px;height:8px;border-radius:50%;background:#a56fff;box-shadow:0 0 11px rgba(165,111,255,.55)}.player-position-pitch b{position:absolute;left:22%;top:19%;font-size:.48rem;color:#d4c5ff}.player-positions-panel>p{display:flex;justify-content:space-between;margin-top:4px}.player-season-performance>div{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px}.player-season-performance p{margin:0;padding:5px;border-bottom:1px solid rgba(212,169,79,0.07);display:grid;gap:2px}.player-form-ratings{display:flex;gap:4px;flex-wrap:wrap}.player-form-ratings strong{display:grid;place-items:center;width:31px;height:25px;border-radius:6px;background:rgba(23,21,15,0.5);font-size:.56rem;color:#fbf7ef}.player-form-ratings strong.good{color:#6decc0}.player-form-ratings strong.great{color:#e5c377}.player-form-ratings strong.poor{color:#ff909d}.player-form-ratings>span{font-size:.53rem;color:rgba(217,209,194,0.5)}.player-form-chart{width:100%;height:60px;margin-top:7px}.player-form-chart path{fill:none;stroke:#e5c377;stroke-width:2}.player-form-chart circle{fill:#fbf7ef;stroke:#e5c377;stroke-width:1}.player-form-empty{display:grid;place-items:center;height:54px;color:rgba(217,209,194,0.46);font-size:.5rem}
.player-profile-v3-middle{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:8px}.player-attribute-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.player-attribute-group{padding:7px;border:1px solid color-mix(in srgb,var(--stat-color) 22%,transparent);border-radius:8px;background:rgba(13,12,10,0.42)}.attribute-heading{display:flex;justify-content:space-between;align-items:center}.attribute-heading strong{font-size:.56rem;color:#fbf7ef}.attribute-score{font-size:.68rem}.attribute-track{height:3px;margin:5px 0 6px;border-radius:99px;background:rgba(76,57,21,0.13);overflow:hidden}.attribute-track span{display:block;width:var(--attribute-value);height:100%;background:var(--stat-color);border-radius:inherit}.player-attribute-group ul{list-style:none;padding:0;margin:0;display:grid;gap:3px}.player-attribute-group li{display:flex;justify-content:space-between;gap:4px;font-size:.45rem;color:rgba(217,209,194,0.54)}.player-attribute-group li b{color:#fbf7ef}.player-dna-panel{display:grid;justify-items:center;align-content:start;gap:6px}.player-dna-panel>span{justify-self:start}.player-dna-panel .radar-chart{width:min(190px,100%);height:auto}.player-dna-panel>small{font-size:.48rem;color:rgba(217,209,194,0.45)}.player-profile-v3-bottom{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:8px}.player-career-stats table{width:100%;border-collapse:collapse}.player-career-stats th,.player-career-stats td{padding:6px 7px;text-align:left;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.51rem;color:rgba(251,247,239,0.7)}.player-career-stats th{font-size:.45rem;color:rgba(229,195,119,0.53)}.player-career-stats tr.total td{font-weight:900;color:#fbf7ef}.player-info-panel{display:grid;align-content:start;gap:4px}.player-info-panel>p{display:flex;justify-content:space-between}

@media(max-width:1180px){.finance-main-grid,.stadium-hero-grid{grid-template-columns:1fr}.finance-breakdowns{grid-template-columns:1fr 1fr}.contracts-main-layout{grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr)}.stadium-lower-grid{grid-template-columns:1fr 1fr}.infrastructure-grid{grid-template-columns:1fr 1fr}.player-profile-v3-top-grid{grid-template-columns:1fr 1fr}.player-attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.contracts-kpi-grid,.stadium-kpi-grid{grid-template-columns:1fr 1fr}.contract-toolbar{align-items:stretch;flex-direction:column}.contract-filter-inputs{flex-wrap:wrap}.contracts-main-layout{grid-template-columns:1fr}.finance-commitment-card>div{grid-template-columns:1fr 1fr}.finance-support-grid{grid-template-columns:1fr}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet{width:calc(100vw - 12px);height:calc(100vh - 12px)}.player-profile-v3-layout{grid-template-columns:210px minmax(0,1fr)}.player-profile-v3-middle,.player-profile-v3-bottom{grid-template-columns:1fr}.player-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.player-dna-panel .radar-chart{width:220px}}
@media(max-width:680px){.finance-summary-grid-clean,.contracts-kpi-grid,.stadium-kpi-grid,.infrastructure-summary{grid-template-columns:1fr 1fr}.finance-main-grid,.finance-breakdowns,.finance-support-grid,.stadium-lower-grid,.infrastructure-grid{grid-template-columns:1fr}.finance-commitment-card>div{grid-template-columns:1fr 1fr}.contract-filter-inputs{display:grid;grid-template-columns:1fr 1fr}.contract-filter-inputs input{grid-column:1/-1;width:auto}.stadium-visual-card{min-height:280px}.stadium-visual-overlay{max-width:80%;left:17px;bottom:17px}.stadium-visual-overlay h3{font-size:1.3rem}.player-profile-v3{padding:12px}.player-profile-v3-header{align-items:flex-start;flex-direction:column}.player-owner-actions{width:100%;min-width:0}.player-owner-actions>span{text-align:left}.player-profile-v3-layout{grid-template-columns:1fr}.player-profile-v3-left .profile-footballer-card{max-width:245px}.player-basic-info{grid-template-columns:repeat(2,1fr)}.player-profile-v3-top-grid{grid-template-columns:1fr}.player-attribute-grid{grid-template-columns:1fr 1fr}}
@media(max-width:450px){.finance-summary-grid-clean,.contracts-kpi-grid,.stadium-kpi-grid,.infrastructure-summary{grid-template-columns:1fr}.finance-commitment-card>div,.contract-detail-grid,.contract-expectation-grid,.stadium-upgrade-stats{grid-template-columns:1fr}.contract-filter-inputs{grid-template-columns:1fr}.contract-filter-inputs input{grid-column:auto}.player-attribute-grid{grid-template-columns:1fr}.player-basic-info{grid-template-columns:1fr 1fr}}
.finance-type-pill.income{color:#65efbe;border-color:rgba(99,234,185,.25);background:rgba(60,147,112,.12)}
.finance-type-pill.expense{color:#ff8e9e;border-color:rgba(255,117,136,.25);background:rgba(153,52,69,.12)}
.finance-full-ledger{border-top:0;background:transparent}
.finance-full-ledger summary{padding:11px 14px;color:#e5c377;font-size:.56rem;font-weight:900;letter-spacing:.05em;cursor:pointer;list-style:none}
.finance-full-ledger summary::-webkit-details-marker{display:none}.finance-full-ledger[open] summary{border-bottom:0}
.contract-benefit{margin-top:8px;padding:8px 9px;border:1px solid rgba(102,232,196,.18);border-radius:8px;background:rgba(46,132,103,.08);display:grid;gap:2px}.contract-benefit span{font-size:.47rem;font-weight:900;letter-spacing:.07em;color:#6cefc0}.contract-benefit strong{font-size:.53rem;color:rgba(215,235,230,.73)}
.stadium-identity-stats{display:flex;gap:8px;margin-top:6px}.stadium-identity-stats>span{min-width:92px;padding:7px 9px;border:1px solid rgba(212,169,79,0.16);border-radius:8px;background:rgba(13,12,10,0.45);display:grid;gap:2px}.stadium-identity-stats small{font-size:.42rem;letter-spacing:.08em;color:rgba(217,209,194,0.55)}.stadium-identity-stats strong{font-size:.67rem;color:#fbf7ef}
.goat-management-page{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(23,21,15,0.98),rgba(13,12,10,0.98));border:1px solid rgba(212,169,79,0.16);box-shadow:0 20px 50px rgba(0,0,0,.22)}
.goat-management-page:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#4c3915,rgba(76,57,21,0.85),transparent);opacity:.82}
.goat-management-header{padding:23px 25px 17px;border-bottom:1px solid rgba(212,169,79,0.12)}.goat-management-header h2{margin:3px 0 7px;font-size:1.5rem}.goat-management-header p:not(.eyebrow){max-width:760px;margin:0;color:rgba(251,247,239,0.7);font-size:.69rem;line-height:1.55}.goat-management-body{padding:16px 25px 25px}
@media(max-width:680px){.goat-management-header,.goat-management-body{padding-left:15px;padding-right:15px}}

/* ========================================================================== */
/* THE G.O.A.T 3.0A.50.35.11 — professional management experience preview  */
/* Developer Mode only: hierarchical club nav + luxury management pages.       */
/* ========================================================================== */

.club-management-nav-v2 .profile-nav-row{
  align-items:stretch!important;
  grid-column:2!important;
  min-height:112px!important;
  padding:0!important;
  margin:0 0 20px!important;
}

/* Shared premium page frame */
.club-management-nav-v2 .goat-management-page,
.club-management-nav-v2 .finance-command-centre,
.club-management-nav-v2 .profile-tab-panel:not(#profileMarketPanel) .goat-luxury-page{
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.14)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.985),rgba(13,12,10,0.99))!important;
  box-shadow:0 26px 70px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
.club-management-nav-v2 .goat-management-page:before{display:none}
.club-management-nav-v2 .goat-management-header,
.club-management-nav-v2 .goat-luxury-header{
  padding:30px 32px 24px!important;
  border-bottom:1px solid rgba(212,169,79,0.1)!important;
  background:linear-gradient(100deg,rgba(23,21,15,0.25),transparent 65%);
}
.club-management-nav-v2 .goat-management-header h2,
.club-management-nav-v2 .goat-luxury-header h2{margin:4px 0 8px;font-size:2rem;line-height:1.05;letter-spacing:-.035em;color:#fbf7ef}
.club-management-nav-v2 .goat-management-header p:not(.eyebrow),
.club-management-nav-v2 .goat-luxury-header p:not(.eyebrow){max-width:780px;margin:0;color:rgba(251,247,239,0.68);font-size:.86rem;line-height:1.6}
.club-management-nav-v2 .goat-management-body,
.club-management-nav-v2 .goat-luxury-body{padding:24px 32px 32px!important}
.club-management-nav-v2 .eyebrow{font-size:.62rem;letter-spacing:.14em;color:#e5c377}
.goat-premium-empty{min-height:160px;display:grid;place-content:center;text-align:center;gap:6px;padding:28px;border:1px dashed rgba(212,169,79,0.18);border-radius:14px;background:rgba(13,12,10,0.32)}
.goat-premium-empty strong{font-size:1rem;color:#fbf7ef}.goat-premium-empty span{max-width:520px;color:rgba(217,209,194,0.58);font-size:.76rem;line-height:1.5}

/* Finance — luxury private banking */
.club-management-nav-v2 .finance-command-centre{position:relative}
.club-management-nav-v2 .finance-command-centre:before{content:"";position:absolute;right:-120px;top:-140px;width:520px;height:360px;border-radius:50%;background:radial-gradient(circle,rgba(42,34,20,0.12),transparent 68%);pointer-events:none}
.club-management-nav-v2 .finance-hero-clean{padding:32px!important;align-items:center;border-bottom:1px solid rgba(212,169,79,0.1);background:linear-gradient(110deg,rgba(13,12,10,0.96),rgba(13,12,10,0.98))}
.club-management-nav-v2 .finance-hero-clean h2{font-size:2.25rem;letter-spacing:-.04em}
.club-management-nav-v2 .finance-hero-clean>div:first-child>p:not(.eyebrow){font-size:.88rem;color:rgba(251,247,239,0.65)}
.club-management-nav-v2 .finance-balance-card{min-width:330px;padding:18px 22px;border:1px solid rgba(212,169,79,0.16);border-radius:15px;background:linear-gradient(145deg,rgba(23,21,15,0.78),rgba(13,12,10,0.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.club-management-nav-v2 .finance-balance-card span{font-size:.58rem;letter-spacing:.13em;color:rgba(217,209,194,0.58)}
.club-management-nav-v2 .finance-balance-card strong{margin-top:5px;font-size:2.15rem;letter-spacing:-.045em;color:#fff}
.club-management-nav-v2 .finance-balance-card small{font-size:.67rem;color:rgba(217,209,194,0.52)}
.club-management-nav-v2 .finance-periods{padding:14px 32px!important;gap:6px;border-bottom:1px solid rgba(212,169,79,0.09);background:rgba(13,12,10,0.62)}
.club-management-nav-v2 .finance-periods button{min-width:98px;min-height:36px;padding:7px 14px;border-radius:9px;font-size:.68rem;font-weight:800}
.club-management-nav-v2 .finance-body{padding:24px 32px 32px}
.finance-bank-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.finance-bank-kpis article{position:relative;min-height:126px;padding:20px 20px 18px;border:1px solid rgba(212,169,79,0.13);border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.78));box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.finance-bank-kpis article:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:2px;border-radius:99px;background:#4c3915;opacity:.7}
.finance-bank-kpis .income:before{background:#59dfae}.finance-bank-kpis .expense:before{background:#ff7689}.finance-bank-kpis .net:before{background:#4c3915}.finance-bank-kpis .commitment:before{background:#4c3915}
.finance-bank-kpis span{display:block;font-size:.58rem;font-weight:850;letter-spacing:.11em;color:rgba(217,209,194,0.56)}
.finance-bank-kpis strong{display:block;margin-top:10px;font-size:1.55rem;letter-spacing:-.035em;color:#fbf7ef}
.finance-bank-kpis .income strong{color:#71e9bd}.finance-bank-kpis .expense strong{color:#ff91a0}.finance-bank-kpis .positive strong{color:#71e9bd}.finance-bank-kpis .negative strong{color:#ff91a0}
.finance-bank-kpis small{display:block;margin-top:6px;color:rgba(217,209,194,0.48);font-size:.64rem}
.finance-bank-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.8fr);gap:14px}
.finance-bank-main .finance-cashflow-card{min-height:430px;padding:21px 22px;border:1px solid rgba(212,169,79,0.13);border-radius:16px;background:linear-gradient(145deg,rgba(13,12,10,0.75),rgba(13,12,10,0.85))}
.finance-bank-main .finance-cashflow-card header span{font-size:.58rem;letter-spacing:.12em}.finance-bank-main .finance-cashflow-card header strong{font-size:1.05rem}
.finance-bank-main .finance-cashflow-chart{min-height:330px;padding-top:12px}.finance-bank-main .finance-cashflow-chart svg{height:305px}
.finance-bank-main .finance-chart-labels span{font-size:.67rem}
.finance-bank-breakdowns{display:grid;grid-template-columns:1fr;gap:14px}
.finance-bank-breakdowns .finance-breakdown-card{padding:18px;border:1px solid rgba(212,169,79,0.13);border-radius:16px;background:linear-gradient(145deg,rgba(13,12,10,0.76),rgba(13,12,10,0.84))}
.finance-bank-breakdowns .finance-breakdown-card header span{font-size:.58rem;letter-spacing:.1em}.finance-bank-breakdowns .finance-breakdown-card header strong{font-size:.63rem}
.finance-bank-breakdowns .finance-breakdown-card p{grid-template-columns:minmax(0,1fr) auto 42px;padding:8px 0;font-size:.72rem}.finance-bank-breakdowns .finance-breakdown-card p span{font-size:.72rem}.finance-bank-breakdowns .finance-breakdown-card p b{font-size:.73rem}.finance-bank-breakdowns .finance-breakdown-card p em{font-size:.62rem}
.finance-bank-breakdowns .finance-breakdown-card footer{margin-top:8px;padding-top:12px}.finance-bank-breakdowns .finance-breakdown-card footer span{font-size:.58rem}.finance-bank-breakdowns .finance-breakdown-card footer strong{font-size:.95rem}
.finance-bank-support{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:14px;margin-top:14px}
.finance-commitment-card.bank{margin:0;padding:20px 22px;border-radius:16px}.finance-commitment-card.bank header strong{font-size:.9rem}.finance-commitment-card.bank header>b{font-size:1.2rem}.finance-commitment-card.bank header>b small{font-size:.58rem;font-weight:600;color:rgba(217,209,194,0.48)}
.finance-commitment-card.bank>div{gap:8px}.finance-commitment-card.bank>div p{padding:11px 13px}.finance-commitment-card.bank p span{font-size:.66rem}.finance-commitment-card.bank p strong{font-size:.82rem}
.finance-outlook-bank{display:grid;align-content:start;gap:10px;padding:20px 22px;border:1px solid rgba(212,169,79,0.13);border-radius:16px;background:linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.86))}
.finance-outlook-bank>span{font-size:.58rem;font-weight:900;letter-spacing:.11em;color:rgba(217,209,194,0.55)}
.finance-outlook-bank>div{display:grid;gap:3px}.finance-outlook-bank>div strong{font-size:1.25rem;color:#72e4b8}.finance-outlook-bank.caution>div strong{color:#ffd36a}.finance-outlook-bank.critical>div strong{color:#ff8795}.finance-outlook-bank>div em{font-style:normal;font-size:.72rem;color:rgba(251,247,239,0.68)}
.finance-outlook-bank p{display:flex;justify-content:space-between;margin:0;padding:8px 0;border-top:1px solid rgba(212,169,79,0.08);font-size:.69rem;color:rgba(217,209,194,0.57)}.finance-outlook-bank p b{color:#fbf7ef}.finance-outlook-bank small{font-size:.61rem;line-height:1.45;color:rgba(217,209,194,0.46)}
.finance-ledger-card.bank{margin-top:14px;border-radius:16px}.finance-ledger-card.bank header{padding:18px 20px}.finance-ledger-card.bank header span{font-size:.58rem}.finance-ledger-card.bank header strong{font-size:.9rem}.finance-ledger-card.bank th{font-size:.56rem;padding:11px 14px}.finance-ledger-card.bank td{font-size:.7rem;padding:12px 14px}

/* Contracts — professional agency desk */
.contracts-agency-intro{display:flex;justify-content:space-between;gap:28px;align-items:end;padding:2px 0 18px}.contracts-agency-intro>div span{font-size:.56rem;font-weight:900;letter-spacing:.12em;color:#e5c377}.contracts-agency-intro h3{margin:5px 0 0;max-width:650px;font-size:1.25rem;color:#fbf7ef;letter-spacing:-.025em}.contracts-agency-intro>p{max-width:450px;margin:0;color:rgba(217,209,194,0.56);font-size:.7rem;line-height:1.55}
.contracts-kpi-grid.agency{gap:12px}.contracts-kpi-grid.agency article{min-height:116px;padding:18px 19px;border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.8))}.contracts-kpi-grid.agency span{font-size:.56rem}.contracts-kpi-grid.agency strong{font-size:1.38rem}.contracts-kpi-grid.agency small{font-size:.62rem}
.contract-toolbar.agency{margin-top:14px;padding:14px;border-radius:14px;background:rgba(13,12,10,0.72)}
.contract-toolbar.agency .contract-filter-tabs button{min-height:34px;padding:7px 11px;font-size:.59rem;letter-spacing:.03em}
.contract-filter-inputs label{display:grid;gap:5px}.contract-filter-inputs label>span{font-size:.52rem;font-weight:850;letter-spacing:.08em;color:rgba(217,209,194,0.48)}
.contract-toolbar.agency .contract-filter-inputs input,.contract-toolbar.agency .contract-filter-inputs select{height:38px;padding:0 11px;font-size:.68rem;border-radius:9px}
.contracts-main-layout.agency{grid-template-columns:minmax(0,1fr) 360px;gap:14px;margin-top:14px}
.contract-table-panel.agency{border-radius:15px;overflow:visible;background:linear-gradient(145deg,rgba(13,12,10,0.74),rgba(13,12,10,0.82))}
.contract-table-panel.agency table{min-width:1050px}.contract-table-panel.agency th{padding:11px 11px;font-size:.52rem;letter-spacing:.06em}.contract-table-panel.agency td{padding:9px 11px;font-size:.68rem;vertical-align:middle}.contract-table-panel.agency tbody tr{height:72px}.contract-table-panel.agency tbody tr:hover{background:rgba(42,34,20,0.2)}.contract-table-panel.agency tbody tr.selected{background:linear-gradient(90deg,rgba(42,34,20,0.26),rgba(23,21,15,0.18));box-shadow:inset 2px 0 #d4a94f}
.contract-player-cell.agency{gap:11px}.contract-player-cell.agency .portrait{display:grid;place-items:end center;width:54px;height:54px;overflow:hidden;border:1px solid rgba(105,183,230,.16);border-radius:12px;background:radial-gradient(circle at 50% 35%,rgba(62,110,150,.22),rgba(7,18,37,.9));flex:0 0 54px}.contract-player-cell.agency .portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:scale(.94);transform-origin:center bottom}.contract-player-cell.agency strong{font-size:.73rem}.contract-player-cell.agency small,.contract-table-panel.agency td small{display:block;margin-top:3px;font-size:.55rem;color:rgba(217,209,194,0.46)}
.contract-rating-badge{width:38px;height:38px;font-size:.72rem}.contract-loyalty-table{display:grid;gap:5px;min-width:65px}.contract-loyalty-table strong{font-size:.7rem}.contract-loyalty-table i,.contract-loyalty-line{display:block;width:62px;height:4px;border-radius:99px;background:rgba(76,57,21,0.14);overflow:hidden}.contract-loyalty-table em,.contract-loyalty-line em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#46d7c0,#7bdd84)}
.contract-time-left{font-size:.64rem;color:rgba(251,247,239,0.72)}.contract-time-left.expiring-soon,.contract-time-left.at-risk{color:#ff9b73}.contract-time-left.not-interested{color:#ff7f8e}
.contract-status{padding:6px 8px;font-size:.51rem;letter-spacing:.03em}.contract-row-cta.agency{min-height:32px;padding:6px 10px;font-size:.58rem}
.contract-detail-panel.agency{padding:0;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,rgba(13,12,10,0.9),rgba(13,12,10,0.95))}
.contract-player-hero.agency{display:grid;grid-template-columns:126px 1fr;min-height:158px;padding:14px;background:radial-gradient(circle at 20% 25%,rgba(42,34,20,0.22),transparent 50%),linear-gradient(145deg,rgba(23,21,15,0.8),rgba(13,12,10,0.95))}
.contract-portrait-frame{align-self:end;width:116px;height:138px;overflow:hidden;border-radius:14px 14px 8px 8px;background:linear-gradient(180deg,rgba(41,82,119,.3),rgba(5,16,33,.6));border:1px solid rgba(95,187,232,.15)}.contract-portrait-frame img{width:100%;height:100%;object-fit:contain;object-position:center bottom;transform:scale(.98);transform-origin:center bottom}
.contract-hero-copy{position:relative;display:grid;align-content:center;padding:10px 8px}.contract-hero-copy>span{font-size:.56rem;font-weight:850;letter-spacing:.07em;color:#e5c377}.contract-hero-copy h3{margin:6px 0 3px;font-size:1.3rem;line-height:1;color:#fff}.contract-hero-copy p{margin:0;color:rgba(217,209,194,0.58);font-size:.66rem}.contract-hero-score{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:54px;height:54px;border:1px solid rgba(212,169,79,0.36);border-radius:50%;background:rgba(13,12,10,0.62)}.contract-hero-score b{font-size:1.05rem}.contract-hero-score span{font-size:.38rem;color:rgba(217,209,194,0.5)}
.contract-detail-grid.agency{grid-template-columns:1fr 1fr;gap:0;padding:8px 16px}.contract-detail-grid.agency p{padding:10px 4px;border-bottom:1px solid rgba(212,169,79,0.08);background:transparent}.contract-detail-grid.agency span{font-size:.5rem}.contract-detail-grid.agency strong{font-size:.7rem}.contract-detail-grid.agency .contract-loyalty-line{margin-top:5px;width:100%}
.renewal-outlook.agency{margin:10px 16px;padding:13px 14px;border-radius:11px}.renewal-outlook.agency span{font-size:.5rem}.renewal-outlook.agency strong{font-size:.85rem}.renewal-outlook.agency p{font-size:.63rem;line-height:1.45}
.contract-expectation-grid.agency{margin:0 16px 12px;gap:8px}.contract-expectation-grid.agency p{padding:11px}.contract-expectation-grid.agency span{font-size:.60rem}.contract-expectation-grid.agency strong{font-size:.76rem}.contract-expectation-grid.agency small{font-size:.5rem;color:rgba(217,209,194,0.48)}
.contract-primary-cta.agency{margin:0 16px 16px;min-height:44px;border-radius:10px;font-size:.67rem;letter-spacing:.04em}.contract-negotiation-box.agency{margin:0 16px 16px}.contract-negotiation-box.agency span{font-size:.52rem}.contract-negotiation-box.agency select{height:40px;font-size:.66rem}.contract-negotiation-box.agency small{font-size:.57rem}.contract-negotiation-box.agency button{min-height:42px;font-size:.63rem}
.contract-urgent-panel.agency{border-radius:15px}.contract-urgent-panel.agency header{padding:13px 15px}.contract-urgent-panel.agency header span{font-size:.56rem}.contract-urgent-panel.agency>button{padding:10px 14px}.contract-urgent-panel.agency>button strong{font-size:.67rem}.contract-urgent-panel.agency>button small{font-size:.53rem}

/* Facilities — visual investment portfolio */
.facilities-investment-header{display:flex;justify-content:space-between;gap:28px;align-items:end;margin-bottom:14px;padding:19px 22px;border:1px solid rgba(212,169,79,0.12);border-radius:15px;background:linear-gradient(135deg,rgba(23,21,15,0.68),rgba(13,12,10,0.8))}.facilities-investment-header>div:first-child>span{font-size:.56rem;font-weight:900;letter-spacing:.11em;color:#e5c377}.facilities-investment-header h3{margin:5px 0;font-size:1.18rem;color:#fbf7ef}.facilities-investment-header p{max-width:760px;margin:0;color:rgba(217,209,194,0.55);font-size:.7rem;line-height:1.5}.facilities-investment-header>div:last-child{text-align:right}.facilities-investment-header>div:last-child strong{display:block;font-size:1.4rem}.facilities-investment-header>div:last-child span{font-size:.58rem;color:rgba(217,209,194,0.48)}
.infrastructure-summary.luxury{grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.infrastructure-summary.luxury article{padding:17px 19px;border-radius:13px}.infrastructure-summary.luxury span{font-size:.55rem}.infrastructure-summary.luxury strong{font-size:1.25rem}.infrastructure-summary.luxury small{font-size:.58rem}
.facility-construction-strip{display:grid;grid-template-columns:auto repeat(2,minmax(0,1fr));gap:9px;align-items:center;margin-bottom:14px;padding:11px 14px;border:1px solid rgba(212,169,79,0.18);border-radius:13px;background:rgba(42,34,20,0.14)}.facility-construction-strip>span{font-size:.64rem;font-weight:900;letter-spacing:.1em;color:#d9d1c2}.facility-construction-strip article{display:flex;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:9px;background:rgba(23,21,15,0.56)}.facility-construction-strip article strong{font-size:.65rem}.facility-construction-strip article small,.facility-construction-strip time{font-size:.54rem;color:rgba(217,209,194,0.5)}
.infrastructure-grid.luxury{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.facility-invest-card{overflow:hidden;border:1px solid rgba(212,169,79,0.14);border-radius:17px;background:linear-gradient(145deg,rgba(13,12,10,0.83),rgba(13,12,10,0.92));box-shadow:0 18px 36px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025)}
.facility-invest-visual{position:relative;height:245px;overflow:hidden;background:radial-gradient(circle at 50% 55%,rgba(23,21,15,0.42),rgba(13,12,10,0.96) 72%)}.facility-invest-visual:after{content:"";position:absolute;inset:auto 0 0;height:70px;background:linear-gradient(transparent,rgba(13,12,10,0.96))}.facility-invest-visual img{width:100%;height:100%;object-fit:contain;transform:scale(1.05);filter:drop-shadow(0 18px 22px rgba(0,0,0,.35))}.facility-invest-visual>span{position:absolute;left:16px;top:15px;z-index:2;padding:6px 9px;border:1px solid rgba(212,169,79,0.22);border-radius:7px;background:rgba(13,12,10,0.76);font-size:.55rem;font-weight:900;letter-spacing:.08em;color:#e5c377}
.facility-invest-copy{padding:0 19px 18px}.facility-invest-copy header{display:flex;justify-content:space-between;gap:12px;align-items:start}.facility-invest-copy header small{font-size:.48rem;letter-spacing:.1em;color:rgba(229,195,119,0.7)}.facility-invest-copy h3{margin:3px 0 0;font-size:1.05rem;color:#fbf7ef}.facility-invest-copy header>b{font-size:.8rem;color:#e5c377}.facility-invest-copy>p{min-height:44px;margin:10px 0 13px;color:rgba(217,209,194,0.56);font-size:.67rem;line-height:1.5}
.facility-invest-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.facility-invest-metrics>span{padding:9px;border:1px solid rgba(212,169,79,0.09);border-radius:9px;background:rgba(13,12,10,0.48)}.facility-invest-metrics small{display:block;font-size:.48rem;color:rgba(217,209,194,0.48)}.facility-invest-metrics strong{display:block;margin-top:4px;font-size:.67rem;color:#fbf7ef}
.facility-invest-copy footer{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-top:14px;padding-top:13px;border-top:1px solid rgba(212,169,79,0.09)}.facility-invest-copy footer small{display:block;font-size:.48rem;letter-spacing:.08em;color:rgba(217,209,194,0.45)}.facility-invest-copy footer strong{display:block;margin-top:3px;font-size:.78rem}.facility-invest-copy footer button{min-height:38px;padding:8px 14px;border:1px solid rgba(212,169,79,0.32);border-radius:9px;background:linear-gradient(135deg,rgba(42,34,20,0.42),rgba(42,34,20,0.45));color:#fbf7ef;font:inherit;font-size:.58rem;font-weight:900;letter-spacing:.04em;cursor:pointer}.facility-invest-copy footer button:disabled{opacity:.42;cursor:not-allowed}

/* Stadium — immersive current-level artwork */
.stadium-premium-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.stadium-premium-kpis article{padding:18px 19px;border:1px solid rgba(212,169,79,0.13);border-radius:13px;background:linear-gradient(145deg,rgba(23,21,15,0.7),rgba(13,12,10,0.82))}.stadium-premium-kpis span{display:block;font-size:.64rem;font-weight:900;letter-spacing:.1em;color:rgba(217,209,194,0.53)}.stadium-premium-kpis strong{display:block;margin-top:7px;font-size:1.35rem;color:#fbf7ef}.stadium-premium-kpis small{display:block;margin-top:4px;font-size:.58rem;color:rgba(217,209,194,0.46)}
.stadium-premium-stage{display:grid;grid-template-columns:minmax(0,1.65fr) 350px;gap:14px}.stadium-room{position:relative;min-height:585px;overflow:hidden;border:1px solid rgba(212,169,79,0.14);border-radius:18px;background:radial-gradient(circle at 58% 55%,rgba(23,21,15,0.42),rgba(13,12,10,0.98) 72%);box-shadow:0 28px 60px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.025)}
.stadium-room:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.92),transparent 34%),linear-gradient(0deg,rgba(13,12,10,0.78),transparent 28%);pointer-events:none;z-index:1}.stadium-room>img{position:absolute;inset:22px 20px 56px 175px;width:calc(100% - 195px);height:calc(100% - 78px);object-fit:contain;object-position:center;filter:drop-shadow(0 28px 32px rgba(0,0,0,.48));transform:scale(1.05)}
.stadium-room-copy{position:absolute;left:25px;top:28px;z-index:2;width:220px}.stadium-room-copy>span{font-size:.55rem;font-weight:900;letter-spacing:.13em;color:#e5c377}.stadium-room-copy h3{margin:7px 0 4px;font-size:1.7rem;line-height:1.04;color:#fff;letter-spacing:-.035em}.stadium-room-copy>p{margin:0;color:rgba(217,209,194,0.58);font-size:.72rem}.stadium-room-copy>div{display:grid;grid-template-columns:auto 1fr;gap:2px 9px;align-items:center;margin-top:20px}.stadium-room-copy>div small{grid-column:1/-1;font-size:.48rem;letter-spacing:.09em;color:rgba(217,209,194,0.45)}.stadium-room-copy>div strong{font-size:2rem;color:#fff}.stadium-room-copy>div em{font-style:normal;font-size:.62rem;text-transform:uppercase;color:#e5c377}
.stadium-room-footer{position:absolute;left:22px;right:22px;bottom:19px;z-index:2;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stadium-room-footer>span{padding:10px 12px;border:1px solid rgba(212,169,79,0.13);border-radius:10px;background:rgba(13,12,10,0.72);backdrop-filter:blur(10px)}.stadium-room-footer small{display:block;font-size:.47rem;letter-spacing:.08em;color:rgba(217,209,194,0.46)}.stadium-room-footer strong{display:block;margin-top:4px;font-size:.67rem;color:#fbf7ef}
.stadium-boardroom{display:grid;align-content:start;gap:14px}.stadium-level-board,.stadium-next-match.premium{padding:20px;border:1px solid rgba(212,169,79,0.14);border-radius:16px;background:linear-gradient(145deg,rgba(23,21,15,0.82),rgba(13,12,10,0.92))}.stadium-level-board>span,.stadium-next-match.premium>span{font-size:.55rem;font-weight:900;letter-spacing:.1em;color:#e5c377}.stadium-level-board>div:first-of-type{margin:7px 0 15px}.stadium-level-board>div:first-of-type strong{display:block;font-size:1.55rem;color:#fff}.stadium-level-board>div:first-of-type small{display:block;margin-top:3px;font-size:.62rem;color:rgba(217,209,194,0.5)}.stadium-level-board>section{display:grid;grid-template-columns:1fr 1fr;gap:7px}.stadium-level-board>section p{margin:0;padding:10px;border:1px solid rgba(212,169,79,0.09);border-radius:9px;background:rgba(13,12,10,0.46)}.stadium-level-board>section span{display:block;font-size:.47rem;color:rgba(217,209,194,0.46)}.stadium-level-board>section b{display:block;margin-top:4px;font-size:.7rem}.stadium-level-board>button{width:100%;min-height:44px;margin-top:12px;border:1px solid rgba(212,169,79,0.36);border-radius:10px;background:linear-gradient(135deg,#2a2214,#2a2214);color:#fff;font:inherit;font-size:.62rem;font-weight:900;letter-spacing:.04em;cursor:pointer}.stadium-level-board>button:disabled{opacity:.42;cursor:not-allowed}.stadium-level-board>small{display:block;margin-top:9px;font-size:.54rem;line-height:1.45;color:rgba(217,209,194,0.46)}
.stadium-construction-progress{padding:13px;border-radius:10px;background:rgba(42,34,20,0.16)}.stadium-construction-progress>span{font-size:.52rem}.stadium-construction-progress strong{font-size:.8rem}.stadium-construction-progress small{font-size:.55rem}
.stadium-next-match.premium h3{margin:7px 0 3px;font-size:1.05rem}.stadium-next-match.premium>p{margin:0 0 12px;font-size:.63rem;color:rgba(217,209,194,0.55)}.stadium-next-match.premium>div{display:grid;gap:7px}.stadium-next-match.premium>div span{display:flex;justify-content:space-between;padding:8px 0;border-top:1px solid rgba(212,169,79,0.08);font-size:.6rem;color:rgba(217,209,194,0.54)}.stadium-next-match.premium>div b{color:#fbf7ef}
.stadium-premium-lower{display:grid;grid-template-columns:.85fr 1.15fr 1.6fr;gap:14px;margin-top:14px}.stadium-data-card.premium{min-width:0;padding:18px;border:1px solid rgba(212,169,79,0.13);border-radius:16px;background:linear-gradient(145deg,rgba(13,12,10,0.76),rgba(13,12,10,0.88))}.stadium-data-card.premium header{display:flex;justify-content:space-between;gap:12px;align-items:start}.stadium-data-card.premium header span{font-size:.52rem;font-weight:900;letter-spacing:.1em;color:#e5c377}.stadium-data-card.premium header strong{display:block;margin-top:3px;font-size:.75rem}.stadium-data-card.premium header>b{font-size:.9rem;color:#fbf7ef}.stadium-revenue-bar{height:7px;margin:24px 0 13px;border-radius:99px;background:rgba(76,57,21,0.12);overflow:hidden}.stadium-revenue-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#3bd1c0,#4c3915)}.stadium-data-card.premium>p{display:flex;justify-content:space-between;margin:0;font-size:.63rem;color:rgba(217,209,194,0.57)}.stadium-data-card.premium>small{display:block;margin-top:10px;font-size:.54rem;color:rgba(217,209,194,0.43)}.stadium-data-card.attendance svg{width:100%;height:185px;margin-top:12px}
.stadium-image-path{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px}.stadium-image-path article{min-width:0;padding:8px;border:1px solid rgba(212,169,79,0.09);border-radius:10px;background:rgba(13,12,10,0.48);text-align:center}.stadium-image-path article.current{border-color:rgba(212,169,79,0.42);background:rgba(23,21,15,0.2);box-shadow:0 0 22px rgba(212,169,79,0.08)}.stadium-image-path img{width:100%;height:75px;object-fit:contain;filter:drop-shadow(0 8px 9px rgba(0,0,0,.32))}.stadium-image-path span{display:block;font-size:.47rem;letter-spacing:.06em;color:#e5c377}.stadium-image-path strong{display:block;margin-top:3px;font-size:.65rem}.stadium-image-path small{display:block;margin-top:2px;font-size:.48rem;color:rgba(217,209,194,0.45)}.stadium-full-path-premium{margin-top:12px}.stadium-full-path-premium summary{font-size:.58rem;font-weight:850;color:#e5c377;cursor:pointer}.stadium-full-path-premium>div{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:10px}.stadium-full-path-premium p{display:grid;grid-template-columns:54px 1fr auto;gap:4px 8px;margin:0;padding:7px 9px;border-radius:7px;background:rgba(13,12,10,0.45)}.stadium-full-path-premium p span,.stadium-full-path-premium p b,.stadium-full-path-premium p em{font-size:.55rem}.stadium-full-path-premium p em{font-style:normal;color:rgba(251,247,239,0.65)}.stadium-full-path-premium p small{grid-column:2/-1;font-size:.47rem;color:rgba(217,209,194,0.43)}.stadium-full-path-premium p.current{outline:1px solid rgba(212,169,79,0.28)}

/* Sponsor / Invest / Market / Standings */
.sponsor-intro{max-width:760px;margin-bottom:18px}.sponsor-intro>span,.market-luxury-hero>span,.market-luxury-note>span,.invest-hero-card>span,.invest-roadmap>span{font-size:.56rem;font-weight:900;letter-spacing:.12em;color:#e5c377}.sponsor-intro h3,.market-luxury-hero h3,.invest-hero-card h3{margin:6px 0 5px;font-size:1.4rem;color:#fbf7ef}.sponsor-intro p,.market-luxury-hero p,.invest-hero-card p{margin:0;color:rgba(217,209,194,0.57);font-size:.73rem;line-height:1.6}
.sponsor-offer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.sponsor-offer-card,.sponsor-active-card,.sponsor-philosophy{padding:22px;border:1px solid rgba(212,169,79,0.14);border-radius:16px;background:linear-gradient(145deg,rgba(23,21,15,0.82),rgba(13,12,10,0.92))}.sponsor-offer-card.featured{border-color:rgba(212,169,79,0.35);box-shadow:0 0 35px rgba(212,169,79,0.08)}.sponsor-monogram{display:grid;place-items:center;width:48px;height:48px;margin-bottom:16px;border:1px solid rgba(212,169,79,0.25);border-radius:14px;background:linear-gradient(145deg,rgba(42,34,20,0.32),rgba(42,34,20,0.32));font-size:1.2rem;font-weight:900;color:#fbf7ef}.sponsor-offer-card>span,.sponsor-active-card>span,.sponsor-philosophy>span{font-size:.52rem;font-weight:900;letter-spacing:.1em;color:#e5c377}.sponsor-offer-card h3,.sponsor-active-card h3,.sponsor-philosophy h3{margin:5px 0 13px;font-size:1.1rem}.sponsor-offer-card>div:not(.sponsor-monogram){display:grid;gap:7px}.sponsor-offer-card p,.sponsor-term-grid p{display:flex;justify-content:space-between;margin:0;padding:9px 0;border-top:1px solid rgba(212,169,79,0.08)}.sponsor-offer-card p span,.sponsor-term-grid span{font-size:.6rem;color:rgba(217,209,194,0.54)}.sponsor-offer-card p strong,.sponsor-term-grid strong{font-size:.68rem}.sponsor-offer-card button{width:100%;min-height:42px;margin-top:14px;border:1px solid rgba(212,169,79,0.33);border-radius:9px;background:linear-gradient(135deg,rgba(42,34,20,0.6),rgba(42,34,20,0.64));color:#fff;font:inherit;font-size:.68rem;font-weight:900;cursor:pointer}.sponsor-desk{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.sponsor-active-card>p{color:rgba(217,209,194,0.56);font-size:.68rem}.sponsor-term-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;margin-top:12px}.sponsor-philosophy{display:grid;align-content:center}.sponsor-philosophy p{color:rgba(217,209,194,0.56);font-size:.7rem;line-height:1.55}
.invest-luxury-grid,.market-luxury-shell{display:grid;grid-template-columns:1.55fr .75fr;gap:14px}.invest-hero-card,.invest-roadmap,.market-luxury-hero,.market-luxury-note{min-height:350px;padding:28px;border:1px solid rgba(212,169,79,0.14);border-radius:18px;background:radial-gradient(circle at 78% 15%,rgba(42,34,20,0.16),transparent 38%),linear-gradient(145deg,rgba(23,21,15,0.82),rgba(13,12,10,0.94))}.invest-hero-card{display:grid;align-content:center}.invest-pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.invest-pill-row span{padding:8px 10px;border:1px solid rgba(212,169,79,0.14);border-radius:99px;background:rgba(23,21,15,0.38);font-size:.58rem;color:rgba(251,247,239,0.7)}.invest-roadmap,.market-luxury-note{display:grid;align-content:center;gap:4px}.invest-roadmap p,.market-luxury-note p{margin:0;padding:12px 0;border-bottom:1px solid rgba(212,169,79,0.08)}.invest-roadmap b,.market-luxury-note b{display:block;font-size:.67rem}.invest-roadmap small,.market-luxury-note small{display:block;margin-top:4px;font-size:.59rem;line-height:1.45;color:rgba(217,209,194,0.5)}.invest-roadmap>strong{margin-top:13px;color:#ffd36b;font-size:.7rem}.market-luxury-hero{display:grid;align-content:center}.market-luxury-hero>div{display:flex;gap:9px;margin-top:20px}.market-luxury-hero button{min-height:40px;padding:8px 14px;border:1px solid rgba(212,169,79,0.24);border-radius:9px;background:rgba(23,21,15,0.36);color:#fbf7ef;font:inherit;font-size:.6rem;font-weight:850;cursor:pointer}
.competition-switch{display:inline-flex;gap:5px;margin-bottom:15px;padding:5px;border:1px solid rgba(212,169,79,0.12);border-radius:10px;background:rgba(13,12,10,0.58)}.competition-switch button{min-width:82px;height:32px;border:1px solid transparent;border-radius:7px;background:transparent;color:rgba(217,209,194,0.55);font:inherit;font-size:.6rem;font-weight:850;cursor:pointer}.competition-switch button.active{border-color:rgba(212,169,79,0.28);background:rgba(42,34,20,0.32);color:#fbf7ef}
.standings-results-list{display:grid;gap:7px}.standings-result-row{display:grid;grid-template-columns:105px minmax(0,1fr) 85px 80px;gap:14px;align-items:center;padding:13px 15px;border:1px solid rgba(212,169,79,0.1);border-radius:11px;background:rgba(13,12,10,0.48)}.standings-result-row time{font-size:.61rem;color:rgba(217,209,194,0.5)}.standings-result-row span small{display:block;font-size:.49rem;color:rgba(217,209,194,0.45)}.standings-result-row span strong{display:block;margin-top:3px;font-size:.72rem}.standings-result-row>b{font-size:.9rem;text-align:center}.standings-result-row em{justify-self:end;padding:5px 7px;border-radius:7px;font-style:normal;font-size:.52rem;font-weight:900}.standings-result-row em.is-win{color:#73e4b5;background:rgba(47,145,104,.15)}.standings-result-row em.is-loss{color:#ff8b98;background:rgba(153,58,72,.15)}.standings-result-row em.is-draw{color:#e4d48a;background:rgba(144,125,57,.14)}
.standings-table-luxury{overflow:hidden;border:1px solid rgba(212,169,79,0.12);border-radius:14px}.standings-table-luxury>header,.standings-table-luxury>div{display:grid;grid-template-columns:60px minmax(0,1fr) 70px 80px 80px;align-items:center;padding:11px 15px;border-bottom:1px solid rgba(212,169,79,0.08)}.standings-table-luxury>header{background:rgba(23,21,15,0.64);font-size:.52rem;font-weight:850;letter-spacing:.07em;color:rgba(217,209,194,0.48)}.standings-table-luxury>div{min-height:54px;font-size:.7rem}.standings-table-luxury>div.is-user{background:linear-gradient(90deg,rgba(42,34,20,0.28),rgba(23,21,15,0.14));box-shadow:inset 2px 0 #d4a94f}.standings-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.standings-stat-grid article{min-height:130px;padding:20px;border:1px solid rgba(212,169,79,0.12);border-radius:14px;background:linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.86))}.standings-stat-grid span{display:block;font-size:.54rem;font-weight:850;letter-spacing:.09em;color:rgba(217,209,194,0.5)}.standings-stat-grid strong{display:block;margin-top:13px;font-size:1.65rem;color:#fbf7ef}

/* Developer player profile — full page, readable, no pop-out feel */
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){padding:0!important;align-items:stretch!important;justify-content:stretch!important;background:#0d0c0a!important;overflow:auto!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-backdrop{display:none!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet{width:100vw!important;height:100vh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;background:radial-gradient(circle at 72% 5%,rgba(42,34,20,0.16),transparent 31%),linear-gradient(145deg,#0d0c0a,#0d0c0a 52%,#0d0c0a)!important;box-shadow:none!important;overflow:auto!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-close{position:fixed!important;z-index:6;left:24px!important;right:auto!important;top:18px!important;width:auto!important;height:38px!important;padding:0 13px!important;border:1px solid rgba(212,169,79,0.16)!important;border-radius:9px!important;background:rgba(13,12,10,0.86)!important;color:#fbf7ef!important;font-size:.65rem!important;font-weight:850!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-nav{position:fixed!important;z-index:6;top:50%!important;width:42px!important;height:62px!important;border-radius:10px!important;background:rgba(13,12,10,0.78)!important;border-color:rgba(212,169,79,0.17)!important;opacity:.75}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-previous{left:8px!important}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-next{right:8px!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:auto!important;min-height:100vh!important;overflow:visible!important}
.player-profile-v3{width:min(1560px,calc(100vw - 72px));margin:0 auto;padding:72px 28px 38px!important}
.player-profile-v3-header{display:grid!important;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch!important;margin-bottom:16px;padding:24px 26px!important;border:1px solid rgba(212,169,79,0.14)!important;border-radius:18px!important;background:radial-gradient(circle at 73% 35%,rgba(42,34,20,0.18),transparent 35%),linear-gradient(145deg,rgba(23,21,15,0.85),rgba(13,12,10,0.94))!important}
.player-profile-v3-identity{display:grid;align-content:center}.player-profile-v3-identity small{font-size:.53rem;font-weight:900;letter-spacing:.13em;color:#e5c377}.player-profile-v3-identity>span{margin-top:8px;font-size:.72rem!important;color:rgba(217,209,194,0.6)!important}.player-profile-v3-identity h2{margin:4px 0 8px!important;font-size:2.45rem!important;line-height:1!important;letter-spacing:-.045em}.player-profile-v3-identity p{font-size:.78rem!important;color:rgba(251,247,239,0.67)!important}
.player-owner-actions{min-width:0!important;display:grid!important;grid-template-columns:1fr 1fr;align-content:center;gap:8px;padding-left:18px;border-left:1px solid rgba(212,169,79,0.1)}.player-owner-actions>span{grid-column:1/-1;text-align:left!important;font-size:.52rem!important;letter-spacing:.1em}.player-owner-actions button{min-height:41px!important;padding:8px 12px!important;font-size:.61rem!important;border-radius:9px!important}.player-owner-actions .primary{grid-column:1/-1}.player-owner-actions.public{grid-template-columns:1fr}
.player-profile-v3-layout{grid-template-columns:300px minmax(0,1fr)!important;gap:16px!important}.player-profile-v3-left{gap:12px!important}.player-profile-v3-left .profile-footballer-card{width:100%!important;max-width:300px!important;margin:0 auto!important}.player-basic-info{grid-template-columns:1fr!important;gap:0!important;padding:10px 14px!important;border:1px solid rgba(212,169,79,0.12);border-radius:14px;background:rgba(13,12,10,0.68)}.player-basic-info p{min-height:37px!important;padding:8px 2px!important;border-bottom:1px solid rgba(212,169,79,0.07)!important;background:transparent!important}.player-basic-info p:last-child{border-bottom:0!important}.player-basic-info span{font-size:.55rem!important}.player-basic-info strong{font-size:.7rem!important}.player-basic-info .profile-score{font-size:.72rem!important}
.player-profile-v3-main{gap:12px!important}.player-profile-v3-top-grid{grid-template-columns:1fr 1fr!important;gap:12px!important}.player-detail-panel,.player-attributes-panel,.player-dna-panel{padding:17px!important;border-radius:14px!important;background:linear-gradient(145deg,rgba(13,12,10,0.76),rgba(13,12,10,0.86))!important;border-color:rgba(212,169,79,0.12)!important}.player-detail-panel header,.player-attributes-panel header{margin-bottom:12px!important}.player-detail-panel header span,.player-attributes-panel header span,.player-dna-panel>span{font-size:.56rem!important;letter-spacing:.1em!important}.player-detail-panel header b,.player-attributes-panel header b{font-size:.52rem!important}.player-contract-facts{gap:8px!important}.player-contract-facts p{padding:10px!important}.player-contract-facts span{font-size:.52rem!important}.player-contract-facts strong{font-size:.72rem!important}
.player-position-chips{gap:7px!important}.player-position-chips>span{min-width:52px!important;height:38px!important;padding:0 10px!important;font-size:.67rem!important;border-radius:9px!important}.player-position-chips small{font-size:.4rem!important}.player-position-pitch.premium{position:relative;height:185px!important;margin:12px 0!important;border:1px solid rgba(112,213,177,.23)!important;border-radius:11px!important;background:linear-gradient(180deg,rgba(25,94,64,.44),rgba(17,70,57,.38))!important;overflow:hidden!important}.player-position-pitch.premium:before{content:""!important;position:absolute!important;inset:8px!important;border:1px solid rgba(218,255,235,.32)!important;border-radius:2px!important}.player-position-pitch.premium .pitch-centre-line{position:absolute;left:8px;right:8px;top:50%;height:1px;background:rgba(218,255,235,.27)}.player-position-pitch.premium .pitch-centre-circle{position:absolute;left:50%;top:50%;width:52px;height:52px;border:1px solid rgba(218,255,235,.27);border-radius:50%;transform:translate(-50%,-50%)}.player-position-pitch.premium .pitch-box{position:absolute;left:30%;width:40%;height:28px;border:1px solid rgba(218,255,235,.25)}.player-position-pitch.premium .pitch-box.top{top:8px;border-top:0}.player-position-pitch.premium .pitch-box.bottom{bottom:8px;border-bottom:0}.player-position-pitch.premium i{position:absolute!important;left:var(--pos-x)!important;top:var(--pos-y)!important;width:22px!important;height:22px!important;border-radius:50%!important;transform:translate(-50%,-50%)!important;background:#49d9a5!important;border:3px solid rgba(5,42,32,.75)!important;box-shadow:0 0 0 2px rgba(99,245,190,.24),0 0 17px rgba(60,224,166,.3)!important}.player-position-pitch.premium i.primary{width:26px!important;height:26px!important;background:#6ce6ff!important;border-color:rgba(8,43,56,.78)!important;box-shadow:0 0 0 2px rgba(103,228,255,.28),0 0 19px rgba(70,204,244,.38)!important}.player-position-pitch.premium i b{position:absolute!important;left:50%!important;top:calc(100% + 5px)!important;transform:translateX(-50%)!important;padding:2px 4px!important;border-radius:4px!important;background:rgba(5,17,33,.82)!important;font-size:.46rem!important;color:#fff!important;white-space:nowrap!important}.player-positions-panel>p{padding:8px 0!important;background:transparent!important;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.66rem!important}.player-positions-panel>p span{font-size:.52rem!important}.player-positions-panel>p strong{font-size:.65rem!important}
.player-season-performance>div{grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.player-season-performance p{min-height:60px;padding:9px!important;border:1px solid rgba(212,169,79,0.08)!important;border-radius:9px!important;background:rgba(13,12,10,0.48)}.player-season-performance span{font-size:.48rem!important}.player-season-performance strong{font-size:.78rem!important}.player-form-ratings{gap:7px!important}.player-form-ratings strong{width:48px!important;height:34px!important;font-size:.69rem!important;border-radius:8px!important}.player-form-chart-wrap{position:relative;margin-top:10px;padding-left:28px}.player-form-chart{width:100%!important;height:145px!important;margin:0!important}.player-form-chart .form-guide{stroke:rgba(229,195,119,0.11);stroke-width:1}.player-form-chart .form-area{fill:rgba(229,195,119,0.08)}.player-form-chart .form-line{fill:none;stroke:#e5c377;stroke-width:2.5}.player-form-chart circle{fill:#e5c377!important;stroke:#e5c377!important;stroke-width:2!important}.player-form-scale{position:absolute;left:0;top:10px;bottom:9px;display:flex;flex-direction:column;justify-content:space-between;font-size:.45rem;color:rgba(217,209,194,0.38)}
.player-profile-v3-middle{grid-template-columns:minmax(0,1fr) 300px!important;gap:12px!important}.player-attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}.player-attribute-group{padding:11px!important;border-radius:10px!important}.attribute-heading strong{font-size:.68rem!important}.attribute-score{font-size:.82rem!important}.attribute-track{height:4px!important;margin:7px 0 9px!important}.player-attribute-group ul{gap:5px!important}.player-attribute-group li{font-size:.56rem!important}.player-dna-panel .radar-chart{width:250px!important}.player-dna-panel>small{font-size:.55rem!important}
.player-profile-v3-bottom{grid-template-columns:minmax(0,1fr) 300px!important;gap:12px!important}.player-career-stats th{font-size:.51rem!important;padding:9px 10px!important}.player-career-stats td{font-size:.62rem!important;padding:10px!important}.player-info-panel>p{padding:10px 2px!important;background:transparent!important;border-bottom:1px solid rgba(212,169,79,0.08);font-size:.65rem!important}.player-info-panel>p span{font-size:.52rem!important}.player-info-panel>p strong{font-size:.66rem!important}

@media(max-width:1180px){
  .club-management-nav-v2 .profile-nav-row{grid-column:1/-1!important}
  .finance-bank-main,.stadium-premium-stage{grid-template-columns:1fr}.finance-bank-breakdowns{grid-template-columns:1fr 1fr}.stadium-boardroom{grid-template-columns:1fr 1fr}.stadium-room{min-height:520px}.stadium-premium-lower{grid-template-columns:1fr 1fr}.stadium-data-card.path{grid-column:1/-1}
  .contracts-main-layout.agency{grid-template-columns:1fr}.contract-side-stack.agency{grid-template-columns:1fr 1fr;display:grid}.infrastructure-grid.luxury{grid-template-columns:1fr 1fr}
  .player-profile-v3{width:calc(100vw - 36px);padding-inline:16px!important}.player-profile-v3-layout{grid-template-columns:250px minmax(0,1fr)!important}.player-profile-v3-middle,.player-profile-v3-bottom{grid-template-columns:1fr!important}.player-dna-panel .radar-chart{width:280px!important}
}
@media(max-width:860px){
  .club-management-nav-v2 .profile-nav-row{min-height:104px!important}
  .finance-bank-kpis,.stadium-premium-kpis,.standings-stat-grid{grid-template-columns:1fr 1fr}.finance-bank-support,.finance-bank-breakdowns,.sponsor-desk,.invest-luxury-grid,.market-luxury-shell{grid-template-columns:1fr}.infrastructure-grid.luxury{grid-template-columns:1fr}.facility-construction-strip{grid-template-columns:1fr}.stadium-boardroom,.stadium-premium-lower{grid-template-columns:1fr}.stadium-data-card.path{grid-column:auto}.stadium-room{min-height:460px}.stadium-room>img{inset:65px 12px 72px 100px;width:calc(100% - 112px);height:calc(100% - 137px)}.stadium-room-copy{width:180px}.stadium-room-footer{grid-template-columns:1fr 1fr 1fr}.sponsor-offer-grid{grid-template-columns:1fr}
  .player-profile-v3-header{grid-template-columns:1fr!important}.player-owner-actions{padding-left:0!important;padding-top:12px;border-left:0;border-top:1px solid rgba(212,169,79,0.1)}.player-profile-v3-layout{grid-template-columns:1fr!important}.player-profile-v3-left .profile-footballer-card{max-width:270px!important}.player-basic-info{grid-template-columns:1fr 1fr!important}.player-profile-v3-top-grid{grid-template-columns:1fr!important}.player-attribute-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:560px){
  .club-management-nav-v2 .goat-management-header,.club-management-nav-v2 .goat-luxury-header,.club-management-nav-v2 .goat-management-body,.club-management-nav-v2 .goat-luxury-body,.club-management-nav-v2 .finance-body{padding-left:16px!important;padding-right:16px!important}.club-management-nav-v2 .finance-hero-clean{padding:22px 16px!important;display:grid;gap:14px}.club-management-nav-v2 .finance-balance-card{min-width:0;width:100%}.club-management-nav-v2 .finance-periods{padding-left:16px!important;padding-right:16px!important;overflow-x:auto}
  .finance-bank-kpis,.stadium-premium-kpis,.standings-stat-grid,.infrastructure-summary.luxury{grid-template-columns:1fr}.finance-bank-support{grid-template-columns:1fr}.finance-commitment-card.bank>div{grid-template-columns:1fr 1fr}.contracts-agency-intro{display:grid}.contract-filter-inputs{grid-template-columns:1fr!important}.contract-side-stack.agency{grid-template-columns:1fr}.facility-invest-visual{height:205px}.facility-invest-metrics{grid-template-columns:1fr}.facility-invest-copy footer{align-items:stretch;flex-direction:column}.stadium-room{min-height:420px}.stadium-room>img{inset:78px 5px 100px 42px;width:calc(100% - 47px);height:calc(100% - 178px)}.stadium-room-copy{left:16px;top:18px;width:170px}.stadium-room-copy h3{font-size:1.35rem}.stadium-room-footer{left:12px;right:12px;bottom:12px;grid-template-columns:1fr}.stadium-room-footer>span:nth-child(3){display:none}.stadium-image-path{grid-template-columns:1fr 1fr}.stadium-full-path-premium>div{grid-template-columns:1fr}.standings-result-row{grid-template-columns:80px minmax(0,1fr) 62px}.standings-result-row em{display:none}.standings-table-luxury{overflow-x:auto}.standings-table-luxury>header,.standings-table-luxury>div{min-width:560px}
  .player-profile-v3{width:100%;padding:62px 10px 24px!important}.player-profile-v3-header{padding:18px!important}.player-profile-v3-identity h2{font-size:1.8rem!important}.player-basic-info{grid-template-columns:1fr!important}.player-profile-v3-top-grid,.player-attribute-grid{grid-template-columns:1fr!important}.player-profile-v3-middle,.player-profile-v3-bottom{grid-template-columns:1fr!important}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-close{left:10px!important;top:10px!important}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-nav{display:none!important}
}

/* ========================================================================== */
/* THE G.O.A.T 3.0A.50.35.12 — professional navigation + player dossier     */
/* Developer Mode only. Reuses production imagery; no generated UI artwork.   */
/* ========================================================================== */

/* Navigation returns to the production capsule style and opens contextual
   sub-navigation exactly like the existing Match menu. */
.club-management-nav-v2 .profile-nav-row{
  min-height:62px!important;
  margin-bottom:18px!important;
  padding:8px 0!important;
  align-items:flex-start!important;
}

/* Make the management pages feel closer to the Objectives page: clearer type,
   fewer hairline labels, and less "spreadsheet" density. */
.club-management-nav-v2 .goat-management-header h2,
.club-management-nav-v2 .goat-luxury-header h2{font-size:2.25rem!important}
.club-management-nav-v2 .goat-management-header p:not(.eyebrow),
.club-management-nav-v2 .goat-luxury-header p:not(.eyebrow){font-size:.92rem!important;line-height:1.55!important}
.club-management-nav-v2 .goat-management-body,
.club-management-nav-v2 .goat-luxury-body{font-size:.84rem}
.club-management-nav-v2 .eyebrow{font-size:.68rem!important}

/* Player dossier: desktop-first full-screen page, not a scroll-heavy modal. */
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){
  padding:0!important;
  align-items:stretch!important;
  justify-content:stretch!important;
  background:#0d0c0a!important;
  overflow:hidden!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-backdrop{display:none!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet{
  width:100vw!important;
  height:100dvh!important;
  max-width:none!important;
  max-height:none!important;
  border:0!important;
  border-radius:0!important;
  background:#0d0c0a!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{
  width:100%!important;
  height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-close{
  position:fixed!important;
  z-index:30!important;
  left:18px!important;
  top:16px!important;
  width:auto!important;
  height:36px!important;
  padding:0 14px!important;
  border:1px solid rgba(212,169,79,0.2)!important;
  border-radius:10px!important;
  background:rgba(13,12,10,0.88)!important;
  color:#fbf7ef!important;
  font-size:.72rem!important;
  font-weight:850!important;
  box-shadow:0 10px 26px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(14px)!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-nav{
  position:fixed!important;
  z-index:30!important;
  top:50%!important;
  width:42px!important;
  height:66px!important;
  border-radius:11px!important;
  background:rgba(13,12,10,0.78)!important;
  border-color:rgba(212,169,79,0.17)!important;
  opacity:.72!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-previous{left:8px!important}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-next{right:8px!important}

.player-profile-v4{
  position:relative;
  box-sizing:border-box;
  width:100%;
  height:100dvh;
  min-height:0;
  padding:58px 56px 18px 62px;
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  grid-template-rows:clamp(160px,18vh,188px) clamp(186px,21vh,220px) minmax(250px,1fr) clamp(118px,14vh,150px);
  gap:12px 14px;
  overflow:hidden;
  color:#fbf7ef;
  background:
    radial-gradient(circle at 72% 8%,rgba(42,34,20,0.2),transparent 28%),
    radial-gradient(circle at 22% 92%,rgba(42,34,20,0.12),transparent 27%),
    linear-gradient(145deg,#0d0c0a 0%,#0d0c0a 54%,#0d0c0a 100%);
}
.player-profile-v4:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.20;
  background:url('/club-profile-bg-v4388.webp') center 35%/cover no-repeat;
  filter:saturate(.65) brightness(.46);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.62),transparent 60%);
}
.player-profile-v4>*{position:relative;z-index:1;min-width:0;min-height:0}

.player-dossier-left{
  grid-column:1;
  grid-row:1 / 5;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:12px;
  min-height:0;
}
.player-dossier-card-wrap{
  display:grid;
  place-items:center;
  min-height:0;
  padding:8px 8px 3px;
  border:1px solid rgba(212,169,79,0.1);
  border-radius:18px;
  background:linear-gradient(145deg,rgba(13,12,10,0.68),rgba(13,12,10,0.62));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 38px rgba(0,0,0,.18);
}
.player-dossier-card-wrap .profile-footballer-card{width:245px!important;max-width:245px!important;margin:0 auto!important}
.player-dossier-facts{
  min-height:0;
  overflow:hidden;
  padding:13px 14px 10px;
  border:1px solid rgba(212,169,79,0.11);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(13,12,10,0.74),rgba(13,12,10,0.76));
}
.player-dossier-facts>header,
.player-dossier-panel>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:26px;
  margin-bottom:8px;
}
.player-dossier-facts>header span,
.player-dossier-panel>header span{
  color:#e5c377;
  font-size:.69rem;
  font-weight:950;
  letter-spacing:.105em;
}
.player-dossier-facts>header b,
.player-dossier-panel>header b{
  color:rgba(217,209,194,0.55);
  font-size:.70rem;
  font-weight:800;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.player-dossier-facts>div{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:12px;
}
.player-dossier-facts p{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
  margin:0;
  padding:9px 1px;
  border-bottom:1px solid rgba(212,169,79,0.075);
}
.player-dossier-facts span{color:rgba(217,209,194,0.55);font-size:.69rem}
.player-dossier-facts strong{color:#fbf7ef;font-size:.78rem;font-weight:800}

.player-dossier-hero{
  grid-column:2;
  grid-row:1;
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px 270px;
  align-items:stretch;
  border:1px solid rgba(212,169,79,0.14);
  border-radius:20px;
  background:linear-gradient(100deg,rgba(13,12,10,0.96),rgba(13,12,10,0.88) 58%,rgba(13,12,10,0.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 24px 56px rgba(0,0,0,.20);
}
.player-dossier-hero-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(13,12,10,0.98) 0%,rgba(13,12,10,0.84) 45%,rgba(13,12,10,0.25) 68%,rgba(13,12,10,0.93) 100%),
    url('/mc-pitch-bg.webp') center 57%/cover no-repeat;
  opacity:.54;
  filter:saturate(.70) contrast(1.06);
}
.player-dossier-identity{
  z-index:2;
  align-self:center;
  padding:20px 24px 18px 28px;
}
.player-dossier-identity>span{
  display:block;
  margin-bottom:4px;
  color:#e5c377;
  font-size:.76rem;
  font-weight:800;
}
.player-dossier-identity h2{
  margin:0;
  color:#fff;
  font-family:var(--display);
  font-size:clamp(2rem,2.9vw,3.35rem);
  line-height:.98;
  letter-spacing:-.045em;
  text-transform:uppercase;
  text-shadow:0 8px 28px rgba(0,0,0,.32);
}
.player-dossier-identity>p{
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0 0;
  color:rgba(251,247,239,0.75);
  font-size:.78rem;
}
.player-dossier-identity>p i{width:1px;height:15px;background:rgba(76,57,21,0.2)}
.player-dossier-flag img{width:23px!important;height:17px!important}
.player-dossier-headline{
  display:flex;
  align-items:stretch;
  gap:0;
  margin-top:10px;
}
.player-dossier-headline>b,
.player-dossier-headline>span{
  min-width:86px;
  padding:0 15px;
  border-left:1px solid rgba(212,169,79,0.14);
  color:#fbf7ef;
  font-size:.88rem;
  font-weight:850;
}
.player-dossier-headline>b{padding-left:0;border-left:0;color:#e5c377;font-size:1.45rem}
.player-dossier-headline small{display:block;margin-bottom:2px;color:rgba(217,209,194,0.48);font-size:.64rem;font-weight:900;letter-spacing:.08em}
.player-dossier-hero-portrait{
  position:relative;
  z-index:1;
  align-self:end;
  justify-self:center;
  width:100%;
  height:118%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 18px 32px rgba(0,0,0,.40));
  mask-image:linear-gradient(180deg,#000 70%,rgba(0,0,0,.96) 86%,transparent 100%);
}
.player-dossier-actions{
  z-index:3;
  align-self:center;
  display:grid;
  gap:8px;
  padding:14px 18px 14px 14px;
  border-left:1px solid rgba(212,169,79,0.12);
}
.player-dossier-actions>span{color:rgba(217,209,194,0.52);font-size:.68rem;font-weight:900;letter-spacing:.10em}
.player-dossier-actions button{
  min-height:38px;
  padding:9px 13px;
  border:1px solid rgba(212,169,79,0.16);
  border-radius:10px;
  background:rgba(13,12,10,0.78);
  color:#fbf7ef;
  font:inherit;
  font-size:.72rem;
  font-weight:850;
  text-align:left;
  cursor:pointer;
}
.player-dossier-actions button.primary{border-color:rgba(212,169,79,0.4);background:linear-gradient(135deg,rgba(42,34,20,0.82),rgba(42,34,20,0.86));color:#fff;box-shadow:0 12px 28px rgba(212,169,79,0.18)}
.player-dossier-actions button.danger{border-color:rgba(255,96,115,.34);color:#ff8e9d;background:rgba(95,22,40,.22)}

.player-dossier-top{
  grid-column:2;
  grid-row:2;
  display:grid;
  grid-template-columns:.92fr 1.02fr 1.15fr 1.15fr;
  gap:12px;
  min-height:0;
}
.player-dossier-panel{
  min-width:0;
  min-height:0;
  overflow:hidden;
  padding:13px 14px;
  border:1px solid rgba(212,169,79,0.12);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(13,12,10,0.8),rgba(13,12,10,0.84));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.player-contract-grid-v4{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px 10px;
}
.player-contract-grid-v4 p{
  min-width:0;
  margin:0;
  padding:7px 8px;
  border-radius:9px;
  background:rgba(23,21,15,0.42);
}
.player-contract-grid-v4 p.wide{grid-column:1 / -1}
.player-contract-grid-v4 span{display:block;color:rgba(217,209,194,0.51);font-size:.60rem}
.player-contract-grid-v4 strong{display:block;margin-top:2px;color:#fbf7ef;font-size:.78rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.player-positions-layout-v4{display:grid;grid-template-columns:minmax(95px,.95fr) minmax(74px,.72fr);gap:10px;height:calc(100% - 34px);min-height:0}
.player-position-pitch-v4{position:relative;min-height:0;height:100%;overflow:hidden;border-radius:10px;background:#174c27;box-shadow:inset 0 0 0 1px rgba(126,207,159,.20)}
.player-position-pitch-v4>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.72;filter:saturate(.80) brightness(.72)}
.player-position-pitch-v4 i{position:absolute;left:var(--pos-x);top:var(--pos-y);width:20px;height:20px;border-radius:50%;transform:translate(-50%,-50%);background:#55dfa6;border:3px solid rgba(4,39,27,.90);box-shadow:0 0 0 2px rgba(89,245,185,.25),0 0 15px rgba(72,225,165,.25)}
.player-position-pitch-v4 i.primary{width:24px;height:24px;background:#5ee3ff;border-color:#073c4a;box-shadow:0 0 0 2px rgba(93,230,255,.34),0 0 18px rgba(74,216,246,.35)}
.player-position-pitch-v4 i b{position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);padding:1px 4px;border-radius:4px;background:rgba(3,12,23,.88);color:#fff;font-size:.60rem;white-space:nowrap}
.player-position-list-v4{display:grid;align-content:start;gap:7px;min-width:0}
.player-position-list-v4 :is(p,button){margin:0;padding:8px 9px;border:1px solid rgba(212,169,79,0.1);border-radius:9px;background:rgba(13,12,10,0.46)}
.player-position-list-v4 :is(p,button).primary{border-color:rgba(212,169,79,0.32);background:linear-gradient(135deg,rgba(42,34,20,0.32),rgba(42,34,20,0.26))}
.player-position-list-v4 strong{display:block;color:#fbf7ef;font-size:.78rem}
.player-position-list-v4 span{display:block;margin-top:1px;color:rgba(217,209,194,0.5);font-size:.56rem}

.player-performance-v4>div{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.player-performance-v4 p{margin:0;padding:7px 7px;border-radius:8px;background:rgba(23,21,15,0.46);text-align:center}
.player-performance-v4 span{display:block;color:rgba(217,209,194,0.5);font-size:.55rem}
.player-performance-v4 strong{display:block;margin-top:2px;color:#fbf7ef;font-size:.84rem}

.player-form-v4{background:linear-gradient(145deg,rgba(13,12,10,0.84),rgba(13,12,10,0.88)),url('/mc-pitch-bg.webp') center/cover no-repeat}
.player-form-match-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.player-form-match{min-width:0;margin:0;padding:6px 5px;border:1px solid rgba(212,169,79,0.11);border-radius:8px;background:rgba(13,12,10,0.72);text-align:center}
.player-form-match:is(button){width:100%;color:inherit;font:inherit;cursor:pointer}.player-form-match:is(button):focus-visible{outline:2px solid #d4a94f;outline-offset:2px}
.player-form-match>span,.player-form-match>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(217,209,194,0.51);font-size:.60rem}
.player-form-match>strong{display:block;margin:2px 0;color:#fbf7ef;font-size:.76rem}
.player-form-match.great>strong{color:#75efbc}.player-form-match.good>strong{color:#e5c377}.player-form-match.poor>strong{color:#ff8997}
.player-form-v4 .player-form-chart-wrap{margin-top:6px!important;padding-left:22px!important}
.player-form-v4 .player-form-chart{height:88px!important}
.player-form-v4 .player-form-scale{font-size:.44rem!important}
.player-form-v4 .player-form-empty,.player-dossier-empty{display:grid;place-items:center;min-height:80px;color:rgba(217,209,194,0.55);font-size:.70rem;text-align:center}

.player-dossier-analytics{
  grid-column:2;
  grid-row:3;
  display:grid;
  grid-template-columns:minmax(0,2.25fr) 270px 250px;
  gap:12px;
  min-height:0;
}
.player-attributes-v4{padding:13px 14px 11px}
.player-attribute-grid-v4{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;height:calc(100% - 34px);min-height:0}
.player-attribute-column{min-width:0;overflow:hidden;padding:9px 9px 7px;border:1px solid rgba(212,169,79,0.09);border-radius:10px;background:rgba(13,12,10,0.43)}
.player-attribute-column>header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:5px}
.player-attribute-column>header span{color:rgba(251,247,239,0.74);font-size:.66rem;font-weight:950;letter-spacing:.04em}
.player-attribute-column>header strong{font-size:.91rem;color:#79e9bd}
.player-attribute-column.stat-medium>header strong{color:#f4d66a}.player-attribute-column.stat-low>header strong{color:#ff8291}.player-attribute-column.stat-elite>header strong{color:#a78bff}
.player-attribute-line{height:3px;margin-bottom:7px;border-radius:99px;background:rgba(76,57,21,0.12);overflow:hidden}
.player-attribute-line i{display:block;width:var(--attribute-value);height:100%;border-radius:inherit;background:linear-gradient(90deg,#4c3915,#64e6a9)}
.player-attribute-column ul{display:grid;gap:4px;margin:0;padding:0;list-style:none}
.player-attribute-column li{display:flex;justify-content:space-between;gap:5px;color:rgba(217,209,194,0.65);font-size:.66rem;line-height:1.22}
.player-attribute-column li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-attribute-column li b{color:#fbf7ef;font-size:.67rem}

.player-dna-v4{display:grid;grid-template-rows:auto minmax(0,1fr);place-items:center}
.player-dna-v4>header{width:100%}
.player-dna-v4 .player-radar{width:min(100%,230px);height:100%;max-height:235px}
.player-dna-v4 .player-radar text{font-size:9px!important}
.player-status-v4>div{display:grid;gap:0}
.player-status-v4 p{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:10px 2px;border-bottom:1px solid rgba(212,169,79,0.08)}
.player-status-v4 p:last-child{border-bottom:0}
.player-status-v4 span{color:rgba(217,209,194,0.55);font-size:.68rem}
.player-status-v4 strong{color:#fbf7ef;font-size:.75rem}

.player-career-v4{grid-column:2;grid-row:4;padding:10px 14px}
.player-career-v4>header{margin-bottom:4px}
.player-career-table-v4{height:calc(100% - 28px);overflow:hidden}
.player-career-table-v4 table{width:100%;border-collapse:collapse;table-layout:fixed}
.player-career-table-v4 th{padding:4px 7px;border-bottom:1px solid rgba(212,169,79,0.11);color:rgba(217,209,194,0.48);font-size:.64rem;font-weight:900;text-align:left;text-transform:uppercase}
.player-career-table-v4 td{padding:4px 7px;border-bottom:1px solid rgba(212,169,79,0.06);color:rgba(251,247,239,0.8);font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.player-career-table-v4 th:nth-child(n+4),.player-career-table-v4 td:nth-child(n+4){text-align:center}
.player-career-table-v4 :is(th:nth-child(n+4),td.career-stat){text-align:center}
.player-career-table-v4 tr.total td{color:#fff;font-weight:900;border-top:1px solid rgba(212,169,79,0.16);border-bottom:0}

/* Contracts: never crop heads; portraits use contain-safe framing. */
.contract-player-cell.agency .portrait,
.contract-portrait-frame{overflow:hidden!important;background:radial-gradient(circle at 50% 34%,rgba(48,95,139,.38),rgba(7,18,35,.94))!important}
.contract-player-cell.agency .portrait img,
.contract-portrait-frame img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important}
.contract-detail-panel.agency,.contract-table-panel.agency{font-size:.82rem}
.contract-time-left{font-size:.72rem!important}

/* Existing real facility/stadium artwork gets more visual weight. */
.facility-invest-visual{height:245px!important}
.facility-invest-visual img{filter:saturate(.92) contrast(1.04) brightness(.91)!important;transform:scale(1.012)}
.facility-invest-card:hover .facility-invest-visual img{transform:scale(1.035)}
.stadium-room{min-height:590px!important}
.stadium-room>img{filter:saturate(.90) contrast(1.05) brightness(.88)!important}

@media (max-height:879px) and (min-width:1280px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:auto!important}
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:auto!important;min-height:100dvh!important;overflow:visible!important}
  .player-profile-v4{height:auto;min-height:980px;overflow:visible;grid-template-rows:175px 210px 330px 145px}
}
@media (max-width:1420px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:auto!important}
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:auto!important;min-height:100dvh!important;overflow:visible!important}
  .player-profile-v4{height:auto;min-height:100dvh;overflow:visible;grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto auto auto auto;padding:58px 34px 24px 48px}
  .player-dossier-left{grid-row:1 / 5}.player-dossier-card-wrap .profile-footballer-card{width:220px!important;max-width:220px!important}
  .player-dossier-hero{grid-template-columns:minmax(0,1fr) 220px 230px}
  .player-dossier-top{grid-template-columns:1fr 1fr}.player-dossier-analytics{grid-template-columns:1fr 250px}.player-status-v4{grid-column:1 / -1}.player-attribute-grid-v4{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px){
  .player-profile-v4{grid-template-columns:1fr;padding:58px 16px 24px}.player-dossier-left,.player-dossier-hero,.player-dossier-top,.player-dossier-analytics,.player-career-v4{grid-column:1;grid-row:auto}.player-dossier-left{grid-template-columns:240px minmax(0,1fr);grid-template-rows:auto}.player-dossier-hero{grid-template-columns:1fr 220px}.player-dossier-actions{grid-column:1 / -1;grid-template-columns:repeat(3,1fr);border-left:0;border-top:1px solid rgba(212,169,79,0.12)}.player-dossier-top{grid-template-columns:1fr 1fr}.player-dossier-analytics{grid-template-columns:1fr}.player-attribute-grid-v4{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:620px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-nav{display:none!important}.player-profile-v4{padding:58px 10px 20px}.player-dossier-left{grid-template-columns:1fr}.player-dossier-card-wrap .profile-footballer-card{width:250px!important;max-width:250px!important}.player-dossier-facts>div{grid-template-columns:1fr}.player-dossier-hero{grid-template-columns:1fr}.player-dossier-hero-portrait{display:none}.player-dossier-actions{grid-template-columns:1fr}.player-dossier-top{grid-template-columns:1fr}.player-attribute-grid-v4{grid-template-columns:1fr 1fr}.player-dossier-analytics{grid-template-columns:1fr}.player-career-table-v4{overflow-x:auto}.player-career-table-v4 table{min-width:620px}
}

/* ========================================================================== */
/* 3.0A.50.35.13 — professional management polish                           */
/* ========================================================================== */

/* FINANCES — image-led private banking, readable charts, no robotic captions */
.club-management-nav-v2 .finance-hero-clean{min-height:148px;padding:26px 30px!important;gap:26px;background:linear-gradient(105deg,rgba(13,12,10,0.98),rgba(13,12,10,0.94))}
.club-management-nav-v2 .finance-hero-clean .eyebrow{color:#e5c377;font-size:.65rem}
.club-management-nav-v2 .finance-hero-clean h2{font-size:2.35rem}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank{position:relative;isolation:isolate;overflow:hidden;min-width:390px;min-height:102px;display:grid;align-content:center;padding:18px 24px;border-color:rgba(186,166,129,.28);background:#0d0c0a;box-shadow:0 16px 40px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.05)}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank:after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.96) 0%,rgba(13,12,10,0.82) 48%,rgba(13,12,10,0.28) 100%)}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank span{font-size:.66rem;color:#d4c49f}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank strong{font-size:2.35rem;text-shadow:0 8px 24px rgba(0,0,0,.4)}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank small:empty{display:none}
.finance-bank-kpis-v2{gap:14px}
.finance-bank-kpis-v2 article{min-height:112px;overflow:hidden;display:flex;align-items:flex-end;padding:0;border-radius:15px;background:#0d0c0a}
.finance-bank-kpis-v2 article:before{display:none}
.finance-bank-kpis-v2 article>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.72) contrast(1.08) brightness(.44);opacity:.72;transform:scale(1.03)}
.finance-bank-kpis-v2 article:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.94),rgba(13,12,10,0.68) 66%,rgba(13,12,10,0.2))}
.finance-bank-kpis-v2 article>div{position:relative;z-index:2;width:100%;padding:17px 19px}
.finance-bank-kpis-v2 span{font-size:.67rem;color:rgba(251,247,239,0.72)}
.finance-bank-kpis-v2 strong{margin-top:6px;font-size:1.6rem}
.finance-bank-kpis-v2 .income{border-color:rgba(70,216,165,.26)}.finance-bank-kpis-v2 .expense{border-color:rgba(255,98,122,.25)}.finance-bank-kpis-v2 .net{border-color:rgba(212,169,79,0.25)}.finance-bank-kpis-v2 .commitment{border-color:rgba(212,169,79,0.24)}
.finance-bank-main-v2{grid-template-columns:minmax(0,1.7fr) minmax(400px,.72fr);align-items:stretch}
.finance-bank-main-v2 .finance-cashflow-card{min-height:410px;overflow:hidden;padding:19px 20px}
.finance-cashflow-v2>header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:8px}
.finance-cashflow-v2>header strong{display:block;margin-top:3px;font-size:1.08rem;color:#fbf7ef}
.finance-chart-filters{display:flex;gap:4px;padding:3px;border:1px solid rgba(212,169,79,0.12);border-radius:9px;background:rgba(13,12,10,0.45)}
.finance-chart-filters button{min-width:39px;height:28px;border:0;border-radius:7px;background:transparent;color:rgba(217,209,194,0.58);font:700 .66rem var(--body);cursor:pointer}
.finance-chart-filters button.active{background:#17150f;color:#e5c377;box-shadow:inset 0 0 0 1px rgba(212,169,79,0.22)}
.finance-cashflow-v2 .finance-cashflow-chart{box-sizing:border-box;width:100%;min-height:325px;padding:8px 0 0;overflow:hidden}
.finance-cashflow-v2 .finance-cashflow-chart svg{display:block;width:100%!important;height:285px!important;max-width:100%;overflow:visible}
.finance-cashflow-v2 .finance-grid-line{stroke:rgba(217,209,194,0.1);stroke-width:1;vector-effect:non-scaling-stroke}
.finance-cashflow-v2 .finance-y-label{fill:rgba(217,209,194,0.55);font:600 10px var(--body)}
.finance-cashflow-v2 .finance-chart-line{stroke:#e5c377;stroke-width:3;fill:none;vector-effect:non-scaling-stroke}.finance-cashflow-v2 .finance-chart-area{fill:url('#financeAreaGradient2')}.finance-cashflow-v2 circle{fill:#1a1207;stroke:#e5c377;stroke-width:2;vector-effect:non-scaling-stroke}
.finance-cashflow-v2 .finance-chart-labels{padding-left:76px;padding-right:18px;display:grid;grid-template-columns:repeat(3,1fr)}.finance-cashflow-v2 .finance-chart-labels span:nth-child(2){text-align:center}.finance-cashflow-v2 .finance-chart-labels span:last-child{text-align:right}
.finance-bank-breakdowns{gap:12px}.finance-bank-breakdowns .finance-donut-card{min-height:199px;padding:15px 16px}.finance-donut-card header{margin-bottom:10px!important}
.finance-donut-layout{display:grid;grid-template-columns:126px minmax(0,1fr);gap:14px;align-items:center}
.finance-donut{width:124px;height:124px;border-radius:50%;background:var(--donut);display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.finance-donut:before{content:"";grid-area:1/1;width:82px;height:82px;border-radius:50%;background:#0d0c0a;box-shadow:inset 0 0 0 1px rgba(212,169,79,0.1)}
.finance-donut>div{grid-area:1/1;z-index:1;text-align:center}.finance-donut>div strong{display:block;color:#fff;font-size:.9rem}.finance-donut>div small{display:block;margin-top:2px;color:rgba(217,209,194,0.48);font-size:.55rem}
.finance-donut-legend{display:grid;align-content:center}.finance-donut-legend p{display:grid!important;grid-template-columns:8px minmax(0,1fr) auto 32px!important;align-items:center;gap:6px;padding:5px 0!important;margin:0!important;border-bottom:1px solid rgba(212,169,79,0.06)}.finance-donut-legend p>i{width:7px;height:7px;border-radius:50%;background:var(--breakdown-color)}.finance-donut-legend p span,.finance-donut-legend p b{font-size:.65rem!important}.finance-donut-legend p em{font-size:.57rem!important}
.finance-bank-support-v2{grid-template-columns:1fr;margin-top:14px}.finance-commitment-card.bank{padding:17px 20px}.finance-commitment-card.bank header{margin-bottom:9px}.finance-commitment-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px!important}.finance-commitment-list p{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;grid-template-rows:auto auto;align-items:center;column-gap:10px;margin:0!important;padding:9px 11px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:11px;background:rgba(13,12,10,0.52)}.finance-commitment-list p>img{grid-row:1/3;width:40px;height:40px;border-radius:9px;object-fit:cover;background:rgba(23,21,15,0.72)}.finance-commitment-list p>span{display:grid!important;gap:2px}.finance-commitment-list p>span b{font-size:.7rem;color:#fbf7ef}.finance-commitment-list p>span small{margin:0!important;font-size:.55rem;color:rgba(217,209,194,0.5)}.finance-commitment-list p>strong{font-size:.74rem!important}.finance-commitment-list p>em{grid-column:3;font-style:normal;color:#e5c377;font-size:.62rem;font-weight:850;text-align:right}
.finance-ledger-card.bank{font-family:var(--body);margin-top:14px}.finance-ledger-card.bank header{padding:16px 20px}.finance-ledger-card.bank header span{font-size:.66rem;letter-spacing:.09em}.finance-ledger-card.bank header small{font-size:.64rem}.finance-ledger-card.bank th{font-family:var(--body);font-size:.61rem;letter-spacing:.045em;text-transform:none;color:rgba(217,209,194,0.6)}.finance-ledger-card.bank td{font-family:var(--body);font-size:.73rem;line-height:1.3}

/* CONTRACTS — cleaner agency desk, image-led KPIs and coherent time/status rules */
.contracts-agency-intro{display:none!important}
.contracts-kpi-v2{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important;margin-bottom:14px}.contracts-kpi-v2 article{position:relative;overflow:hidden;min-height:104px!important;display:flex;align-items:flex-end;padding:0!important;border-color:rgba(212,169,79,0.14)!important}.contracts-kpi-v2 article>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:85% bottom;filter:saturate(.75) brightness(.6);opacity:.86;background:radial-gradient(circle at 80% 35%,rgba(42,34,20,0.34),transparent 53%)}.contracts-kpi-v2 article:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.98),rgba(13,12,10,0.72) 60%,rgba(13,12,10,0.12))}.contracts-kpi-v2 article>div{position:relative;z-index:2;padding:16px 18px;width:100%}.contracts-kpi-v2 span{font-size:.66rem!important;color:rgba(251,247,239,0.66)!important}.contracts-kpi-v2 strong{display:block;margin-top:5px;font-size:1.5rem!important;color:#fbf7ef!important}
.contract-toolbar.agency{padding:12px 14px}.contract-toolbar.agency .contract-filter-tabs button{min-height:36px;padding:8px 12px;font-family:var(--body);font-size:.65rem;font-weight:750;letter-spacing:.015em;text-transform:none}.contract-filter-inputs label>span{font-family:var(--body);font-size:.62rem;font-weight:700;letter-spacing:0;text-transform:none;color:rgba(217,209,194,0.62)}.contract-toolbar.agency .contract-filter-inputs input,.contract-toolbar.agency .contract-filter-inputs select{font-family:var(--body);font-size:.72rem;font-weight:600;color:#fbf7ef}
.contract-table-panel.agency table{min-width:1070px}.contract-table-panel.agency td{padding:8px 10px;font-family:var(--body);font-size:.7rem}.contract-table-panel.agency tbody tr{height:70px}.contract-player-cell.agency{gap:15px!important;min-width:205px}.contract-player-cell.agency .portrait{width:58px!important;height:58px!important;flex:0 0 58px!important}.contract-player-cell.agency .portrait img{object-fit:contain!important;object-position:center bottom!important;padding-top:3px;box-sizing:border-box}.contract-player-cell.agency .copy{display:block;padding-left:2px;min-width:0}.contract-player-cell.agency .copy strong{font-size:.75rem}.contract-player-cell.agency .copy small b{color:var(--rarity);font-weight:850}.contract-row-menu{display:none!important}.contract-row-cta.agency{min-width:66px;height:31px;font-size:.64rem}.contract-time-left{white-space:nowrap}.contract-time-healthy{color:#6be3ad!important}.contract-time-warning{color:#ffc75a!important}.contract-time-critical{color:#ff7485!important}
.contracts-main-layout.agency{grid-template-columns:minmax(0,1fr) 385px}.contract-detail-panel.contract-detail-v2{box-sizing:border-box;overflow:hidden;padding:14px!important}.contract-player-hero.agency{position:relative;display:grid!important;grid-template-columns:118px minmax(0,1fr) 74px!important;gap:13px!important;min-height:126px!important;padding:0 0 13px!important;align-items:center!important}.contract-portrait-frame{width:118px!important;height:126px!important;border-radius:12px!important}.contract-portrait-frame img{object-fit:contain!important;object-position:center bottom!important}.contract-hero-copy{min-width:0!important;align-self:center}.contract-hero-copy h3{margin:0 0 6px!important;font-size:1.17rem!important;line-height:1.05!important}.contract-role-row,.contract-country-row{display:flex!important;align-items:center!important;gap:6px!important;margin:4px 0!important;color:rgba(251,247,239,0.66)!important;font-size:.68rem!important}.contract-role-row strong{color:#e5c377}.contract-country-row b{font-size:1rem}.contract-hero-score{position:static!important;align-self:center!important;width:64px!important;height:64px!important;border-radius:50%!important;display:grid!important;place-items:center!important;align-content:center!important;border:2px solid #d4a94f!important;background:rgba(13,12,10,0.8)!important}.contract-hero-score b{display:block!important;margin:0!important;line-height:1!important;font-size:1.45rem!important;text-align:center!important}.contract-hero-score span{display:block!important;margin-top:2px!important;font-size:.5rem!important;text-align:center!important}
.contract-detail-grid-v2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:8px!important}.contract-detail-grid-v2>p{position:relative;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;column-gap:8px!important;min-height:58px!important;margin:0!important;padding:9px 10px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:10px!important;background:rgba(13,12,10,0.5)!important}.contract-detail-grid-v2>p>img{grid-row:1/4;width:28px;height:28px;align-self:center;object-fit:contain;opacity:.84}.contract-detail-grid-v2>p>span{font-size:.55rem!important;letter-spacing:.035em!important}.contract-detail-grid-v2>p>strong{font-size:.76rem!important;margin-top:1px}.contract-detail-grid-v2>p>em{font-style:normal;font-size:.58rem;font-weight:800}.contract-detail-grid-v2 .contract-loyalty-line{grid-column:2;width:100%!important;margin-top:4px!important}.contract-homegrown-compact{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:7px 0;padding:8px 10px;border:1px solid rgba(212,169,79,0.09);border-radius:9px;background:rgba(13,12,10,0.43)}.contract-homegrown-compact span{font-size:.56rem;font-weight:850;color:rgba(217,209,194,0.55)}.contract-homegrown-compact strong{font-size:.62rem;color:rgba(251,247,239,0.72)}.contract-homegrown-compact.active{border-color:rgba(97,219,169,.22)}.contract-homegrown-compact.active span{color:#68dfac}
.contract-detail-v2 .renewal-outlook{margin-top:7px!important;padding:9px 10px!important}.contract-detail-v2 .renewal-outlook p{font-size:.62rem!important;line-height:1.3!important}.contract-expectation-grid.agency{gap:7px!important;margin-top:7px!important}.contract-expectation-grid.agency p{padding:9px 10px!important}.contract-expectation-grid.agency strong{font-size:.75rem!important}.contract-primary-cta.agency,.contract-negotiation-box.agency button{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-height:38px!important;margin-top:8px!important}.contract-review-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:8px}.contract-review-actions button{min-width:0;height:31px;border:1px solid rgba(212,169,79,0.15);border-radius:8px;background:rgba(13,12,10,0.7);color:#fbf7ef;font:700 .58rem var(--body);cursor:pointer}.contract-review-actions button.danger{color:#ff8593;border-color:rgba(255,105,123,.24)}.contract-review-actions button:disabled{opacity:.38;cursor:not-allowed}.contract-urgent-panel.agency>button{grid-template-columns:34px minmax(0,1fr) auto!important;gap:8px!important}.contract-urgent-panel.agency>button>img{width:32px;height:34px;object-fit:contain;object-position:center bottom;border-radius:7px;background:rgba(23,21,15,0.54)}

/* FACILITIES — remove portfolio/balance blocks and clean the investment cards */
.infrastructure-summary-v2{grid-template-columns:1fr 1fr!important;gap:14px!important;margin-bottom:14px}.infrastructure-summary-v2 article{position:relative;overflow:hidden;min-height:104px!important;display:flex!important;align-items:flex-end!important;padding:0!important}.infrastructure-summary-v2 article>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.75) brightness(.5);opacity:.72}.infrastructure-summary-v2 article:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.96),rgba(13,12,10,0.52))}.infrastructure-summary-v2 article>div{position:relative;z-index:1;padding:17px 19px}.infrastructure-summary-v2 span{font-size:.67rem!important}.infrastructure-summary-v2 strong{display:block;margin-top:5px;font-size:1.45rem!important}
.infrastructure-grid-v2{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.facility-invest-card-v2{overflow:hidden;border-radius:16px!important;background:linear-gradient(145deg,rgba(13,12,10,0.84),rgba(13,12,10,0.9))!important}.facility-invest-card-v2 .facility-invest-visual{height:225px!important;border-bottom:1px solid rgba(212,169,79,0.1)}.facility-invest-card-v2 .facility-invest-copy{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:15px 17px 16px!important}.facility-invest-card-v2 .facility-invest-copy header{margin:0!important}.facility-invest-card-v2 .facility-invest-copy header h3{font-size:1rem!important;line-height:1.15!important}.facility-invest-card-v2 .facility-invest-copy>p{margin:0;min-height:0!important;font-size:.71rem!important;line-height:1.45!important;color:rgba(217,209,194,0.62)!important}.facility-invest-card-v2 .facility-invest-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important}.facility-invest-card-v2 .facility-invest-metrics>span{min-width:0;padding:9px 10px!important;border:1px solid rgba(212,169,79,0.09)!important;border-radius:9px!important;background:rgba(13,12,10,0.44)!important}.facility-invest-card-v2 .facility-invest-metrics small{font-size:.56rem!important;white-space:normal}.facility-invest-card-v2 .facility-invest-metrics strong{display:block;margin-top:3px;font-size:.73rem!important;white-space:normal!important}.facility-invest-card-v2 footer{display:flex!important;justify-content:flex-end!important;margin:0!important;padding:0!important;border:0!important}.facility-invest-card-v2 footer button{width:190px!important;min-height:38px!important;font-size:.66rem!important}.facility-construction-strip{margin-bottom:14px}

/* STADIUM — guarantee supplied imagery has the room, clearer development board */
.stadium-premium-kpis-v2{gap:14px}.stadium-premium-kpis-v2 article{position:relative;overflow:hidden;min-height:108px;padding:0!important;display:flex;align-items:flex-end}.stadium-premium-kpis-v2 article>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.78) contrast(1.04) brightness(.48);opacity:.76}.stadium-premium-kpis-v2 article.attendance>img{object-fit:contain;object-position:82% center;padding:15px;box-sizing:border-box;filter:none;opacity:.44}.stadium-premium-kpis-v2 article:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.96),rgba(13,12,10,0.54) 70%,rgba(13,12,10,0.15))}.stadium-premium-kpis-v2 article>div{position:relative;z-index:1;padding:16px 18px}.stadium-premium-kpis-v2 span{font-size:.66rem!important;color:rgba(251,247,239,0.68)!important}.stadium-premium-kpis-v2 strong{font-size:1.5rem!important;margin-top:5px!important}
.stadium-premium-stage-v2{grid-template-columns:minmax(0,1.72fr) 380px!important}.stadium-room{min-height:570px!important;background:linear-gradient(145deg,#0d0c0a,#0d0c0a)!important}.stadium-room>img{inset:20px 18px 66px 145px!important;width:calc(100% - 163px)!important;height:calc(100% - 86px)!important;object-fit:contain!important;object-position:center!important;opacity:1!important;filter:saturate(.95) contrast(1.05) brightness(.96)!important}.stadium-room-copy{z-index:3!important;width:205px!important}.stadium-room-copy p{display:flex;align-items:center;gap:7px}.stadium-country-flag{font-size:1.1rem}.stadium-room-footer{grid-template-columns:1fr 1fr!important;right:18px!important;left:18px!important}.stadium-boardroom-v2{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-content:start}
.stadium-fan-card,.stadium-readiness-card{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:13px;padding:14px 15px;border:1px solid rgba(212,169,79,0.13);border-radius:13px;background:linear-gradient(145deg,rgba(13,12,10,0.8),rgba(13,12,10,0.9))}.stadium-fan-card>span,.stadium-readiness-card>span{grid-column:1/-1;margin-bottom:8px;font-size:.62rem;font-weight:900;letter-spacing:.09em;color:rgba(217,209,194,0.6)}.stadium-fan-card>div:last-child,.stadium-readiness-card>div:last-child{display:grid;align-content:center}.stadium-fan-card strong,.stadium-readiness-card>div:last-child strong{font-size:.92rem;color:#fbf7ef}.stadium-fan-card small,.stadium-readiness-card small{display:block;margin-top:3px;font-size:.62rem;line-height:1.32;color:rgba(217,209,194,0.52)}
.stadium-demand-visual{display:grid;grid-template-columns:54px 1fr;align-items:end;gap:7px}.stadium-demand-visual>img{width:52px;height:52px;object-fit:contain;opacity:.8}.stadium-demand-visual>div{height:44px;display:flex;align-items:flex-end;gap:4px}.stadium-demand-visual i{display:block;width:7px;height:calc(var(--bar) * 9px);border-radius:3px 3px 1px 1px;background:rgba(76,57,21,0.18)}.stadium-demand-visual.low i.on{background:#ff6677}.stadium-demand-visual.medium i.on{background:#f6bf55}.stadium-demand-visual.high i.on{background:#55dfa0}
.stadium-readiness-card{grid-template-columns:80px minmax(0,1fr)}.stadium-readiness-ring{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#4c3915 0 var(--readiness),rgba(76,57,21,0.14) var(--readiness) 100%)}.stadium-readiness-ring:before{content:"";grid-area:1/1;width:54px;height:54px;border-radius:50%;background:#0d0c0a}.stadium-readiness-ring strong{grid-area:1/1;z-index:1;font-size:.9rem;color:#fff}
.stadium-level-board-v2{padding:15px 16px!important}.stadium-level-board-v2>span{font-size:.66rem!important}.stadium-level-board-v2>div>strong{font-size:1.1rem!important}.stadium-level-board-v2>div>small{font-size:.66rem!important}.stadium-level-board-v2>section{gap:8px!important}.stadium-level-board-v2>section p{padding:10px 11px!important}.stadium-level-board-v2>section p span{font-size:.62rem!important}.stadium-level-board-v2>section p b{font-size:.83rem!important}.stadium-level-board-v2 button{min-height:40px!important;font-size:.68rem!important}.stadium-level-board-v2>small{display:none!important}
.stadium-revenue-layout{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px;padding:9px 4px}.stadium-revenue-donut{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#4c3915 0 var(--stadium-revenue-angle),rgba(76,57,21,0.13) var(--stadium-revenue-angle) 360deg)}.stadium-revenue-donut:before{content:"";grid-area:1/1;width:96px;height:96px;border-radius:50%;background:#0d0c0a}.stadium-revenue-donut>div{grid-area:1/1;z-index:1;text-align:center}.stadium-revenue-donut strong{display:block;color:#fff;font-size:.9rem}.stadium-revenue-donut small{display:block;margin-top:3px;color:rgba(217,209,194,0.5);font-size:.56rem}.stadium-revenue-layout>p{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;margin:0;padding:12px;border-top:1px solid rgba(212,169,79,0.1);border-bottom:1px solid rgba(212,169,79,0.1)}.stadium-revenue-layout p span{font-size:.67rem}.stadium-revenue-layout p strong{font-size:.72rem}.stadium-revenue-layout p em{font-style:normal;color:#e5c377;font-size:.63rem;font-weight:850}.stadium-data-card.revenue>header{min-height:25px}.stadium-data-card.path>header{min-height:25px}
.stadium-data-card.premium.revenue{
  display:grid;
  place-items:center;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
.stadium-data-card.revenue .stadium-revenue-layout{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  padding:0;
}

/* PLAYER DOSSIER — one desktop viewport, squad-photo header, colored data */
@media (min-width:1280px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:hidden!important}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:100dvh!important;min-height:0!important;overflow:hidden!important}
  .player-profile-v4{height:100dvh!important;min-height:0!important;overflow:hidden!important;padding:48px 38px 10px 48px!important;grid-template-columns:225px minmax(0,1fr)!important;grid-template-rows:136px 174px minmax(226px,1fr) 96px!important;gap:8px 10px!important}
  .player-dossier-left{grid-row:1/5!important;gap:8px!important}.player-dossier-card-wrap .profile-footballer-card{width:205px!important;max-width:205px!important}.player-dossier-facts{padding:9px 10px 7px!important}.player-dossier-facts p{padding:5px 1px!important}.player-dossier-facts span{font-size:.61rem!important}.player-dossier-facts strong{font-size:.69rem!important}
  .player-dossier-hero{grid-template-columns:minmax(0,1fr) 230px!important}.player-dossier-identity{padding:13px 18px 12px 20px!important}.player-dossier-identity h2{font-size:2.05rem!important}.player-dossier-identity>span,.player-dossier-identity>p{font-size:.68rem!important}.player-dossier-headline{margin-top:9px!important}.player-dossier-headline>b,.player-dossier-headline>span{min-width:66px!important;padding:0 9px!important;font-size:.72rem!important}.player-dossier-headline>b{font-size:1.15rem!important}.player-dossier-headline small{font-size:.52rem!important}.player-dossier-actions{padding:10px 12px!important;gap:5px!important}.player-dossier-actions>span{font-size:.56rem!important}.player-dossier-actions button{min-height:29px!important;padding:6px 9px!important;font-size:.62rem!important}
  .player-dossier-top{gap:8px!important}.player-dossier-panel{padding:9px 10px!important}.player-dossier-panel>header,.player-dossier-facts>header{min-height:20px!important;margin-bottom:5px!important}.player-dossier-panel>header span,.player-dossier-facts>header span{font-size:.59rem!important}.player-dossier-panel>header b{font-size:.57rem!important}
  .player-positions-layout-v4{grid-template-columns:minmax(110px,1.05fr) minmax(92px,.75fr)!important;gap:7px!important}.player-position-pitch-v4{min-height:120px!important}.player-position-list-v4{gap:4px!important}.player-position-list-v4 :is(p,button){display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-height:24px!important;padding:3px 7px!important;text-align:center}.player-position-list-v4 strong{font-size:.65rem!important;line-height:1!important}.player-position-list-v4 span{margin:0!important;font-size:.58rem!important}.player-position-list-v4 em{font-style:normal;font-size:.57rem;font-weight:800}.player-position-list-v4 .primary em{color:#64dfa8}.player-position-list-v4 .secondary em{color:#f1c45c}
  .player-performance-v4>div{gap:4px!important}.player-performance-v4 p{padding:4px 5px!important}.player-performance-v4 span{font-size:.49rem!important}.player-performance-v4 strong{font-size:.7rem!important}.player-performance-tabs{display:flex;gap:3px}.player-performance-tabs button{height:22px;padding:0 6px;border:1px solid rgba(212,169,79,0.11);border-radius:6px;background:rgba(13,12,10,0.58);color:rgba(217,209,194,0.54);font:700 .5rem var(--body);cursor:pointer}.player-performance-tabs button.active{color:#e5c377;border-color:rgba(212,169,79,0.28);background:rgba(42,34,20,0.35)}
  .player-form-match-strip{gap:3px!important}.player-form-match{padding:3px 3px!important}.player-form-match>span,.player-form-match>small{font-size:.49rem!important}.player-form-match>strong{margin:1px 0!important;font-size:.66rem!important}.player-form-v4 .player-form-chart{height:75px!important}.player-form-v4 .player-form-chart-wrap{margin-top:3px!important;padding-left:0!important}
  .player-dossier-analytics{grid-template-columns:minmax(0,2.35fr) 220px 205px!important;gap:8px!important}.player-attributes-v4{padding:8px 9px!important}.player-attribute-grid-v4{gap:5px!important;height:calc(100% - 24px)!important}.player-attribute-group{min-width:0;padding:6px 6px 4px;border:1px solid rgba(212,169,79,0.09);border-radius:8px;background:rgba(13,12,10,0.48)}.player-attribute-group .attribute-heading{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:4px}.player-attribute-group .attribute-heading strong{font-size:.61rem}.player-attribute-group .attribute-score{font-size:.72rem}.player-attribute-group ul{display:grid;gap:2px;margin:0;padding:0;list-style:none}.player-attribute-group li{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 2px;gap:1px 4px;align-items:center;font-size:.54rem;color:rgba(217,209,194,0.64)}.player-attribute-group li span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-attribute-group li b{font-size:.55rem}.player-attribute-group li>i{grid-column:1/3;height:2px;border-radius:99px;background:rgba(76,57,21,0.11);overflow:hidden}.player-attribute-group li>i em{display:block;height:100%;border-radius:99px}.player-attribute-group li>i em.stat-low{background:#ff6678}.player-attribute-group li>i em.stat-medium{background:#f0c45e}.player-attribute-group li>i em.stat-high,.player-attribute-group li>i em.stat-elite{background:#57de9e}
  .player-dna-v4 .player-radar{max-height:195px!important}.player-status-v4 p{padding:7px 1px!important}.player-status-v4 span{font-size:.6rem!important}.player-status-v4 strong{font-size:.67rem!important}.player-career-v4{padding:7px 10px!important}.player-career-v4>header{margin-bottom:2px!important}.player-career-table-v4 th,.player-career-table-v4 td{padding:2px 6px!important;font-size:.57rem!important}
}
.player-dossier-card-wrap{border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;padding:0!important}
.player-dossier-hero{isolation:isolate;align-items:center!important}.player-squad-photo{position:absolute;z-index:0;inset:0;overflow:hidden;background:linear-gradient(110deg,#0d0c0a,#17150f 60%,#0d0c0a)}.player-squad-photo:before{content:"";position:absolute;inset:0;background:url('/club-profile-bg-v4388.webp') center 35%/cover no-repeat;opacity:.38;filter:blur(2px) saturate(.65)}.player-squad-photo img{position:absolute;bottom:-16%;left:calc(37% + var(--squad-index) * 9%);width:24%;height:125%;object-fit:contain;object-position:center bottom;transform:translateX(-50%);filter:blur(1.7px) saturate(.62) brightness(.58);opacity:.7}.player-squad-photo img:nth-of-type(2n){bottom:-20%}.player-dossier-hero-overlay{position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,rgba(13,12,10,0.98) 0%,rgba(13,12,10,0.78) 48%,rgba(13,12,10,0.48) 70%,rgba(13,12,10,0.92) 100%)}.player-dossier-identity,.player-dossier-actions{position:relative;z-index:2}.player-dossier-identity{align-self:center!important;overflow:visible!important}.player-dossier-actions{align-self:stretch!important;align-content:center!important}.player-dossier-hero-portrait,.player-dossier-hero-bg{display:none!important}
.player-rarity-value{color:var(--rarity)!important;text-shadow:0 0 14px color-mix(in srgb,var(--rarity),transparent 65%)}.player-dossier-facts strong.stat-low{color:#ff6e7f!important}.player-dossier-facts strong.stat-medium{color:#edc85d!important}.player-dossier-facts strong.stat-high,.player-dossier-facts strong.stat-elite{color:#55de9f!important}.player-attribute-group .stat-low{color:#ff6e7f!important}.player-attribute-group .stat-medium{color:#edc85d!important}.player-attribute-group .stat-high,.player-attribute-group .stat-elite{color:#55de9f!important}
.player-position-pitch-v4 i.secondary{background:#f1c556!important;border-color:#5e4912!important;box-shadow:0 0 0 2px rgba(243,199,86,.24),0 0 15px rgba(239,193,71,.2)!important}.player-position-pitch-v4 i.primary{background:#59dfa5!important;border-color:#0d5339!important;box-shadow:0 0 0 2px rgba(86,227,166,.28),0 0 16px rgba(76,215,156,.25)!important}.player-position-pitch-v4 i b{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;padding:0!important;background:none!important;font-size:.5rem!important;line-height:1!important;text-align:center!important}.player-form-v4{background:linear-gradient(145deg,rgba(13,12,10,0.84),rgba(13,12,10,0.9))!important}.form-scale-label{fill:rgba(217,209,194,0.55);font:600 9px var(--body)}.player-form-chart circle.great{fill:#5ee1a5!important}.player-form-chart circle.good{fill:#e5c377!important}.player-form-chart circle.poor{fill:#ff7384!important}.form-state{font-weight:850!important}.form-state.excellent{color:#53e3a1!important}.form-state.good{color:#e5c377!important}.form-state.average{color:#efc55f!important}.form-state.poor{color:#ff7182!important}
.player-status-v4 .status-good,.player-status-v4 .status-excellent{color:#54dfa0!important}.player-status-v4 .status-average{color:#efc45d!important}.player-status-v4 .status-poor{color:#ff6e7f!important}.player-status-v4 .status-neutral{color:#d9d1c2!important}.fitness-heart{position:relative;display:inline-block;margin-right:6px;color:rgba(217,209,194,0.22);font-style:normal;font-size:1rem;line-height:1;vertical-align:-1px}.fitness-heart:after{content:"♥";position:absolute;left:0;top:0;width:var(--fitness);overflow:hidden;color:#55dfa0;white-space:nowrap}

@media (max-width:1420px) and (min-width:1280px){.player-profile-v4{grid-template-columns:210px minmax(0,1fr)!important;padding-left:44px!important;padding-right:30px!important}.player-dossier-card-wrap .profile-footballer-card{width:190px!important;max-width:190px!important}.player-dossier-analytics{grid-template-columns:minmax(0,1fr) 190px 190px!important}.player-dna-v4 .player-radar{max-width:180px!important}.player-dossier-headline>span:last-child{display:none}}
@media (max-height:719px) and (min-width:1280px){:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:auto!important}:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:auto!important;min-height:720px!important;overflow:visible!important}.player-profile-v4{height:720px!important;min-height:720px!important;overflow:visible!important}}

@media (max-width:1180px){.finance-bank-main-v2{grid-template-columns:1fr}.finance-bank-breakdowns{grid-template-columns:1fr 1fr}.finance-commitment-list{grid-template-columns:1fr 1fr!important}.contracts-main-layout.agency{grid-template-columns:1fr}.contract-side-stack.agency{grid-template-columns:1fr!important}.infrastructure-grid-v2{grid-template-columns:1fr!important}.stadium-premium-stage-v2{grid-template-columns:1fr!important}}

/* ========================================================================== */
/* 3.0A.50.35.14 — professional management refinement                         */
/* ========================================================================== */

/* Uploaded monochrome symbols are treated as masks so they remain crisp and
   can inherit the exact UI status colour instead of rendering black-on-navy. */
.management-asset-icon{
  --asset:none;
  display:inline-block;
  width:1.6rem;
  height:1.6rem;
  flex:0 0 auto;
  background:currentColor;
  -webkit-mask:var(--asset) center/contain no-repeat;
  mask:var(--asset) center/contain no-repeat;
}
.management-asset-icon.icon-stadium{--asset:url('/ui-icons/stadium.png?v=503514')}
.management-asset-icon.icon-maintenance{--asset:url('/ui-icons/maintenance.png?v=503514')}
.management-asset-icon.icon-players{--asset:url('/ui-icons/players.png?v=503514')}
.management-asset-icon.icon-ticket{--asset:url('/ui-icons/ticket.png?v=503514')}
.management-asset-icon.icon-crane{--asset:url('/ui-icons/crane.png?v=503514')}
.management-asset-icon.icon-money{--asset:url('/ui-icons/money.png?v=503514')}
.management-asset-icon.icon-market{--asset:url('/ui-icons/market.png?v=503514')}
.management-asset-icon.icon-handshake{--asset:url('/ui-icons/handshake.png?v=503514')}
/* The existing League Registration icon, reused as a mask so it renders in
   currentColor like every other management-asset-icon (gold when active,
   muted at rest) instead of shipping its own fixed colours. */
.management-asset-icon.icon-registered{--asset:url('/ui-icons/registration-players.png')}
.management-asset-icon.icon-facilities{--asset:url('/ui-icons/facilities.png?v=503514')}
.management-asset-icon.icon-calendar{--asset:url('/calendar-icons/clock.png')}

/* ---------------------------- STADIUM ------------------------------------ */
.stadium-premium-kpis-v3{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.stadium-premium-kpis-v3 article{
  min-height:92px!important;
  padding:15px 18px!important;
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  align-items:center!important;
  gap:15px!important;
  border:1px solid rgba(212,169,79,0.16)!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,rgba(13,12,10,0.94),rgba(13,12,10,0.96))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 12px 30px rgba(0,0,0,.14)!important;
}
.stadium-premium-kpis-v3 .management-asset-icon{
  width:54px!important;
  height:54px!important;
  color:#e5c377!important;
  filter:drop-shadow(0 0 12px rgba(76,57,21,0.2));
}
.stadium-premium-kpis-v3 article>div{display:grid;gap:3px;align-content:center;min-width:0}
.stadium-premium-kpis-v3 span{
  margin:0!important;
  font:750 .67rem/1.15 var(--body)!important;
  letter-spacing:.035em!important;
  color:rgba(217,209,194,0.66)!important;
}
.stadium-premium-kpis-v3 strong{
  display:block!important;
  margin:0!important;
  font:800 1.34rem/1.05 var(--body)!important;
  color:#fbf7ef!important;
  white-space:nowrap;
}

.stadium-premium-stage-v3{
  display:grid!important;
  grid-template-columns:minmax(0,1.75fr) minmax(310px,.72fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
.stadium-room-v3{
  position:relative!important;
  min-height:470px!important;
  overflow:hidden!important;
  border:1px solid rgba(212,169,79,0.17)!important;
  border-radius:17px!important;
  background:radial-gradient(circle at 50% 48%,rgba(23,21,15,0.3),transparent 52%),#0d0c0a!important;
}
.stadium-level-visual{
  position:absolute!important;
  inset:52px 28px 28px 260px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.stadium-level-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center!important;
  opacity:1!important;
  visibility:visible!important;
  filter:drop-shadow(0 30px 38px rgba(0,0,0,.34)) saturate(1.05)!important;
}
.stadium-room-v3 .stadium-identity-panel{
  position:absolute!important;
  z-index:3!important;
  left:22px!important;
  top:22px!important;
  bottom:22px!important;
  width:215px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:18px!important;
  border-radius:13px!important;
  background:linear-gradient(150deg,rgba(13,12,10,0.95),rgba(13,12,10,0.78))!important;
  border:1px solid rgba(212,169,79,0.13)!important;
  backdrop-filter:blur(7px);
}
.stadium-country-line{display:flex!important;align-items:center!important;gap:9px!important}
.stadium-country-flag.player-country-flag-wrap{
  display:inline-grid!important;
  place-items:center!important;
  width:30px!important;
  height:22px!important;
  flex:0 0 30px!important;
  border-radius:3px!important;
  overflow:hidden!important;
}
.stadium-country-flag .player-country-flag{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.stadium-country-flag .player-country-flag-fallback{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;font-size:17px!important;line-height:1!important}

.stadium-side-stack-v3{display:grid!important;grid-template-rows:auto auto 1fr auto!important;gap:11px!important;min-width:0}
.stadium-fan-card-v3{
  min-height:92px!important;
  padding:15px 17px!important;
  display:grid!important;
  align-content:center!important;
}
.stadium-demand-row{
  --demand:#f1c64f;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) 54px!important;
  align-items:center!important;
  gap:14px!important;
  color:var(--demand)!important;
}
.stadium-demand-row.low{--demand:#ff6678}
.stadium-demand-row.medium{--demand:#f2c45d}
.stadium-demand-row.high{--demand:#59dfa1}
.stadium-demand-row .management-asset-icon{
  width:52px!important;
  height:52px!important;
  color:var(--demand)!important;
  filter:drop-shadow(0 0 9px color-mix(in srgb,var(--demand),transparent 72%));
}
.stadium-demand-copy{display:grid!important;gap:3px!important;min-width:0}
.stadium-demand-copy span{font:700 .62rem/1 var(--body)!important;color:rgba(217,209,194,0.55)!important;letter-spacing:.06em!important}
.stadium-demand-copy strong{font:850 1.13rem/1.05 var(--body)!important;color:var(--demand)!important;text-transform:uppercase!important}
.stadium-demand-signal{
  width:52px!important;
  height:52px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  gap:4px!important;
  padding:8px 6px!important;
  box-sizing:border-box!important;
}
.stadium-demand-signal i{
  display:block!important;
  width:6px!important;
  border-radius:3px 3px 1px 1px!important;
  background:color-mix(in srgb,var(--demand),transparent 76%)!important;
  border:1px solid color-mix(in srgb,var(--demand),transparent 45%)!important;
}
.stadium-demand-signal i:nth-child(1){height:9px!important}.stadium-demand-signal i:nth-child(2){height:16px!important}.stadium-demand-signal i:nth-child(3){height:24px!important}.stadium-demand-signal i:nth-child(4){height:32px!important}
.stadium-demand-row.low .stadium-demand-signal i:nth-child(1),
.stadium-demand-row.medium .stadium-demand-signal i:nth-child(-n+2),
.stadium-demand-row.high .stadium-demand-signal i{background:var(--demand)!important;box-shadow:0 0 7px color-mix(in srgb,var(--demand),transparent 62%)!important}

.stadium-level-board-v3{padding:17px!important}
.stadium-level-board-v3>span{font-size:.68rem!important}
.stadium-level-board-v3>div>strong{font-size:1.35rem!important}
.stadium-level-board-v3>div>small{font-size:.68rem!important}
.stadium-level-board-v3>section{gap:8px!important}
.stadium-level-board-v3>section p{min-height:64px!important;padding:10px 11px!important;display:grid!important;align-content:center!important;gap:4px!important}
.stadium-level-board-v3>section p span{font:700 .62rem/1.15 var(--body)!important;color:rgba(217,209,194,0.58)!important;text-transform:none!important;letter-spacing:.01em!important}
.stadium-level-board-v3>section p b{font:820 .86rem/1.08 var(--body)!important;color:#fbf7ef!important}
.stadium-level-board-v3 button[data-stadium-upgrade]{
  width:100%!important;
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  padding:9px 14px!important;
  color:#fff!important;
}
.stadium-level-board-v3 .stadium-upgrade-icon{width:26px!important;height:26px!important;color:#fff!important}
.stadium-level-board-v3 button[data-stadium-upgrade] span{color:#fff!important;font:850 .72rem/1 var(--body)!important;letter-spacing:.035em!important}

.stadium-attendance-v3 header{min-height:24px!important;margin-bottom:4px!important}
.stadium-attendance-v3 .stadium-attendance-chart{min-height:180px!important}
.stadium-attendance-v3 .stadium-attendance-chart svg{height:170px!important;width:100%!important}

/* ---------------------------- FACILITIES --------------------------------- */
.infrastructure-summary-v3{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin-bottom:14px!important}
.infrastructure-summary-v3 article{
  position:relative!important;
  min-height:132px!important;
  overflow:hidden!important;
  border-radius:15px!important;
  border:1px solid rgba(212,169,79,0.16)!important;
  background:#0d0c0a!important;
  isolation:isolate;
}
.infrastructure-summary-v3 article:before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:saturate(.92) brightness(.72);
}
.infrastructure-summary-v3 article:after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(90deg,rgba(13,12,10,0.98) 0%,rgba(13,12,10,0.83) 44%,rgba(13,12,10,0.3) 100%);
}
.infrastructure-summary-v3 article.maintenance-room:before{background-image:url('/ui-icons/maintenance_room.webp?v=503580')!important}
.infrastructure-summary-v3 article.active-projects:before{background-image:url('/ui-icons/projects.webp?v=503580')!important}
.infrastructure-summary-v3 article>div{height:100%!important;box-sizing:border-box!important;padding:20px 22px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:6px!important}
.infrastructure-summary-v3 article span{font:750 .66rem/1.1 var(--body)!important;letter-spacing:.055em!important;color:rgba(217,209,194,0.62)!important}
.infrastructure-summary-v3 article strong{font:820 1.55rem/1 var(--body)!important;color:#fff!important}

.facility-construction-board{
  margin-bottom:14px!important;
  padding:15px!important;
  border:1px solid rgba(212,169,79,0.16)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.9),rgba(13,12,10,0.96))!important;
}
.facility-construction-board>header{display:flex!important;align-items:center!important;justify-content:space-between!important;margin-bottom:11px!important}
.facility-construction-board>header span{font:800 .7rem var(--body)!important;letter-spacing:.055em!important;color:#fbf7ef!important}
.facility-construction-list{display:grid!important;gap:9px!important}
.facility-project-progress{
  display:grid!important;
  grid-template-columns:minmax(155px,.9fr) minmax(220px,1.65fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  padding:11px 13px!important;
  border:1px solid rgba(212,169,79,0.12)!important;
  border-radius:11px!important;
  background:rgba(13,12,10,0.66)!important;
}
.facility-project-progress .project-name{display:grid!important;gap:3px!important;min-width:0}
.facility-project-progress .project-name strong{font:780 .74rem/1.15 var(--body)!important;color:#fbf7ef!important}
.facility-project-progress .project-name span{font:650 .59rem/1.15 var(--body)!important;color:#e5c377!important}
.facility-project-progress .project-progress-main{display:grid!important;gap:7px!important}
.facility-project-progress .project-progress-line{height:8px!important;border-radius:999px!important;background:rgba(76,57,21,0.14)!important;overflow:hidden!important;border:1px solid rgba(212,169,79,0.08)!important}
.facility-project-progress .project-progress-line i{display:block!important;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#4c3915,#4c3915)!important;box-shadow:0 0 14px rgba(212,169,79,0.28)!important}
.facility-project-progress .project-progress-caption{display:flex!important;justify-content:space-between!important;gap:12px!important;color:rgba(217,209,194,0.6)!important;font:650 .58rem/1.2 var(--body)!important}
.facility-project-progress .project-progress-caption b{color:#fbf7ef!important;font-size:.64rem!important}
.facility-project-progress .project-time-grid{display:grid!important;grid-template-columns:repeat(3,auto)!important;gap:16px!important;white-space:nowrap!important}
.facility-project-progress .project-time-grid p{display:grid!important;gap:2px!important;margin:0!important}
.facility-project-progress .project-time-grid span{font:650 .52rem var(--body)!important;color:rgba(217,209,194,0.48)!important;text-transform:uppercase!important;letter-spacing:.04em!important}
.facility-project-progress .project-time-grid strong{font:760 .63rem var(--body)!important;color:#fbf7ef!important}

.infrastructure-grid-v3{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.facility-invest-card-v3{
  border:1px solid rgba(212,169,79,0.15)!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:linear-gradient(150deg,rgba(13,12,10,0.96),rgba(13,12,10,0.98))!important;
  box-shadow:0 14px 30px rgba(0,0,0,.12)!important;
}
.facility-invest-card-v3 .facility-image{height:195px!important;overflow:hidden!important;background:#0d0c0a!important}
.facility-invest-card-v3 .facility-image img{width:100%!important;height:100%!important;display:block!important;object-fit:cover!important;object-position:center!important}
.facility-invest-card-v3 .facility-copy{padding:15px 17px 16px!important}
.facility-invest-card-v3 h3{font:820 1.02rem/1.1 var(--body)!important;color:#fbf7ef!important;margin:0!important}
.facility-invest-card-v3 .facility-level{font:750 .66rem var(--body)!important;color:#e5c377!important}
.facility-invest-card-v3 .facility-description{font:550 .67rem/1.45 var(--body)!important;color:rgba(217,209,194,0.62)!important;min-height:38px!important}
.facility-invest-card-v3 .facility-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:11px 0!important}
.facility-invest-card-v3 .facility-metrics p{margin:0!important;padding:9px 10px!important;border-radius:9px!important;border:1px solid rgba(212,169,79,0.1)!important;background:rgba(13,12,10,0.55)!important}
.facility-invest-card-v3 .facility-metrics span{display:block!important;font:650 .55rem/1.15 var(--body)!important;color:rgba(217,209,194,0.48)!important}
.facility-invest-card-v3 .facility-metrics strong{display:block!important;margin-top:4px!important;font:800 .73rem/1.1 var(--body)!important;color:#fbf7ef!important}
.facility-invest-card-v3 button{min-height:39px!important;font:800 .68rem var(--body)!important}
.facility-inline-progress{margin-top:10px!important}.facility-inline-progress .facility-project-progress{grid-template-columns:1fr!important;gap:8px!important;padding:10px!important}.facility-inline-progress .project-time-grid{grid-template-columns:repeat(3,1fr)!important}.facility-inline-progress .project-time-grid p{min-width:0!important}.facility-inline-progress .project-time-grid strong{white-space:normal!important}

/* ---------------------------- PLAYER DOSSIER ----------------------------- */
.player-dossier-facts>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}
.player-rarity-heading{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:4px 9px!important;border:1px solid color-mix(in srgb,var(--rarity),transparent 50%)!important;border-radius:999px!important;background:color-mix(in srgb,var(--rarity),transparent 88%)!important;color:var(--rarity)!important;font:850 .61rem/1 var(--body)!important;text-transform:uppercase!important;letter-spacing:.045em!important}
.player-dossier-facts strong:not(.stat-low):not(.stat-medium):not(.stat-high):not(.stat-elite){color:#fbf7ef!important}
.player-dossier-facts p:nth-child(-n+4) strong{color:#fbf7ef!important;text-shadow:none!important}

.player-dossier-hero{
  min-height:188px!important;
  grid-template-columns:minmax(0,1fr) minmax(470px,.66fr)!important;
  overflow:hidden!important;
}
.player-dossier-identity{padding:20px 26px!important;align-self:center!important}
.player-dossier-actions{
  align-self:center!important;
  justify-self:stretch!important;
  padding:18px 22px!important;
  border-left:1px solid rgba(212,169,79,0.12)!important;
}
.player-dossier-actions>span{display:block!important;margin-bottom:8px!important;text-align:left!important;font:750 .56rem var(--body)!important;color:rgba(217,209,194,0.52)!important;letter-spacing:.065em!important}
.player-dossier-actions>div{
  display:grid!important;
  grid-template-columns:1.25fr 1fr 1fr!important;
  gap:8px!important;
  align-items:center!important;
}
.player-dossier-actions button{min-height:39px!important;margin:0!important;padding:8px 10px!important;font:780 .65rem/1 var(--body)!important;white-space:nowrap!important}

.player-contract-v4{background:linear-gradient(145deg,rgba(13,12,10,0.93),rgba(13,12,10,0.97))!important}
.player-contract-grid-v4{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
.player-contract-grid-v4 p{display:grid!important;gap:3px!important;margin:0!important;padding:8px 9px!important;min-height:47px!important;box-sizing:border-box!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:8px!important;background:rgba(13,12,10,0.48)!important}
.player-contract-grid-v4 span{font:650 .51rem/1.15 var(--body)!important;letter-spacing:.035em!important;color:rgba(217,209,194,0.48)!important;text-transform:uppercase!important}
.player-contract-grid-v4 strong{font:760 .66rem/1.15 var(--body)!important;color:#fbf7ef!important;white-space:normal!important}

.player-position-list-v4{align-content:start!important}
.player-position-list-v4 :is(p,button){display:grid!important;grid-template-columns:38px 8px minmax(0,1fr)!important;align-items:center!important;min-height:28px!important;padding:4px 8px!important;box-sizing:border-box!important;text-align:left!important}
.player-position-list-v4 strong{display:block!important;width:38px!important;text-align:center!important;font:820 .67rem/1 var(--body)!important;letter-spacing:0!important;font-style:normal!important;transform:none!important}
.player-position-list-v4 span{text-align:center!important;margin:0!important}.player-position-list-v4 em{text-align:left!important}

.player-form-v4 .player-form-chart-wrap{margin-top:7px!important}
.player-form-v4 .player-form-chart{width:100%!important;height:112px!important}
.player-form-v4 .player-form-chart svg{width:100%!important;height:112px!important;display:block!important}

.player-dossier-analytics{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 235px!important;
  grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important;
  gap:8px!important;
}
.player-attributes-v4{grid-column:1!important;grid-row:1/3!important;min-width:0!important}
.player-dna-v4{grid-column:2!important;grid-row:1!important;min-height:0!important;overflow:hidden!important}
.player-status-v4{grid-column:2!important;grid-row:2!important;min-height:0!important;overflow:hidden!important}
.player-attribute-grid-v4{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
  height:calc(100% - 26px)!important;
}
.player-attribute-group{
  min-width:0!important;
  padding:8px 9px 6px!important;
  border-width:1px!important;
  border-style:solid!important;
  border-radius:10px!important;
  background:rgba(13,12,10,0.72)!important;
}
.player-attribute-group.stat-low{border-color:rgba(255,101,120,.42)!important;background:linear-gradient(145deg,rgba(72,21,34,.34),rgba(7,19,37,.75))!important}
.player-attribute-group.stat-medium{border-color:rgba(240,194,83,.40)!important;background:linear-gradient(145deg,rgba(70,54,18,.31),rgba(13,12,10,0.75))!important}
.player-attribute-group.stat-high,.player-attribute-group.stat-elite{border-color:rgba(77,216,153,.38)!important;background:linear-gradient(145deg,rgba(18,66,48,.31),rgba(7,19,37,.75))!important}
.player-attribute-group .attribute-heading strong{font-size:.67rem!important;color:#fbf7ef!important}
.player-attribute-group .attribute-score{font-size:.86rem!important;color:#fff!important;text-shadow:none!important}
.player-attribute-group li{font-size:.58rem!important}.player-attribute-group li b{font-size:.6rem!important;color:#fff!important;text-shadow:none!important}
.player-attribute-group .stat-low,.player-attribute-group .stat-medium,.player-attribute-group .stat-high,.player-attribute-group .stat-elite{color:#fff!important}
.player-dna-v4 .player-radar{max-height:128px!important;margin:auto!important}.player-status-v4 p{padding:5px 1px!important}.player-status-v4 span{font-size:.56rem!important}.player-status-v4 strong{font-size:.63rem!important}

/* ---------------------------- CONTRACT AGENCY ---------------------------- */
.contract-player-cell.agency{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:17px!important;align-items:center!important;min-width:230px!important}
.contract-player-cell.agency .copy{padding-left:0!important;overflow:visible!important}
.contract-player-cell.agency .copy strong{display:block!important;font:790 .82rem/1.12 var(--body)!important;color:#fbf7ef!important;white-space:nowrap!important}
.contract-player-cell.agency .copy small{display:block!important;margin-top:5px!important;font:620 .59rem/1.2 var(--body)!important;color:rgba(217,209,194,0.56)!important;white-space:nowrap!important}

/* Registered filter: the same icon-only toggle already used for the
   Competitions prize/follow controls (#profileCompetitionsPanel
   .competition-toolbar-icon-button) -- espresso surface, gold hairline, gold
   hover/focus, gold-tinted active state. No new colour, no visible text. */
.contract-toolbar-v3 .contract-filter-inputs{grid-template-columns:minmax(280px,1fr) 180px!important;align-items:end!important}
.contract-toolbar-v3 .contract-filter-inputs label:last-child{display:none!important}
.contract-player-search-cluster{display:grid;min-width:0}
.contract-search-label{color:rgba(217,209,194,.68);font:700 .62rem/1 var(--body)}
.contract-player-search-row{display:grid;grid-template-columns:40px 40px minmax(210px,1fr);align-items:end;gap:8px;min-width:0}
.contract-player-search-row .contract-search-field{display:grid;gap:6px}
.contract-player-search-row .contract-search-field>input{height:40px;min-height:40px;box-sizing:border-box}
#profileContractsPanel .contract-filter-icon{width:21px;height:21px}
#profileContractsPanel .contract-registration-toggle{width:40px;height:40px;min-width:40px;align-self:center;margin:0}
@media(max-width:900px){#profileContractsPanel .contract-registration-toggle{width:40px;height:40px}}
.contract-sort-header{
  appearance:none!important;
  width:100%!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
  color:inherit!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  cursor:pointer!important;
  font:750 .58rem/1 var(--body)!important;
  letter-spacing:.025em!important;
  text-transform:none!important;
}
.contract-sort-header:hover{color:#fff8e9!important}.contract-sort-header.active{color:#e5c377!important}.contract-sort-header i{min-width:9px;color:currentColor!important;font-style:normal!important;font-size:.65rem!important}
.contract-table-panel.agency,.contract-table-panel.agency .finance-table-wrap{overflow:visible!important}
.contract-review-wrap{position:relative!important;display:inline-flex!important;justify-content:center!important}
.contract-review-popover{
  position:absolute!important;
  z-index:80!important;
  right:0!important;
  top:calc(100% + 7px)!important;
  width:176px!important;
  padding:7px!important;
  display:grid!important;
  gap:4px!important;
  border:1px solid rgba(212,169,79,0.25)!important;
  border-radius:10px!important;
  background:#0d0c0a!important;
  box-shadow:0 18px 40px rgba(0,0,0,.44)!important;
  animation:contractReviewOpen .14s ease-out both!important;
}
@keyframes contractReviewOpen{from{opacity:0;transform:translateY(-5px) scale(.98)}to{opacity:1;transform:none}}
.contract-review-popover button{
  width:100%!important;
  min-height:32px!important;
  padding:7px 9px!important;
  text-align:left!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fbf7ef!important;
  font:690 .63rem/1 var(--body)!important;
  cursor:pointer!important;
}
.contract-review-popover button:hover{background:rgba(76,57,21,0.12)!important;border-color:rgba(212,169,79,0.16)!important}.contract-review-popover button.danger{color:#ff7889!important}
.contract-row-cta.agency.active{border-color:#d4a94f!important;color:#e5c377!important;box-shadow:0 0 0 2px rgba(212,169,79,0.08)!important}

.contract-country-flag.player-country-flag-wrap{display:inline-grid!important;width:28px!important;height:20px!important;flex:0 0 28px!important;place-items:center!important}.contract-country-flag .player-country-flag-fallback{display:grid!important;place-items:center!important;font-size:16px!important;line-height:1!important}.contract-country-flag .player-country-flag{width:100%!important;height:100%!important;object-fit:cover!important}
.contract-detail-icon{width:27px!important;height:27px!important;color:#e5c377!important;align-self:center!important}.contract-detail-grid-v3>p:nth-child(1) .contract-detail-icon{color:#5fe0a3!important}.contract-detail-grid-v3>p:nth-child(4) .contract-detail-icon{color:#f0c55d!important}
.renewal-outlook-v3{
  margin:8px 0!important;
  padding:11px 12px!important;
  border:1px solid rgba(212,169,79,0.13)!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,rgba(13,12,10,0.9),rgba(13,12,10,0.85))!important;
}
.renewal-outlook-v3 .renewal-outlook-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:5px!important}.renewal-outlook-v3 .renewal-outlook-heading span{font:710 .54rem var(--body)!important;color:rgba(217,209,194,0.5)!important}.renewal-outlook-v3 .renewal-outlook-heading strong{font:820 .68rem var(--body)!important}.renewal-outlook-v3 p{margin:0!important;font:560 .61rem/1.35 var(--body)!important;color:rgba(217,209,194,0.65)!important}
.renewal-outlook-v3.eligible .renewal-outlook-heading strong,.renewal-outlook-v3.renewed .renewal-outlook-heading strong{color:#5ddfa3!important}.renewal-outlook-v3.at-risk .renewal-outlook-heading strong,.renewal-outlook-v3.expiring-soon .renewal-outlook-heading strong{color:#ff7888!important}.renewal-outlook-v3.negotiation .renewal-outlook-heading strong{color:#f2c45b!important}
.contract-primary-cta.agency,.contract-negotiation-box.agency button{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-height:42px!important;
  margin:9px 0 0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:8px 13px!important;
  text-align:center!important;
  color:#fbf7ef!important;
}
.contract-primary-cta.agency .contract-button-icon,.contract-negotiation-box.agency .contract-button-icon{width:25px!important;height:25px!important;color:#fbf7ef!important}

/* ---------------------------- FINANCES ----------------------------------- */
.finance-balance-bank{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#0d0c0a!important;
}
.finance-balance-bank:before{
  content:"";
  position:absolute!important;
  z-index:-2!important;
  inset:0!important;
  background:url('/ui-icons/bank.png?v=503514') 65% 52%/cover no-repeat!important;
  filter:saturate(.9) brightness(.72)!important;
}
.finance-balance-bank:after{
  content:"";
  position:absolute!important;
  z-index:-1!important;
  inset:0!important;
  background:linear-gradient(90deg,rgba(13,12,10,0.98) 0%,rgba(13,12,10,0.82) 48%,rgba(13,12,10,0.26) 100%)!important;
}
.finance-bank-breakdowns .finance-donut-card{display:grid!important;grid-template-rows:auto 1fr!important}.finance-bank-breakdowns .finance-donut-layout{align-self:center!important;align-items:center!important;min-height:145px!important}.finance-bank-breakdowns .finance-donut{align-self:center!important;justify-self:center!important}.finance-bank-breakdowns .finance-donut-legend{align-self:center!important}
.finance-ledger-v3,.finance-ledger-v3 table,.finance-ledger-v3 th,.finance-ledger-v3 td{font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important}.finance-ledger-v3 th{font-size:.64rem!important;font-weight:700!important;letter-spacing:.01em!important;text-transform:none!important;color:rgba(217,209,194,0.58)!important}.finance-ledger-v3 td{font-size:.75rem!important;font-weight:540!important;letter-spacing:0!important;line-height:1.35!important;color:#fbf7ef!important}.finance-ledger-v3 td strong{font-weight:760!important}
.finance-commitment-v3 .finance-commitment-list{gap:9px!important}.finance-commitment-v3 .finance-commitment-list p{grid-template-columns:48px minmax(0,1fr) auto!important;min-height:62px!important;padding:10px 12px!important}
.finance-commitment-icon{
  grid-row:1/3!important;
  width:44px!important;
  height:44px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid currentColor!important;
  background:color-mix(in srgb,currentColor,transparent 88%)!important;
}
.finance-commitment-icon .management-asset-icon{width:25px!important;height:25px!important;color:currentColor!important}
.finance-commitment-list p.salary .finance-commitment-icon{color:#e5c377!important}.finance-commitment-list p.facility .finance-commitment-icon{color:#e5c377!important}.finance-commitment-list p.stadium .finance-commitment-icon{color:#57dda1!important}.finance-commitment-list p.other .finance-commitment-icon{color:#f1c75d!important}
.finance-commitment-v3 header b,.finance-commitment-v3 .commitment-total,.finance-commitment-v3 .finance-commitment-total{color:#e5c377!important;font-size:1.05rem!important;text-shadow:0 0 16px rgba(212,169,79,0.16)!important}

@media (max-width:1360px){
  .stadium-premium-stage-v3{grid-template-columns:minmax(0,1.45fr) minmax(290px,.75fr)!important}.stadium-level-visual{inset:52px 18px 28px 220px!important}.stadium-room-v3 .stadium-identity-panel{width:175px!important}
  .player-dossier-hero{grid-template-columns:minmax(0,1fr) 410px!important}.player-dossier-actions{padding:14px!important}.player-dossier-actions button{font-size:.59rem!important}
  .contract-player-cell.agency{min-width:210px!important}
}
@media (max-width:1080px){
  .stadium-premium-kpis-v3{grid-template-columns:1fr 1fr!important}.stadium-premium-stage-v3{grid-template-columns:1fr!important}.stadium-room-v3{min-height:500px!important}.stadium-level-visual{inset:150px 20px 20px!important}.stadium-room-v3 .stadium-identity-panel{left:20px!important;right:20px!important;top:20px!important;bottom:auto!important;width:auto!important;min-height:100px!important}
  .infrastructure-summary-v3,.infrastructure-grid-v3{grid-template-columns:1fr!important}.facility-project-progress{grid-template-columns:1fr!important}.facility-project-progress .project-time-grid{grid-template-columns:repeat(3,1fr)!important}
}
/* 35.14 markup alignment fixes */
.stadium-room-v3 .stadium-room-copy{
  position:absolute!important;z-index:3!important;left:22px!important;top:22px!important;bottom:78px!important;width:215px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;padding:18px!important;box-sizing:border-box!important;
  border-radius:13px!important;background:linear-gradient(150deg,rgba(13,12,10,0.95),rgba(13,12,10,0.78))!important;border:1px solid rgba(212,169,79,0.13)!important;backdrop-filter:blur(7px)
}
.stadium-room-v3 .stadium-room-copy>p{display:flex!important;align-items:center!important;gap:9px!important}
.stadium-room-v3 .stadium-room-footer{z-index:4!important;left:22px!important;right:auto!important;bottom:18px!important;width:215px!important;box-sizing:border-box!important}
.stadium-demand-row{grid-template-columns:52px minmax(0,1fr) 52px!important}
.stadium-demand-row>strong{font:850 1.02rem/1 var(--body)!important;color:var(--demand)!important;text-transform:uppercase!important;text-align:center!important}
.stadium-demand-row .stadium-fan-symbol{width:52px!important;height:52px!important;color:var(--demand)!important}
.stadium-signal-symbol{width:52px!important;height:52px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:4px!important;padding:8px 6px!important;box-sizing:border-box!important}
.stadium-signal-symbol i{display:block!important;width:6px!important;height:calc(6px + var(--bar) * 7px)!important;border-radius:3px 3px 1px 1px!important;background:color-mix(in srgb,var(--demand),transparent 78%)!important;border:1px solid color-mix(in srgb,var(--demand),transparent 48%)!important}
.stadium-signal-symbol i.on{background:var(--demand)!important;box-shadow:0 0 8px color-mix(in srgb,var(--demand),transparent 62%)!important}

.facility-construction-board>div{display:grid!important;gap:9px!important}
.facility-project-progress{display:block!important;padding:12px 14px!important;border:1px solid rgba(212,169,79,0.12)!important;border-radius:11px!important;background:rgba(13,12,10,0.66)!important}
.facility-project-progress>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 9px!important}
.facility-project-progress>header>div{display:grid!important;gap:3px!important}.facility-project-progress>header strong{font:790 .73rem/1.1 var(--body)!important;color:#fbf7ef!important}.facility-project-progress>header small{font:650 .58rem/1.1 var(--body)!important;color:#e5c377!important}.facility-project-progress>header>b{font:850 .74rem/1 var(--body)!important;color:#e5c377!important}
.facility-project-track{height:9px!important;border-radius:999px!important;background:rgba(76,57,21,0.14)!important;overflow:hidden!important;border:1px solid rgba(212,169,79,0.08)!important}.facility-project-track i{display:block!important;height:100%!important;border-radius:999px!important;background:linear-gradient(90deg,#4c3915,#4c3915)!important;box-shadow:0 0 14px rgba(212,169,79,0.28)!important}
.facility-project-progress>footer{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-top:9px!important;padding:0!important;border:0!important;background:none!important}.facility-project-progress>footer>span{display:grid!important;gap:3px!important;padding:7px 8px!important;border:1px solid rgba(212,169,79,0.08)!important;border-radius:7px!important;background:rgba(13,12,10,0.38)!important}.facility-project-progress>footer small{font:650 .51rem/1 var(--body)!important;color:rgba(217,209,194,0.48)!important;text-transform:uppercase!important;letter-spacing:.04em!important}.facility-project-progress>footer strong{font:750 .61rem/1.15 var(--body)!important;color:#fbf7ef!important;white-space:normal!important}
.facility-inline-progress .facility-project-progress{padding:9px!important}.facility-inline-progress .facility-project-progress>header{margin-bottom:7px!important}.facility-inline-progress .facility-project-progress>footer{gap:5px!important;margin-top:7px!important}.facility-inline-progress .facility-project-progress>footer>span{padding:5px 6px!important}.facility-inline-progress .facility-project-progress>footer strong{font-size:.56rem!important}

.facility-invest-card-v3 .facility-invest-visual{height:195px!important;position:relative!important;overflow:hidden!important;background:#0d0c0a!important}.facility-invest-card-v3 .facility-invest-visual img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}.facility-invest-card-v3 .facility-invest-visual>span{position:absolute!important;left:13px!important;top:13px!important;padding:5px 8px!important;border-radius:7px!important;background:rgba(13,12,10,0.86)!important;border:1px solid rgba(212,169,79,0.24)!important;color:#e5c377!important;font:800 .58rem var(--body)!important}
.facility-invest-card-v3 .facility-invest-copy{padding:15px 17px 16px!important}.facility-invest-card-v3 .facility-invest-copy>header{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:10px!important;margin-bottom:7px!important}.facility-invest-card-v3 .facility-invest-copy>header small{display:block!important;margin-bottom:3px!important;font:700 .52rem var(--body)!important;color:rgba(217,209,194,0.45)!important;letter-spacing:.055em!important}.facility-invest-card-v3 .facility-invest-copy>header h3{margin:0!important;font:820 1rem/1.05 var(--body)!important;color:#fbf7ef!important}.facility-invest-card-v3 .facility-invest-copy>header>b{font:850 .72rem var(--body)!important;color:#e5c377!important}.facility-invest-card-v3 .facility-invest-copy>p{margin:0!important;min-height:34px!important;font:550 .66rem/1.35 var(--body)!important;color:rgba(217,209,194,0.58)!important}.facility-invest-card-v3 .facility-invest-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:10px 0!important}.facility-invest-card-v3 .facility-invest-metrics>span{display:grid!important;gap:4px!important;padding:8px 9px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:8px!important;background:rgba(13,12,10,0.55)!important}.facility-invest-card-v3 .facility-invest-metrics>span small{font:650 .52rem/1 var(--body)!important;color:rgba(217,209,194,0.48)!important}.facility-invest-card-v3 .facility-invest-metrics>span strong{font:800 .7rem/1.1 var(--body)!important;color:#fbf7ef!important}.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{grid-column:1/4!important;display:flex!important;align-items:center!important;justify-content:space-between!important}.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price strong{font-size:.78rem!important;color:#e5c377!important}.facility-invest-card-v3 .facility-invest-copy>footer{padding:0!important;margin:0!important;border:0!important;background:none!important}.facility-invest-card-v3 .facility-invest-copy>footer button{width:100%!important;min-height:38px!important}

@media (max-width:1080px){.stadium-room-v3 .stadium-room-copy{left:20px!important;right:20px!important;top:20px!important;bottom:auto!important;width:auto!important;min-height:100px!important}.stadium-room-v3 .stadium-room-footer{left:20px!important;bottom:18px!important;width:auto!important;right:20px!important}.stadium-level-visual{inset:150px 20px 62px!important}}
@media (min-width:1280px) and (min-height:720px){
  .player-profile-v4{grid-template-rows:190px 176px minmax(210px,1fr) 90px!important}
  .player-dossier-hero{min-height:190px!important}
}

/* ==========================================================================
   3.0A.50.35.15 professional management refinements
   ========================================================================== */
.management-asset-icon.icon-stadium{--asset:url('/ui-icons/stadium.png?v=503515')}
.management-asset-icon.icon-maintenance{--asset:url('/ui-icons/maintenance.png?v=503515')}
.management-asset-icon.icon-players{--asset:url('/ui-icons/players.png?v=503515')}
.management-asset-icon.icon-ticket{--asset:url('/ui-icons/ticket.png?v=503515')}
.management-asset-icon.icon-crane{--asset:url('/ui-icons/crane.png?v=503515')}
.management-asset-icon.icon-money{--asset:url('/ui-icons/money.png?v=503515')}
.management-asset-icon.icon-market{--asset:url('/ui-icons/market.png?v=503515')}
.management-asset-icon.icon-handshake{--asset:url('/ui-icons/handshake.png?v=503515')}
.management-asset-icon.icon-facilities{--asset:url('/ui-icons/facilities.png?v=503515')}
.management-asset-icon.icon-public{--asset:url('/ui-icons/public.png?v=503515')}
.management-asset-icon.icon-empty_calendar{--asset:url('/ui-icons/empty_calendar.png?v=503515')}

/* Stadium: actual served artwork, disciplined fan-demand and revenue spacing. */
.stadium-country-emoji{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:28px!important;height:22px!important;font-size:19px!important;line-height:1!important;filter:none!important}
.stadium-fan-card-v3{padding:14px 16px!important;overflow:hidden!important}
.stadium-demand-row{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:10px!important;align-items:center!important}
.stadium-demand-row .stadium-fan-symbol{width:36px!important;height:36px!important;justify-self:start!important}
.stadium-demand-row>strong{min-width:0!important;text-align:left!important;font-size:.94rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.stadium-signal-symbol{width:36px!important;height:36px!important;padding:5px 3px!important;gap:3px!important;justify-self:end!important}
.stadium-signal-symbol i{width:5px!important;height:calc(5px + var(--bar) * 5px)!important}
.stadium-revenue-layout{min-height:170px!important;height:calc(100% - 30px)!important;display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;align-items:center!important;align-content:center!important;gap:18px!important;padding:4px 4px!important}
.stadium-revenue-layout>p{align-self:center!important;margin:0!important}
.stadium-revenue-donut{align-self:center!important;justify-self:center!important}

/* Facilities: compact project board and a stable card layout during builds. */
.facility-construction-board{padding:11px 13px!important;margin-bottom:12px!important}
.facility-construction-board>header{margin-bottom:8px!important}.facility-construction-board>header span{font-size:.65rem!important}.facility-construction-board>header strong{font-size:.62rem!important}
.facility-project-progress{padding:9px 11px!important}.facility-project-progress>header{margin-bottom:6px!important}.facility-project-progress>footer{margin-top:6px!important}.facility-project-progress>footer>span{padding:5px 6px!important}.facility-project-track{height:7px!important}
.infrastructure-grid-v3{align-items:start!important}
.facility-invest-card-v3{display:grid!important;grid-template-rows:190px auto!important;min-width:0!important;height:auto!important;overflow:hidden!important}
.facility-invest-card-v3 .facility-invest-visual{height:190px!important;min-height:190px!important}
.facility-invest-card-v3 .facility-invest-copy{display:grid!important;grid-template-rows:auto auto auto auto auto!important;gap:0!important;min-width:0!important;padding:14px 16px 15px!important}
.facility-invest-card-v3 .facility-invest-copy>header{min-width:0!important}.facility-invest-card-v3 .facility-invest-copy>header h3{font-size:1.03rem!important;white-space:normal!important}.facility-invest-card-v3 .facility-invest-copy>p{min-height:0!important;margin:0 0 10px!important;font-size:.67rem!important;line-height:1.4!important}
.facility-invest-card-v3 .facility-invest-metrics{margin:0 0 9px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.facility-invest-card-v3 .facility-invest-metrics>span{min-width:0!important;padding:8px!important}.facility-invest-card-v3 .facility-invest-metrics>span strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.facility-inline-build{margin:0 0 9px!important;padding:8px 9px!important;border:1px solid rgba(212,169,79,0.15)!important;border-radius:8px!important;background:rgba(13,12,10,0.68)!important}
.facility-inline-build>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.facility-inline-build strong{font:760 .61rem/1.1 var(--body)!important;color:#fbf7ef!important}.facility-inline-build b{font:830 .63rem/1 var(--body)!important;color:#e5c377!important}.facility-inline-build>span{display:block!important;height:6px!important;margin:6px 0!important;border-radius:99px!important;background:rgba(76,57,21,0.16)!important;overflow:hidden!important}.facility-inline-build>span i{display:block!important;height:100%!important;border-radius:inherit!important;background:linear-gradient(90deg,#4c3915,#4c3915)!important}.facility-inline-build small{display:block!important;font:610 .54rem/1.2 var(--body)!important;color:rgba(217,209,194,0.55)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.facility-invest-card-v3 .facility-invest-copy>footer button{position:static!important;transform:none!important;max-width:100%!important}

/* Contract agency: selected-player details sit beside portrait; list and desk align. */
.contracts-main-layout.agency{align-items:stretch!important}
.contract-table-panel.agency{display:flex!important;flex-direction:column!important;min-height:0!important}.contract-table-panel.agency>.finance-table-wrap{flex:1 1 auto!important}
.contract-side-stack.agency{height:100%!important;grid-template-rows:minmax(0,1fr) auto!important}.contract-detail-panel.agency{height:100%!important;box-sizing:border-box!important}
.contract-player-hero-v4{display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;gap:15px!important;align-items:center!important;min-height:188px!important;padding:15px!important;border-bottom:1px solid rgba(212,169,79,0.1)!important;background:radial-gradient(circle at 20% 30%,rgba(42,34,20,0.22),transparent 52%),linear-gradient(145deg,rgba(23,21,15,0.88),rgba(13,12,10,0.97))!important}
.contract-player-hero-v4 .contract-portrait-frame{width:132px!important;height:160px!important;align-self:center!important;border-radius:14px!important;overflow:hidden!important;background:radial-gradient(circle at 50% 30%,rgba(65,121,164,.22),rgba(6,18,36,.85))!important}.contract-player-hero-v4 .contract-portrait-frame img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;transform:none!important}
.contract-hero-main{min-width:0!important;display:grid!important;gap:11px!important}.contract-hero-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 70px!important;gap:10px!important;align-items:center!important}.contract-hero-copy h3{font-size:1.2rem!important;margin:0 0 5px!important}.contract-role-row,.contract-country-row{margin:3px 0!important}.contract-country-flag.player-country-flag-wrap{box-shadow:none!important;border:0!important;background:none!important;border-radius:4px!important}.contract-country-flag .player-country-flag-fallback{background:transparent!important}
.contract-detail-grid-v4{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:0!important}.contract-detail-grid-v4 p{position:relative!important;display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:1px 8px!important;align-items:center!important;margin:0!important;padding:8px 9px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:9px!important;background:rgba(13,12,10,0.5)!important}.contract-detail-grid-v4 .contract-detail-icon{grid-row:1/3!important;width:25px!important;height:25px!important}.contract-detail-grid-v4 p>span{font-size:.50rem!important}.contract-detail-grid-v4 p>strong{font-size:.67rem!important}.contract-detail-grid-v4 p>em{position:absolute!important;right:8px!important;bottom:7px!important;font-size:.50rem!important}
.contract-detail-padding{padding:12px 14px 14px!important}.contract-homegrown-compact,.renewal-outlook-v4{margin-left:0!important;margin-right:0!important;max-width:100%!important;box-sizing:border-box!important}.renewal-outlook-v4{padding:12px 13px!important}.renewal-outlook-v4 .renewal-outlook-heading strong{padding:4px 7px!important;border-radius:6px!important;background:rgba(255,255,255,.04)!important}.renewal-outlook-v4.very-interested .renewal-outlook-heading strong,.renewal-outlook-v4.interested .renewal-outlook-heading strong{color:#61e2a4!important}.renewal-outlook-v4.cautious .renewal-outlook-heading strong{color:#f2c85b!important}.renewal-outlook-v4.reluctant .renewal-outlook-heading strong{color:#ff9a68!important}.renewal-outlook-v4.not-interested .renewal-outlook-heading strong{color:#ff7487!important}
.contract-loyalty-table i,.contract-loyalty-line{overflow:hidden!important}.contract-loyalty-table.high i em,.contract-loyalty-line.high em{background:#5ce1a3!important}.contract-loyalty-table.medium i em,.contract-loyalty-line.medium em{background:#f2c55b!important}.contract-loyalty-table.low i em,.contract-loyalty-line.low em{background:#ff7182!important}
.contract-status.very-interested,.contract-status.interested{color:#60e0a2!important;border-color:rgba(80,224,160,.24)!important;background:rgba(38,125,91,.16)!important}.contract-status.cautious{color:#f2c75b!important;border-color:rgba(242,199,91,.24)!important;background:rgba(130,96,27,.15)!important}.contract-status.reluctant{color:#ff9b69!important;border-color:rgba(255,155,105,.24)!important;background:rgba(132,62,34,.16)!important}
.contract-pagination{justify-content:space-between!important;padding:10px 13px!important}.contract-pagination>span{font-size:.52rem!important}.contract-pagination>div{display:flex!important;align-items:center!important;gap:10px!important}.contract-pagination button{min-width:34px!important;min-height:31px!important;font-size:.72rem!important}.contract-pagination b{font-size:.61rem!important;color:#fbf7ef!important}

/* Finances: bank image belongs to header, not the balance card. */
.finance-command-centre .finance-hero-clean{position:relative!important;isolation:isolate!important;overflow:hidden!important;background:#0d0c0a!important}
.finance-command-centre .finance-hero-clean:before{content:"";position:absolute!important;z-index:-2!important;inset:0!important;background:url('/ui-icons/bank.png?v=503515') center 46%/cover no-repeat!important;filter:saturate(.9) brightness(.62)!important}.finance-command-centre .finance-hero-clean:after{content:"";position:absolute!important;z-index:-1!important;inset:0!important;background:linear-gradient(90deg,rgba(13,12,10,0.96) 0%,rgba(13,12,10,0.78) 48%,rgba(13,12,10,0.42) 100%)!important}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank,.finance-balance-bank{background:linear-gradient(145deg,rgba(13,12,10,0.94),rgba(13,12,10,0.96))!important;border-color:rgba(212,169,79,0.16)!important;box-shadow:inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.20)!important}.finance-balance-card.finance-balance-bank:before,.finance-balance-card.finance-balance-bank:after{display:none!important}
.finance-bank-kpis-v3 article{display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;align-items:center!important}.finance-bank-kpis-v3 .finance-kpi-icon{width:50px!important;height:50px!important}.finance-bank-kpis-v3 article.income .finance-kpi-icon{color:#56dfa1!important}.finance-bank-kpis-v3 article.expense .finance-kpi-icon{color:#ff6f82!important}.finance-bank-kpis-v3 article.net .finance-kpi-icon{color:#e5c377!important}.finance-bank-kpis-v3 article.commitment .finance-kpi-icon{color:#e5c377!important}
.finance-bank-support-v3{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.finance-commitment-v3{width:100%!important;max-width:none!important}.finance-commitment-v3 header b{color:#e5c377!important;font-weight:900!important}.finance-commitment-v3 .finance-commitment-list p>strong{color:#fbf7ef!important;font-size:.78rem!important}.finance-commitment-v3 .finance-commitment-list p>em{font-size:.63rem!important;font-weight:800!important}

/* Player dossier: rebalance visual weight, move actions to left and expose club identity. */
.player-profile-v4{grid-template-columns:258px minmax(0,1fr)!important;grid-template-rows:140px 224px minmax(230px,1fr) 124px!important;gap:10px 12px!important}
.player-dossier-left{grid-template-rows:auto auto auto!important;align-content:start!important;gap:9px!important}.player-dossier-card-wrap .profile-footballer-card{width:232px!important;max-width:232px!important}.player-dossier-facts{padding:10px 12px 8px!important}.player-dossier-facts p{padding:6px 1px!important}.player-dossier-facts span{font-size:.63rem!important}.player-dossier-facts strong{font-size:.72rem!important}
.player-dossier-actions-left{position:static!important;z-index:auto!important;align-self:auto!important;justify-self:stretch!important;padding:10px 11px!important;border:1px solid rgba(212,169,79,0.11)!important;border-radius:13px!important;background:linear-gradient(145deg,rgba(13,12,10,0.78),rgba(13,12,10,0.82))!important}.player-dossier-actions-left>span{margin-bottom:7px!important}.player-dossier-actions-left>div{display:grid!important;grid-template-columns:1.2fr .8fr!important;gap:7px!important}.player-dossier-actions-left button{min-height:34px!important;font-size:.59rem!important;padding:7px 8px!important;text-align:center!important}.player-dossier-actions-left .share{grid-column:1/3!important;max-width:46%!important;justify-self:end!important}
.player-dossier-hero{grid-template-columns:minmax(0,1fr) 150px!important;min-height:140px!important}.player-dossier-identity{padding:19px 28px!important}.player-dossier-identity>span{font-size:.82rem!important}.player-dossier-identity h2{font-size:clamp(2.15rem,3vw,3.5rem)!important}.player-dossier-identity>p{font-size:.84rem!important}.player-dossier-club-mark{appearance:none;position:relative!important;z-index:3!important;align-self:center!important;justify-self:center!important;width:105px!important;height:105px!important;display:grid!important;place-items:center!important;padding:0;border-radius:24px!important;background:rgba(13,12,10,0.42)!important;border:1px solid rgba(212,169,79,0.12)!important;box-shadow:0 16px 36px rgba(0,0,0,.22)!important;cursor:pointer}.player-dossier-club-mark:hover,.player-dossier-club-mark:focus-visible{border-color:rgba(240,215,155,.68)!important;outline:2px solid rgba(240,215,155,.42);outline-offset:2px}.player-dossier-club-mark:disabled{cursor:default}.player-dossier-club-mark img{max-width:82%!important;max-height:82%!important;object-fit:contain!important}.player-dossier-club-mark.fallback{font:900 1.5rem var(--display)!important;color:#e5c377!important}.player-dossier-flag.player-country-flag-wrap{box-shadow:none!important;border:0!important;background:none!important}.player-dossier-flag .player-country-flag-fallback{background:transparent!important}
.player-dossier-headline>b,.player-dossier-headline>span{display:grid!important;align-content:start!important;min-width:88px!important;min-height:45px!important}.player-dossier-headline>b{font-size:1.38rem!important}.player-dossier-headline>span{font-size:.88rem!important}.player-owner-link{appearance:none!important;border:0!important;padding:0!important;background:none!important;color:#e5c377!important;font:800 .84rem/1.1 var(--body)!important;cursor:pointer!important;text-align:left!important}.player-owner-link:hover{text-decoration:underline!important}
.player-dossier-top{grid-template-columns:.96fr 1.18fr 1.12fr 1.35fr!important;gap:11px!important}.player-dossier-top>.player-dossier-panel{padding:14px 15px!important}.player-dossier-top>.player-dossier-panel>header span{font-size:.66rem!important}.player-contract-v4{padding:14px 15px!important}.player-contract-grid-v4{gap:9px!important}.player-contract-grid-v4 p{min-height:54px!important;padding:10px!important;background:rgba(13,12,10,0.46)!important;border:1px solid rgba(212,169,79,0.1)!important}.player-contract-grid-v4 span{font-size:.58rem!important}.player-contract-grid-v4 strong{font-size:.78rem!important}.player-performance-v4 span{font-size:.61rem!important}.player-performance-v4 strong{font-size:.92rem!important}.player-form-match>span,.player-form-match>small{font-size:.64rem!important}.player-form-match>strong{font-size:.84rem!important}
.player-positions-layout-v4{grid-template-columns:minmax(150px,1.18fr) minmax(112px,.82fr)!important;gap:8px!important}.player-position-pitch-v4{min-height:138px!important}.player-position-pitch-v4 i{width:26px!important;height:26px!important;border-width:2px!important}.player-position-pitch-v4 i.primary{width:29px!important;height:29px!important}.player-position-pitch-v4 i b{color:#07101d!important;font:900 .55rem/1 var(--body)!important;text-shadow:none!important}.player-position-list-v4{gap:4px!important}.player-position-list-v4 :is(p,button){min-height:25px!important;padding:4px 7px!important}
.player-form-v4 .player-form-chart{height:122px!important}.player-form-v4 .player-form-chart svg{height:122px!important}.player-form-v4 .player-form-chart-wrap{margin-top:8px!important;padding-left:12px!important}
.player-dossier-analytics{grid-template-columns:minmax(0,1fr) 286px!important;grid-template-rows:1.05fr .95fr!important;gap:9px!important}.player-attribute-grid-v4{gap:7px!important}.player-attribute-group{padding:8px 9px!important}.player-dna-v4,.player-status-v4{padding:10px 12px!important}.player-dna-v4 .player-radar{max-height:178px!important;max-width:235px!important;width:100%!important;margin:auto!important}.player-status-v4 p{padding:7px 2px!important}.player-status-v4 span{font-size:.60rem!important}.player-status-v4 strong{font-size:.68rem!important}
@media (min-width:1280px) and (min-height:720px){.player-profile-v4{grid-template-rows:140px 224px minmax(230px,1fr) 124px!important}.player-dossier-hero{min-height:140px!important}.player-career-table-v4{overflow:auto!important}}


/* ========================================================================== */
/* 3.0A.50.35.16 PROFESSIONAL LAYOUT REFINEMENT                              */
/* ========================================================================== */

/* Player dossier: rebalance the left rail, headline, contract, positions and DNA. */
.player-profile-v4{grid-template-columns:270px minmax(0,1fr)!important;grid-template-rows:158px 196px minmax(228px,1fr) 92px!important}
.player-dossier-left{grid-template-rows:auto auto auto auto!important;align-content:start!important;gap:8px!important}
.player-dossier-card-wrap .profile-footballer-card{width:242px!important;max-width:242px!important}
.player-dossier-actions-left{padding:9px 10px!important}
.player-dossier-actions-left>div{grid-template-columns:1.22fr .78fr!important;gap:7px!important}
.player-dossier-actions-left .share{display:none!important}
.player-share-action{width:100%!important;min-height:32px!important;border:1px solid rgba(212,169,79,0.14)!important;border-radius:10px!important;background:rgba(13,12,10,0.62)!important;color:#fbf7ef!important;font:800 .59rem/1 var(--body)!important;letter-spacing:.025em!important;cursor:pointer!important}
.player-share-action:hover{border-color:rgba(212,169,79,0.32)!important;color:#e5c377!important;background:rgba(23,21,15,0.42)!important}
.player-dossier-club-mark{width:112px!important;height:112px!important;padding:0!important;overflow:hidden!important}
.player-dossier-club-mark img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;padding:4px!important;box-sizing:border-box!important}
.player-dossier-headline{display:grid!important;grid-template-columns:repeat(4,minmax(88px,auto))!important;align-items:start!important;width:max-content!important;max-width:100%!important}
.player-dossier-headline>b,.player-dossier-headline>span{display:grid!important;grid-template-rows:auto 1fr!important;align-content:start!important;min-width:92px!important;padding:0 15px!important;font-size:1.18rem!important;line-height:1.05!important;font-weight:850!important;color:#fbf7ef!important}
.player-dossier-headline>b{padding-left:0!important;border-left:0!important;color:#e5c377!important}
.player-dossier-headline .player-owner-link{font-size:1.18rem!important;line-height:1.05!important;font-weight:850!important;color:#e5c377!important;white-space:nowrap!important}
.player-dossier-headline small{font-size:.59rem!important;line-height:1!important;margin-bottom:5px!important}
.player-contract-v4{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
.player-contract-grid-v4{align-self:center!important;align-content:center!important;grid-auto-rows:minmax(48px,auto)!important;width:100%!important}
.player-contract-grid-v4 p{display:grid!important;align-content:center!important;min-height:48px!important;padding:8px 9px!important}
.player-contract-grid-v4 span{font-size:.55rem!important}.player-contract-grid-v4 strong{font-size:.76rem!important}
.player-dossier-top{grid-template-columns:1fr 1.32fr 1.22fr 1.33fr!important;gap:9px!important}
.player-positions-layout-v4{grid-template-columns:minmax(176px,1.3fr) minmax(116px,.7fr)!important;gap:9px!important}
.player-position-pitch-v4{min-height:146px!important;padding:4px!important;box-sizing:border-box!important}
.player-position-pitch-v4 i{width:23px!important;height:23px!important;border-width:2px!important}
.player-position-pitch-v4 i.primary{width:25px!important;height:25px!important}
.player-position-pitch-v4 i b{font-size:.50rem!important;color:#06101c!important;font-weight:950!important}
.player-position-list-v4 :is(p,button){min-height:24px!important;padding:3px 7px!important}
.player-performance-v4{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important}
.player-performance-v4>div{height:100%!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:5px!important;align-content:stretch!important}
.player-performance-v4 p{display:grid!important;place-content:center!important;min-height:0!important;padding:4px 5px!important}
.player-performance-v4 span{font-size:.52rem!important}.player-performance-v4 strong{font-size:.76rem!important}
.player-dossier-analytics{grid-template-columns:minmax(0,1fr) 318px!important;grid-template-rows:1.08fr .92fr!important;gap:9px!important}
.player-attribute-grid-v4{gap:8px!important}.player-attribute-group{padding:10px 11px!important}
.player-attribute-group .attribute-heading{align-items:center!important;min-height:31px!important;margin-bottom:7px!important}
.player-attribute-group .attribute-heading strong{font-size:.74rem!important}
.player-attribute-group .attribute-score{display:grid!important;place-items:center!important;min-width:42px!important;height:28px!important;padding:0 8px!important;border-radius:8px!important;color:#fff!important;font-size:1rem!important;font-weight:950!important;line-height:1!important;background:rgba(255,255,255,.08)!important;border:1px solid currentColor!important;text-shadow:0 1px 2px rgba(0,0,0,.35)!important;opacity:1!important;visibility:visible!important}
.player-attribute-group.stat-low .attribute-score{background:rgba(183,46,67,.48)!important;border-color:#ff7182!important;color:#fff!important}.player-attribute-group.stat-medium .attribute-score{background:rgba(139,105,25,.48)!important;border-color:#f6cc5c!important;color:#fff!important}.player-attribute-group.stat-high .attribute-score,.player-attribute-group.stat-elite .attribute-score{background:rgba(31,137,91,.48)!important;border-color:#61e6aa!important;color:#fff!important}
.player-attribute-group ul{gap:5px!important}.player-attribute-group li{font-size:.66rem!important;line-height:1.22!important}.player-attribute-group li b{font-size:.68rem!important}
.player-dna-v4 .player-radar{max-width:292px!important;max-height:210px!important;width:100%!important;height:100%!important}.player-dna-v4 .player-radar text{font-size:10px!important}
.player-status-v4 p{padding:7px 2px!important}.player-status-v4 span{font-size:.62rem!important}.player-status-v4 strong{font-size:.70rem!important}

/* Stadium hero: stadium + identity are one visual, with level top-right. */
.stadium-room-v4{position:relative!important;display:block!important;min-height:0!important;overflow:hidden!important;padding:0!important;background:#0d0c0a!important}
.stadium-room-v4 .stadium-level-visual{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:grid!important;place-items:center!important;padding:18px!important;box-sizing:border-box!important}
.stadium-room-v4 .stadium-level-visual img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}
.stadium-room-copy-overlay{position:absolute!important;z-index:3!important;left:22px!important;top:20px!important;width:auto!important;max-width:285px!important;padding:14px 16px!important;border:0!important;border-radius:12px!important;background:linear-gradient(135deg,rgba(13,12,10,0.88),rgba(13,12,10,0.64))!important;backdrop-filter:blur(7px)!important;box-shadow:0 10px 24px rgba(0,0,0,.20)!important}
.stadium-room-copy-overlay h3{margin:4px 0 8px!important;font-size:1.45rem!important}.stadium-room-copy-overlay>p{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important}
.stadium-country-flag-wrap{position:relative!important;display:inline-grid!important;place-items:center!important;width:29px!important;height:22px!important;overflow:hidden!important;border-radius:4px!important;background:rgba(255,255,255,.04)!important;flex:0 0 auto!important}.stadium-country-flag{position:relative!important;z-index:2!important;width:29px!important;height:22px!important;object-fit:cover!important;display:block!important}.stadium-country-flag-fallback{position:absolute!important;inset:0!important;z-index:1!important;display:grid!important;place-items:center!important;font-size:1rem!important;line-height:1!important}
.stadium-current-level-overlay{position:absolute!important;z-index:3!important;right:22px!important;top:20px!important;display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:auto auto!important;column-gap:8px!important;align-items:end!important;padding:11px 13px!important;border-radius:11px!important;background:rgba(13,12,10,0.82)!important;backdrop-filter:blur(7px)!important;box-shadow:0 10px 24px rgba(0,0,0,.20)!important}.stadium-current-level-overlay small{grid-column:1/3!important;font-size:.52rem!important;color:rgba(217,209,194,0.58)!important}.stadium-current-level-overlay strong{font-size:1.42rem!important;color:#fff!important;line-height:1!important}.stadium-current-level-overlay em{align-self:end!important;font-style:normal!important;font-size:.58rem!important;color:#e5c377!important;text-transform:uppercase!important}
.stadium-room-v4 .stadium-room-footer{position:absolute!important;z-index:3!important;left:22px!important;bottom:18px!important;width:auto!important;display:flex!important;gap:8px!important;padding:0!important;border:0!important;background:none!important}.stadium-room-v4 .stadium-room-footer>span{min-width:105px!important;padding:8px 10px!important;border:1px solid rgba(212,169,79,0.12)!important;border-radius:9px!important;background:rgba(13,12,10,0.78)!important;backdrop-filter:blur(6px)!important}
.stadium-demand-row{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;align-items:center!important;gap:11px!important}.stadium-demand-row .stadium-signal-symbol{grid-column:1!important;grid-row:1!important;width:40px!important;height:31px!important;margin:0!important}.stadium-demand-row>strong{grid-column:2!important;grid-row:1!important;min-width:0!important;font-size:1.02rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.stadium-fan-symbol{display:none!important}

/* Facilities: compact construction board and image-first investment cards. */
.facility-construction-board{padding:9px 12px!important;margin-bottom:10px!important}.facility-construction-board>header{margin-bottom:6px!important}
.facility-project-progress{padding:8px 10px!important}.facility-project-progress>header{margin-bottom:5px!important}.facility-project-track{height:6px!important}.facility-project-progress>footer{display:flex!important;align-items:center!important;gap:14px!important;margin-top:5px!important;padding:0!important}.facility-project-progress>footer>span{display:flex!important;align-items:baseline!important;gap:5px!important;padding:0!important;border:0!important;background:none!important;border-radius:0!important}.facility-project-progress>footer small{font-size:.48rem!important}.facility-project-progress>footer strong{font-size:.56rem!important;white-space:nowrap!important}
.infrastructure-grid-v3{gap:12px!important}.facility-invest-card-v3{display:grid!important;grid-template-rows:210px auto!important;height:auto!important;min-height:0!important}.facility-invest-card-v3 .facility-invest-visual{height:210px!important;min-height:210px!important;padding:6px!important;box-sizing:border-box!important;background:linear-gradient(145deg,#0d0c0a,#0d0c0a)!important}.facility-invest-card-v3 .facility-invest-visual img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important}.facility-invest-card-v3 .facility-invest-copy{padding:13px 15px 14px!important;display:grid!important;grid-template-rows:auto auto auto auto auto!important;gap:0!important}.facility-invest-card-v3 .facility-invest-copy>header{margin-bottom:6px!important}.facility-invest-card-v3 .facility-invest-copy>p{margin:0 0 9px!important;min-height:0!important;font-size:.68rem!important;line-height:1.35!important}.facility-invest-card-v3 .facility-invest-metrics{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:0 0 9px!important}.facility-invest-card-v3 .facility-invest-metrics>span{padding:7px 8px!important}.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{grid-column:auto!important;display:grid!important;align-items:initial!important;justify-content:initial!important}.facility-invest-card-v3 .facility-invest-metrics>span small{font-size:.49rem!important}.facility-invest-card-v3 .facility-invest-metrics>span strong{font-size:.66rem!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price strong{font-size:.70rem!important}.facility-inline-build{padding:7px 8px!important;margin:0 0 8px!important}.facility-inline-build small{font-size:.53rem!important}.facility-invest-card-v3 .facility-invest-copy>footer button{min-height:36px!important}

/* Contracts: restore the calmer agency-card rhythm from 35.14 while keeping 35.15 data placement. */
.contract-detail-panel.contract-detail-v4{overflow:hidden!important;background:linear-gradient(145deg,rgba(13,12,10,0.94),rgba(13,12,10,0.97))!important}
.contract-player-hero-v4{padding:14px 14px 12px!important;grid-template-columns:112px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;border-bottom:1px solid rgba(212,169,79,0.09)!important}.contract-player-hero-v4 .contract-portrait-frame{width:112px!important;height:130px!important;align-self:center!important}.contract-player-hero-v4 .contract-portrait-frame img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center bottom!important}.contract-player-hero-v4 .contract-hero-main{min-width:0!important}.contract-player-hero-v4 .contract-hero-heading{display:grid!important;grid-template-columns:minmax(0,1fr) 66px!important;gap:10px!important;align-items:start!important}.contract-player-hero-v4 .contract-hero-copy h3{margin:0 0 5px!important;font-size:1.12rem!important}.contract-player-hero-v4 .contract-hero-score{width:64px!important;height:64px!important;align-self:start!important}.contract-detail-grid-v4{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:10px!important}.contract-detail-grid-v4>p{min-height:58px!important;padding:8px 9px!important}.contract-detail-padding{padding:12px 14px 14px!important}.contract-homegrown-compact{margin:0 0 10px!important;padding:9px 10px!important}.renewal-outlook-v4{margin:0 0 10px!important;padding:10px 11px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:10px!important;background:rgba(13,12,10,0.46)!important}.renewal-outlook-v4 .renewal-outlook-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:5px!important}.renewal-outlook-v4 .renewal-outlook-heading span{font:800 .52rem var(--body)!important;letter-spacing:.05em!important;color:rgba(217,209,194,0.55)!important}.renewal-outlook-v4 .renewal-outlook-heading strong{font:900 .72rem var(--body)!important;padding:0!important;background:none!important}.renewal-outlook-v4 p{margin:0!important;font:580 .62rem/1.35 var(--body)!important;color:rgba(251,247,239,0.68)!important}.contract-expectation-grid.agency{margin-top:0!important}.contract-primary-cta.agency{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin-top:10px!important}

/* Finances: one continuous bank hero/period zone; remove the full-page backing layer. */
#profileFinancesPanel .finance-command-centre{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profileFinancesPanel .finance-command-centre:before{display:none!important}
.finance-hero-zone{position:relative!important;isolation:isolate!important;overflow:hidden!important;border:1px solid rgba(212,169,79,0.13)!important;border-radius:18px 18px 0 0!important;background:#0d0c0a!important}
.finance-hero-zone:before{content:"";position:absolute!important;z-index:-2!important;inset:0!important;background:url('/ui-icons/bank.png?v=503515') center 46%/cover no-repeat!important;filter:saturate(.9) brightness(.58)!important}.finance-hero-zone:after{content:"";position:absolute!important;z-index:-1!important;inset:0!important;background:linear-gradient(90deg,rgba(13,12,10,0.96) 0%,rgba(13,12,10,0.78) 50%,rgba(13,12,10,0.42) 100%)!important}
.finance-hero-zone .finance-hero-clean{background:transparent!important;border:0!important}.finance-hero-zone .finance-hero-clean:before,.finance-hero-zone .finance-hero-clean:after{display:none!important}.finance-hero-zone .finance-periods{position:relative!important;z-index:1!important;margin:0!important;padding:12px 30px 15px!important;border-top:1px solid rgba(212,169,79,0.1)!important;border-bottom:0!important;background:rgba(13,12,10,0.34)!important;backdrop-filter:blur(3px)!important}
.club-management-nav-v2 .finance-balance-card.finance-balance-bank,.finance-balance-card.finance-balance-bank{position:relative!important;overflow:hidden!important;border:1px solid rgba(190,155,91,.42)!important;background:linear-gradient(145deg,rgba(13,12,10,0.94),rgba(13,12,10,0.96))!important;box-shadow:inset 0 0 0 1px rgba(230,189,107,.07),inset 0 1px rgba(255,255,255,.05),0 14px 34px rgba(0,0,0,.22)!important}.finance-balance-card.finance-balance-bank:before{display:block!important;content:""!important;position:absolute!important;inset:0!important;pointer-events:none!important;border-radius:inherit!important;box-shadow:inset 0 0 0 1px rgba(229,187,105,.10)!important}.finance-balance-card.finance-balance-bank:after{display:none!important}
#profileFinancesPanel .finance-body{padding:18px 0 0!important;background:transparent!important}.finance-bank-main-v3,.finance-bank-support-v3,.finance-ledger-v3{margin-left:0!important;margin-right:0!important}

@media (max-width:1420px) and (min-width:1280px){
  .player-profile-v4{grid-template-columns:238px minmax(0,1fr)!important}.player-dossier-card-wrap .profile-footballer-card{width:218px!important;max-width:218px!important}.player-dossier-top{grid-template-columns:1fr 1.25fr 1.18fr 1.28fr!important}.player-dossier-analytics{grid-template-columns:minmax(0,1fr) 280px!important}.player-dna-v4 .player-radar{max-width:255px!important}
}
.player-dossier-club-mark img{transform:scale(1.10)!important}
#profileFinancesPanel .finance-command-centre{clip-path:none!important}

/* ========================================================================== */
/* 3.0A.50.35.17 — layout cleanup, compact facilities and kit-number dossier */
/* ========================================================================== */

/* Stadium: remove the page-within-a-page frame and let the stadium breathe. */
#profileStadiumPanel .stadium-management-page,
#profileInfrastructurePanel .goat-management-page{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileStadiumPanel .stadium-management-page:before,
#profileInfrastructurePanel .goat-management-page:before{display:none!important}
#profileStadiumPanel .goat-management-header,
#profileInfrastructurePanel .goat-management-header{
  padding:8px 0 18px!important;
  border:0!important;
  background:transparent!important;
}
#profileStadiumPanel .goat-management-body,
#profileInfrastructurePanel .goat-management-body{padding:0!important;background:transparent!important}
.stadium-room-v4{background:rgba(13,12,10,0.58)!important}
.stadium-room-v4 .stadium-level-visual img{opacity:.88!important;filter:saturate(.92) contrast(1.04) brightness(.92)!important}
.stadium-room-copy-overlay{background:linear-gradient(135deg,rgba(13,12,10,0.77),rgba(13,12,10,0.48))!important}
.stadium-room-copy-overlay h3{margin:0 0 8px!important}
.stadium-room-copy-overlay>span{display:none!important}

/* Facilities: compact, three-across investment cards and a genuinely compact build board. */
.facility-construction-board{padding:7px 10px!important;margin-bottom:10px!important}
.facility-construction-board>header{min-height:22px!important;margin:0 0 4px!important}
.facility-construction-board>div{gap:5px!important}
.facility-project-progress{padding:6px 9px!important}
.facility-project-progress>header{margin:0 0 4px!important;min-height:21px!important}
.facility-project-track{height:5px!important}
.facility-project-progress>footer{margin:4px 0 0!important;gap:16px!important;min-height:18px!important}
.facility-project-progress>footer>span{gap:4px!important}
.facility-project-progress>footer small{font-size:.46rem!important}
.facility-project-progress>footer strong{font-size:.55rem!important}
.infrastructure-grid-v3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px!important;align-items:start!important}
.facility-invest-card-v3{grid-template-rows:158px auto!important;border-radius:13px!important}
.facility-invest-card-v3 .facility-invest-visual{height:158px!important;min-height:158px!important;padding:4px!important}
.facility-invest-card-v3 .facility-invest-visual img{object-fit:contain!important;object-position:center!important;transform:none!important}
.facility-invest-card-v3 .facility-invest-copy{padding:11px 12px 12px!important}
.facility-invest-card-v3 .facility-invest-copy>header{margin-bottom:4px!important}
.facility-invest-card-v3 .facility-invest-copy>header h3{font-size:.91rem!important}
.facility-invest-card-v3 .facility-invest-copy>header small{font-size:.47rem!important}
.facility-invest-card-v3 .facility-invest-copy>header>b{font-size:.64rem!important}
.facility-invest-card-v3 .facility-invest-copy>p{margin:0 0 7px!important;font-size:.61rem!important;line-height:1.30!important}
.facility-invest-card-v3 .facility-invest-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin:0 0 7px!important}
.facility-invest-card-v3 .facility-invest-metrics>span{padding:6px 7px!important}
.facility-invest-card-v3 .facility-invest-metrics>span small{font-size:.45rem!important}
.facility-invest-card-v3 .facility-invest-metrics>span strong{font-size:.61rem!important}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price strong{font-size:.69rem!important}
.facility-inline-build{padding:6px 7px!important;margin:0 0 7px!important}
.facility-inline-build>span{height:5px!important;margin:4px 0!important}
.facility-inline-build small{font-size:.48rem!important}
.facility-invest-card-v3 .facility-invest-copy>footer button{min-height:32px!important;font-size:.60rem!important}
@media (max-width:1280px){.infrastructure-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:820px){.infrastructure-grid-v3{grid-template-columns:1fr!important}}

/* Finances: the bank is the page atmosphere, not another framed header card. */
#profileFinancesPanel{
  position:relative!important;
  isolation:isolate!important;
  background:
    linear-gradient(180deg,rgba(13,12,10,0.6) 0%,rgba(13,12,10,0.88) 310px,rgba(13,12,10,0.97) 650px),
    url('/ui-icons/bank.png?v=503517') center top/cover no-repeat!important;
}
#profileFinancesPanel:before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(13,12,10,0.72),rgba(13,12,10,0.32) 55%,rgba(13,12,10,0.62))}
#profileFinancesPanel .finance-hero-zone{overflow:visible!important;border:0!important;border-radius:0!important;background:transparent!important}
#profileFinancesPanel .finance-hero-zone:before,
#profileFinancesPanel .finance-hero-zone:after{display:none!important}
#profileFinancesPanel .finance-hero-zone .finance-hero-clean{padding:18px 0 16px!important;background:transparent!important;border:0!important}
#profileFinancesPanel .finance-hero-zone .finance-periods{padding:8px 0 16px!important;border:0!important;background:transparent!important;backdrop-filter:none!important}
#profileFinancesPanel .finance-balance-card.finance-balance-bank{
  align-content:start!important;
  justify-items:start!important;
  text-align:left!important;
  padding:16px 20px!important;
}
#profileFinancesPanel .finance-balance-card.finance-balance-bank span,
#profileFinancesPanel .finance-balance-card.finance-balance-bank strong{justify-self:start!important;text-align:left!important}

/* Player dossier: vertical position lanes, readable attributes, and persistent kit number. */
.player-dossier-left{grid-template-rows:auto auto auto auto auto!important}
.player-kit-panel-v5{
  padding:9px 10px 10px;
  border:1px solid rgba(212,169,79,0.11);
  border-radius:13px;
  background:linear-gradient(145deg,rgba(13,12,10,0.78),rgba(13,12,10,0.82));
}
.player-kit-panel-v5>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.player-kit-panel-v5>header span{color:#e5c377;font-size:.60rem;font-weight:950;letter-spacing:.09em}
.player-kit-layout-v5{display:grid;grid-template-columns:82px minmax(0,1fr);gap:9px;align-items:center}
.player-kit-visual-v5{position:relative;width:82px;height:86px;display:grid;place-items:center;overflow:hidden}
.player-kit-visual-v5 img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 12px rgba(0,0,0,.30))}
.player-kit-surname-v5,.player-kit-number-v5{position:absolute;z-index:2;left:50%;transform:translateX(-50%);width:64%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#fff;text-shadow:0 1px 3px #000;font-family:var(--body)}
.player-kit-surname-v5{top:27px;font-size:.43rem;font-weight:850;letter-spacing:.03em}
.player-kit-number-v5{top:38px;font-size:1.18rem;font-weight:950;line-height:1}
.player-kit-number-form-v5{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:6px!important;align-items:end!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
.player-kit-number-form-v5 label{display:grid!important;gap:4px!important}
.player-kit-number-form-v5 label>span{font-size:.48rem!important;color:rgba(217,209,194,0.54)!important}
.player-kit-number-form-v5 input{width:100%!important;height:30px!important;box-sizing:border-box!important;padding:5px 8px!important;border-radius:7px!important;font-size:.68rem!important}
.player-kit-number-form-v5 button[type="submit"]{height:30px!important;min-height:30px!important;padding:0 6px!important;border-radius:7px!important;font-size:.54rem!important}
.player-kit-number-form-v5 small{grid-column:1/-1!important;font-size:.43rem!important;line-height:1.2!important;min-height:0!important;margin:0!important}
.player-kit-number-readonly-v5{display:grid!important;gap:3px!important;padding:0!important;border:0!important;background:none!important;text-align:left!important}
.player-kit-number-readonly-v5 span{font-size:.48rem!important}.player-kit-number-readonly-v5 strong{font-size:1.1rem!important}
.player-position-pitch-v4{min-height:148px!important}
.player-position-pitch-v4 i{width:23px!important;height:23px!important}
.player-position-pitch-v4 i.primary{width:27px!important;height:27px!important}
.player-position-pitch-v4 i b{left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;padding:0!important;background:none!important;color:#07101d!important;font:950 .48rem/1 var(--body)!important;text-shadow:none!important}
.player-attribute-group .attribute-heading strong{font-size:.94rem!important;letter-spacing:.025em!important;color:#fff!important}
.player-attribute-group .attribute-score{min-width:46px!important;height:31px!important;font-size:1.16rem!important;color:#fff!important}
.player-attribute-group ul{gap:6px!important}
.player-attribute-group li{font-size:.73rem!important;line-height:1.28!important}
.player-attribute-group li b{font-size:.74rem!important}
.player-dna-v4 .player-radar{max-width:285px!important;max-height:210px!important}

/* ========================================================================== */
/* 3.0A.50.35.18 — spacing, contract hierarchy and management-page cleanup   */
/* ========================================================================== */

/* Global footer: keep the information, remove the card/window underneath it.
   A hairline gold top rule replaces that removed card edge, matching the
   homepage footer's own border-top (#homeView.gd-home .gd-footer). */
.site-footer{
  border:0!important;
  border-top:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding-top:14px!important;
  padding-bottom:10px!important;
}

/* Stadium: slightly tighter lower analytics cards. */
.stadium-premium-lower{align-items:start!important}
.stadium-data-card.premium{
  min-height:0!important;
  padding:15px 16px!important;
}
.stadium-data-card.attendance svg{
  height:166px!important;
  margin-top:9px!important;
}
.stadium-attendance-v3 .stadium-attendance-chart{min-height:162px!important}
.stadium-attendance-v3 .stadium-attendance-chart svg{height:153px!important}
.stadium-revenue-layout{grid-template-columns:136px minmax(0,1fr)!important;gap:14px!important;padding:5px 2px!important}
.stadium-revenue-donut{width:126px!important;height:126px!important}
.stadium-revenue-donut:before{width:86px!important;height:86px!important}
.stadium-image-path{margin-top:10px!important;gap:7px!important}
.stadium-image-path article{padding:7px!important}
.stadium-image-path img{height:67px!important}
.stadium-full-path-premium{margin-top:9px!important}

/* Facilities: consistent centered metrics, compact construction, centered CTA. */
.infrastructure-grid-v3{align-items:start!important}
.facility-invest-card-v3{align-self:start!important;height:auto!important}
.facility-invest-card-v3 .facility-invest-copy{
  align-content:start!important;
  grid-template-rows:max-content max-content max-content max-content max-content!important;
}
.facility-invest-card-v3 .facility-invest-copy>p{
  min-height:32px!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.facility-invest-card-v3 .facility-invest-metrics{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span{
  min-height:47px!important;
  display:grid!important;
  place-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span small,
.facility-invest-card-v3 .facility-invest-metrics>span strong{
  width:100%!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{
  grid-column:1/-1!important;
  min-height:39px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:18px!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price small,
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price strong{width:auto!important}
.facility-inline-build{
  align-self:start!important;
  margin:0 0 6px!important;
}
.facility-invest-card-v3.building .facility-invest-copy{align-content:start!important}
.facility-invest-card-v3 .facility-invest-copy>footer{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  margin:0!important;
  padding:0!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer button{
  width:min(82%,250px)!important;
  margin:0 auto!important;
}

/* Contracts: page content sits directly on the page, with a clean two-tier detail card. */
#profileContractsPanel .goat-management-page{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileContractsPanel .goat-management-page:before{display:none!important}
#profileContractsPanel .goat-management-header{
  padding:8px 0 18px!important;
  border:0!important;
  background:transparent!important;
}
#profileContractsPanel .goat-management-body{padding:0!important;background:transparent!important}
.contract-detail-panel.contract-detail-v5{
  overflow:hidden!important;
  border:1px solid rgba(212,169,79,0.14)!important;
  border-radius:15px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.95),rgba(13,12,10,0.98))!important;
  box-shadow:0 18px 38px rgba(0,0,0,.14),inset 0 1px rgba(255,255,255,.025)!important;
}
.contract-identity-section-v5{
  display:grid!important;
  grid-template-columns:104px minmax(0,1fr) 68px!important;
  gap:13px!important;
  align-items:center!important;
  padding:15px 15px 13px!important;
  border-bottom:1px solid rgba(212,169,79,0.09)!important;
  background:linear-gradient(135deg,rgba(23,21,15,0.52),rgba(13,12,10,0.26))!important;
}
.contract-identity-section-v5 .contract-portrait-frame{
  width:104px!important;
  height:120px!important;
  align-self:center!important;
  justify-self:center!important;
  overflow:hidden!important;
  border-radius:13px!important;
}
.contract-identity-section-v5 .contract-portrait-frame img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
.contract-identity-copy-v5{min-width:0!important;align-self:center!important}
.contract-identity-copy-v5 h3{
  margin:0 0 7px!important;
  font:850 1.18rem/1.04 var(--body)!important;
  color:#fbf7ef!important;
  letter-spacing:-.018em!important;
}
.contract-identity-copy-v5 .contract-role-row,
.contract-identity-copy-v5 .contract-country-row{margin:0 0 6px!important}
.contract-identity-copy-v5 .contract-country-row{display:flex!important;align-items:center!important;gap:7px!important}
.contract-identity-copy-v5 .contract-country-flag{border:0!important;box-shadow:none!important;background:transparent!important}
.contract-hero-score-v5{
  width:66px!important;
  height:66px!important;
  display:grid!important;
  place-content:center!important;
  justify-self:end!important;
  align-self:center!important;
  border:2px solid #d4a94f!important;
  border-radius:50%!important;
  text-align:center!important;
}
.contract-hero-score-v5 b{font:900 1.22rem/1 var(--body)!important;color:#fff!important}
.contract-hero-score-v5 span{margin-top:3px!important;font:.48rem/1 var(--body)!important;color:rgba(217,209,194,0.55)!important}
.contract-core-metrics-v5{
  padding:11px 14px 12px!important;
  border-bottom:1px solid rgba(212,169,79,0.08)!important;
  background:rgba(13,12,10,0.34)!important;
}
.contract-detail-grid-v5{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
  margin:0!important;
}
.contract-detail-grid-v5>p{
  min-height:59px!important;
  margin:0!important;
  padding:9px 10px!important;
  border:1px solid rgba(212,169,79,0.09)!important;
  border-radius:9px!important;
  background:rgba(13,12,10,0.64)!important;
}
.contract-detail-padding-v5{padding:12px 14px 14px!important}
.renewal-outlook-v5{
  margin:0 0 10px!important;
  padding:11px 12px!important;
  border:1px solid rgba(212,169,79,0.1)!important;
  border-radius:10px!important;
  background:rgba(13,12,10,0.48)!important;
}
.renewal-outlook-v5 .renewal-outlook-heading{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:5px!important;
}
.renewal-outlook-v5 .renewal-outlook-heading span{font:800 .52rem var(--body)!important;color:rgba(217,209,194,0.55)!important;letter-spacing:.05em!important}
.renewal-outlook-v5 .renewal-outlook-heading strong{font:900 .72rem var(--body)!important}
.renewal-outlook-v5 p{margin:0!important;font:580 .62rem/1.35 var(--body)!important;color:rgba(251,247,239,0.68)!important}
.renewal-outlook-v5.very-interested strong,.renewal-outlook-v5.interested strong{color:#61e2a4!important}
.renewal-outlook-v5.cautious strong{color:#f2c85b!important}
.renewal-outlook-v5.reluctant strong{color:#ff9a68!important}
.renewal-outlook-v5.not-interested strong{color:#ff7487!important}

/* Finances: use bank art for the actual page atmosphere, not a header panel. */
body.finance-management-background .world-bg::before{
  background:url('/ui-icons/bank.png?v=503518') center 24%/cover no-repeat!important;
  filter:blur(2px) brightness(.68) saturate(.86)!important;
  transform:scale(1.012)!important;
}
body.finance-management-background .world-gradient{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.78),rgba(13,12,10,0.38) 48%,rgba(13,12,10,0.72)),
    linear-gradient(180deg,rgba(13,12,10,0.18),rgba(13,12,10,0.72) 48%,rgba(13,12,10,0.92) 100%)!important;
}
#profileFinancesPanel{background:transparent!important}
#profileFinancesPanel:before{display:none!important}
#profileFinancesPanel .finance-command-centre,
#profileFinancesPanel .finance-command-centre.section-frame{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileFinancesPanel .finance-command-centre:before{display:none!important}
#profileFinancesPanel .finance-hero-zone,
#profileFinancesPanel .finance-hero-clean,
#profileFinancesPanel .finance-periods{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileFinancesPanel .finance-hero-clean{padding:8px 0 14px!important}
#profileFinancesPanel .finance-periods{padding:6px 0 16px!important}
#profileFinancesPanel .finance-balance-card.finance-balance-bank{
  align-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
#profileFinancesPanel .finance-balance-card.finance-balance-bank span,
#profileFinancesPanel .finance-balance-card.finance-balance-bank strong{
  justify-self:center!important;
  text-align:center!important;
}

/* Player dossier: larger kit, more pitch separation, roomier attributes and recent form. */
.player-kit-panel-v5{padding:9px 10px 10px!important}
.player-kit-layout-v5{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
  justify-items:center!important;
}
.player-kit-visual-v5{
  width:122px!important;
  height:126px!important;
  margin:0 auto!important;
}
.player-kit-surname-v5{
  top:37px!important;
  width:58%!important;
  font-size:.50rem!important;
  letter-spacing:.035em!important;
}
.player-kit-number-v5{
  top:53px!important;
  font-size:1.45rem!important;
}
.player-kit-number-form-v5{
  width:100%!important;
  grid-template-columns:minmax(0,1fr) 52px!important;
  margin-top:0!important;
}
.player-kit-number-readonly-v5{width:100%!important;text-align:center!important;justify-items:center!important}
.player-position-pitch-v4{min-height:160px!important;height:160px!important}
.player-position-pitch-v4 i{width:24px!important;height:24px!important}
.player-position-pitch-v4 i.primary{width:28px!important;height:28px!important}
.player-attribute-grid-v4{gap:12px!important}
.player-attribute-group{padding:9px 10px!important}
.player-attribute-group .attribute-heading strong{font-size:1.02rem!important}
.player-attribute-group .attribute-score{font-size:1.25rem!important;min-width:48px!important;height:32px!important}
.player-attribute-group ul{gap:7px!important}
.player-attribute-group li{font-size:.80rem!important;line-height:1.28!important}
.player-attribute-group li b{font-size:.80rem!important}
.player-attribute-group .attribute-track span,
.player-attribute-group li>i em{
  filter:saturate(1.10) brightness(1.05)!important;
}
.player-attribute-group .attribute-track span{
  box-shadow:0 0 5px color-mix(in srgb,var(--stat-color) 24%,transparent)!important;
}
.player-form-match-strip{gap:6px!important}
.player-form-match{
  min-height:44px!important;
  padding:8px 6px!important;
  border-radius:9px!important;
  display:grid!important;
  align-content:center!important;
}
.player-form-match>span,.player-form-match>small{font-size:.64rem!important;line-height:1.15!important}
.player-form-match>strong{margin:3px 0!important;font-size:.86rem!important}

/* ========================================================================== */
/* 3.0A.50.35.19 PROFESSIONAL MANAGEMENT REFINEMENT                         */
/* ========================================================================== */

/* Stadium: all three lower analytics cards share one compact height. */
@media (min-width: 901px){
  .stadium-premium-lower{align-items:stretch!important;grid-auto-rows:215px!important}
  .stadium-data-card.premium{height:215px!important;min-height:215px!important;max-height:215px!important;box-sizing:border-box!important;overflow:hidden!important}
  .stadium-data-card.attendance svg{height:134px!important;margin-top:6px!important}
  .stadium-attendance-v3 .stadium-attendance-chart{min-height:134px!important;height:134px!important}
  .stadium-attendance-v3 .stadium-attendance-chart svg{height:134px!important}
  .stadium-revenue-layout{height:154px!important;align-items:center!important}
  .stadium-data-card.path .stadium-image-path{margin-top:7px!important}
  .stadium-data-card.path .stadium-full-path-premium{margin-top:6px!important}
}

/* Facilities: every investment card uses the exact same geometry whether idle or building. */
.infrastructure-grid-v3{align-items:stretch!important}
.facility-invest-card-v3{
  height:382px!important;
  min-height:382px!important;
  max-height:382px!important;
  grid-template-rows:145px minmax(0,1fr)!important;
  align-self:stretch!important;
}
.facility-invest-card-v3 .facility-invest-visual{height:145px!important;min-height:145px!important}
.facility-invest-card-v3 .facility-invest-copy{
  min-height:0!important;
  padding:10px 11px!important;
  display:grid!important;
  grid-template-rows:28px 29px 76px 42px 32px!important;
  gap:5px!important;
  align-content:stretch!important;
}
.facility-invest-card-v3 .facility-invest-copy>header{height:28px!important;margin:0!important;align-items:center!important}
.facility-invest-card-v3 .facility-invest-copy>p{
  height:29px!important;
  min-height:29px!important;
  margin:0!important;
  font-size:.59rem!important;
  line-height:1.25!important;
  -webkit-line-clamp:2!important;
}
.facility-invest-card-v3 .facility-invest-metrics{
  height:76px!important;
  margin:0!important;
  gap:5px!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:36px 35px!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span{
  min-height:0!important;
  height:36px!important;
  padding:4px 5px!important;
  place-content:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{
  grid-column:1/-1!important;
  height:35px!important;
  min-height:35px!important;
  padding:4px 7px!important;
}
.facility-inline-build{
  height:44px!important;
  min-height:44px!important;
  max-height:42px!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:5px 7px!important;
  overflow:hidden!important;
}
.facility-inline-build>div{min-height:11px!important}
.facility-inline-build>span{height:4px!important;margin:3px 0!important}
.facility-inline-build small{font-size:.46rem!important;line-height:1!important}
.facility-inline-ready{opacity:.72!important;border-color:rgba(212,169,79,0.09)!important;background:rgba(13,12,10,0.36)!important}
.facility-inline-ready b{color:#62dfb0!important}
.facility-invest-card-v3 .facility-invest-copy>footer{height:32px!important;min-height:32px!important;margin:0!important}
.facility-invest-card-v3 .facility-invest-copy>footer button{height:32px!important;min-height:32px!important;width:min(84%,260px)!important;margin:0 auto!important}

/* Contracts: eight rows per page and one continuous gradient across the detail card. */
.contract-detail-panel.contract-detail-v5{
  background:linear-gradient(145deg,rgba(23,21,15,0.97),rgba(13,12,10,0.98))!important;
}
.contract-identity-section-v5,
.contract-core-metrics-v5,
.contract-detail-padding-v5{
  background:transparent!important;
}
.contract-identity-section-v5{border-bottom:1px solid rgba(212,169,79,0.08)!important}
.contract-core-metrics-v5{border-bottom:1px solid rgba(212,169,79,0.08)!important}

/* Player contract: retain the four core metrics and add server-backed renewal willingness. */
.player-contract-v4{grid-template-rows:auto minmax(0,1fr) auto!important}
.player-contract-grid-v4{align-self:center!important}
.player-contract-willingness{
  min-height:29px!important;
  margin-top:7px!important;
  padding:6px 8px!important;
  border:1px solid rgba(212,169,79,0.1)!important;
  border-radius:8px!important;
  background:rgba(13,12,10,0.5)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
}
.player-contract-willingness span{font:800 .49rem/1 var(--body)!important;letter-spacing:.055em!important;color:rgba(217,209,194,0.53)!important}
.player-contract-willingness strong{font:900 .61rem/1 var(--body)!important;color:#66e1aa!important}
.player-contract-willingness.cautious strong{color:#f0c85c!important}
.player-contract-willingness.reluctant strong{color:#ff9a68!important}
.player-contract-willingness.not-interested strong{color:#ff7487!important}
\n\n/* ========================================================================== */
/* 3.0A.50.35.20 — facility geometry, form visibility and navigation polish  */
/* ========================================================================== */

/* Stadium: the first-attendance empty state must fit inside the compact card. */
.stadium-data-card.attendance .stadium-chart-empty{
  min-height:145px!important;
  height:145px!important;
  margin-top:4px!important;
  box-sizing:border-box!important;
  padding:12px!important;
  text-align:center!important;
  line-height:1.35!important;
  overflow:visible!important;
}

/* Facilities: one exact card geometry for apartments, gym, medical and training. */
.infrastructure-grid-v3{align-items:stretch!important}
.facility-invest-card-v3{
  height:378px!important;
  min-height:378px!important;
  max-height:378px!important;
  grid-template-rows:142px 236px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-visual{
  height:142px!important;
  min-height:142px!important;
  max-height:142px!important;
}
.facility-invest-card-v3 .facility-invest-copy{
  height:236px!important;
  min-height:236px!important;
  max-height:236px!important;
  box-sizing:border-box!important;
  padding:8px 10px!important;
  display:grid!important;
  grid-template-rows:28px 28px 70px 38px 34px!important;
  gap:4px!important;
  align-content:stretch!important;
  overflow:hidden!important;
}
.facility-invest-card-v3 .facility-invest-copy>header{
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
}
.facility-invest-card-v3 .facility-invest-copy>p{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  line-height:1.25!important;
  overflow:hidden!important;
}
.facility-invest-card-v3 .facility-invest-metrics{
  height:70px!important;
  min-height:70px!important;
  max-height:70px!important;
  margin:0!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:33px 33px!important;
  gap:4px!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span{
  height:33px!important;
  min-height:33px!important;
  max-height:33px!important;
  padding:3px 5px!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{
  grid-column:1/-1!important;
  height:33px!important;
  min-height:33px!important;
  max-height:33px!important;
}
.facility-inline-build,
.facility-inline-ready{
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:4px 7px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.facility-inline-build>div{min-height:11px!important}
.facility-inline-build>span{height:4px!important;margin:2px 0!important}
.facility-inline-build small{font-size:.45rem!important;line-height:1!important}
.facility-invest-card-v3 .facility-invest-copy>footer{
  height:34px!important;
  min-height:34px!important;
  max-height:34px!important;
  margin:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer button{
  width:min(86%,280px)!important;
  height:32px!important;
  min-height:32px!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Player kit number: no card frame; make the shirt the visual anchor. */
.player-kit-panel-v5{
  padding:3px 0 7px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.player-kit-panel-v5>header{padding:0 2px!important;margin-bottom:2px!important}
.player-kit-layout-v5{gap:4px!important}
.player-kit-visual-v5{
  width:158px!important;
  height:164px!important;
  margin:0 auto!important;
}
.player-kit-surname-v5{
  top:40px!important;
  width:56%!important;
  font-size:.54rem!important;
  letter-spacing:.04em!important;
}
.player-kit-number-v5{
  top:57px!important;
  font-size:1.68rem!important;
}
.player-kit-number-form-v5,
.player-kit-number-readonly-v5{width:94%!important;max-width:230px!important}

/* Recent form: keep the full 5.0–10.0 graph visible and closer to match cards. */
.player-form-v4 .player-form-chart-wrap{
  height:92px!important;
  min-height:92px!important;
  max-height:92px!important;
  margin-top:1px!important;
  padding-left:0!important;
  overflow:visible!important;
}
.player-form-v4 svg.player-form-chart{
  display:block!important;
  width:100%!important;
  height:92px!important;
  margin:0!important;
  overflow:visible!important;
}
.player-form-v4 .form-scale-label{font-size:8.5px!important}

/* ========================================================================== */
/* 3.0A.50.35.21 — follow-up visual alignment fixes                         */
/* ========================================================================== */

/* Facilities: identical card geometry for every facility, with fully visible,
   centred CTAs and no construction-progress dead space. */
.infrastructure-grid-v3{
  align-items:stretch!important;
}
.facility-invest-card-v3{
  display:grid!important;
  grid-template-rows:152px minmax(0,1fr)!important;
  height:448px!important;
  min-height:448px!important;
  max-height:448px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-visual{
  height:152px!important;
  min-height:152px!important;
  max-height:152px!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-visual img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
.facility-invest-card-v3 .facility-invest-copy{
  display:flex!important;
  flex-direction:column!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:12px 13px 14px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  gap:0!important;
}
.facility-invest-card-v3 .facility-invest-copy>header{
  min-height:34px!important;
  margin:0 0 6px!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.facility-invest-card-v3 .facility-invest-copy>header h3{
  margin:2px 0 0!important;
  line-height:1.05!important;
}
.facility-invest-card-v3 .facility-invest-copy>p{
  min-height:34px!important;
  max-height:34px!important;
  margin:0 0 10px!important;
  font-size:.66rem!important;
  line-height:1.35!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
.facility-invest-card-v3 .facility-invest-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:44px 38px!important;
  gap:6px!important;
  margin:0 0 10px!important;
  flex:0 0 auto!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span{
  min-height:44px!important;
  padding:6px 7px!important;
  display:grid!important;
  place-content:center!important;
  justify-items:center!important;
  text-align:center!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span small{
  font-size:.48rem!important;
  line-height:1.05!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span strong{
  font-size:.74rem!important;
  line-height:1.1!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{
  grid-column:1/-1!important;
  min-height:38px!important;
  padding:5px 8px!important;
}
.facility-inline-build,
.facility-inline-ready{
  min-height:50px!important;
  max-height:50px!important;
  margin:0 0 10px!important;
  padding:6px 8px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  flex:0 0 auto!important;
}
.facility-inline-build>div,
.facility-inline-ready>div{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:16px!important;
}
.facility-inline-build strong,
.facility-inline-ready strong{
  line-height:1.05!important;
}
.facility-inline-build>span,
.facility-inline-ready>span{
  display:block!important;
  height:5px!important;
  margin:4px 0 3px!important;
}
.facility-inline-build small,
.facility-inline-ready small{
  display:block!important;
  font-size:.48rem!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer{
  margin-top:auto!important;
  padding-top:0!important;
  min-height:36px!important;
  display:flex!important;
  align-items:flex-end!important;
  justify-content:center!important;
  flex:0 0 auto!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer button{
  width:min(82%,260px)!important;
  min-width:220px!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Contracts: keep the negotiation window in two calm sections and maintain a
   single continuous gradient across the whole panel. */
.contract-detail-panel.contract-detail-v5{
  overflow:hidden!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.97),rgba(13,12,10,0.98))!important;
}
.contract-identity-section-v5,
.contract-core-metrics-v5,
.contract-detail-padding-v5{
  background:transparent!important;
}
.contract-identity-section-v5{
  display:grid!important;
  grid-template-columns:112px minmax(0,1fr) 70px!important;
  gap:14px!important;
  align-items:center!important;
  padding:15px 15px 13px!important;
  border-bottom:1px solid rgba(212,169,79,0.08)!important;
}
.contract-identity-section-v5 .contract-portrait-frame{
  width:112px!important;
  height:128px!important;
  align-self:center!important;
}
.contract-identity-section-v5 .contract-portrait-frame img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
.contract-identity-copy-v5{
  min-width:0!important;
}
.contract-identity-copy-v5 h3{
  margin:0 0 6px!important;
  font-size:1.12rem!important;
  line-height:1.05!important;
}
.contract-identity-copy-v5 p{
  margin:0 0 5px!important;
}
.contract-hero-score-v5{
  width:64px!important;
  height:64px!important;
  align-self:start!important;
}
.contract-core-metrics-v5{
  padding:12px 15px 13px!important;
  border-bottom:1px solid rgba(212,169,79,0.08)!important;
}
.contract-detail-grid-v4{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:9px!important;
  margin:0!important;
}
.contract-detail-grid-v4>p{
  min-height:60px!important;
  padding:8px 9px!important;
  display:grid!important;
  align-content:start!important;
  gap:4px!important;
}
.contract-detail-padding-v5{
  padding:12px 15px 15px!important;
}
.contract-homegrown-compact,
.renewal-outlook-v5,
.contract-expectation-grid.agency{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
.contract-expectation-grid.agency{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  margin-top:0!important;
}
.contract-expectation-grid.agency p{
  min-height:72px!important;
}

/* Player profile: larger frameless shirt, higher surname/number placement,
   symmetrical headline values and more natural centre-back pitch placement. */
.player-kit-panel-v5{
  padding:3px 0 8px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.player-kit-panel-v5>header{padding:0 2px!important;margin-bottom:3px!important}
.player-kit-layout-v5{gap:5px!important}
.player-kit-visual-v5{
  width:178px!important;
  height:184px!important;
  margin:0 auto!important;
}
.player-kit-surname-v5{
  top:33px!important;
  width:56%!important;
  font-size:.58rem!important;
  letter-spacing:.045em!important;
}
.player-kit-number-v5{
  top:49px!important;
  font-size:2rem!important;
  line-height:1!important;
}
.player-kit-number-form-v5,
.player-kit-number-readonly-v5{
  width:95%!important;
  max-width:244px!important;
}

.player-dossier-headline{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(92px,max-content))!important;
  align-items:end!important;
  width:max-content!important;
  max-width:100%!important;
}
.player-dossier-headline>b,
.player-dossier-headline>span{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  align-items:flex-start!important;
  min-width:92px!important;
  min-height:56px!important;
  padding:0 15px!important;
  box-sizing:border-box!important;
  font-size:1.18rem!important;
  line-height:1!important;
  font-weight:850!important;
  color:#fbf7ef!important;
}
.player-dossier-headline>b{
  padding-left:0!important;
  border-left:0!important;
  color:#e5c377!important;
}
.player-dossier-headline small{
  font-size:.59rem!important;
  line-height:1!important;
  margin-bottom:7px!important;
}
.player-dossier-headline .player-owner-link{
  display:inline-flex!important;
  align-items:flex-end!important;
  min-height:1em!important;
  font-size:1.18rem!important;
  line-height:1!important;
  font-weight:850!important;
  color:#e5c377!important;
  white-space:nowrap!important;
}

.player-position-pitch-v4{overflow:hidden!important}
.player-position-pitch-v4 i b{color:#07101d!important}

/* Recent form: preserve full chart visibility if the panel receives a tighter
   modal height. */
.player-form-v4 .player-form-chart-wrap{
  height:94px!important;
  min-height:94px!important;
  max-height:94px!important;
  margin-top:2px!important;
  overflow:visible!important;
}
.player-form-v4 svg.player-form-chart{
  height:94px!important;
  overflow:visible!important;
}

/* Stadium attendance empty-state: keep the complete dashed panel and lower
   rounded border visible inside the shared 215px analytics-card height. */
.stadium-data-card.attendance{
  padding-bottom:14px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.stadium-data-card.attendance .stadium-chart-empty{
  min-height:128px!important;
  height:128px!important;
  max-height:128px!important;
  margin:5px 0 0!important;
  padding:10px 12px!important;
  box-sizing:border-box!important;
}

/* ========================================================================== */
/* 3.0A.50.35.22 — final alignment + contract-renewal UX refinement         */
/* ========================================================================== */

/* Stadium: keep the empty attendance message visibly inside the 215px card. */
.stadium-data-card.attendance .stadium-chart-empty{
  min-height:130px!important;
  height:130px!important;
  max-height:130px!important;
  margin:4px 0 7px!important;
  padding:10px 12px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}

/* Facilities: one rigid template. The status/progress row has the same full
   width as the metric/investment rows and the CTA owns a reserved final row. */
.infrastructure-grid-v3{align-items:stretch!important}
.facility-invest-card-v3{
  display:grid!important;
  grid-template-rows:150px 300px!important;
  height:450px!important;
  min-height:450px!important;
  max-height:450px!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-visual{
  width:100%!important;
  height:150px!important;
  min-height:150px!important;
  max-height:150px!important;
  padding:8px!important;
  box-sizing:border-box!important;
}
.facility-invest-card-v3 .facility-invest-visual img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
.facility-invest-card-v3 .facility-invest-copy{
  width:100%!important;
  height:300px!important;
  min-height:300px!important;
  max-height:300px!important;
  padding:11px 12px!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:34px 38px 84px 50px 40px!important;
  gap:8px!important;
  align-content:stretch!important;
  overflow:hidden!important;
}
.facility-invest-card-v3 .facility-invest-copy>header{
  width:100%!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
}
.facility-invest-card-v3 .facility-invest-copy>p{
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  font-size:.64rem!important;
  line-height:1.35!important;
}
.facility-invest-card-v3 .facility-invest-metrics{
  width:100%!important;
  height:84px!important;
  min-height:84px!important;
  max-height:84px!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:42px 36px!important;
  gap:6px!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:5px 6px!important;
  box-sizing:border-box!important;
  display:grid!important;
  place-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span small{
  width:100%!important;
  font-size:.49rem!important;
  line-height:1.05!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics>span strong{
  width:100%!important;
  font-size:.73rem!important;
  line-height:1.1!important;
  text-align:center!important;
}
.facility-invest-card-v3 .facility-invest-metrics .facility-upgrade-price{
  grid-column:1/-1!important;
  width:100%!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  padding:5px 8px!important;
  box-sizing:border-box!important;
}
.facility-inline-build,
.facility-inline-ready{
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  max-height:50px!important;
  margin:0!important;
  padding:6px 8px!important;
  box-sizing:border-box!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
.facility-inline-build>div,
.facility-inline-ready>div{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  min-height:15px!important;
}
.facility-inline-build>span,
.facility-inline-ready>span{
  display:block!important;
  width:100%!important;
  height:5px!important;
  margin:4px 0 3px!important;
}
.facility-inline-build small,
.facility-inline-ready small{
  display:block!important;
  width:100%!important;
  font-size:.48rem!important;
  line-height:1.05!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
.facility-invest-card-v3 .facility-invest-copy>footer button{
  width:min(84%,270px)!important;
  height:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  margin:0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* Contracts: the lower 2-card row shares the exact same outer gutters as the
   full-width Homegrown and Renewal Outlook rows. */
.contract-detail-padding-v5{
  padding:12px 15px 15px!important;
  box-sizing:border-box!important;
}
.contract-homegrown-compact,
.renewal-outlook-v5,
.contract-expectation-grid.agency{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.contract-expectation-grid.agency{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding:0!important;
}
.contract-expectation-grid.agency>p{
  width:100%!important;
  min-width:0!important;
  min-height:72px!important;
  margin:0!important;
  box-sizing:border-box!important;
}

/* Active negotiation is a GOAT panel, not browser-default controls. */
.contract-negotiation-box.agency.contract-negotiation-active{
  width:100%!important;
  margin:11px 0 0!important;
  padding:11px!important;
  box-sizing:border-box!important;
  display:grid!important;
  gap:9px!important;
  border:1px solid rgba(242,196,91,.27)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.94),rgba(13,12,10,0.97))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
.contract-negotiation-field{
  display:grid!important;
  gap:6px!important;
  width:100%!important;
}
.contract-negotiation-field>span{
  font:800 .52rem/1 var(--body)!important;
  letter-spacing:.065em!important;
  color:rgba(217,209,194,0.57)!important;
}
.contract-negotiation-field select{
  appearance:none!important;
  width:100%!important;
  height:40px!important;
  padding:0 38px 0 11px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.18)!important;
  border-radius:9px!important;
  outline:0!important;
  background:
    linear-gradient(45deg,transparent 50%,#f2c45b 50%) calc(100% - 16px) 17px/5px 5px no-repeat,
    linear-gradient(135deg,#f2c45b 50%,transparent 50%) calc(100% - 11px) 17px/5px 5px no-repeat,
    linear-gradient(145deg,rgba(13,12,10,0.96),rgba(13,12,10,0.98))!important;
  color:#fbf7ef!important;
  font:750 .64rem/1 var(--body)!important;
}
.contract-negotiation-confirm{
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  border:1px solid rgba(255,218,91,.65)!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#f6d05d,#dca72f)!important;
  color:#1a1207!important;
  font:900 .63rem/1 var(--body)!important;
  letter-spacing:.035em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  cursor:pointer!important;
  box-shadow:0 8px 22px rgba(195,145,34,.18)!important;
}
.contract-negotiation-confirm .contract-button-icon{
  color:#1a1207!important;
  filter:none!important;
}
.contract-primary-cta.agency:disabled{
  opacity:.48!important;
  cursor:not-allowed!important;
}

/* Player kit: move the name nearer the shoulders and make the number dominant. */
.player-kit-visual-v5{
  width:194px!important;
  height:202px!important;
  margin:0 auto!important;
}
.player-kit-surname-v5{
  top:29px!important;
  width:58%!important;
  font-size:.66rem!important;
  line-height:1!important;
  letter-spacing:.045em!important;
}
.player-kit-number-v5{
  top:47px!important;
  font-size:2.42rem!important;
  line-height:1!important;
}

/* OVR / Age / Position / Owner share one baseline and equal perceived scale. */
.player-dossier-headline{
  align-items:end!important;
  margin-top:5px!important;
  transform:translateY(-5px)!important;
}
.player-dossier-headline>b,
.player-dossier-headline>span{
  min-height:46px!important;
  justify-content:flex-end!important;
  line-height:1!important;
}
.player-dossier-headline>b,
.player-dossier-headline>span:nth-child(2){font-size:1.18rem!important}
.player-dossier-headline>span:nth-child(3){font-size:1.13rem!important;letter-spacing:-.018em!important}
.player-dossier-headline .player-owner-link{font-size:1.13rem!important;line-height:1!important}
.player-dossier-headline small{margin-bottom:7px!important}

/* Centre-back belongs on the defensive line, not under the holding midfielder. */
.player-position-pitch-v4 i{transform:translate(-50%,-50%)!important}


/* ========================================================================== */
/* 3.0A.50.35.23 — image-backed collectible player card templates           */
/* ========================================================================== */

/* The supplied PNG is the card chrome. Player data remains a live overlay. */
.footballer-card.has-card-template {
  aspect-ratio: 2 / 3 !important;
  border: 0 !important;
  background: transparent !important;
  clip-path: none !important;
  box-shadow: 0 22px 52px rgba(2,3,14,.48), 0 0 26px color-mix(in srgb,var(--rarity-color) 12%,transparent) !important;
}
.footballer-card.has-card-template::before {
  display: none !important;
}
.footballer-card.has-card-template::after {
  z-index: 2 !important;
  height: 34% !important;
  background: linear-gradient(to top,rgba(2,5,18,.72) 0%,rgba(2,5,18,.34) 48%,transparent 100%) !important;
}
.footballer-card-template {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  pointer-events: none !important;
  user-select: none !important;
}
.footballer-card.has-card-template .footballer-card-glow {
  z-index: 1 !important;
  opacity: .08 !important;
}
.footballer-card.has-card-template .footballer-card-art {
  z-index: 1 !important;
  inset: 2.5% 2.5% 1.5% !important;
}
.footballer-card.has-card-template .footballer-card-art img {
  width: 118% !important;
  transform: translateX(calc(-50% + 12px)) !important;
}
.footballer-card-shell.has-card-template .footballer-card-popout {
  width: 118% !important;
  transform: translateX(calc(-50% + 8px)) !important;
}
.footballer-card.has-card-template .footballer-card-position,
.footballer-card-shell.has-card-template > .footballer-card-rating,
.footballer-card-shell.has-card-template > .footballer-card-identity,
.footballer-card.has-card-template .footballer-card-stats,
.footballer-card.has-card-template .footballer-card-footer {
  z-index: 6 !important;
}

/* Keep all existing information readable on every supplied template. */
.footballer-card-shell.has-card-template > .footballer-card-rating {
  top: calc(var(--card-headroom) + 5.6%) !important;
}
.footballer-card.has-card-template .footballer-card-position {
  top: 6.1% !important;
  right: 6.4% !important;
  color: #07101d !important;
  background: rgba(245,248,255,.92) !important;
  box-shadow: 0 2px 14px rgba(0,0,0,.24) !important;
}
.footballer-card-shell.has-card-template > .footballer-card-identity {
  bottom: 21.3% !important;
}
.footballer-card.has-card-template .footballer-card-stats {
  left: 6.2% !important;
  right: 6.2% !important;
  bottom: 6.8% !important;
  gap: 3px !important;
}
.footballer-card.has-card-template .card-main-stat {
  border-top: 0 !important;
  border-radius: 999px !important;
  background: color-mix(in srgb,var(--stat-color) 88%,#07101d 12%) !important;
  padding: 5px 2px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.22) !important;
}
.footballer-card.has-card-template .card-main-stat b {
  color: rgba(5,10,20,.72) !important;
  font-weight: 900 !important;
}
.footballer-card.has-card-template .card-main-stat strong {
  color: #06101d !important;
  font-weight: 950 !important;
}
.footballer-card.has-card-template .footballer-card-footer {
  bottom: 2.2% !important;
  color: rgba(246,249,255,.82) !important;
  text-shadow: 0 2px 7px rgba(0,0,0,.75) !important;
}

/* England pack promo always wins over rarity styling, while data remains live. */
.footballer-card.template-england-promo,
.footballer-card-shell.template-england-promo .footballer-card {
  --rarity-color: #ef4dba !important;
}
.footballer-card.template-england-promo .footballer-card-position {
  background: linear-gradient(135deg,#f8f9ff,#d9e7ff) !important;
}
.footballer-card.template-bday-promo,
.footballer-card-shell.template-bday-promo .footballer-card {
  --rarity-color: #ef9cda !important;
}
.footballer-card.template-bday-promo .footballer-card-template {
  z-index: 1 !important;
}
.footballer-card.template-oct-promo,
.footballer-card-shell.template-oct-promo .footballer-card {
  --rarity-color: #e0ad4c !important;
}
.footballer-card.template-oct-promo .footballer-card-template {
  z-index: 1 !important;
}

/* ========================================================================== */
/* 3.0A.50.35.24 — player card polish and management panel refinements       */
/* ========================================================================== */

/* Supplied card PNGs are the visible chrome. Keep the portrait scale, OVR,
   name and country placement from 35.23, but remove the rectangular shadow
   that made the clipped template look as if it sat on another card/window. */
.footballer-card-shell.has-card-template{
  isolation:isolate!important;
  background:transparent!important;
  box-shadow:none!important;
}
.footballer-card.has-card-template{
  background:transparent!important;
  box-shadow:none!important;
}
.footballer-card.has-card-template .footballer-card-template{
  filter:drop-shadow(0 12px 18px rgba(2,3,14,.34))!important;
}
.footballer-card.has-card-template::after{
  height:30%!important;
  background:linear-gradient(to top,rgba(2,5,18,.64) 0%,rgba(2,5,18,.24) 48%,transparent 100%)!important;
}
.footballer-card.has-card-template .footballer-card-glow{opacity:.045!important}

/* Position is part of the card face rather than a separate boxed UI control.
   White text plus rarity edge/shadow keeps it readable over every template,
   including the diagonal top-right corner. */
.footballer-card.has-card-template .footballer-card-position{
  top:6.4%!important;
  right:7.4%!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:clamp(.90rem,1.42vw,1.16rem)!important;
  font-weight:950!important;
  letter-spacing:.01em!important;
  line-height:1!important;
  text-shadow:
    0 0 2px color-mix(in srgb,var(--rarity-color) 82%,transparent),
    0 2px 6px rgba(0,0,0,.95)!important;
}
.footballer-card.template-england-promo .footballer-card-position{
  background:transparent!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Six attributes remain compact, but use dark premium tiles with value-colour
   edging instead of oversized coloured pills. */
.footballer-card.has-card-template .footballer-card-stats{
  left:5.6%!important;
  right:5.6%!important;
  bottom:6.7%!important;
  gap:4px!important;
}
.footballer-card.has-card-template .card-main-stat,
.footballer-card.has-card-template .card-main-stat.stat-elite{
  min-height:39px!important;
  padding:4px 2px 5px!important;
  border:1px solid color-mix(in srgb,var(--stat-color) 70%,rgba(255,255,255,.14) 30%)!important;
  border-top:1px solid color-mix(in srgb,var(--stat-color) 70%,rgba(255,255,255,.14) 30%)!important;
  border-radius:8px!important;
  background:linear-gradient(180deg,rgba(6,14,27,.82),rgba(3,9,19,.90))!important;
  box-shadow:
    inset 0 2px 0 color-mix(in srgb,var(--stat-color) 68%,transparent),
    0 2px 7px rgba(0,0,0,.22)!important;
  align-content:center!important;
}
.footballer-card.has-card-template .card-main-stat b,
.footballer-card.has-card-template .card-main-stat.stat-elite b{
  color:rgba(237,244,255,.70)!important;
  -webkit-text-fill-color:rgba(237,244,255,.70)!important;
  font-size:clamp(.34rem,.48vw,.42rem)!important;
  font-weight:900!important;
  letter-spacing:.07em!important;
  line-height:1!important;
}
.footballer-card.has-card-template .card-main-stat strong,
.footballer-card.has-card-template .card-main-stat.stat-elite strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:clamp(.72rem,1vw,.88rem)!important;
  font-weight:950!important;
  line-height:1!important;
  text-shadow:0 1px 2px rgba(0,0,0,.45)!important;
}

/* Footer is deliberately simple and readable: rarity · age. */
.footballer-card.has-card-template .footballer-card-footer{
  left:7%!important;
  right:7%!important;
  bottom:2.2%!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  color:#f7f9ff!important;
  font-size:.55rem!important;
  font-weight:850!important;
  letter-spacing:.035em!important;
  text-shadow:0 2px 6px rgba(0,0,0,.82)!important;
}
.footballer-card.has-card-template .footballer-card-footer span{
  display:inline!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  min-height:0!important;
}
.footballer-card.has-card-template .footballer-card-footer span:first-child{
  color:color-mix(in srgb,var(--rarity-color) 86%,#fff 14%)!important;
}
.footballer-card.has-card-template .footballer-card-footer i{
  display:block!important;
  width:4px!important;
  height:4px!important;
  flex:0 0 4px!important;
  border:0!important;
  border-radius:50%!important;
  background:var(--rarity-color)!important;
  box-shadow:0 0 7px color-mix(in srgb,var(--rarity-color) 65%,transparent)!important;
}

/* Facilities: preserve the corrected full-width internal geometry and simply
   add vertical room. This is intentionally NOT another width redesign. */
#profileInfrastructurePanel .facility-invest-card-v3{
  grid-template-rows:150px 320px!important;
  height:470px!important;
  min-height:470px!important;
  max-height:470px!important;
}
#profileInfrastructurePanel .facility-invest-card-v3 .facility-invest-copy{
  height:320px!important;
  min-height:320px!important;
  max-height:320px!important;
  grid-template-rows:34px 38px 84px 50px 40px!important;
  gap:8px!important;
  align-content:start!important;
}
#profileInfrastructurePanel .facility-inline-build,
#profileInfrastructurePanel .facility-inline-ready{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
#profileInfrastructurePanel .facility-invest-card-v3 .facility-invest-copy>footer{
  overflow:visible!important;
}

/* Contract negotiation: no native select. The menu uses the same dark agency
   surface as the rest of the page and exposes length + salary as two lines. */
.contract-negotiation-box.agency.contract-negotiation-active{
  width:100%!important;
  margin:11px 0 0!important;
  padding:11px!important;
  box-sizing:border-box!important;
  display:grid!important;
  gap:10px!important;
  border:1px solid rgba(246,208,93,.29)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.96),rgba(13,12,10,0.98))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.03)!important;
}
.contract-negotiation-field{display:grid!important;gap:7px!important;width:100%!important}
.contract-negotiation-field>span{
  font:800 .52rem/1 var(--body)!important;
  letter-spacing:.065em!important;
  color:rgba(217,209,194,0.58)!important;
}
.contract-term-picker{position:relative!important;width:100%!important}
.contract-term-trigger{
  width:100%!important;
  min-height:44px!important;
  padding:7px 38px 7px 11px!important;
  border:1px solid rgba(212,169,79,0.2)!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.98),rgba(13,12,10,0.99))!important;
  color:#fbf7ef!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  text-align:left!important;
  cursor:pointer!important;
  position:relative!important;
}
.contract-term-trigger>span{display:grid!important;gap:2px!important}
.contract-term-trigger strong{font:800 .65rem/1.05 var(--body)!important;color:#fbf7ef!important}
.contract-term-trigger small{font:650 .54rem/1 var(--body)!important;color:rgba(251,247,239,0.62)!important}
.contract-term-trigger>i{
  position:absolute!important;
  right:14px!important;
  top:50%!important;
  width:7px!important;
  height:7px!important;
  border-right:2px solid #f6d05d!important;
  border-bottom:2px solid #f6d05d!important;
  transform:translateY(-66%) rotate(45deg)!important;
  transition:transform .16s ease!important;
}
.contract-term-picker.open .contract-term-trigger>i{transform:translateY(-34%) rotate(225deg)!important}
.contract-term-menu{
  display:none!important;
  position:absolute!important;
  z-index:30!important;
  left:0!important;
  right:0!important;
  top:calc(100% + 5px)!important;
  padding:5px!important;
  border:1px solid rgba(212,169,79,0.22)!important;
  border-radius:10px!important;
  background:#0d0c0a!important;
  box-shadow:0 14px 28px rgba(0,0,0,.42)!important;
}
.contract-term-picker.open .contract-term-menu{display:grid!important;gap:3px!important}
.contract-term-menu button{
  width:100%!important;
  padding:8px 9px!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#fbf7ef!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  text-align:left!important;
  cursor:pointer!important;
}
.contract-term-menu button:hover{background:rgba(76,57,21,0.12)!important}
.contract-term-menu button.selected{
  border-color:rgba(246,208,93,.36)!important;
  background:linear-gradient(90deg,rgba(246,208,93,.13),rgba(246,208,93,.04))!important;
}
.contract-term-menu strong{font:800 .63rem/1 var(--body)!important;color:#fbf7ef!important}
.contract-term-menu small{font:700 .54rem/1 var(--body)!important;color:#f6d05d!important}
.contract-negotiation-confirm{
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  border:1px solid rgba(255,218,91,.68)!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,#f6d05d,#dca72f)!important;
  color:#1a1207!important;
  font:950 .64rem/1 var(--body)!important;
  letter-spacing:.035em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  cursor:pointer!important;
  box-shadow:0 8px 22px rgba(195,145,34,.18)!important;
}
.contract-negotiation-confirm .contract-button-icon{
  color:#1a1207!important;
  filter:none!important;
}

/* Kit print: retain the larger shirt preview from 35.22, move the surname a
   touch nearer shoulder level and make the squad number the dominant print. */
.player-kit-surname-v5{
  top:25px!important;
  width:60%!important;
  font-size:.70rem!important;
  line-height:1!important;
  letter-spacing:.045em!important;
}
.player-kit-number-v5{
  top:44px!important;
  font-size:2.72rem!important;
  line-height:.96!important;
}

/* ========================================================================== */
/* 3.0A.50.35.25 — card composition, facilities geometry and negotiation UX */
/* ========================================================================== */

/* Supplied card templates own the visual language. The live data is laid
   directly onto that artwork rather than sitting in generic UI pills. */
.footballer-card-shell.has-card-template>.footballer-card-identity{
  bottom:18.7%!important;
  left:8%!important;
  right:8%!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-line{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-line .footballer-card-name{
  flex:1 1 auto!important;
  min-width:0!important;
  position:static!important;
  margin:0!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-flag{
  width:23px!important;
  height:17px!important;
  flex:0 0 23px!important;
  border:0!important;
  border-radius:2px!important;
  box-shadow:0 2px 6px rgba(0,0,0,.46)!important;
  overflow:hidden!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-flag .player-country-flag,
.footballer-card-shell.has-card-template .footballer-card-name-flag .player-country-flag-fallback{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  margin-top:6px!important;
  color:rgba(246,249,255,.90)!important;
  font:850 clamp(.52rem,.78vw,.68rem)/1 var(--body)!important;
  letter-spacing:.035em!important;
  text-shadow:0 2px 7px rgba(0,0,0,.88)!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-position{
  position:static!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:950 inherit!important;
  text-shadow:0 2px 7px rgba(0,0,0,.88)!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta i{
  width:4px!important;
  height:4px!important;
  flex:0 0 4px!important;
  border-radius:50%!important;
  background:var(--rarity-color)!important;
  box-shadow:0 0 7px color-mix(in srgb,var(--rarity-color) 58%,transparent)!important;
}

/* Stats sit inside the diagonal safe area and use typography + a fine quality
   accent line instead of generic pill/card chrome. */
.footballer-card.has-card-template .footballer-card-stats{
  left:10.5%!important;
  right:7%!important;
  bottom:6.2%!important;
  gap:5px!important;
  align-items:end!important;
}
.footballer-card.has-card-template .card-main-stat,
.footballer-card.has-card-template .card-main-stat.stat-elite{
  position:relative!important;
  min-height:34px!important;
  padding:2px 1px 6px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  gap:3px!important;
  align-content:end!important;
}
.footballer-card.has-card-template .card-main-stat::after{
  content:""!important;
  position:absolute!important;
  left:18%!important;
  right:18%!important;
  bottom:1px!important;
  height:2px!important;
  border-radius:99px!important;
  background:var(--stat-color)!important;
  box-shadow:0 0 6px color-mix(in srgb,var(--stat-color) 38%,transparent)!important;
  opacity:.82!important;
}
.footballer-card.has-card-template .card-main-stat b,
.footballer-card.has-card-template .card-main-stat.stat-elite b{
  color:rgba(236,243,255,.68)!important;
  -webkit-text-fill-color:rgba(236,243,255,.68)!important;
  font-size:clamp(.34rem,.49vw,.43rem)!important;
  font-weight:900!important;
  letter-spacing:.075em!important;
  text-shadow:0 2px 5px rgba(0,0,0,.75)!important;
}
.footballer-card.has-card-template .card-main-stat strong,
.footballer-card.has-card-template .card-main-stat.stat-elite strong{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:clamp(.72rem,1.02vw,.90rem)!important;
  font-weight:950!important;
  text-shadow:0 2px 6px rgba(0,0,0,.82)!important;
}

/* The footer is rarity only. */
.footballer-card.has-card-template .footballer-card-footer{
  left:11%!important;
  right:7%!important;
  bottom:1.55%!important;
  justify-content:center!important;
  gap:0!important;
  font-size:.54rem!important;
  font-weight:900!important;
  letter-spacing:.06em!important;
}
.footballer-card.has-card-template .footballer-card-footer span{
  color:color-mix(in srgb,var(--rarity-color) 88%,#fff 12%)!important;
}

/* The pop-out clone is only allowed to contribute the top slice required for
   the 3D effect. It is aligned exactly with the in-card portrait so there is
   no second ghost/portrait visible behind the player. */
.footballer-card.has-card-template .footballer-card-art img,
.footballer-card-shell.has-card-template>.footballer-card-popout{
  width:118%!important;
  transform:translateX(calc(-50% + 12px))!important;
}
.footballer-card-shell.has-card-template>.footballer-card-popout{
  clip-path:inset(0 12% 76% 12%)!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
  opacity:1!important;
}

/* Facilities: every facility and every state uses exactly one full-width
   content column. No per-facility max-width is allowed to squeeze Training,
   Gym or Medical relative to Apartments. */
#profileInfrastructurePanel .facility-invest-card-v3,
#profileInfrastructurePanel .facility-invest-card-v3.building{
  width:100%!important;
  max-width:none!important;
}
#profileInfrastructurePanel .facility-invest-card-v3 .facility-invest-copy,
#profileInfrastructurePanel .facility-invest-card-v3.building .facility-invest-copy{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding-left:12px!important;
  padding-right:12px!important;
  box-sizing:border-box!important;
  justify-items:stretch!important;
}
#profileInfrastructurePanel .facility-invest-card-v3 .facility-invest-copy>*,
#profileInfrastructurePanel .facility-invest-card-v3.building .facility-invest-copy>*{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}
#profileInfrastructurePanel .facility-invest-metrics,
#profileInfrastructurePanel .facility-invest-card-v3.building .facility-invest-metrics,
#profileInfrastructurePanel .facility-inline-build,
#profileInfrastructurePanel .facility-inline-ready{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#profileInfrastructurePanel .facility-invest-card-v3 .facility-invest-copy>footer button,
#profileInfrastructurePanel .facility-invest-card-v3.building .facility-invest-copy>footer button{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

/* Contract picker is a true floating layer. Parent cards cannot clip the
   valid contract-length options. */
#profileContractsPanel .contract-side-stack.agency,
#profileContractsPanel .contract-detail-panel.contract-detail-v5,
#profileContractsPanel .contract-detail-padding-v5,
#profileContractsPanel .contract-negotiation-box.contract-negotiation-active,
#profileContractsPanel .contract-negotiation-field,
#profileContractsPanel .contract-term-picker{
  overflow:visible!important;
}
#profileContractsPanel .contract-detail-panel.contract-detail-v5{
  position:relative!important;
  z-index:6!important;
}
#profileContractsPanel .contract-term-menu{
  z-index:1000!important;
  max-height:220px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
#profileContractsPanel .contract-term-single{
  width:100%!important;
  min-height:44px!important;
  padding:7px 11px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.2)!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.98),rgba(13,12,10,0.99))!important;
  color:#fbf7ef!important;
  display:flex!important;
  align-items:center!important;
}
#profileContractsPanel .contract-term-single>span{display:grid!important;gap:2px!important}
#profileContractsPanel .contract-term-single strong{font:800 .65rem/1.05 var(--body)!important;color:#fbf7ef!important}
#profileContractsPanel .contract-term-single small{font:650 .54rem/1 var(--body)!important;color:rgba(251,247,239,0.62)!important}

/* Yellow means negotiation; black gives the action proper contrast. */
#profileContractsPanel .contract-negotiation-confirm,
#profileContractsPanel .contract-negotiation-confirm span,
#profileContractsPanel .contract-negotiation-confirm .contract-button-icon{
  color:#1a1207!important;
  -webkit-text-fill-color:#05090f!important;
}
#profileContractsPanel .contract-negotiation-confirm .contract-button-icon{
  background:#0d0c0a!important;
}

/* Long-term and just-signed states are neutral/informational rather than
   visually presented as rejection. */
.renewal-outlook-v5.no-renewal-needed strong,
.renewal-outlook-v5.recently-signed strong,
.renewal-outlook-v5.early-extension strong,
.player-contract-willingness.no-renewal-needed strong,
.player-contract-willingness.recently-signed strong,
.player-contract-willingness.early-extension strong{
  color:#e5c377!important;
}

/* Kit surname was a touch too close to the collar in 35.24. */
.player-kit-surname-v5{top:29px!important}
.player-kit-number-v5{top:47px!important;font-size:2.72rem!important}

/* ========================================================================== */
/* 3.0A.50.35.26 — card renderer root fix + unified facilities/contracts     */
/* ========================================================================== */

/* TEMPLATE CARDS ---------------------------------------------------------- */
/* New templates use ONE portrait DOM node. The portrait container uses the
   actual alpha silhouette of the supplied card PNG as its clipping mask, the
   web equivalent of Photoshop's Create Clipping Mask. Portrait colour remains
   untouched; only visibility outside the physical card shape is removed. */
.footballer-card-shell.has-card-template > .footballer-card-popout{
  display:none!important;
}
.footballer-card-shell.has-card-template .footballer-card.has-card-template{
  overflow:visible!important;
}
.footballer-card.has-card-template .footballer-card-art.template-single-portrait{
  z-index:2!important;
  inset:0!important;
  overflow:visible!important;
  clip-path:none!important;
  -webkit-mask-image:var(--card-template-mask)!important;
  mask-image:var(--card-template-mask)!important;
  -webkit-mask-size:100% 100%!important;
  mask-size:100% 100%!important;
  -webkit-mask-position:center!important;
  mask-position:center!important;
  -webkit-mask-repeat:no-repeat!important;
  mask-repeat:no-repeat!important;
  pointer-events:none!important;
}
.footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  top:auto!important;
  width:113.5%!important;
  height:auto!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:translateX(calc(-50% + 8px))!important;
  opacity:1!important;
  -webkit-mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.12) 4%,rgba(0,0,0,.32) 8%,rgba(0,0,0,.58) 12%,rgba(0,0,0,.78) 16%,rgba(0,0,0,.93) 20%,#000 24%,#000 100%)!important;
  mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.12) 4%,rgba(0,0,0,.32) 8%,rgba(0,0,0,.58) 12%,rgba(0,0,0,.78) 16%,rgba(0,0,0,.93) 20%,#000 24%,#000 100%)!important;
  filter:drop-shadow(0 8px 10px rgba(2,3,14,.26))!important;
}
/* England promo intentionally shares the exact same template-alpha clipping,
   scale and fade as every other collectible card. */
.footballer-card.template-england-promo .footballer-card-art.template-single-portrait{
  clip-path:none!important;
}
.footballer-card.has-card-template::after{
  z-index:4!important;
}
.footballer-card.has-card-template .footballer-card-stats,
.footballer-card.has-card-template .footballer-card-footer,
.footballer-card-shell.has-card-template > .footballer-card-identity,
.footballer-card-shell.has-card-template > .footballer-card-rating{
  z-index:7!important;
}

/* Identity: slightly larger flag, slightly calmer surname, and a deliberate
   position + age row. */
.footballer-card-shell.has-card-template .footballer-card-name-line{
  gap:8px!important;
  align-items:center!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-flag{
  width:28px!important;
  height:21px!important;
  flex:0 0 28px!important;
  border-radius:2px!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-line .footballer-card-name{
  font-size:clamp(1.16rem,2.15vw,2.12rem)!important;
  line-height:.94!important;
  letter-spacing:-.018em!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:0 1px 2px rgba(0,0,0,.72),0 2px 5px rgba(0,0,0,.34)!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-line .footballer-card-name.name-long{
  font-size:clamp(1.02rem,1.88vw,1.82rem)!important;
}
.footballer-card-shell.has-card-template .footballer-card-name-line .footballer-card-name.name-very-long{
  font-size:clamp(.90rem,1.58vw,1.52rem)!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta{
  display:flex!important;
  align-items:center!important;
  min-height:17px!important;
  gap:8px!important;
  margin-top:7px!important;
  line-height:1!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-position{
  display:inline-flex!important;
  align-items:center!important;
  font-family:var(--body)!important;
  font-size:clamp(.67rem,.93vw,.82rem)!important;
  font-weight:950!important;
  line-height:1!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-age{
  display:inline-flex!important;
  align-items:center!important;
  font-family:var(--body)!important;
  font-size:clamp(.58rem,.79vw,.69rem)!important;
  font-weight:850!important;
  line-height:1!important;
  color:rgba(247,250,255,.91)!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta i{
  align-self:center!important;
  margin:0 1px!important;
}

/* Remaining injury duration, printed straight after the age on the card.
   White on a red pill so a hurt player reads as hurt at a glance, and compact
   enough to sit inside the existing meta line without reflowing it. */
.footballer-card-injury{
  display:inline-flex;
  align-items:center;
  margin-left:5px;
  padding:1px 7px;
  border-radius:999px;
  background:#d02436;
  color:#fff;
  font-family:var(--body);
  font-size:clamp(.52rem,.72vw,.63rem);
  font-weight:900;
  line-height:1.5;
  letter-spacing:.02em;
  white-space:nowrap;
  box-shadow:0 1px 3px rgba(0,0,0,.35);
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-injury{
  background:#d02436!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Match the POT chip inset visually to the OVR number above. */
.footballer-card-shell.has-card-template > .footballer-card-rating > small{
  transform:translate(-4px,7px)!important;
}

/* Attribute treatment belongs to the artwork: no generic coloured value
   chips, no rounded UI cards. Labels and values are bright white; quality is
   carried by a thin accent underneath. The safe inset protects both diagonal
   lower corners. */
.footballer-card.has-card-template .footballer-card-stats{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  left:15.3%!important;
  right:8.7%!important;
  bottom:5.9%!important;
  gap:5px!important;
}
.footballer-card.has-card-template .footballer-card-stats.is-goalkeeper{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  left:15.1%!important;
  right:8.9%!important;
}
.footballer-card.has-card-template .card-main-stat,
.footballer-card.has-card-template .card-main-stat.stat-elite{
  display:grid!important;
  justify-items:center!important;
  align-content:end!important;
  min-width:0!important;
  min-height:35px!important;
  gap:3px!important;
  padding:0 0 5px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.footballer-card.has-card-template .card-main-stat b,
.footballer-card.has-card-template .card-main-stat.stat-elite b{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  font-size:clamp(.37rem,.52vw,.46rem)!important;
  font-weight:950!important;
  letter-spacing:.075em!important;
  line-height:1!important;
  text-shadow:0 2px 5px rgba(0,0,0,.86)!important;
}
.footballer-card.has-card-template .card-main-stat strong,
.footballer-card.has-card-template .card-main-stat.stat-elite strong{
  min-width:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:clamp(.76rem,1.05vw,.94rem)!important;
  font-weight:950!important;
  line-height:1!important;
  text-shadow:0 2px 6px rgba(0,0,0,.88)!important;
}
.footballer-card.has-card-template .card-main-stat::after{
  left:14%!important;
  right:14%!important;
  bottom:0!important;
  height:2px!important;
  background:var(--stat-color)!important;
  opacity:.95!important;
}

/* Featured homepage cards use the same hierarchy, just scaled for the five
   card row: surname a little smaller, position a little stronger. */
.home-featured-footballer-card.has-card-template .footballer-card-name-line .footballer-card-name,
.home-featured-footballer-card.has-card-template .footballer-card-name-line .footballer-card-name.name-long,
.home-featured-footballer-card.has-card-template .footballer-card-name-line .footballer-card-name.name-very-long{
  font-size:clamp(.76rem,1.06vw,.98rem)!important;
  line-height:.94!important;
}
.home-featured-footballer-card.has-card-template .footballer-card-name-flag{
  width:19px!important;
  height:14px!important;
  flex-basis:19px!important;
}
.home-featured-footballer-card.has-card-template .footballer-card-meta .footballer-card-position{
  font-size:.76rem!important;
}
.home-featured-footballer-card.has-card-template .footballer-card-meta .footballer-card-age{
  font-size:.57rem!important;
}
.home-featured-footballer-card.has-card-template .footballer-card-stats{
  left:14.5%!important;
  right:8.5%!important;
}

/* FACILITIES -------------------------------------------------------------- */
/* V4 is deliberately independent from the accumulated v2/v3 facility CSS.
   35.32 keeps this as the one authoritative geometry source: wide desktops use
   three equal cards, every facility type/state retains the same structure, the
   outer card gains breathing room while the metric/state/CTA windows are shorter,
   and the transparent facility artwork sits directly on the main card surface. */
#profileInfrastructurePanel .infrastructure-grid-v4{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  align-items:stretch!important;
}
#profileInfrastructurePanel .facility-unified-card{
  display:grid!important;
  grid-template-rows:240px 355px!important;
  width:100%!important;
  height:595px!important;
  min-width:0!important;
  overflow:hidden!important;
  border:1px solid rgba(212,169,79,0.14)!important;
  border-radius:14px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.88),rgba(13,12,10,0.95))!important;
  box-shadow:0 16px 34px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
#profileInfrastructurePanel .facility-unified-visual{
  position:relative!important;
  width:100%!important;
  height:240px!important;
  min-width:0!important;
  padding:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  background:transparent!important;
}
#profileInfrastructurePanel .facility-unified-visual img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}
#profileInfrastructurePanel .facility-unified-visual>span{
  position:absolute!important;
  top:12px!important;
  left:12px!important;
  padding:5px 8px!important;
  border:1px solid rgba(212,169,79,0.34)!important;
  border-radius:7px!important;
  background:rgba(13,12,10,0.72)!important;
  color:#e5c377!important;
  font:850 .53rem/1 var(--body)!important;
  letter-spacing:.035em!important;
}
#profileInfrastructurePanel .facility-unified-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:42px 90px 53px 39px!important;
  gap:20px!important;
  width:100%!important;
  min-width:0!important;
  height:355px!important;
  padding:28px 18px!important;
  box-sizing:border-box!important;
  align-content:start!important;
}
#profileInfrastructurePanel .facility-unified-body>header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-width:0!important;
}
#profileInfrastructurePanel .facility-unified-body>header>div{min-width:0!important}
#profileInfrastructurePanel .facility-unified-body>header small{
  display:block!important;
  margin-bottom:2px!important;
  color:rgba(217,209,194,0.45)!important;
  font:700 .47rem/1 var(--body)!important;
  letter-spacing:.055em!important;
}
#profileInfrastructurePanel .facility-unified-body>header h3{
  margin:0!important;
  color:#fbf7ef!important;
  font:820 .91rem/1.05 var(--body)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#profileInfrastructurePanel .facility-unified-body>header>b{
  flex:0 0 auto!important;
  color:#e5c377!important;
  font:850 .64rem/1 var(--body)!important;
}
#profileInfrastructurePanel .facility-unified-metrics{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-template-rows:44px 38px!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
}
#profileInfrastructurePanel .facility-unified-metrics>span{
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  min-width:0!important;
  padding:5px 7px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.1)!important;
  border-radius:8px!important;
  background:rgba(13,12,10,0.55)!important;
  text-align:center!important;
}
#profileInfrastructurePanel .facility-unified-metrics small{
  color:rgba(217,209,194,0.48)!important;
  font:650 .45rem/1 var(--body)!important;
}
#profileInfrastructurePanel .facility-unified-metrics strong{
  margin-top:3px!important;
  color:#fbf7ef!important;
  font:800 .63rem/1 var(--body)!important;
  white-space:nowrap!important;
}
#profileInfrastructurePanel .facility-unified-upgrade-price{
  grid-column:1/-1!important;
  display:flex!important;
  flex-direction:row!important;
  justify-content:center!important;
  align-items:center!important;
  gap:14px!important;
}
#profileInfrastructurePanel .facility-unified-upgrade-price strong{
  margin:0!important;
  color:#e5c377!important;
  font-size:.70rem!important;
}
#profileInfrastructurePanel .facility-unified-state{
  display:grid!important;
  grid-template-rows:13px 4px 12px!important;
  gap:4px!important;
  width:100%!important;
  min-width:0!important;
  height:53px!important;
  padding:8px 10px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.14)!important;
  border-radius:8px!important;
  background:rgba(13,12,10,0.58)!important;
}
#profileInfrastructurePanel .facility-unified-state>div{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  min-width:0!important;
}
#profileInfrastructurePanel .facility-unified-state strong{
  color:#fbf7ef!important;
  font:760 .60rem/1 var(--body)!important;
}
#profileInfrastructurePanel .facility-unified-state b{
  color:#e5c377!important;
  font:850 .61rem/1 var(--body)!important;
}
#profileInfrastructurePanel .facility-unified-state.is-ready b{color:#62dfb0!important}
#profileInfrastructurePanel .facility-unified-state>span{
  display:block!important;
  width:100%!important;
  height:4px!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:99px!important;
  background:rgba(76,57,21,0.16)!important;
}
#profileInfrastructurePanel .facility-unified-state>span i{
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#4c3915,#4c3915)!important;
}
#profileInfrastructurePanel .facility-unified-state small{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  color:rgba(217,209,194,0.55)!important;
  font:610 .46rem/1 var(--body)!important;
}
#profileInfrastructurePanel .facility-unified-footer{
  display:block!important;
  width:100%!important;
  height:39px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}
#profileInfrastructurePanel .facility-unified-footer button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:39px!important;
  min-height:39px!important;
  margin:0!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.32)!important;
  border-radius:9px!important;
  background:linear-gradient(135deg,rgba(42,34,20,0.42),rgba(42,34,20,0.45))!important;
  color:#fbf7ef!important;
  font:900 .61rem/1 var(--body)!important;
  letter-spacing:.03em!important;
}
#profileInfrastructurePanel .facility-unified-footer button:disabled{
  opacity:.46!important;
  cursor:not-allowed!important;
}
@media(max-width:1480px){
  #profileInfrastructurePanel .infrastructure-grid-v4{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:900px){
  #profileInfrastructurePanel .infrastructure-grid-v4{grid-template-columns:1fr!important}
}

/* CONTRACT NEGOTIATION --------------------------------------------------- */
/* Portal menus are appended to <body>, so no contract-panel overflow or
   fixed card height can clip the 3/4/5-season choices. */
.contract-term-menu.is-portal{
  display:grid!important;
  position:fixed!important;
  z-index:100000!important;
  gap:4px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding:6px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(212,169,79,0.26)!important;
  border-radius:10px!important;
  background:#0d0c0a!important;
  box-shadow:0 18px 34px rgba(0,0,0,.50)!important;
}
#profileContractsPanel .contract-negotiation-confirm,
.contract-negotiation-confirm{
  color:#1a1207!important;
  -webkit-text-fill-color:#05090f!important;
  font-weight:950!important;
}
#profileContractsPanel .contract-negotiation-confirm .contract-button-icon,
.contract-negotiation-confirm .contract-button-icon{
  color:#1a1207!important;
  background:#0d0c0a!important;
}

/* ========================================================================== */
/* 3.0A.50.35.33 — management page artwork grounding and final spacing pass  */
/* ========================================================================== */

/* Dedicated page atmospheres for the requested management sections. The page
   art lives in the world background layer so the whole surface feels grounded,
   while the interface keeps a strong dark overlay for legibility. */
body.management-facilities-background .world-bg,
body.management-stadium-background .world-bg,
body.management-contracts-background .world-bg{
  background:#0d0c0a!important;
}
body.management-facilities-background .world-bg::before,
body.management-stadium-background .world-bg::before,
body.management-contracts-background .world-bg::before{
  content:""!important;
  position:absolute!important;
  z-index:0!important;
  inset:-16px!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:blur(1.25px) brightness(.68) saturate(.92)!important;
  transform:scale(1.008)!important;
  transform-origin:center top!important;
}
body.management-facilities-background .world-bg::before{
  background-image:url('/management-backgrounds/facilities-page.png?v=503533')!important;
  background-position:center 34%!important;
}
body.management-stadium-background .world-bg::before{
  background-image:url('/management-backgrounds/stadium-page.png?v=503533')!important;
  background-position:center 27%!important;
}
body.management-contracts-background .world-bg::before{
  background-image:url('/management-backgrounds/contracts-page.webp?v=503581')!important;
  background-position:center 32%!important;
}
body.management-facilities-background .world-gradient,
body.management-stadium-background .world-gradient,
body.management-contracts-background .world-gradient{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.6),rgba(13,12,10,0.26) 50%,rgba(13,12,10,0.58)),
    linear-gradient(180deg,rgba(13,12,10,0.1),rgba(13,12,10,0.4) 55%,rgba(13,12,10,0.74) 100%)!important;
}
body.management-facilities-background .world-grid,
body.management-stadium-background .world-grid,
body.management-contracts-background .world-grid{
  opacity:.055!important;
}
#profileInfrastructurePanel,
#profileStadiumPanel,
#profileContractsPanel{
  background:transparent!important;
}

/* Stadium page side cards now use the supplied window art directly. */
.stadium-fan-card-v3,
.stadium-level-board-v3{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
}
.stadium-fan-card-v3::before,
.stadium-level-board-v3::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
}
.stadium-fan-card-v3::before{
  background-image:
    linear-gradient(180deg,rgba(13,12,10,0.16),rgba(13,12,10,0.66) 52%,rgba(13,12,10,0.92) 100%),
    linear-gradient(90deg,rgba(13,12,10,0.68),rgba(13,12,10,0.28) 52%,rgba(13,12,10,0.72)),
    url('/management-backgrounds/stadium-fan-demand.webp?v=503582')!important;
}
.stadium-level-board-v3::before{
  background-image:
    linear-gradient(180deg,rgba(13,12,10,0.14),rgba(13,12,10,0.62) 48%,rgba(13,12,10,0.92) 100%),
    linear-gradient(90deg,rgba(13,12,10,0.72),rgba(13,12,10,0.3) 56%,rgba(13,12,10,0.72)),
    url('/management-backgrounds/stadium-development.webp?v=503582')!important;
}
.stadium-fan-card-v3>* ,
.stadium-level-board-v3>*{
  position:relative!important;
  z-index:1!important;
}

/* Finance overview KPI windows are slightly lower, per the latest direction. */
.finance-bank-kpis-v3 article{
  min-height:108px!important;
  padding:16px 18px 14px!important;
  grid-template-columns:52px minmax(0,1fr)!important;
}
.finance-bank-kpis-v3 .finance-kpi-icon{
  width:44px!important;
  height:44px!important;
}
.finance-bank-kpis-v3 strong{
  margin-top:7px!important;
  font-size:1.42rem!important;
}
.finance-bank-kpis-v3 span{
  font-size:.55rem!important;
}

/* ========================================================================== */
/* 3.0A.50.35.35 — portrait headroom, fallback resilience and final polish   */
/* ========================================================================== */

/* Collectible card portrait scale was a touch too aggressive in 35.34, which
   made some hairstyles and foreheads kiss the top frame and left the England
   promo looking slightly over-cropped. Keep the same single-portrait clipping
   pipeline, but reduce scale a fraction and soften the dark lower identity
   band so the card face feels cleaner. */
.footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  width:110.5%!important;
  transform:translateX(calc(-50% + 6px))!important;
}
.footballer-card.has-card-template::after{
  height:27.5%!important;
  background:linear-gradient(to top,rgba(2,5,18,.54) 0%,rgba(2,5,18,.18) 46%,transparent 100%)!important;
}
.footballer-card-shell.has-card-template > .footballer-card-rating > small{
  transform:translate(0,7px)!important;
}

/* Align the position row more deliberately with the flag row above. */
.footballer-card-shell.has-card-template .footballer-card-meta{
  gap:7px!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-position{
  min-width:28px!important;
  justify-content:flex-start!important;
  margin-left:1px!important;
  letter-spacing:.012em!important;
}

/* When a portrait cannot be recovered after one retry, leave the canonical
   card template visible without invented portrait or initials artwork. */
.footballer-card-art.portrait-load-failed{
  background:transparent!important;
}

/* Header metrics remain visually aligned, but the owner name/link gets a bit
   more vertical room so descenders never clip. */
.player-dossier-headline{
  margin-top:6px!important;
  transform:translateY(-3px)!important;
}
.player-dossier-headline>b,
.player-dossier-headline>span{
  min-height:48px!important;
}
.player-dossier-headline .player-owner-link{
  line-height:1.08!important;
  padding-bottom:1px!important;
}

/* Attribute colour coding should read a touch more clearly without becoming
   neon. Thresholds are handled in JS (red <60, yellow 60–74, green 75+). */
.player-attribute-group.stat-low{border-color:rgba(255,101,120,.50)!important;background:linear-gradient(145deg,rgba(84,24,39,.40),rgba(7,19,37,.76))!important}
.player-attribute-group.stat-medium{border-color:rgba(240,194,83,.48)!important;background:linear-gradient(145deg,rgba(82,63,18,.37),rgba(13,12,10,0.76))!important}
.player-attribute-group.stat-high,.player-attribute-group.stat-elite{border-color:rgba(77,216,153,.44)!important;background:linear-gradient(145deg,rgba(19,78,56,.35),rgba(7,19,37,.76))!important}
.player-attribute-group.stat-low .attribute-score{background:rgba(194,48,72,.54)!important;border-color:#ff7988!important;color:#fff!important}
.player-attribute-group.stat-medium .attribute-score{background:rgba(153,116,28,.54)!important;border-color:#f6cf68!important;color:#fff!important}
.player-attribute-group.stat-high .attribute-score,.player-attribute-group.stat-elite .attribute-score{background:rgba(34,150,100,.54)!important;border-color:#69ebb2!important;color:#fff!important}
.player-attribute-group li>i em{
  filter:saturate(1.16) brightness(1.08)!important;
}

/* The stadium page artwork should read more clearly behind the UI: slightly
   less blur, lighter vignette, and a marginally lower framing. */
body.management-stadium-background .world-bg::before{
  inset:-10px!important;
  background-position:center 31%!important;
  filter:blur(.85px) brightness(.76) saturate(.98)!important;
  transform:scale(1.004)!important;
}
body.management-stadium-background .world-gradient{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.52),rgba(13,12,10,0.22) 50%,rgba(13,12,10,0.46)),
    linear-gradient(180deg,rgba(13,12,10,0.06),rgba(13,12,10,0.3) 55%,rgba(13,12,10,0.64) 100%)!important;
}

/* ========================================================================== */
/* 3.0A.50.35.36 — final card fade + stadium/contracts artwork pass          */
/* ========================================================================== */

/* Shared template-card portrait fade: shorter and more solid through the
   torso. This exact alpha progression applies to Reserve, promo and every
   rarity using the shared template renderer. */
.footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  -webkit-mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.12) 4%,rgba(0,0,0,.58) 8%,rgba(0,0,0,.78) 12%,rgba(0,0,0,.93) 16%,#000 20%,#000 100%)!important;
  mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.12) 4%,rgba(0,0,0,.58) 8%,rgba(0,0,0,.78) 12%,rgba(0,0,0,.93) 16%,#000 20%,#000 100%)!important;
}

/* POT was a touch too far right in 35.35; split the difference without
   returning to the older over-left placement. */
.footballer-card-shell.has-card-template > .footballer-card-rating > small{
  transform:translate(-2px,7px)!important;
}

/* New Stadium page base artwork supplied for this pass. Keep the lighter
   treatment from 35.35 so the goat/stadium atmosphere stays visible. */
body.management-stadium-background .world-bg::before{
  background-image:url('/management-backgrounds/stadium-page-v2.png?v=503536')!important;
  background-position:center 31%!important;
  filter:blur(.85px) brightness(.76) saturate(.98)!important;
}

/* Financial Readiness receives its own stadium-construction artwork while the
   readiness ring and live finance text stay above a controlled dark overlay. */
.stadium-readiness-card{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#0d0c0a!important;
}
.stadium-readiness-card::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background:
    linear-gradient(90deg,rgba(13,12,10,0.84),rgba(13,12,10,0.5) 55%,rgba(13,12,10,0.7)),
    linear-gradient(180deg,rgba(13,12,10,0.2),rgba(13,12,10,0.62)),
    url('/management-backgrounds/stadium-financial-readiness.webp?v=503582') center 52%/cover no-repeat!important;
  filter:saturate(.82) brightness(.70)!important;
}
.stadium-readiness-card>*{
  position:relative!important;
  z-index:1!important;
}
.stadium-readiness-card .stadium-readiness-ring:before{
  background:rgba(13,12,10,0.92)!important;
}

/* Contracts summary cards use the supplied scene artwork rather than random
   player portraits. The artwork remains a true background layer, with a
   left-heavy readability gradient preserving the existing KPI content. */
.contracts-kpi-v2 article>img{
  object-fit:cover!important;
  object-position:center 42%!important;
  filter:saturate(.78) brightness(.66)!important;
  opacity:.92!important;
  background:none!important;
}
.contracts-kpi-v2 article:after{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.96) 0%,rgba(13,12,10,0.74) 48%,rgba(13,12,10,0.3) 78%,rgba(13,12,10,0.4) 100%),
    linear-gradient(180deg,rgba(13,12,10,0.1),rgba(13,12,10,0.34))!important;
}
.contracts-kpi-v2 .contracts-kpi-contracted>img{object-position:center 54%!important}
.contracts-kpi-v2 .contracts-kpi-wage>img{object-position:center 45%!important}
.contracts-kpi-v2 .contracts-kpi-expiring>img{object-position:center 48%!important}
.contracts-kpi-v2 .contracts-kpi-loyalty>img{object-position:center 42%!important}

/* Contract End deliberately shows the expiry date only; no secondary relative
   month count is reserved in the metric tile. */
.contract-detail-grid-v5>p:nth-child(2){
  align-content:center!important;
}

/* ========================================================================== */
/* 3.0A.50.35.37 — card templates + management window visibility            */
/* ========================================================================== */

/* Shared template portrait fade approved after 35.36: stronger torso while
   keeping only the extreme bottom fully transparent. */
.footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  -webkit-mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.24) 4%,rgba(0,0,0,.58) 8%,rgba(0,0,0,.80) 12%,#000 16%,#000 100%)!important;
  mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.24) 4%,rgba(0,0,0,.58) 8%,rgba(0,0,0,.80) 12%,#000 16%,#000 100%)!important;
}

/* POT still read too far right at -2px; shift it a little farther left while
   preserving the existing vertical placement. */
.footballer-card-shell.has-card-template > .footballer-card-rating > small{
  transform:translate(-6px,7px)!important;
}

/* Small image-backed management windows only — page backgrounds are untouched.
   Keep the scenes moody but reveal more detail. */
.stadium-fan-card-v3::before{
  background-image:
    linear-gradient(180deg,rgba(13,12,10,0.08),rgba(13,12,10,0.5) 52%,rgba(13,12,10,0.82) 100%),
    linear-gradient(90deg,rgba(13,12,10,0.56),rgba(13,12,10,0.18) 52%,rgba(13,12,10,0.6)),
    url('/management-backgrounds/stadium-fan-demand.webp?v=503582')!important;
}
.stadium-level-board-v3::before{
  background-image:
    linear-gradient(180deg,rgba(13,12,10,0.08),rgba(13,12,10,0.48) 48%,rgba(13,12,10,0.82) 100%),
    linear-gradient(90deg,rgba(13,12,10,0.58),rgba(13,12,10,0.2) 56%,rgba(13,12,10,0.58)),
    url('/management-backgrounds/stadium-development.webp?v=503582')!important;
}
.stadium-readiness-card::before{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.72),rgba(13,12,10,0.34) 55%,rgba(13,12,10,0.58)),
    linear-gradient(180deg,rgba(13,12,10,0.12),rgba(13,12,10,0.5)),
    url('/management-backgrounds/stadium-financial-readiness.webp?v=503582') center 52%/cover no-repeat!important;
  filter:saturate(.88) brightness(.80)!important;
}
.infrastructure-summary-v3 article:before{
  filter:saturate(.98) brightness(.82)!important;
}
.infrastructure-summary-v3 article:after{
  background:linear-gradient(90deg,rgba(13,12,10,0.9) 0%,rgba(13,12,10,0.68) 44%,rgba(13,12,10,0.2) 100%)!important;
}
.contracts-kpi-v2 article>img{
  filter:saturate(.84) brightness(.76)!important;
  opacity:.95!important;
}
.contracts-kpi-v2 article:after{
  background:
    linear-gradient(90deg,rgba(13,12,10,0.9) 0%,rgba(13,12,10,0.6) 48%,rgba(13,12,10,0.22) 78%,rgba(13,12,10,0.3) 100%),
    linear-gradient(180deg,rgba(13,12,10,0.06),rgba(13,12,10,0.24))!important;
}

/* Tighten label/value spacing inside the shared Upgrade investment metric. */
#profileInfrastructurePanel .facility-unified-upgrade-price{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:center!important;
  justify-items:center!important;
  gap:4px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
#profileInfrastructurePanel .facility-unified-upgrade-price small,
#profileInfrastructurePanel .facility-unified-upgrade-price strong{
  width:auto!important;
  margin:0!important;
  line-height:1.08!important;
  text-align:center!important;
}

/* ========================================================================== */
/* 3.0A.50.35.38 — contract negotiation gameplay + final readability polish */
/* ========================================================================== */

/* Contract negotiation identity: the portrait should feel integrated into the
   player panel rather than trapped in a framed thumbnail. Keep containment,
   but remove the hard box and soften only the very bottom of the torso. */
.contract-identity-section-v5{
  grid-template-columns:118px minmax(0,1fr) 70px!important;
  min-height:142px!important;
  align-items:center!important;
}
.contract-identity-section-v5 .contract-portrait-frame{
  width:118px!important;
  height:136px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:12px!important;
  background:radial-gradient(circle at 50% 34%,rgba(63,126,170,.16),rgba(7,19,37,.08) 55%,transparent 76%)!important;
  box-shadow:none!important;
}
.contract-identity-section-v5 .contract-portrait-frame img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
  transform:scale(.94)!important;
  transform-origin:center bottom!important;
  -webkit-mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.70) 5%,#000 11%,#000 100%)!important;
  mask-image:linear-gradient(to top,transparent 0%,rgba(0,0,0,.70) 5%,#000 11%,#000 100%)!important;
}
.contract-country-flag.player-country-flag-wrap{
  width:23px!important;
  height:16px!important;
  flex:0 0 23px!important;
}
.contract-country-flag .player-country-flag-fallback{font-size:13px!important}

/* OVR remains the visual anchor; max potential appears only when there is
   genuine growth and is deliberately smaller/subtler underneath. */
.contract-score-stack{
  width:70px!important;
  display:grid!important;
  justify-items:center!important;
  align-self:center!important;
  gap:7px!important;
}
.contract-score-stack .contract-hero-score-v5{
  align-self:auto!important;
  justify-self:center!important;
}
.contract-potential-score{
  width:50px!important;
  height:50px!important;
  display:grid!important;
  place-content:center!important;
  justify-items:center!important;
  border:1.5px solid rgba(212,169,79,0.72)!important;
  border-radius:50%!important;
  background:rgba(13,12,10,0.64)!important;
  box-shadow:0 0 15px rgba(212,169,79,0.08)!important;
}
.contract-potential-score b{
  color:#fbf7ef!important;
  font:900 .78rem/1 var(--body)!important;
  white-space:nowrap!important;
}
.contract-potential-score span{
  margin-top:2px!important;
  color:rgba(217,209,194,0.62)!important;
  font:800 .38rem/1 var(--body)!important;
  letter-spacing:.035em!important;
}

/* Manager-driven renewal negotiation: salary is now entered manually and the
   server evaluates a hidden demand. Do not reveal expected salary in the UI. */
.contract-negotiation-box.agency.contract-negotiation-active{
  gap:10px!important;
}
.contract-salary-offer{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto!important;
  align-items:center!important;
  height:42px!important;
  overflow:hidden!important;
  border:1px solid rgba(212,169,79,0.19)!important;
  border-radius:9px!important;
  background:linear-gradient(145deg,rgba(13,12,10,0.96),rgba(13,12,10,0.98))!important;
}
.contract-salary-offer>b{
  text-align:center!important;
  color:#f2c45b!important;
  font:900 .74rem/1 var(--body)!important;
}
.contract-salary-offer input{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  padding:0 4px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#fbf7ef!important;
  font:850 .72rem/1 var(--body)!important;
  appearance:textfield!important;
}
.contract-salary-offer input::-webkit-inner-spin-button,
.contract-salary-offer input::-webkit-outer-spin-button{-webkit-appearance:none!important;margin:0!important}
.contract-salary-offer small{
  padding-right:10px!important;
  color:rgba(217,209,194,0.48)!important;
  font:700 .48rem/1 var(--body)!important;
}
.contract-negotiation-response{
  padding:9px 10px!important;
  border:1px solid rgba(242,196,91,.20)!important;
  border-radius:8px!important;
  background:rgba(95,70,18,.12)!important;
}
.contract-negotiation-response strong{
  display:block!important;
  margin-bottom:4px!important;
  color:#f2c45b!important;
  font:900 .53rem/1 var(--body)!important;
  letter-spacing:.055em!important;
}
.contract-negotiation-response span{
  display:block!important;
  color:rgba(251,247,239,0.72)!important;
  font:600 .57rem/1.35 var(--body)!important;
}

/* The four Contracts KPI scenes were still slightly too dim. Lift the image
   only; the page background itself is intentionally untouched. */
.contracts-kpi-v2 article>img{
  filter:saturate(.88) brightness(.84)!important;
  opacity:.97!important;
}
.contracts-kpi-v2 article:after{
  background:
    linear-gradient(90deg,rgba(13,11,8,.88) 0%,rgba(18,15,10,.55) 48%,rgba(13,11,8,.14) 78%,rgba(13,11,8,.22) 100%),
    linear-gradient(180deg,rgba(212,169,79,.025),rgba(8,7,5,.20))!important;
}

/* Template-card identity: bring AGE closer to the position/dot so the meta row
   reads as one compact unit while preserving the shared left guide. */
.footballer-card-shell.has-card-template .footballer-card-meta{
  gap:4px!important;
}
.footballer-card-shell.has-card-template .footballer-card-meta .footballer-card-position{
  min-width:0!important;
  margin-left:1px!important;
}

/* Detailed sub-attribute labels should have the same crisp readability as the
   main attribute headings; values and quality-coloured progress bars remain. */
.player-attribute-group li>span{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  opacity:1!important;
}

/* ========================================================================== */
/* 3.0A.50.35.39 — stadium/facilities clarity + contract response polish    */
/* ========================================================================== */

/* RENEWAL RESPONSE MODAL ------------------------------------------------- */
/* Replace native browser alert() presentation with an in-game modal. */
.contract-negotiation-notice{
  position:fixed!important;
  inset:0!important;
  z-index:120000!important;
  display:grid!important;
  place-items:center!important;
  padding:22px!important;
  box-sizing:border-box!important;
}
.contract-negotiation-notice.hidden{display:none!important}
.contract-negotiation-notice-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(13,12,10,0.72)!important;
  backdrop-filter:blur(8px)!important;
}
.contract-negotiation-notice-card{
  --notice-accent:#d4a94f;
  position:relative!important;
  z-index:1!important;
  width:min(440px,calc(100vw - 32px))!important;
  padding:24px 25px 22px!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--notice-accent) 38%,rgba(212,169,79,0.18))!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 50% 0,color-mix(in srgb,var(--notice-accent) 10%,transparent),transparent 42%),
    linear-gradient(150deg,rgba(13,12,10,0.99),rgba(13,12,10,0.995))!important;
  box-shadow:0 28px 70px rgba(0,0,0,.52),inset 0 1px 0 rgba(255,255,255,.035)!important;
  text-align:center!important;
}
.contract-negotiation-notice.tone-accepted .contract-negotiation-notice-card{--notice-accent:#5fe0a4}
.contract-negotiation-notice.tone-continue .contract-negotiation-notice-card{--notice-accent:#f2c65b}
.contract-negotiation-notice.tone-rejected .contract-negotiation-notice-card{--notice-accent:#ff7284}
.contract-negotiation-notice-x{
  position:absolute!important;
  top:10px!important;
  right:11px!important;
  width:30px!important;
  height:30px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid rgba(212,169,79,0.13)!important;
  border-radius:8px!important;
  background:rgba(13,12,10,0.46)!important;
  color:rgba(251,247,239,0.68)!important;
  font:500 1.05rem/1 var(--body)!important;
  cursor:pointer!important;
}
.contract-negotiation-notice-kicker{
  display:block!important;
  margin-bottom:12px!important;
  color:var(--notice-accent)!important;
  font:850 .58rem/1 var(--body)!important;
  letter-spacing:.10em!important;
}
.contract-negotiation-notice-icon{
  width:58px!important;
  height:58px!important;
  display:grid!important;
  place-items:center!important;
  margin:0 auto 13px!important;
  border:2px solid var(--notice-accent)!important;
  border-radius:50%!important;
  background:color-mix(in srgb,var(--notice-accent) 9%,rgba(13,12,10,0.82))!important;
  color:var(--notice-accent)!important;
  box-shadow:0 0 24px color-mix(in srgb,var(--notice-accent) 18%,transparent)!important;
  font:900 1.2rem/1 var(--body)!important;
}
.contract-negotiation-notice-card h2{
  margin:0!important;
  color:#fbf7ef!important;
  font:900 1.18rem/1.05 var(--display)!important;
  letter-spacing:.025em!important;
}
.contract-negotiation-notice-player{
  min-height:1em!important;
  margin:7px 0 0!important;
  color:rgba(217,209,194,0.68)!important;
  font:750 .68rem/1.2 var(--body)!important;
}
.contract-negotiation-notice-message{
  margin:13px auto 19px!important;
  max-width:350px!important;
  color:rgba(251,247,239,0.82)!important;
  font:600 .72rem/1.55 var(--body)!important;
}
.contract-negotiation-notice-continue{
  width:100%!important;
  min-height:42px!important;
  border:1px solid color-mix(in srgb,var(--notice-accent) 48%,transparent)!important;
  border-radius:10px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--notice-accent) 70%,#17150f),color-mix(in srgb,var(--notice-accent) 44%,#2a2214))!important;
  color:#1a1207!important;
  font:950 .66rem/1 var(--body)!important;
  letter-spacing:.05em!important;
  cursor:pointer!important;
}

/* Potential circle follows the potential-quality/rarity colour rather than
   always borrowing the cyan OVR ring. */
.contract-potential-score{--contract-pot:#4c3915!important;border-color:var(--contract-pot)!important;box-shadow:0 0 15px color-mix(in srgb,var(--contract-pot) 18%,transparent)!important}
.contract-potential-score.potential-grey{--contract-pot:#b8bec8!important}
.contract-potential-score.potential-yellow{--contract-pot:#ffe34f!important}
.contract-potential-score.potential-green{--contract-pot:#55df91!important}
.contract-potential-score.potential-blue{--contract-pot:#4d9fff!important}
.contract-potential-score.potential-purple{--contract-pot:#aa68ff!important}
.contract-potential-score.potential-orange{--contract-pot:#ff873d!important}
.contract-potential-score.potential-goat{--contract-pot:#fff0a5!important}

/* FACILITIES -------------------------------------------------------------- */
/* The small top-right L1/L2 duplicate is removed in markup. Three decision
   metrics now show current weekly cost, future weekly cost, and build time. */
#profileInfrastructurePanel .facility-unified-body>header{
  justify-content:flex-start!important;
}
#profileInfrastructurePanel .facility-unified-metrics>span:not(.facility-unified-upgrade-price) small{
  max-width:100%!important;
  line-height:1.12!important;
  white-space:normal!important;
}

/* Construction overview: no redundant project count in the top right. */
.facility-construction-board>header{
  justify-content:flex-start!important;
}

/* STADIUM ---------------------------------------------------------------- */
/* Full 20-level expansion must be allowed to grow instead of being clipped by
   the old 215px equal-card row. Revenue/attendance keep their compact height. */
.stadium-premium-lower{
  grid-auto-rows:auto!important;
  align-items:start!important;
}
.stadium-data-card.path{
  height:auto!important;
  min-height:215px!important;
  max-height:none!important;
  overflow:visible!important;
}
.stadium-data-card.path .stadium-full-path-premium,
.stadium-data-card.path .stadium-full-path-premium[open],
.stadium-data-card.path .stadium-full-path-premium>div{
  max-height:none!important;
  overflow:visible!important;
}

/* Remove only the little backing panel behind stadium name/country. */
.stadium-room-copy-overlay{
  padding:0!important;
  border-radius:0!important;
  background:transparent!important;
  backdrop-filter:none!important;
  box-shadow:none!important;
}

/* Brighten secondary copy locally; do not re-darken the supplied artwork. */
.stadium-fan-card-v3>span,
.stadium-readiness-card>span{
  color:rgba(251,247,239,0.82)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.62)!important;
}
.stadium-readiness-card>div:last-child small{
  color:rgba(251,247,239,0.78)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.72)!important;
}
.stadium-level-board-v3>div>small{
  color:rgba(251,247,239,0.76)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.72)!important;
}
.stadium-level-board-v3>section p span{
  color:rgba(251,247,239,0.78)!important;
  text-shadow:0 1px 6px rgba(0,0,0,.70)!important;
}
.stadium-level-board-v3>span{
  text-shadow:0 1px 7px rgba(0,0,0,.68)!important;
}

/* PLAYER INFO ------------------------------------------------------------- */
/* Labels are proper white; fitness is filled vertically from the bottom. The
   heart uses a slightly larger pale base glyph as its visible outline instead
   of CSS text-stroke, preserving the old lineup typography regression rule. */
.player-status-v4 p>span{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  opacity:1!important;
}
.fitness-heart{
  position:relative!important;
  width:1.08em!important;
  height:1.08em!important;
  display:inline-grid!important;
  place-items:center!important;
  overflow:visible!important;
  color:rgba(251,247,239,0.86)!important;
  -webkit-text-fill-color:rgba(218,235,246,.86)!important;
  text-shadow:0 1px 5px rgba(0,0,0,.42)!important;
  line-height:1!important;
}
.fitness-heart:after{
  content:"♥"!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  color:#55dfa0!important;
  -webkit-text-fill-color:#55dfa0!important;
  transform:translate(-50%,-50%) scale(.84)!important;
  transform-origin:center!important;
  clip-path:inset(calc(100% - var(--fitness)) 0 0 0)!important;
  white-space:nowrap!important;
  line-height:1!important;
}

/* 3.0A.50.35.41 — public-release interaction and chart polish ---------- */

/* Reusable GOAT confirmation/toast UI: replaces browser-native confirm/alert
   for destructive mail actions and facility investments. */
.goat-confirm-overlay{
  position:fixed!important;inset:0!important;z-index:10080!important;display:grid!important;place-items:center!important;
  padding:24px!important;background:rgba(13,12,10,0.72)!important;backdrop-filter:blur(7px)!important;
  opacity:0!important;transition:opacity .18s ease!important;
}
.goat-confirm-overlay.open{opacity:1!important}
.goat-confirm-modal{
  width:min(520px,calc(100vw - 32px))!important;overflow:hidden!important;border:1px solid rgba(212,169,79,0.22)!important;
  border-radius:17px!important;background:linear-gradient(150deg,rgba(13,12,10,0.98),rgba(13,12,10,0.99))!important;
  box-shadow:0 28px 80px rgba(0,0,0,.52),0 0 0 1px rgba(255,255,255,.02) inset!important;
  transform:translateY(10px) scale(.985)!important;transition:transform .18s ease!important;
}
.goat-confirm-overlay.open .goat-confirm-modal{transform:none!important}
.goat-confirm-modal>header{padding:22px 24px 14px!important;border-bottom:1px solid rgba(212,169,79,0.1)!important}
.goat-confirm-modal>header>span{display:block!important;margin-bottom:5px!important;font:900 .56rem var(--body)!important;letter-spacing:.13em!important;color:#e5c377!important}
.goat-confirm-modal>header>h3{margin:0!important;font:900 1.18rem/1.18 var(--body)!important;color:#fbf7ef!important}
.goat-confirm-copy{padding:16px 24px 3px!important;font:560 .71rem/1.55 var(--body)!important;color:rgba(251,247,239,0.76)!important}
.goat-confirm-details{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:13px 24px 4px!important}
.goat-confirm-details>p{display:grid!important;gap:4px!important;margin:0!important;padding:10px 11px!important;border:1px solid rgba(212,169,79,0.1)!important;border-radius:10px!important;background:rgba(23,21,15,0.48)!important}
.goat-confirm-details span{font:800 .50rem var(--body)!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:rgba(217,209,194,0.58)!important}
.goat-confirm-details strong{font:850 .72rem var(--body)!important;color:#fbf7ef!important}
.goat-confirm-modal>footer{display:flex!important;justify-content:flex-end!important;gap:9px!important;padding:19px 24px 22px!important}
.goat-confirm-modal>footer button{min-height:39px!important;padding:0 17px!important;border-radius:9px!important;font:900 .61rem var(--body)!important;letter-spacing:.04em!important;cursor:pointer!important}
.goat-confirm-cancel{border:1px solid rgba(212,169,79,0.18)!important;background:rgba(23,21,15,0.54)!important;color:rgba(251,247,239,0.8)!important}
.goat-confirm-submit{border:1px solid rgba(212,169,79,0.34)!important;background:linear-gradient(135deg,#4c3915,#61f0d0)!important;color:#1a1207!important;box-shadow:0 8px 22px rgba(212,169,79,0.16)!important}
.goat-confirm-submit.danger{border-color:rgba(255,100,119,.34)!important;background:linear-gradient(135deg,#ff6579,#f48b68)!important;color:#20060a!important;box-shadow:0 8px 22px rgba(244,91,111,.15)!important}
.goat-toast-stack{position:fixed!important;z-index:10120!important;right:20px!important;top:20px!important;display:grid!important;gap:9px!important;pointer-events:none!important}
.goat-toast{display:flex!important;align-items:center!important;gap:10px!important;max-width:390px!important;padding:12px 14px!important;border:1px solid rgba(212,169,79,.24)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(23,21,15,.97),rgba(11,10,8,.98))!important;box-shadow:0 18px 50px rgba(0,0,0,.35)!important;color:#fbf7ef!important;font:720 .67rem/1.35 var(--body)!important;opacity:0!important;transform:translateY(-8px)!important;transition:.22s ease!important}
.goat-toast.show{opacity:1!important;transform:none!important}
.goat-toast>i{width:8px!important;height:8px!important;border-radius:99px!important;background:#d4a94f!important;box-shadow:0 0 10px rgba(212,169,79,.6)!important;flex:0 0 auto!important}
.goat-toast.error{border-color:rgba(180,67,47,.3)!important}.goat-toast.error>i{background:#b4432f!important;box-shadow:0 0 10px rgba(180,67,47,.55)!important}

/* Fan Demand: never truncate MODERATE / VERY HIGH. */
.stadium-demand-row{grid-template-columns:36px minmax(0,1fr)!important;gap:9px!important}
.stadium-demand-row>strong{min-width:0!important;width:auto!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;font-size:.90rem!important}
.stadium-fan-card-v3{overflow:hidden!important}

/* Attendance Trend: capacity-scaled area graph, with match labels on X and
   a dynamic 0 -> stadium capacity scale on Y. */
.stadium-attendance-v3 .stadium-attendance-chart.area{min-height:168px!important;height:168px!important;margin-top:1px!important;overflow:visible!important}
.stadium-attendance-v3 .stadium-attendance-chart.area svg{display:block!important;width:100%!important;height:168px!important;margin:0!important;overflow:visible!important}
.stadium-attendance-area{fill:url('#stadiumAttendanceArea')!important}
.stadium-attendance-grid{stroke:rgba(217,209,194,0.13)!important;stroke-width:1!important;vector-effect:non-scaling-stroke!important}
.stadium-attendance-y-label,.stadium-attendance-x-label{fill:rgba(217,209,194,0.62)!important;font:700 9px var(--body)!important}
.stadium-attendance-line{fill:none!important;stroke:#e5c377!important;stroke-width:2.4!important;vector-effect:non-scaling-stroke!important;filter:drop-shadow(0 0 5px rgba(76,57,21,0.28))!important}
.stadium-attendance-v3 .stadium-attendance-chart.area circle{fill:#1a1207!important;stroke:#e5c377!important;stroke-width:1.8!important;vector-effect:non-scaling-stroke!important}

/* Finance period selector: active range must be obvious when the graph zooms. */
.finance-chart-filters button[aria-pressed="true"],.finance-chart-filters button.active{color:#1a1207!important;background:linear-gradient(135deg,#4c3915,#68edcf)!important;border-color:rgba(212,169,79,0.42)!important;box-shadow:0 5px 14px rgba(212,169,79,0.15)!important}

@media(max-width:700px){
  .goat-confirm-details{grid-template-columns:1fr!important}
  .goat-confirm-modal>footer{display:grid!important;grid-template-columns:1fr 1fr!important}
  .goat-toast-stack{left:12px!important;right:12px!important;top:12px!important}.goat-toast{max-width:none!important}
}

/* === 3.0A.50.35.42 public consistency pass === */
/* The public player dossier owns its shell from the instant a player is opened,
   so the loading state never flashes the legacy centered player modal. */
.player-dossier-loading{
  min-height:100dvh!important;display:grid!important;place-content:center!important;justify-items:center!important;gap:10px!important;
  padding:64px 24px!important;text-align:center!important;background:radial-gradient(circle at 50% 42%,rgba(42,34,20,0.1),transparent 34%)!important;
}
.player-dossier-loading>span{font:900 .60rem var(--body)!important;letter-spacing:.16em!important;color:#e5c377!important}
.player-dossier-loading>i{width:34px!important;height:34px!important;border:2px solid rgba(212,169,79,0.18)!important;border-top-color:#d4a94f!important;border-radius:50%!important;animation:playerDossierSpin .8s linear infinite!important}
.player-dossier-loading>strong{font:900 1rem var(--body)!important;color:#fbf7ef!important}
.player-dossier-loading>small{font:600 .66rem var(--body)!important;color:rgba(217,209,194,0.58)!important}
@keyframes playerDossierSpin{to{transform:rotate(360deg)}}

/* Shared rating-quality contract: 90+ is the elite purple tier. Keep copy
   white and premium; colour the panel/badge/progress accents consistently. */
.player-attribute-group.stat-elite{
  border-color:rgba(160,103,255,.58)!important;
  background:linear-gradient(145deg,rgba(82,38,142,.40),rgba(7,19,37,.77))!important;
  box-shadow:inset 0 0 0 1px rgba(178,125,255,.06),0 0 18px rgba(137,76,233,.07)!important;
}
.player-attribute-group.stat-elite .attribute-score{
  background:rgba(105,52,177,.62)!important;border-color:#ae77ff!important;color:#fff!important;
}
.player-attribute-group li>i em.stat-elite{background:#9d68f4!important;box-shadow:0 0 8px rgba(157,104,244,.24)!important}

/* One confirmation language across the site: red = cancel/abort, cyan/teal = proceed. */
.goat-confirm-cancel{
  border:1px solid rgba(255,94,116,.48)!important;
  background:linear-gradient(145deg,rgba(94,26,43,.76),rgba(62,19,35,.82))!important;
  color:#ff9cab!important;box-shadow:inset 0 1px rgba(255,255,255,.025)!important;
}
.goat-confirm-cancel:hover,.goat-confirm-cancel:focus-visible{
  border-color:rgba(255,111,130,.72)!important;background:linear-gradient(145deg,rgba(116,31,49,.84),rgba(73,21,38,.88))!important;color:#ffd6dc!important;
}
.goat-confirm-submit,.goat-confirm-submit.danger{
  border:1px solid rgba(212,169,79,0.4)!important;
  background:linear-gradient(135deg,#4c3915,#61f0d0)!important;
  color:#1a1207!important;box-shadow:0 8px 22px rgba(212,169,79,0.16)!important;
}
.goat-confirm-submit:hover,.goat-confirm-submit:focus-visible,.goat-confirm-submit.danger:hover,.goat-confirm-submit.danger:focus-visible{
  filter:brightness(1.06)!important;box-shadow:0 10px 28px rgba(212,169,79,0.22)!important;
}
/* Older club-decision dialogs inherit the same hierarchy until their remaining
   flows are migrated to the shared confirmation component. */
.finance-modal-actions button:not(#financeReleaseConfirm){
  border:1px solid rgba(255,94,116,.48)!important;border-radius:9px!important;
  background:linear-gradient(145deg,rgba(94,26,43,.76),rgba(62,19,35,.82))!important;
  color:#ff9cab!important;box-shadow:none!important;
}
.finance-modal-actions #financeReleaseConfirm,.finance-modal-actions #financeReleaseConfirm.danger-button{
  border:1px solid rgba(212,169,79,0.4)!important;border-radius:9px!important;
  background:linear-gradient(135deg,#4c3915,#61f0d0)!important;color:#1a1207!important;
  box-shadow:0 8px 22px rgba(212,169,79,0.16)!important;
}

.finance-modal-actions button:not(#financeReleaseConfirm),
.finance-modal-actions #financeReleaseConfirm{
  min-height:39px!important;padding:0 17px!important;border-radius:9px!important;clip-path:none!important;transform:none!important;
  font:900 .61rem var(--body)!important;letter-spacing:.04em!important;
}


/* ========================================================================== */
/* 3.0A.50.35.45 — pre-season responsive + fixture projection hardening       */
/* ========================================================================== */

/* Contracts: filter/search controls must be fully opaque over page artwork. */
#profileContractsPanel .contract-toolbar,
#profileContractsPanel .contract-toolbar.agency,
#profileContractsPanel .contract-toolbar-v3{
  background:#0d0c0a!important;
  background-image:linear-gradient(145deg,#0d0c0a,#0d0c0a)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  border-color:rgba(212,169,79,0.18)!important;
}

/* Permanent report: a failed/saved penalty gets an unmistakable red cross. */
.mc-report-event-penalty-miss{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:2px solid rgba(255,92,111,.88);
  border-radius:50%;
  background:#190d18;
  color:#ff6377;
  font:900 1.18rem/1 var(--body);
  box-shadow:0 0 0 3px rgba(255,92,111,.08),0 0 16px rgba(255,92,111,.18);
}

/* Desktop zoom / short-viewport safety: never let the card cover Player Details. */
.player-dossier-left{align-content:start!important;overflow:visible!important}
.player-dossier-card-wrap{position:relative!important;display:grid!important;place-items:start center!important;min-height:0!important;overflow:visible!important}
.player-dossier-facts{position:relative!important;z-index:2!important}
@media (min-width:1280px) and (max-height:950px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:auto!important}
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{height:auto!important;min-height:100dvh!important;overflow:visible!important}
  .player-profile-v4{height:auto!important;min-height:100dvh!important;overflow:visible!important;grid-template-rows:auto auto auto auto!important}
  .player-dossier-card-wrap .profile-footballer-card{width:min(232px,29vh)!important;max-width:min(232px,29vh)!important}
}

/* Whole-site mobile safety pass. Mobile reflows; it must never be a shrunken desktop. */
@media (max-width:760px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body{min-width:0!important}
  .site-header,.page-shell{width:calc(100% - 20px)!important;max-width:none!important;margin-left:auto!important;margin-right:auto!important}
  .site-header{min-height:0!important;padding:10px 0 8px!important;gap:8px 10px!important;flex-wrap:wrap!important;align-items:center!important}
  .brand{gap:8px!important;min-width:0!important}.brand-mark{width:36px!important;height:40px!important}.brand-copy strong{font-size:.93rem!important}.brand-copy small{display:none!important}
  .header-account{margin-left:auto!important;gap:6px!important}.header-status{display:none!important}.twitch-login-button,.dashboard-button{min-height:40px!important;padding:0 11px!important}.dashboard-button #headerUserName{display:none!important}
  .site-menu{order:3!important;width:100%!important;display:flex!important;gap:5px!important;overflow-x:auto!important;overscroll-behavior-inline:contain;padding:4px 0 2px!important;scrollbar-width:none}.site-menu::-webkit-scrollbar{display:none}.site-menu button,.site-menu a{flex:0 0 auto!important;min-height:40px!important;padding:0 13px!important}
  .profile-account-menu{position:fixed!important;top:60px!important;right:10px!important;left:auto!important;width:min(280px,calc(100vw - 20px))!important;max-height:calc(100dvh - 72px)!important;overflow:auto!important}

  .hero{grid-template-columns:1fr!important;min-height:0!important;gap:24px!important;padding:32px 0 46px!important}.hero-content{max-width:100%!important}.hero h1{font-size:clamp(3rem,15vw,5rem)!important}.hero-copy{font-size:.9rem!important}.hero-arena{min-width:0!important;width:100%!important;max-width:100%!important}
  .viewer-search{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;width:100%!important}.viewer-search input{min-width:0!important}.viewer-search button{grid-column:1/-1!important;width:100%!important;margin-top:7px!important}
  .hero-stats,.summary-grid,.rarity-grid,.collection-insights,.engagement-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .section-frame{min-width:0!important}.section-heading{align-items:flex-start!important;flex-direction:column!important;gap:12px!important}.section-heading h2{font-size:clamp(1.8rem,9vw,2.7rem)!important}

  .profile-view,.leaderboard-detail-view{padding-top:15px!important}.profile-header{min-height:0!important;align-items:flex-start!important;flex-direction:column!important;gap:14px!important;padding:24px 0!important}.profile-header h1{font-size:clamp(3rem,16vw,5.2rem)!important;line-height:.86!important}.profile-watermark{font-size:30vw!important}.profile-actions{width:100%!important}.profile-actions .secondary-button{width:100%!important}
  .profile-nav-row,.profile-tabs,.finance-periods,.leaderboard-tabs,.directory-tabs{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;scrollbar-width:none!important}.profile-tabs::-webkit-scrollbar,.finance-periods::-webkit-scrollbar{display:none!important}
  .profile-tabs button,.finance-periods button,.leaderboard-tabs button{flex:0 0 auto!important;min-height:42px!important}

  .goat-management-header,.goat-management-body,.finance-hero,.finance-body{padding-left:12px!important;padding-right:12px!important}
  .finance-summary-grid,.finance-summary-grid-clean,.contracts-kpi-grid,.stadium-kpi-grid,.infrastructure-summary{grid-template-columns:1fr!important}
  .finance-main-grid,.finance-breakdowns,.finance-support-grid,.contracts-main-layout,.contracts-main-layout.agency,.stadium-lower-grid,.infrastructure-grid,.infrastructure-grid-v3{grid-template-columns:1fr!important}
  .contract-toolbar,.contract-toolbar.agency{padding:10px!important}.contract-filter-tabs{display:flex!important;overflow-x:auto!important;max-width:100%!important;scrollbar-width:none!important}.contract-filter-tabs::-webkit-scrollbar{display:none!important}.contract-filter-tabs button{flex:0 0 auto!important;min-height:42px!important}.contract-filter-inputs,.contract-toolbar-v3 .contract-filter-inputs{display:grid!important;grid-template-columns:1fr!important}.contract-filter-inputs input,.contract-filter-inputs select{width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .contract-player-hero-v4{grid-template-columns:88px minmax(0,1fr)!important;min-height:0!important}.contract-player-hero-v4 .contract-portrait-frame{width:88px!important;height:112px!important}.contract-detail-grid-v4{grid-template-columns:1fr!important}

  .finance-table-wrap,.leaderboard-table-wrap,.directory-table-wrap,.player-career-table-v4,.mc-report-player-table-wrap,.contract-table-panel.agency>.finance-table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .leaderboard-table,.directory-table,.finance-table,.mc-report-player-table{min-width:680px}

  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){overflow:auto!important;padding:0!important}
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{width:100vw!important;max-width:100vw!important;height:auto!important;min-height:100dvh!important;border-radius:0!important;overflow:visible!important}
  .player-profile-v4{width:100%!important;min-height:100dvh!important;height:auto!important;grid-template-columns:1fr!important;grid-template-rows:auto!important;padding:54px 10px 24px!important;overflow:visible!important}
  .player-dossier-left,.player-dossier-hero,.player-dossier-top,.player-dossier-analytics,.player-career-v4{grid-column:1!important;grid-row:auto!important;min-width:0!important}.player-dossier-left{grid-template-columns:1fr!important}.player-dossier-card-wrap .profile-footballer-card{width:min(250px,72vw)!important;max-width:min(250px,72vw)!important}.player-dossier-top,.player-dossier-analytics{grid-template-columns:1fr!important}.player-attribute-grid-v4{grid-template-columns:1fr!important;grid-template-rows:auto!important;height:auto!important}.player-attributes-v4,.player-dna-v4,.player-status-v4{grid-column:1!important;grid-row:auto!important}.player-career-table-v4{height:auto!important}

  .lineup-workspace,.lineup-main,.lineup-builder-layout,.lineup-page-grid{max-width:100%!important;min-width:0!important}.lineup-pitch{max-width:100%!important;touch-action:manipulation}.lineup-available-panel,.lineup-side-panel{min-width:0!important}
  .goat-calendar-fixture-row{min-width:0!important}.mc-hub-page,.goat-calendar-modern,.goat-world-shell{max-width:100%!important;overflow-x:hidden!important}

  input,select,textarea{font-size:16px!important}
  button,a,[role="button"]{touch-action:manipulation}
}
@media (max-width:420px){
  .hero-stats,.summary-grid,.rarity-grid,.collection-insights,.engagement-feature-grid{grid-template-columns:1fr!important}
  .site-header,.page-shell{width:calc(100% - 14px)!important}
  .player-dossier-card-wrap .profile-footballer-card{width:min(235px,76vw)!important;max-width:min(235px,76vw)!important}
}

/* 35.48 public Competition Centre: reuse the established premium standings language. */
.competition-primary-switch,.competition-sub-switch{display:flex;align-items:center;gap:5px;max-width:100%;margin-bottom:12px;padding:5px;border:1px solid rgba(212,169,79,0.12);border-radius:10px;background:rgba(13,12,10,0.58);overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none}
.competition-primary-switch::-webkit-scrollbar,.competition-sub-switch::-webkit-scrollbar{display:none}
.competition-primary-switch button,.competition-sub-switch button{flex:0 0 auto;min-width:92px;height:34px;padding:0 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:rgba(217,209,194,0.58);font:inherit;font-size:.59rem;font-weight:850;letter-spacing:.025em;cursor:pointer;white-space:nowrap}
.competition-primary-switch button.active,.competition-sub-switch button.active{border-color:rgba(212,169,79,0.28);background:rgba(42,34,20,0.32);color:#fbf7ef}
.competition-sub-switch{margin-top:-4px;background:rgba(13,12,10,0.45)}
.competition-sub-switch button{min-width:auto;height:30px;font-size:.55rem}
.competition-context-strip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:4px 0 14px;padding:12px 15px;border:1px solid rgba(212,169,79,0.12);border-radius:11px;background:linear-gradient(100deg,rgba(23,21,15,0.72),rgba(13,12,10,0.7));color:rgba(217,209,194,0.62);font-size:.6rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.competition-context-strip strong{color:#fbf7ef;font-size:.72rem;letter-spacing:.025em;text-transform:none}
.competition-explainer{margin:0 0 14px;padding:13px 15px;border-left:2px solid rgba(212,169,79,0.5);background:rgba(13,12,10,0.42);color:rgba(217,209,194,0.72);font-size:.68rem;line-height:1.6}
.standings-table-luxury strong small{display:block;margin-top:4px;color:rgba(217,209,194,0.48);font-size:.48rem;font-weight:750;letter-spacing:.025em}
.competition-next-fixture{display:grid;gap:6px;margin-top:12px;padding:14px 16px;border:1px solid rgba(212,169,79,0.14);border-radius:12px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.82))}
.competition-next-fixture small{color:rgba(217,209,194,0.52);font-size:.5rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.competition-next-fixture strong{color:#fbf7ef;font-size:.82rem}.competition-next-fixture span{color:rgba(217,209,194,0.64);font-size:.62rem}
.competition-news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.competition-news-grid article{min-height:105px;padding:15px;border:1px solid rgba(212,169,79,0.12);border-radius:13px;background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.84))}.competition-news-grid article small,.competition-news-grid article span{display:block;margin-bottom:9px;color:rgba(229,195,119,0.64);font-size:.49rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.competition-news-grid article strong{display:block;color:#fbf7ef;font-size:.72rem;line-height:1.45}.competition-news-grid article p{margin:7px 0 0;color:rgba(217,209,194,0.58);font-size:.6rem;line-height:1.5}
@media (max-width:760px){.competition-context-strip{align-items:flex-start;flex-direction:column;gap:5px}.competition-news-grid{grid-template-columns:1fr}.competition-primary-switch,.competition-sub-switch{width:100%;box-sizing:border-box}}

/* ========================================================================== */
/* 3.0A.50.35.49 — competition/sponsor polish + targeted UX/performance fixes */
/* ========================================================================== */

/* Homepage: keep the decorative stadium treatment, remove continuous full-page
   transforms that compete with the moving game-loop rail for compositor time. */
body.home-background .world-grid{animation:none!important}
.home-featured-player{animation:none!important;will-change:auto!important}
.game-loop-rail{overflow:hidden;contain:layout paint}
.game-loop-track{transform:translate3d(0,0,0);-webkit-backface-visibility:hidden;backface-visibility:hidden;will-change:transform}
.game-loop-group{-webkit-backface-visibility:hidden;backface-visibility:hidden}

/* Next Match: long club names remain readable and symmetrical instead of being
   crushed into a single microscopic line. */
.goat-calendar-modern .goat-calendar-team-block strong,
.goat-calendar-modern .goat-calendar-team-block strong.is-long-club-name{
  width:100%!important;
  max-width:132px!important;
  min-height:2.3em!important;
  margin:0 auto!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden!important;
  white-space:normal!important;
  text-overflow:ellipsis;
  text-align:center!important;
  overflow-wrap:anywhere;
  word-break:normal;
  font-size:.78rem!important;
  line-height:1.15!important;
  letter-spacing:0!important;
}
@media (max-width:760px){
  .goat-calendar-modern .goat-calendar-team-block strong,
  .goat-calendar-modern .goat-calendar-team-block strong.is-long-club-name{
    max-width:110px!important;
    font-size:.7rem!important;
  }
}

/* Match report timeline: the minute badge owns a fixed circular footprint.
   Event symbols live on the club side of the centre line: home = left, away = right. */
.mc-report-key-timeline .mc-report-event-centre{
  position:relative!important;
  display:grid!important;
  place-items:center!important;
  min-width:64px!important;
  width:64px!important;
  flex:0 0 64px!important;
  gap:0!important;
}
.mc-report-key-timeline .mc-report-event-centre>b{
  box-sizing:border-box!important;
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 0 42px!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
}
.mc-report-key-timeline .mc-report-event-centre>:is(.mc-report-event-ball,.mc-report-event-card,.mc-report-event-sub,.mc-report-event-injury,.mc-report-event-save,.mc-report-event-dot,.mc-report-event-penalty-miss){
  position:absolute!important;
  top:50%!important;
  margin:0!important;
  transform:translateY(-50%)!important;
  z-index:3!important;
}
.mc-report-key-timeline .mc-report-key-event.is-home .mc-report-event-centre>:is(.mc-report-event-ball,.mc-report-event-card,.mc-report-event-sub,.mc-report-event-injury,.mc-report-event-save,.mc-report-event-dot,.mc-report-event-penalty-miss){
  left:auto!important;
  right:calc(50% + 18px)!important;
}
.mc-report-key-timeline .mc-report-key-event.is-away .mc-report-event-centre>:is(.mc-report-event-ball,.mc-report-event-card,.mc-report-event-sub,.mc-report-event-injury,.mc-report-event-save,.mc-report-event-dot,.mc-report-event-penalty-miss){
  left:calc(50% + 18px)!important;
  right:auto!important;
}
@media (max-width:760px){
  .mc-report-key-timeline .mc-report-event-centre{min-width:56px!important;width:56px!important;flex-basis:56px!important}
  .mc-report-key-timeline .mc-report-event-centre>b{width:37px!important;min-width:37px!important;height:37px!important;min-height:37px!important;flex-basis:37px!important}
  .mc-report-key-timeline .mc-report-key-event.is-home .mc-report-event-centre>:is(.mc-report-event-ball,.mc-report-event-card,.mc-report-event-sub,.mc-report-event-injury,.mc-report-event-save,.mc-report-event-dot,.mc-report-event-penalty-miss){right:calc(50% + 15px)!important}
  .mc-report-key-timeline .mc-report-key-event.is-away .mc-report-event-centre>:is(.mc-report-event-ball,.mc-report-event-card,.mc-report-event-sub,.mc-report-event-injury,.mc-report-event-save,.mc-report-event-dot,.mc-report-event-penalty-miss){left:calc(50% + 15px)!important}
}

/* Club decision confirmation: always above the player dossier and avoid an
   expensive live full-screen blur while the detailed player card is rendered. */
.finance-modal{z-index:6500!important;isolation:isolate}
.finance-modal-backdrop{
  background:rgba(13,12,10,0.76)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.club-decision-open{overflow:hidden}
body.club-decision-open .finance-modal-card{box-shadow:0 28px 70px rgba(0,0,0,.62),0 0 0 1px rgba(212,169,79,0.05)}

/* ------------------------------- Sponsors -------------------------------- */
.sponsor-commercial-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 286px;
  gap:16px;
  align-items:start;
}
.sponsor-commercial-shell>main{display:grid;gap:14px;min-width:0}
.sponsor-summary-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.16);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(13,12,10,0.9),rgba(13,12,10,0.92));
  box-shadow:0 18px 42px rgba(9,7,4,0.18);
}
.sponsor-summary-strip article{position:relative;padding:20px 22px;min-width:0}
.sponsor-summary-strip article+article:before{content:"";position:absolute;left:0;top:20%;bottom:20%;width:1px;background:rgba(76,57,21,0.14)}
.sponsor-summary-strip span,.sponsor-choice-panel>header span,.sponsor-insight-panel>span,.sponsor-active-premium>div>span{
  display:block;color:#e5c377;font-size:.52rem;font-weight:950;letter-spacing:.105em;text-transform:uppercase
}
.sponsor-summary-strip strong{display:block;margin-top:8px;color:#fbf7ef;font-family:var(--display);font-size:1.02rem;line-height:1.16}
.sponsor-summary-strip small{display:block;margin-top:4px;color:rgba(217,209,194,0.55);font-size:.58rem;line-height:1.35}
.sponsor-choice-panel{
  padding:14px;
  border:1px solid rgba(212,169,79,0.15);
  border-radius:16px;
  background:linear-gradient(155deg,rgba(13,12,10,0.88),rgba(13,12,10,0.94));
}
.sponsor-choice-panel>header{display:flex;justify-content:space-between;align-items:end;gap:16px;padding:3px 3px 13px}
.sponsor-choice-panel>header h3{margin:5px 0 0;color:#fbf7ef;font-size:.98rem}
.sponsor-choice-panel>header>small{color:rgba(217,209,194,0.5);font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
.sponsor-offer-grid.premium{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.sponsor-offer-card.premium{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:418px;
  padding:19px;
  border:1px solid rgba(212,169,79,0.16);
  border-radius:14px;
  background:linear-gradient(160deg,rgba(23,21,15,0.88),rgba(13,12,10,0.95));
  box-shadow:none;
}
.sponsor-offer-card.premium.featured{border-color:rgba(212,169,79,0.58);box-shadow:0 0 0 1px rgba(212,169,79,0.08),0 16px 34px rgba(9,7,4,0.24)}
.sponsor-offer-card.premium.performance{border-color:rgba(212,169,79,0.26)}
.sponsor-brand-badge{
  display:grid;place-items:center;width:52px;height:52px;margin-bottom:14px;
  border:1px solid rgba(212,169,79,0.34);border-radius:15px 8px 15px 8px;
  background:linear-gradient(145deg,rgba(42,34,20,0.35),rgba(23,21,15,0.55));
  color:#fbf7ef;font-family:var(--display);font-size:1.02rem;font-weight:1000;letter-spacing:.03em
}
.sponsor-brand-badge.safe{border-color:rgba(212,169,79,0.4);background:linear-gradient(145deg,rgba(42,34,20,0.38),rgba(23,21,15,0.58))}
.sponsor-brand-badge.performance{border-color:rgba(212,169,79,0.45);background:linear-gradient(145deg,rgba(42,34,20,0.42),rgba(23,21,15,0.62))}
.sponsor-offer-card.premium>span{color:#e5c377;font-size:.5rem;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.sponsor-offer-card.premium h3{margin:6px 0 5px;color:#fbf7ef;font-size:.94rem}
.sponsor-offer-summary{min-height:38px;margin:0 0 13px!important;color:rgba(217,209,194,0.61)!important;font-size:.61rem!important;line-height:1.48!important}
.sponsor-offer-card.premium>section{display:grid;margin-top:auto}
.sponsor-offer-card.premium>section p{padding:7px 0!important;border-top:1px solid rgba(212,169,79,0.09)!important}
.sponsor-offer-card.premium>section p span{font-size:.55rem!important}
.sponsor-offer-card.premium>section p strong{font-size:.61rem!important;color:#fbf7ef}
.sponsor-offer-card.premium button{min-height:40px;margin-top:13px;border-radius:9px;box-shadow:none}
.sponsor-offer-card.premium.featured button{border-color:rgba(212,169,79,0.52);background:linear-gradient(135deg,rgba(42,34,20,0.82),rgba(42,34,20,0.82));box-shadow:0 8px 22px rgba(212,169,79,0.14)}
.sponsor-recommended{position:absolute;right:13px;top:14px;color:#e5c377;font-size:.45rem;font-style:normal;font-weight:950;letter-spacing:.08em}
.sponsor-insight-panel{
  display:grid;gap:11px;padding:14px;border:1px solid rgba(212,169,79,0.16);border-radius:15px;
  background:linear-gradient(155deg,rgba(13,12,10,0.9),rgba(13,12,10,0.95));
}
.sponsor-insight-panel>span{padding:2px 3px 5px}
.sponsor-insight-panel article{padding:14px;border:1px solid rgba(212,169,79,0.12);border-radius:12px;background:rgba(23,21,15,0.55)}
.sponsor-insight-panel article small{display:block;color:rgba(251,247,239,0.78);font-size:.5rem;font-weight:950;letter-spacing:.07em}
.sponsor-insight-panel article strong{display:block;margin-top:8px;color:#fbf7ef;font-size:.74rem}
.sponsor-insight-panel article p{margin:6px 0 0;color:rgba(217,209,194,0.57);font-size:.58rem;line-height:1.45}
.sponsor-insight-panel article.ceiling strong{font-size:1.15rem;color:#fbf7ef}
.sponsor-risk-track{position:relative;height:7px;margin:14px 0 7px;border:1px solid rgba(212,169,79,0.18);border-radius:999px;background:rgba(13,12,10,0.65);overflow:visible}
.sponsor-risk-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#4c3915,#4c3915);opacity:.8}
.sponsor-risk-track b{position:absolute;top:50%;width:10px;height:10px;border-radius:50%;background:#9ccbc4;border:1px solid rgba(255,255,255,.38);transform:translate(-50%,-50%)}
.sponsor-insight-panel footer{display:flex;justify-content:space-between;color:rgba(217,209,194,0.48);font-size:.48rem}
.sponsor-active-premium{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:17px;align-items:start;padding:22px;border:1px solid rgba(212,169,79,0.22);border-radius:15px;background:linear-gradient(150deg,rgba(23,21,15,0.86),rgba(13,12,10,0.94))}
.sponsor-active-premium h3{margin:5px 0 3px}.sponsor-active-premium p{margin:0;color:rgba(217,209,194,0.58);font-size:.62rem}
.sponsor-active-premium>b{padding:5px 9px;border:1px solid rgba(79,219,167,.25);border-radius:999px;color:#71e0ae;background:rgba(24,100,72,.22);font-size:.48rem;letter-spacing:.07em}
.sponsor-active-premium>section{grid-column:2/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:2px}
.sponsor-active-premium>section p{padding:10px;border:1px solid rgba(212,169,79,0.1);border-radius:9px;background:rgba(13,12,10,0.32)}
.sponsor-active-premium>section span{display:block;color:rgba(229,195,119,0.5);font-size:.5rem}.sponsor-active-premium>section strong{display:block;margin-top:4px;font-size:.66rem}

/* ----------------------------- Competitions ------------------------------- */
.competition-primary-switch{display:flex;width:max-content;margin-bottom:12px;padding:4px;border-radius:10px;background:rgba(13,12,10,0.72)}
.competition-primary-switch button{min-width:112px}
.competition-primary-switch button.active{background:linear-gradient(135deg,rgba(42,34,20,0.58),rgba(23,21,15,0.54));box-shadow:inset 0 0 0 1px rgba(212,169,79,0.16)}
.competition-premium-hero{
  display:flex;justify-content:space-between;align-items:center;gap:20px;
  min-height:86px;margin-bottom:12px;padding:19px 22px;border:1px solid rgba(212,169,79,0.16);border-radius:15px;
  background:radial-gradient(circle at 82% 12%,rgba(76,57,21,0.09),transparent 22rem),linear-gradient(145deg,rgba(23,21,15,0.92),rgba(13,12,10,0.95));
  box-shadow:0 17px 38px rgba(9,7,4,0.16)
}
.competition-premium-hero>div>span,.competition-hero-identity>div>span,.competition-hero-meta>span{color:#e5c377;font-size:.5rem;font-weight:950;letter-spacing:.105em;text-transform:uppercase}
.competition-premium-hero h3{margin:4px 0 3px;color:#fbf7ef;font-size:1.32rem;line-height:1.08}
.competition-premium-hero p{margin:0;color:rgba(217,209,194,0.57);font-size:.62rem}
.competition-premium-hero>b{padding:6px 10px;border:1px solid rgba(212,169,79,0.2);border-radius:999px;background:rgba(42,34,20,0.2);color:#fbf7ef;font-size:.5rem;letter-spacing:.07em}
.competition-hero-identity{display:flex;align-items:center;gap:14px}
.competition-hero-emblem{display:grid!important;place-items:center;width:52px;height:52px;flex:0 0 52px;border:1px solid rgba(212,169,79,0.28);border-radius:50%;background:linear-gradient(145deg,rgba(42,34,20,0.42),rgba(23,21,15,0.58));color:#fbf7ef!important;font-family:var(--display);font-size:1.08rem!important;letter-spacing:0!important}
.competition-hero-meta{text-align:right}.competition-hero-meta strong{display:block;margin-top:5px;color:#fbf7ef;font-size:.78rem}
.competition-division-switch{display:flex;gap:7px;margin:0 0 12px;overflow-x:auto;padding:2px 1px 4px;scrollbar-width:thin}
.competition-division-switch button{display:grid;justify-items:start;min-width:112px;padding:8px 11px;border:1px solid rgba(212,169,79,0.12);border-radius:9px;background:rgba(13,12,10,0.68);color:rgba(217,209,194,0.62);font:inherit;cursor:pointer}
.competition-division-switch button strong{font-size:.58rem}.competition-division-switch button small{margin-top:2px;font-size:.46rem;color:rgba(217,209,194,0.44)}
.competition-division-switch button.active{border-color:rgba(212,169,79,0.34);background:rgba(23,21,15,0.34);color:#fbf7ef}
.competition-sub-switch{display:flex;width:100%;overflow-x:auto;margin-bottom:12px;padding:0;border:0;border-bottom:1px solid rgba(212,169,79,0.13);border-radius:0;background:transparent}
.competition-sub-switch button{min-width:auto;height:38px;padding:0 14px;border-radius:0;border:0;border-bottom:2px solid transparent;background:transparent}
.competition-sub-switch button.active{border-color:#d4a94f;background:transparent;color:#fbf7ef;box-shadow:none}
.competition-overview-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,.72fr);gap:14px;align-items:start}
.competition-table-card{overflow:hidden;border:1px solid rgba(212,169,79,0.14);border-radius:14px;background:linear-gradient(150deg,rgba(13,12,10,0.83),rgba(13,12,10,0.9))}
.competition-table-head,.competition-table-row{display:grid;grid-template-columns:30px minmax(175px,1fr) repeat(7,38px) 46px;align-items:center;column-gap:3px;padding:0 12px}
.competition-table-head{min-height:38px;border-bottom:1px solid rgba(212,169,79,0.11);background:rgba(23,21,15,0.5);color:rgba(217,209,194,0.5);font-size:.46rem;font-weight:950;letter-spacing:.045em}
.competition-table-row{position:relative;min-height:49px;border-bottom:1px solid rgba(212,169,79,0.07);color:rgba(251,247,239,0.82);font-size:.57rem}
.competition-table-row:last-child{border-bottom:0}.competition-table-row:hover{background:rgba(42,34,20,0.08)}
.competition-table-row.is-user{background:linear-gradient(90deg,rgba(42,34,20,0.19),rgba(23,21,15,0.07));box-shadow:inset 2px 0 #d4a94f}
.competition-table-row.is-ai{color:rgba(217,209,194,0.62)}
.competition-skeleton{padding:6px 0}
.competition-skeleton-head{display:flex;min-height:38px;align-items:center;padding:0 12px;border-bottom:1px solid rgba(212,169,79,.16);background:#17140f;color:#d6b66f;font-size:.68rem;font-weight:750;letter-spacing:.04em}
.competition-skeleton-row{display:grid;grid-template-columns:30px minmax(175px,1fr) 38px 38px 60px;align-items:center;column-gap:10px;padding:0 12px;min-height:49px;border-bottom:1px solid rgba(212,169,79,.09)}
.competition-skeleton-row:last-child{border-bottom:0}
.competition-skeleton-chip,.competition-skeleton-bar{height:10px;border-radius:6px;background:linear-gradient(90deg,rgba(212,169,79,.07),rgba(212,169,79,.22),rgba(212,169,79,.07));background-size:200% 100%;animation:competitionSkeletonShimmer 1.4s ease-in-out infinite}
.competition-skeleton-chip{width:18px;height:18px;border-radius:50%}
.competition-skeleton-bar.wide{width:70%}
@keyframes competitionSkeletonShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.competition-skeleton-chip,.competition-skeleton-bar{animation:none}}
.competition-table-club{display:flex;align-items:center;gap:9px;min-width:0;color:#fbf7ef;font-size:.61rem}
.competition-table-club>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.competition-table-club small{display:block;margin-top:2px;color:rgba(217,209,194,0.4);font-size:.4rem;font-weight:850;letter-spacing:.05em}
.competition-club-mark{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;overflow:hidden;border:0;border-radius:0;background:transparent;color:#e5c377;font-size:.45rem;font-weight:950}
.competition-club-mark img{width:100%;height:100%;object-fit:contain;padding:0;box-sizing:border-box}.competition-club-mark.fallback{border:1px solid rgba(212,169,79,.24);border-radius:7px;background:#211d14}.competition-club-mark.fallback.is-ai{opacity:.55;filter:saturate(.55)}
.competition-next-mark{display:flex;justify-content:center}.competition-next-mark .competition-club-mark{width:21px;height:21px;flex-basis:21px}
.competition-round-card{overflow:hidden;border:1px solid rgba(212,169,79,0.14);border-radius:14px;background:linear-gradient(150deg,rgba(13,12,10,0.84),rgba(13,12,10,0.91))}
.competition-round-card>header{display:flex;justify-content:space-between;align-items:center;min-height:42px;padding:0 13px;border-bottom:1px solid rgba(212,169,79,0.1);background:rgba(23,21,15,0.46)}
.competition-round-card>header span{color:#fbf7ef;font-size:.6rem;font-weight:900}.competition-round-card>header strong{color:#e5c377;font-size:.44rem;letter-spacing:.07em}
.competition-round-card>section h4{margin:0;padding:9px 12px;background:rgba(255,255,255,.025);color:rgba(251,247,239,0.72);font-size:.5rem}
.competition-round-fixture{display:grid;grid-template-columns:minmax(0,1fr) 24px 62px 24px minmax(0,1fr);align-items:center;gap:5px;min-height:45px;padding:0 10px;border-bottom:1px solid rgba(212,169,79,0.07);font-size:.5rem}
.competition-round-fixture>span:first-child{text-align:right}.competition-round-fixture>span:last-child{text-align:left}.competition-round-fixture>b{text-align:center;color:rgba(251,247,239,0.77);font-size:.52rem}
.competition-round-empty{display:grid;gap:7px;padding:22px 16px}.competition-round-empty b{color:#fbf7ef;font-size:.65rem}.competition-round-empty small{color:rgba(217,209,194,0.52);font-size:.56rem;line-height:1.5}
.competition-preseason-note{margin:12px 0 0;padding:11px 13px;border-left:2px solid rgba(212,169,79,0.58);border-radius:0 9px 9px 0;background:rgba(23,21,15,0.18);color:rgba(217,209,194,0.65);font-size:.58rem;line-height:1.55}.competition-preseason-note strong{color:#fbf7ef}

@media (max-width:1180px){
  .sponsor-commercial-shell{grid-template-columns:1fr}.sponsor-insight-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.sponsor-insight-panel>span{grid-column:1/-1}
  .competition-overview-layout{grid-template-columns:1fr}.competition-round-card{max-width:none}
}

/* Player Profile — authoritative per-match Recent Form detail. These shared
   tokens are the same liquid-glass material used by the top Club / World
   switch, rather than a second opaque card treatment. */
:root{--goat-glass-edge:rgba(212,169,79,.28);--goat-glass-highlight:rgba(255,255,255,.14);--goat-glass-surface:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 48%,rgba(212,169,79,.07)),rgba(8,7,6,.5);--goat-glass-filter:blur(20px) saturate(140%)}
.player-match-stats-overlay{position:fixed;z-index:10120;inset:0;display:grid;place-items:center;padding:18px;box-sizing:border-box;background:rgba(2,2,2,.46);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.player-match-stats-dialog{position:relative;isolation:isolate;overflow:hidden;width:min(620px,calc(100vw - 36px));padding:34px;box-sizing:border-box;border:1px solid var(--goat-glass-edge);border-radius:22px;background:var(--goat-glass-surface);box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 var(--goat-glass-highlight),inset 0 -1px 0 rgba(212,169,79,.10);backdrop-filter:var(--goat-glass-filter);-webkit-backdrop-filter:var(--goat-glass-filter)}
.player-match-stats-dialog::before{content:"";position:absolute;z-index:-1;inset:1px 8% 72%;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0));filter:blur(5px);pointer-events:none}
.player-match-stats-dialog::after{content:"";position:absolute;z-index:-1;right:-14%;bottom:-65%;width:55%;aspect-ratio:1;border-radius:50%;background:rgba(212,169,79,.11);filter:blur(26px);pointer-events:none}
.player-match-stats-dialog h2{margin:0 50px 26px 0;color:#f6e8c5;font:850 clamp(1.65rem,4vw,2.5rem)/1.05 var(--display)}
.player-match-stats-dialog>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.player-match-stats-dialog article{display:grid;gap:8px;min-height:96px;padding:15px;box-sizing:border-box;border:1px solid rgba(212,169,79,.25);border-radius:13px;background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 52%,rgba(212,169,79,.075)),rgba(8,7,6,.30);box-shadow:0 9px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.13),inset 0 -1px 0 rgba(212,169,79,.08);backdrop-filter:blur(14px) saturate(135%);-webkit-backdrop-filter:blur(14px) saturate(135%);align-content:center}
.player-match-stats-dialog article span{color:rgba(237,222,188,.66);font:750 .68rem/1.2 var(--body);letter-spacing:.05em}
.player-match-stats-dialog article strong{color:#fff4d8;font:850 1.35rem/1 var(--display);font-variant-numeric:tabular-nums}
.player-match-stats-close{position:absolute;top:16px;right:16px;display:grid;width:38px;height:38px;padding:0;place-items:center;border:1px solid rgba(212,169,79,.32);border-radius:50%;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(212,169,79,.08)),rgba(8,7,6,.42);box-shadow:inset 0 1px 0 rgba(255,255,255,.13);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:#e9ce91;font:400 1.45rem/1 var(--body);cursor:pointer}
.player-match-stats-close:focus-visible{outline:2px solid #d4a94f;outline-offset:2px}
@media(max-width:560px){.player-match-stats-dialog{padding:26px 18px 20px}.player-match-stats-dialog h2{margin-bottom:20px;font-size:1.55rem}.player-match-stats-dialog>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.player-match-stats-dialog article{min-height:78px;padding:11px}.player-match-stats-dialog article strong{font-size:1.05rem}}

/* ========================================================================== */
/* HALFTIME and the authenticated physical card album                         */
/* ========================================================================== */
body.halftime-background,
body.halftime-collection-background{background:#090705}
body.halftime-collection-background{height:100dvh;min-height:0;overflow:hidden;scrollbar-gutter:stable}
body.halftime-background .page-shell,
body.halftime-collection-background .page-shell{position:relative;z-index:1;width:100%;max-width:none;padding-inline:clamp(14px,3vw,48px)}
body.halftime-collection-background .page-shell{height:calc(100dvh - 98px);min-height:0;overflow:visible}
body.halftime-background .site-footer,
body.halftime-collection-background .site-footer{display:none}

.halftime-view,
.halftime-collection-view{position:relative;isolation:isolate;width:min(1540px,100%);min-height:calc(100svh - 92px);margin:0 auto}
.halftime-view::before,
.halftime-collection-view::before{content:"";position:fixed;z-index:-3;inset:0;background-repeat:no-repeat;background-position:center;background-size:cover;pointer-events:none}
.halftime-view::before{background-image:url('/halftime-assets/halftime.png?v=20261018-4');filter:blur(4px) brightness(.82);transform:scale(1.012)}
.halftime-view::after{content:"";position:fixed;z-index:-2;inset:0;background:linear-gradient(180deg,rgba(5,5,4,.2) 0%,rgba(5,5,4,.6) 100%),radial-gradient(120% 90% at 50% 0%,rgba(212,169,79,.09) 0%,transparent 55%);pointer-events:none}
.halftime-collection-view::before{background-image:url('/halftime-assets/collection-page.png');filter:none}
.halftime-back{position:absolute!important;z-index:30;top:22px;left:14px}
#halftimeCollectionBack{position:fixed!important;top:9.604vh;left:19.8vw;width:44px;height:44px}

.halftime-view{display:grid;place-items:center;overflow:visible;padding:54px 0 34px}
.halftime-view .halftime-menu-slider{position:relative;inset:auto;width:calc(100vw - clamp(24px,7vw,120px));max-width:1540px;height:clamp(390px,60vh,600px);margin:auto}
.halftime-menu-slider .halftime-menu-track{position:absolute;left:0;display:flex;width:max-content;gap:20px;animation:halftime-menu-drift 34s linear infinite;will-change:transform}
.halftime-menu-slider .halftime-menu-slide{--hub-line:rgba(229,195,119,.62);--hub-glow:rgba(212,169,79,.52);--hub-accent:#e8c878;flex:0 0 clamp(230px,23vw,340px);height:min(100%,540px)}
.halftime-menu-slide.is-draft .club-slide-art{background-image:url('/halftime-assets/draft.png')}
.halftime-menu-slide.is-collection .club-slide-art{background-image:url('/halftime-assets/collection.png')}
.halftime-menu-slide:disabled{cursor:not-allowed;filter:brightness(.58) saturate(.62)}
.halftime-menu-slide:disabled .club-slide-label{color:rgba(251,247,239,.5)}
.halftime-menu-slide:is(:hover,:focus-visible){border-color:var(--hub-line);box-shadow:0 38px 78px -32px rgba(0,0,0,.9),0 0 62px -32px var(--hub-glow)}
.halftime-menu-slide:is(:hover,:focus-visible) .club-slide-art{filter:brightness(1.06) saturate(1.08);scale:1}
.halftime-menu-slide:is(:hover,:focus-visible) .club-slide-label{color:var(--hub-accent)}
@keyframes halftime-menu-drift{to{transform:translateX(calc(-50% - 10px))}}

.halftime-collection-view{display:grid;width:100%;height:100%;min-height:0;place-items:center;padding:0;box-sizing:border-box;overflow:visible}
.halftime-collection-tabs{position:fixed;z-index:36;top:29.104vh;right:auto;left:89.928vw;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(9px,1.15vh,15px);width:max-content;max-width:190px;padding:0;transform:rotate(14deg);transform-origin:center}
.halftime-collection-tabs button{min-width:0;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:rgba(229,195,87,.68);font:850 40.1px/1.1 var(--body);letter-spacing:.095em;text-transform:uppercase;text-shadow:0 2px 5px rgba(0,0,0,.78);cursor:pointer;transition:color .2s ease,transform .2s ease;text-decoration:none}
.halftime-collection-tab-separator{align-self:center;color:rgba(229,195,87,.48);font:850 13px/1 var(--body);text-align:center;text-shadow:0 1px 4px rgba(0,0,0,.82);pointer-events:none}
.halftime-collection-tabs button:active{transform:translateY(1px)}
.halftime-collection-tabs button.active{color:rgba(229,195,87,.68)}
.halftime-collection-tabs button:is(:hover,:focus-visible),
.halftime-collection-tabs button.active:is(:hover,:focus-visible){color:#fff;text-decoration:none;outline:0}
.halftime-collection-panel{width:100%;height:100%;min-height:0}

.halftime-album-stage{display:grid;width:100%;height:100%;min-height:0;place-items:center;overflow:visible;perspective:none}
.halftime-album-shell{position:fixed;top:-7.585vh;left:.266vw;width:98.459vw;max-height:none;aspect-ratio:1672/941;transform:none}
.halftime-album-art{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 24px 34px rgba(20,8,2,.46));pointer-events:none;user-select:none}
.halftime-album-main-bookmarks{position:absolute;z-index:1;top:31.8%;right:calc(79.23% - 12px);display:grid;gap:9px;width:clamp(88px,6vw,116px);padding:0}
.halftime-album-main-bookmarks button{position:relative;display:grid;height:clamp(34px,3.4vh,44px);padding:0 19px 0 14px;place-items:center;border:0;background:transparent url('/halftime-assets/main-bookmark.png') center/100% 100% no-repeat;clip-path:none;box-shadow:none;color:rgba(247,221,157,.76);font:850 clamp(.58rem,.64vw,.72rem)/1 var(--body);letter-spacing:.115em;text-transform:uppercase;text-shadow:0 1px 2px rgba(20,7,2,.8);cursor:pointer;transform:translateX(15px);transform-origin:right center;transition:transform .24s cubic-bezier(.16,.84,.2,1),filter .22s ease,color .22s ease}
.halftime-album-main-bookmarks button:is(:hover,:focus-visible){outline:0;color:#fff;filter:brightness(1.16);transform:translateX(7px)}
.halftime-album-main-bookmarks button.active{color:#fff4cf;filter:brightness(1.18) drop-shadow(0 8px 8px rgba(22,8,2,.4));transform:translateX(-5px);box-shadow:none}
.halftime-album-sub-bookmarks{position:absolute;z-index:1;top:calc(24.7% - 38px);left:20.77%;display:flex;width:60.145%;height:50px;padding:0 0 0 26px;box-sizing:border-box;align-items:flex-end;justify-content:flex-start;gap:clamp(4px,.45vw,9px);overflow:visible}
.halftime-album-sub-bookmark{--bookmark-tint:rgba(86,48,25,.08);position:relative;display:flex;min-width:clamp(48px,4.5vw,82px);height:42px;padding:5px 8px 10px;box-sizing:border-box;align-items:center;justify-content:center;gap:5px;border:0;background-image:linear-gradient(var(--bookmark-tint),var(--bookmark-tint)),url('/halftime-assets/top-bookmark.png');background-position:center;background-size:100% 100%;background-repeat:no-repeat;background-blend-mode:color,normal;clip-path:none;box-shadow:none;color:rgba(255,238,200,.82);font:820 clamp(.5rem,.55vw,.64rem)/1 var(--body);letter-spacing:.045em;text-transform:uppercase;text-shadow:0 1px 2px rgba(13,5,2,.9);white-space:nowrap;cursor:pointer;transform:translateY(4px);transform-origin:center bottom;transition:height .22s cubic-bezier(.16,.84,.2,1),transform .22s cubic-bezier(.16,.84,.2,1),filter .2s ease,color .2s ease}
.halftime-album-sub-bookmark:is(:hover,:focus-visible){height:46px;outline:0;color:#fff;filter:brightness(1.14);transform:translateY(1px)}
.halftime-album-sub-bookmark.active{height:50px;color:#fff8dc;filter:brightness(1.18) saturate(1.08) drop-shadow(0 8px 7px rgba(18,7,2,.38));transform:translateY(0);box-shadow:none}
.halftime-album-sub-bookmark.is-legend{--bookmark-tint:rgba(211,91,20,.58)}
.halftime-album-sub-bookmark.is-promo{--bookmark-tint:rgba(42,34,20,0.62)}
.halftime-album-bookmark-flag{display:block;flex:0 0 auto;width:17px;height:11px;border-radius:1px;background-color:#253f79;background-position:center;background-size:cover;background-repeat:no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.24),0 1px 2px rgba(0,0,0,.42)}
.halftime-album-bookmark-flag[data-bookmark-flag="argentina"]{background-image:url('/flags/ar.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="australia"]{background-image:url('/flags/au.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="brazil"]{background-image:url('/flags/br.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="england"]{background-image:url('/flags/gb-eng.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="slovakia"]{background-image:url('/flags/sk.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="scotland"]{background-image:url('/flags/gb-sct.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="italy"]{background-image:url('/flags/it.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="portugal"]{background-image:url('/flags/pt.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="sweden"]{background-image:url('/flags/se.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="spain"]{background-image:url('/flags/es.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="germany"]{background-image:url('/flags/de.webp')}
.halftime-album-bookmark-flag[data-bookmark-flag="france"]{background-image:url('/flags/fr.webp')}
.halftime-album-sub-bookmarks[data-bookmark-group="rating"] .halftime-album-sub-bookmark{--bookmark-fabric:linear-gradient(145deg,#866b45,#4d3521 72%,#2a1a10);min-width:clamp(38px,3.15vw,58px);font-variant-numeric:tabular-nums}
.halftime-album-sub-bookmarks[data-bookmark-group="nation"] .halftime-album-sub-bookmark{min-width:clamp(64px,5.55vw,102px);padding-inline:6px;font-size:clamp(.43rem,.48vw,.56rem)}
.halftime-mobile-album-controls,.halftime-album-selection-bar{display:none}
.halftime-collection-view:not(.is-album-section) .halftime-mobile-album-controls{display:none!important}
.halftime-album{position:absolute;z-index:2;isolation:isolate;top:24.7%;left:20.77%;width:60.145%;height:55.1%!important;min-height:0!important;transform-style:preserve-3d}
.halftime-album-pages{position:absolute!important;inset:0;display:none;touch-action:pan-y;filter:drop-shadow(0 16px 25px rgba(23,10,3,.38));transform-style:preserve-3d;perspective:2800px;cursor:grab}
.halftime-album[data-turn-state="user_fold"] .halftime-album-pages,
.halftime-album[data-turn-state="flipping"] .halftime-album-pages{cursor:grabbing}
.halftime-album-page{position:relative;width:100%;height:100%;padding:0;box-sizing:border-box;overflow:hidden;transform-style:preserve-3d}
.halftime-album-page.--left{border-radius:14px 0 0 14px;box-shadow:inset -18px 0 28px -24px rgba(49,27,12,.72)}
.halftime-album-page.--right{border-radius:0 14px 14px 0;box-shadow:inset 18px 0 28px -24px rgba(49,27,12,.72)}
.halftime-page-leather{position:relative;width:100%;height:100%;padding:6px 10px;box-sizing:border-box;border:1px solid rgba(105,77,44,.38);border-radius:8px;background:radial-gradient(circle at 18% 8%,rgba(255,255,255,.3),transparent 31%),radial-gradient(circle at 80% 96%,rgba(128,91,48,.13),transparent 42%),linear-gradient(145deg,#d8c5a5,#bba17a 68%,#a88b64);box-shadow:inset 0 0 0 2px rgba(255,250,235,.18),inset 0 0 24px rgba(79,48,23,.18),0 5px 12px rgba(18,7,2,.38)}
.halftime-album-page.--left .halftime-page-leather{border-right:0;border-radius:12px 0 0 12px}
.halftime-album-page.--right .halftime-page-leather{border-left:0;border-radius:0 12px 12px 0}
.halftime-page-leather::before{content:"";position:absolute;inset:8px;border:1px solid rgba(100,70,38,.18);border-radius:7px;pointer-events:none}
.halftime-album-stats{position:relative;z-index:2;display:grid;grid-template-rows:auto minmax(0,1fr);align-content:stretch;gap:0;width:100%;height:100%;padding:clamp(20px,3.1vh,34px) clamp(24px,3.2vw,44px);box-sizing:border-box;color:#432d1b}
.halftime-album-stats h2{justify-self:start;margin:0;color:#3c2818;font:950 clamp(1.5rem,2.05vw,2.1rem)/1.05 var(--body);letter-spacing:-.025em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.halftime-album-stat-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,43%);gap:clamp(24px,3vw,42px);min-height:0;margin-top:clamp(18px,2.6vh,28px)}
.halftime-album-stat-summary{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0}
.halftime-album-stat-averages{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:clamp(18px,2.8vh,30px);width:100%;margin:0;text-align:left}
.halftime-album-stat-averages>span{display:grid;align-content:start;gap:7px;min-width:0}
.halftime-album-stat-averages small{color:#785a39;font-size:clamp(.65rem,.78vw,.82rem);font-weight:900;letter-spacing:.11em;line-height:1.15}
.halftime-album-stat-averages strong{overflow:hidden;color:#3a2718;font-size:clamp(1.65rem,2.3vw,2.35rem);font-variant-numeric:tabular-nums;line-height:1.05;text-overflow:ellipsis;white-space:nowrap}
.halftime-album-stat-averages .is-nation strong{font-size:clamp(1.05rem,1.45vw,1.5rem);line-height:1.15;text-transform:uppercase}
.halftime-album-stat-averages,.halftime-album-position-groups{position:relative;z-index:1}
.halftime-album-stat-ornament{position:absolute;z-index:0;inset:4% 3%;display:grid;place-items:center;overflow:hidden;pointer-events:none}
.halftime-album-stat-ornament img{display:block;width:100%;height:100%;object-fit:contain;filter:brightness(0) saturate(100%) invert(47%) sepia(32%) saturate(765%) hue-rotate(357deg) brightness(88%) contrast(87%);opacity:.16;transform:scale(1.8)}
.halftime-album-position-groups{--album-position-count-width:2.5rem;display:grid;grid-template-columns:1fr;align-content:start;row-gap:clamp(9.2px,1.3225vh,13.8px);min-width:0;height:100%;min-height:0}
.halftime-album-position-groups section{display:grid;align-content:start;gap:2px}
.halftime-album-position-groups h3{display:grid;grid-template-columns:minmax(0,1fr) var(--album-position-count-width);column-gap:.75em;margin:0;color:#4b311d;font-size:clamp(1.115rem,1.344vw,1.43rem);line-height:1.05;letter-spacing:.09em}
.halftime-album-position-groups h3 b{justify-self:end;width:var(--album-position-count-width);color:#936b31;text-align:right;letter-spacing:0;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
.halftime-album-position-groups section>span{display:grid;grid-template-columns:minmax(0,1fr) var(--album-position-count-width);column-gap:.75em;color:#6d5134;font-size:clamp(.825rem,.975vw,1.025rem);line-height:1.05}
.halftime-album-position-groups span b{font-weight:800}.halftime-album-position-groups span em{justify-self:end;width:var(--album-position-count-width);text-align:right;font-style:normal;letter-spacing:0;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1}
@media(min-width:761px) and (max-width:1100px){
  .halftime-album-shell{top:1vh}
  .halftime-album-stats{padding:14px 24px}
  .halftime-album-stats h2{font-size:1.5rem}
  .halftime-album-stat-body{margin-top:6px}
  .halftime-album-stat-averages{gap:12px}
  .halftime-album-position-groups h3{margin-bottom:0}
  .halftime-album-position-groups section>span{line-height:1}
}
.halftime-pocket-grid{--pocket-gap-x:clamp(10px,.7vw,18px);--pocket-gap-y:clamp(8px,1.1vh,14px);--pocket-row-inset:clamp(5px,.7vh,8px);position:relative;z-index:2;display:block;width:100%;height:100%}
.halftime-card-pocket{position:absolute;isolation:isolate;display:grid;width:calc((100% - var(--pocket-gap-x)*2)/3);height:calc((100% - var(--pocket-gap-y))/2);max-width:none;max-height:none;padding:2px;box-sizing:border-box;place-items:center;overflow:hidden;border:1px solid rgba(71,49,29,.56);border-radius:7px;background:linear-gradient(145deg,rgba(255,255,255,.23),rgba(255,255,255,.05) 46%,rgba(48,31,18,.13));box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),inset 0 8px 12px rgba(255,252,239,.18),inset 0 -12px 20px rgba(69,43,23,.22),0 3px 8px rgba(54,31,14,.3);transform:scale(.95);transform-origin:center;transition:filter .25s ease,box-shadow .25s ease}
.halftime-card-pocket:nth-child(3n+1){left:0}
.halftime-card-pocket:nth-child(3n+2){left:50%;transform:translateX(-50%) scale(.95)}
.halftime-card-pocket:nth-child(3n){right:0}
.halftime-card-pocket:nth-child(-n+3){top:var(--pocket-row-inset)}
.halftime-card-pocket:nth-child(n+4){bottom:var(--pocket-row-inset)}
.halftime-card-pocket::before{content:"";position:absolute;z-index:4;inset:3px;border-radius:5px;background:linear-gradient(112deg,rgba(255,255,255,.24) 0%,rgba(255,255,255,.07) 14%,transparent 34%,transparent 67%,rgba(255,248,224,.09) 83%,transparent 100%);box-shadow:inset 1px 0 rgba(255,255,255,.28),inset -1px 0 rgba(83,54,29,.18);pointer-events:none}
.halftime-card-pocket::after{content:"";position:absolute;z-index:7;top:1px;left:5px;right:5px;height:7px;border-radius:5px 5px 40% 40%;background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.16) 40%,rgba(73,46,24,.16) 100%);box-shadow:0 2px 4px rgba(56,34,16,.18);opacity:.74;pointer-events:none}
.halftime-card-pocket.is-empty>span{display:grid;place-items:center}
.halftime-card-pocket.is-empty img{width:38px;opacity:.12;filter:sepia(1) saturate(.7)}
.halftime-album-card{position:relative;z-index:2;display:grid;width:100%;height:100%;padding:0;place-items:center;border:0;background:transparent;transform:translateY(1px) scale(.988);transition:transform .28s cubic-bezier(.16,1,.3,1),filter .28s ease}
.halftime-album-card *{pointer-events:none}
.halftime-album-card:is(:hover,:focus-visible){z-index:3;outline:0;transform:translateY(-2px) scale(1.018);filter:drop-shadow(0 9px 13px rgba(0,0,0,.44))}
.halftime-album-card.is-card-focused{opacity:.12}
/* Album text follows each card's width, including short windows and DPR3. */
.halftime-pocket-card{width:100%;max-width:none;container-type:inline-size}
.halftime-pocket-card.has-card-template>.footballer-card-rating{width:auto!important;min-width:0!important}
.halftime-pocket-card.has-card-template>.footballer-card-rating>strong{font-size:38cqw!important;line-height:.9!important}
.halftime-pocket-card.has-card-template>.footballer-card-identity{left:7%!important;right:6%!important;bottom:19.2%!important}
.halftime-pocket-card.has-card-template .footballer-card-name-line{gap:3cqw!important;min-width:0!important}
.halftime-pocket-card.has-card-template .footballer-card-name-flag{width:15cqw!important;height:11.25cqw!important;flex-basis:15cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-name-line .footballer-card-name{min-width:0!important;overflow:hidden!important;font-size:12cqw!important;line-height:1!important;letter-spacing:-.038em!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.halftime-pocket-card.has-card-template .footballer-card-name-line .footballer-card-name.name-long{font-size:10.5cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-name-line .footballer-card-name.name-very-long{font-size:9.5cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-meta{gap:2.6cqw!important;min-height:0!important;margin-top:1.6cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-meta .footballer-card-position{font-size:7cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-meta .footballer-card-age{font-size:6cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-meta i{width:1.6cqw!important;height:1.6cqw!important;flex-basis:1.6cqw!important}
.halftime-pocket-card.has-card-template .footballer-card-stats{left:12.5%!important;right:7.5%!important;bottom:6%!important;gap:.55cqw!important;align-items:end!important}
.halftime-pocket-card.has-card-template .footballer-card-stats.is-goalkeeper{left:12.5%!important;right:7.5%!important;gap:1cqw!important}
.halftime-pocket-card.has-card-template .card-main-stat,
.halftime-pocket-card.has-card-template .card-main-stat.stat-elite{grid-template-rows:4.4cqw 7.2cqw!important;align-content:end!important;align-self:stretch!important;min-height:0!important;padding:1cqw 0 1.6cqw!important;gap:.55cqw!important}
.halftime-pocket-card.has-card-template .card-main-stat b,
.halftime-pocket-card.has-card-template .card-main-stat.stat-elite b{display:flex!important;height:4.4cqw!important;align-items:flex-end!important;justify-content:center!important;font-size:3.2cqw!important;line-height:1!important;letter-spacing:0!important;white-space:nowrap!important}
.halftime-pocket-card.has-card-template .card-main-stat strong,
.halftime-pocket-card.has-card-template .card-main-stat.stat-elite strong{font-size:6.5cqw!important}
.halftime-pocket-gloss{position:absolute;z-index:6;inset:2px;border-radius:5px;background:linear-gradient(136deg,rgba(255,255,255,.30) 0%,rgba(255,255,255,.10) 12%,transparent 29%,transparent 63%,rgba(255,255,255,.13) 78%,transparent 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),inset 0 -4px 7px rgba(63,39,19,.12);mix-blend-mode:screen;opacity:.72;pointer-events:none}
.halftime-page-number{position:absolute;z-index:4;right:13px;bottom:8px;color:rgba(73,48,26,.52);font:800 .48rem/1 var(--body);letter-spacing:.12em}
.halftime-album-page.--left .halftime-page-number{right:auto;left:16px}
.halftime-card-focus-overlay{z-index:10050}
.halftime-card-focus-card.market-focus-open{transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(var(--tilt-lift,0px)) scale(var(--tilt-scale,1))}
.halftime-card-focus-front,.halftime-card-focus-front::after{filter:none!important;box-shadow:none!important}
.halftime-card-focus-front::after{content:none!important;display:none!important}
.halftime-card-focus-front .halftime-focus-footballer-card{width:100%!important;max-width:none!important}
.halftime-card-focus-front .footballer-card.has-card-template,
.halftime-card-focus-front .footballer-card-template,
.halftime-card-focus-front .footballer-card-glow{background:transparent!important;box-shadow:none!important;filter:none!important}
.halftime-card-focus-front .footballer-card-glow{display:none!important;opacity:0!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-name-line{gap:var(--market-focus-line-gap,8px)!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-name-flag{width:var(--market-focus-flag-width,28px)!important;height:var(--market-focus-flag-height,21px)!important;flex-basis:var(--market-focus-flag-width,28px)!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-name{font-size:var(--market-focus-name-size,2.12rem)!important;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-meta{gap:var(--market-focus-meta-gap,8px)!important;margin-top:var(--market-focus-meta-margin,7px)!important;min-height:0!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-position{font-size:var(--market-focus-position-size,.82rem)!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-age{font-size:var(--market-focus-age-size,.69rem)!important}
.halftime-card-focus-front .halftime-focus-footballer-card .footballer-card-meta i{width:var(--market-focus-dot-size,4px)!important;height:var(--market-focus-dot-size,4px)!important;flex-basis:var(--market-focus-dot-size,4px)!important}
.halftime-card-remove{--remove-progress:0%;position:fixed;z-index:2;display:grid;width:max-content;min-width:0;min-height:44px;padding:0 22px;place-items:center;overflow:hidden;translate:-50% 0;border:1px solid rgba(255,173,160,.58);border-radius:12px;background:linear-gradient(145deg,rgba(181,39,29,.96),rgba(119,19,18,.96));box-shadow:inset 0 1px rgba(255,226,220,.2),0 13px 34px rgba(45,7,4,.44);color:#fff;backdrop-filter:blur(14px) saturate(1.12);font:800 .75rem/1 var(--body);letter-spacing:.12em;text-transform:uppercase;cursor:pointer;opacity:0;transform:translateY(8px);transition:opacity .24s ease,transform .3s cubic-bezier(.16,.8,.2,1),border-color .2s ease,filter .2s ease}
.halftime-card-focus-overlay.open .halftime-card-remove{opacity:1;transform:translateY(0)}
.halftime-card-remove::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--remove-progress);background:linear-gradient(90deg,rgba(93,8,8,.88),rgba(235,73,54,.66));box-shadow:inset 0 1px rgba(255,226,220,.2);pointer-events:none}
.halftime-card-remove>span{position:relative;z-index:1}
.halftime-card-remove:is(:hover,:focus-visible){outline:0;border-color:rgba(255,218,211,.9);color:#fff;filter:brightness(1.12);transform:translateY(-1px)}
.halftime-card-remove:focus-visible{box-shadow:inset 0 1px rgba(255,226,220,.2),0 0 0 2px rgba(255,176,164,.34),0 13px 34px rgba(45,7,4,.44)}
.halftime-card-remove:active,.halftime-card-remove.is-holding{transform:translateY(1px) scale(.99)}
.halftime-card-remove.is-removing{cursor:wait;color:#fff;filter:brightness(1.08)}

.halftime-packs-panel{position:relative;display:grid;min-height:0;place-items:center;overflow:visible}
.halftime-pack-experience{--pack-cut-progress:0;position:relative;isolation:isolate;display:grid;width:min(1280px,calc(100vw - 80px));height:100%;min-height:0;place-items:center;overflow:visible}
.halftime-pack{position:relative;z-index:4;width:min(340px,28vw,43vh);min-width:220px;aspect-ratio:367/640;transform-style:preserve-3d;filter:drop-shadow(0 28px 25px rgba(0,0,0,.58));touch-action:none;cursor:grab;will-change:transform,opacity,filter}
.halftime-pack:focus-visible{outline:2px solid #edce7b;outline-offset:8px;border-radius:10px}
.halftime-pack-body,.halftime-pack-lid{position:absolute;inset:0;overflow:hidden;border-radius:8px;backface-visibility:hidden;transform-origin:50% 50%;will-change:transform,opacity,clip-path}
.halftime-pack-body img,.halftime-pack-lid img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;user-select:none}
.halftime-pack-lid{z-index:3;right:-1px;bottom:auto;height:17.5%;transform-origin:14% 86%}
.halftime-pack-lid img{position:absolute;inset:0 0 auto;width:100%;height:auto;aspect-ratio:367/640;object-fit:cover;object-position:top}
.halftime-pack-cut-track{position:absolute;z-index:7;top:14.1%;left:4%;right:4%;height:4px;border-radius:999px;background:rgba(7,10,6,.54);box-shadow:0 0 0 1px rgba(239,207,124,.24),0 1px 3px rgba(0,0,0,.82);overflow:hidden;pointer-events:none}
.halftime-pack-cut-track i{display:block;width:calc(var(--pack-cut-progress) * 100%);height:100%;border-radius:inherit;background:linear-gradient(90deg,#f8e8a8,#fff8cf 54%,#d8a844);box-shadow:0 0 13px rgba(255,222,128,.95);transition:width .08s linear}
.halftime-pack-instruction{position:absolute;z-index:6;bottom:clamp(12px,2.8vh,34px);left:50%;margin:0;transform:translateX(-50%);color:#f0d792;text-shadow:0 2px 8px #120a03;font:800 clamp(.64rem,.72vw,.78rem)/1 var(--body);letter-spacing:.09em;text-transform:uppercase;white-space:nowrap;transition:opacity .25s ease,transform .25s ease}
.halftime-pack-burst{position:absolute;z-index:1;top:50%;left:50%;width:min(66vw,840px);aspect-ratio:1;transform:translate(-50%,-48%) scale(.18);border-radius:50%;background:radial-gradient(circle,rgba(255,235,155,.62) 0%,rgba(222,160,56,.22) 27%,rgba(137,75,16,.08) 48%,transparent 72%);opacity:0;filter:blur(1px);pointer-events:none;will-change:transform,opacity}
.halftime-pack-results{position:absolute;z-index:8;inset:0;display:flex;align-items:center;justify-content:center;gap:clamp(12px,2.5vw,42px);pointer-events:none}
.halftime-pack-result-card{position:relative;display:block;width:clamp(160px,13vw,226px);padding:0;border:0;background:transparent;opacity:0;transform:perspective(1000px) translate3d(0,150px,-400px) rotateY(calc((var(--pack-card-index) - 1) * 12deg)) scale(.35);filter:drop-shadow(0 18px 20px rgba(0,0,0,.58));cursor:pointer;will-change:transform,opacity,filter}
.halftime-pack-result-card:focus-visible{outline:2px solid #f1d483;outline-offset:7px;border-radius:8px}
.halftime-pack-result-card .footballer-card{width:100%;max-width:none}
.halftime-pack-result-card .footballer-card-potential{display:none!important}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack{cursor:grabbing;filter:drop-shadow(0 31px 27px rgba(0,0,0,.64)) brightness(1.05)}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack-instruction{opacity:.68;transform:translateX(-50%) translateY(2px)}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-body{clip-path:polygon(0 16.6%,100% 16.6%,100% 100%,0 100%);animation:halftime-pack-shell-open 1.15s cubic-bezier(.2,.74,.17,1) both}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-lid{animation:halftime-pack-lid-pop .86s cubic-bezier(.16,.75,.22,1) both}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-instruction{opacity:0;transform:translateX(-50%) translateY(8px)}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-burst{animation:halftime-pack-burst 1.25s .22s cubic-bezier(.18,.78,.2,1) both}
.halftime-pack-experience[data-pack-state="opening"][data-card-assets-ready="true"] .halftime-pack-result-card{animation:halftime-pack-card-reveal .72s calc(420ms + var(--pack-card-index) * 145ms) cubic-bezier(.16,.86,.18,1) both;pointer-events:auto}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack{pointer-events:none;opacity:.13;transform:translateY(26px) scale(.8);filter:blur(1px) brightness(.72)}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-lid{animation:none;transform:translate3d(-86px,-165px,40px) rotate(-52deg);opacity:0}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-body{animation:none;clip-path:polygon(0 16.6%,100% 16.6%,100% 100%,0 100%);transform:translate3d(0,55px,-140px) scale(.78);opacity:.12}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-burst{animation:none;transform:translate(-50%,-48%) scale(1);opacity:.28}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card{animation:none;opacity:1;transform:perspective(1000px) translate3d(0,0,0) rotateY(0) scale(1);filter:brightness(1) drop-shadow(0 20px 19px rgba(0,0,0,.56))}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-instruction{transition:none;opacity:0}
@keyframes halftime-pack-lid-pop{0%{transform:translate3d(0,0,0) rotate(0);opacity:1}55%{transform:translate3d(-34px,-98px,100px) rotate(-24deg);opacity:1}100%{transform:translate3d(-86px,-165px,40px) rotate(-52deg);opacity:0}}
@keyframes halftime-pack-shell-open{0%,38%{transform:translate3d(0,0,0) scale(1);opacity:1}72%{transform:translate3d(0,35px,-80px) scale(.91);opacity:.72}100%{transform:translate3d(0,55px,-140px) scale(.78);opacity:.12}}
@keyframes halftime-pack-burst{0%{transform:translate(-50%,-48%) scale(.18);opacity:0}42%{opacity:1}100%{transform:translate(-50%,-48%) scale(1);opacity:.28}}
@keyframes halftime-pack-card-reveal{0%{opacity:0;transform:perspective(1000px) translate3d(0,150px,-400px) rotateY(calc((var(--pack-card-index) - 1) * 12deg)) scale(.35);filter:brightness(1.5) drop-shadow(0 8px 12px rgba(0,0,0,.32))}68%{opacity:1;transform:perspective(1000px) translate3d(0,-14px,46px) rotateY(calc((var(--pack-card-index) - 1) * -2deg)) scale(1.04);filter:brightness(1.13) drop-shadow(0 28px 24px rgba(0,0,0,.58))}100%{opacity:1;transform:perspective(1000px) translate3d(0,0,0) rotateY(0) scale(1);filter:brightness(1) drop-shadow(0 20px 19px rgba(0,0,0,.56))}}

/* Physical pack peel and hand-held card stack. */
.halftime-pack-experience{--pack-peel-x:0%;--pack-peel-rotate:0deg;--pack-peel-lift:0px;width:min(1120px,calc(100vw - 90px));perspective:1800px}
.halftime-pack{width:min(346.5px,27.3vw,45.15vh);min-width:231px;transition:transform .68s cubic-bezier(.16,.8,.18,1),filter .4s ease,opacity .35s ease;transform-origin:center;cursor:grab}
.halftime-pack-body{clip-path:none;transition:clip-path .38s ease,transform .68s cubic-bezier(.16,.8,.18,1),filter .4s ease,opacity .35s ease}
.halftime-pack-peel{position:absolute;z-index:6;top:0;right:0;left:0;height:24%;overflow:hidden;border-radius:8px 8px 2px 2px;transform:perspective(650px) translate3d(var(--pack-peel-x),var(--pack-peel-lift),34px) rotateY(var(--pack-peel-rotate));transform-origin:center 84%;filter:drop-shadow(0 9px 7px rgba(0,0,0,.4));transition:transform .32s cubic-bezier(.2,.72,.25,1),filter .2s ease;will-change:transform;pointer-events:none}
.halftime-pack-peel img{position:absolute;inset:0 0 auto;display:block;width:100%;height:auto;aspect-ratio:367/640;object-fit:cover;object-position:top;user-select:none}
.halftime-pack-grip{position:absolute;z-index:8;top:0;left:0;width:100%;height:24%;border-radius:8px 8px 0 0;background:linear-gradient(115deg,transparent 24%,rgba(255,255,255,.13) 43%,transparent 61%);opacity:.34;pointer-events:none;transition:opacity .2s ease}
.halftime-pack:is(:hover,:focus-visible) .halftime-pack-grip{opacity:.68}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack{cursor:grabbing;filter:drop-shadow(0 33px 30px rgba(0,0,0,.68)) brightness(1.04)}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack-peel{transition:none;filter:drop-shadow(0 18px 12px rgba(0,0,0,.52)) brightness(1.08)}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack{opacity:1;transform:translate3d(-145px,115px,-50px) scale(.73);filter:drop-shadow(0 24px 22px rgba(0,0,0,.58));pointer-events:none}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-body{animation:none;clip-path:polygon(0 16.5%,100% 16.5%,100% 100%,0 100%);transform:none;opacity:1}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-peel{animation:none;transform:perspective(650px) translate3d(var(--pack-peel-x),var(--pack-peel-lift),34px) rotateY(var(--pack-peel-rotate));opacity:.9}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"]) .halftime-pack-burst{display:none}
.halftime-pack-results{position:absolute;z-index:9;top:50%;left:50%;display:block;width:clamp(180px,17vw,255px);height:clamp(280px,46vh,410px);inset:auto;transform:translate(calc(-50% + 92px),calc(-50% - 28px));pointer-events:none;transform-style:preserve-3d}
.halftime-pack-result-card{position:absolute;inset:0;display:block;width:100%;height:auto;padding:0;border:0;background:transparent;opacity:0;transform:perspective(1100px) translate3d(-145px,195px,-320px) rotate(-4deg) scale(.24);transform-origin:50% 88%;filter:drop-shadow(0 19px 18px rgba(0,0,0,.58));cursor:pointer;transition:transform .58s cubic-bezier(.16,.84,.2,1),opacity .36s ease,filter .36s ease;will-change:transform,opacity;pointer-events:none}
.halftime-pack-result-card .footballer-card{width:100%;max-width:none}
.halftime-pack-experience[data-pack-state="opening"][data-card-assets-ready="true"] .halftime-pack-result-card{animation:halftime-pack-stack-rise .92s calc(250ms + var(--pack-card-index) * 130ms) cubic-bezier(.16,.84,.18,1) both}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card{animation:none;z-index:calc(6 - var(--pack-card-index));opacity:1;transform:perspective(1100px) translate3d(calc(var(--pack-card-index) * 13px),calc(var(--pack-card-index) * -9px),calc(var(--pack-card-index) * -18px)) rotate(calc(var(--pack-card-index) * 3.5deg)) scale(calc(1 - var(--pack-card-index) * .035));filter:brightness(calc(1 - var(--pack-card-index) * .06)) drop-shadow(0 20px 19px rgba(0,0,0,.58));pointer-events:none}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-front{z-index:8;transform:perspective(1100px) translate3d(0,0,70px) rotate(0) scale(1);filter:brightness(1) drop-shadow(0 25px 23px rgba(0,0,0,.66));pointer-events:auto}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-reviewed{z-index:2;opacity:.74;transform:perspective(1100px) translate3d(calc(-300px - var(--pack-card-index) * 24px),calc(20px + var(--pack-card-index) * 13px),-20px) rotate(calc(-11deg + var(--pack-card-index) * -3deg)) scale(.78);filter:brightness(.72) drop-shadow(0 14px 15px rgba(0,0,0,.5));pointer-events:none}
.halftime-pack-experience[data-cards-reviewed="true"] .halftime-pack-result-card.is-reviewed{opacity:.58}
@keyframes halftime-pack-stack-rise{0%{opacity:0;transform:perspective(1100px) translate3d(-145px,195px,-320px) rotate(-4deg) scale(.24)}48%{opacity:1;transform:perspective(1100px) translate3d(-80px,-82px,40px) rotate(-1deg) scale(.82)}100%{opacity:1;transform:perspective(1100px) translate3d(calc(var(--pack-card-index) * 13px),calc(var(--pack-card-index) * -9px),calc(var(--pack-card-index) * -18px)) rotate(calc(var(--pack-card-index) * 3.5deg)) scale(calc(1 - var(--pack-card-index) * .035))}}

/* Collection Pack: the torn portion grows across the seal while the remainder stays attached. */
.halftime-pack-experience{--pack-tear-progress:0;--pack-tear-pct:0%;--pack-cap-x:0px;--pack-cap-y:0px;--pack-cap-rotate:0deg;--pack-stage-y:clamp(42px,7vh,72px)}
.halftime-pack{z-index:4;overflow:visible;transform:translate3d(0,var(--pack-stage-y),0);transition:none;filter:drop-shadow(0 28px 25px rgba(0,0,0,.58))}
.halftime-pack-body{position:absolute;inset:0;overflow:hidden;border-radius:8px;clip-path:polygon(0 14.2%,100% 14.2%,100% 100%,0 100%)!important;transform:none!important;opacity:1!important;animation:none!important;filter:none!important}
.halftime-pack-body img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;user-select:none}
.halftime-pack-cap,
.halftime-pack-cap-attached{position:absolute;top:0;left:0;width:100%;height:14.2%;border-radius:8px 8px 0 0;pointer-events:none}
.halftime-pack-cap,
.halftime-pack-cap-attached{overflow:hidden}
.halftime-pack-cap img,
.halftime-pack-cap-attached img{position:absolute;top:0;left:0;display:block;width:100%;height:704.23%;object-fit:cover;object-position:center top;pointer-events:none;user-select:none}
.halftime-pack-cap-attached{z-index:6;clip-path:none}
.halftime-pack-cap{z-index:7;opacity:0;transform:translate3d(0,0,30px);transform-origin:center bottom;will-change:transform,opacity}
.halftime-pack-tear-seam{position:absolute;z-index:8;top:14.2%;left:5%;right:5%;height:1px;background:rgba(41,16,7,.5);box-shadow:0 1px rgba(255,222,159,.2);pointer-events:none}
.halftime-pack-tear-trace{position:absolute;z-index:9;top:calc(14.2% - 4px);left:5%;display:block;width:90%;height:8px;overflow:visible;pointer-events:none}
.halftime-pack-tear-trace path{fill:none;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.halftime-pack-tear-glow{stroke:rgba(255,207,103,.58);stroke-width:3.1;filter:drop-shadow(0 0 3px rgba(255,178,54,.72))}
.halftime-pack-tear-crack{stroke:rgba(31,10,3,.95);stroke-width:1.7}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack{cursor:grabbing;transform:translate3d(0,var(--pack-stage-y),0);filter:drop-shadow(0 28px 25px rgba(0,0,0,.58))}
.halftime-pack-experience[data-pack-state="cutting"] .halftime-pack-cap{opacity:0}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack{z-index:4;opacity:1;transform:translate3d(0,var(--pack-stage-y),0);filter:drop-shadow(0 28px 25px rgba(0,0,0,.58));pointer-events:none}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-body{clip-path:polygon(0 14.2%,100% 14.2%,100% 100%,0 100%)!important;transform:none!important;opacity:1!important;animation:none!important}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-cap-attached{visibility:hidden}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-cap{opacity:1;animation:halftime-pack-cap-discard .72s cubic-bezier(.18,.78,.2,1) both;filter:drop-shadow(0 10px 8px rgba(0,0,0,.46))}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-tear-trace{opacity:0}
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-tear-seam{height:3px;background:rgba(20,7,3,.92);box-shadow:0 2px 4px rgba(0,0,0,.62),0 -1px rgba(255,218,146,.24)}
.halftime-pack-results{z-index:3;top:calc(50% + var(--pack-stage-y));left:50%;width:min(290px,23vw,38vh);height:auto;aspect-ratio:2/3;transform:translate(-50%,-50%)}
.halftime-pack-experience[data-cards-front="true"] .halftime-pack-results,
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-results{z-index:9}
.halftime-pack-result-card{inset:0;z-index:calc(6 - var(--pack-card-index));width:100%;height:auto;overflow:visible;-webkit-appearance:none;appearance:none;padding:0;border:0;background:transparent;box-shadow:none;opacity:1;clip-path:none;transform:translate3d(0,24px,0) rotate(0);filter:none;transition:transform .58s cubic-bezier(.16,.84,.2,1),opacity .18s ease;will-change:transform,opacity;pointer-events:none}
.halftime-pack-result-card .footballer-card-glow{display:none!important;opacity:0!important;box-shadow:none!important;filter:none!important}
.halftime-pack-result-card .footballer-card.has-card-template,
.halftime-pack-result-card .footballer-card.has-card-template:is(:hover,:focus-visible){border-color:transparent!important;box-shadow:none!important;filter:none!important}
.halftime-pack-result-card .footballer-card-template{filter:drop-shadow(0 12px 18px rgba(2,3,14,.34))!important}
.halftime-pack-experience[data-pack-state="opening"][data-card-assets-ready="true"] .halftime-pack-result-card{animation:halftime-collection-card-rise 1.95s 120ms both}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card{animation:none;z-index:calc(6 - var(--pack-card-index));overflow:visible;opacity:1;clip-path:none;transform:translate3d(0,0,0) rotate(0);filter:none;pointer-events:none}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-front{z-index:8;opacity:1;transform:translate3d(0,0,0) rotate(0);filter:none;pointer-events:auto}
.halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-reviewed{z-index:2;opacity:1;transform:translate3d(calc(-430px - var(--pack-card-index) * 24px),calc(20px + var(--pack-card-index) * 13px),0) rotate(calc(-11deg + var(--pack-card-index) * -3deg));filter:none;pointer-events:none}
.halftime-pack-experience[data-cards-reviewed="true"] .halftime-pack-result-card.is-reviewed{opacity:1}
.halftime-pack-collect{position:absolute;z-index:12;left:50%;bottom:clamp(52px,6.6vh,78px);display:grid;width:clamp(116px,7.2vw,138px);height:42px;padding:0 22px;box-sizing:border-box;place-items:center;border:1px solid var(--goat-glass-edge);border-radius:13px;background:var(--goat-glass-surface);box-shadow:0 13px 30px rgba(0,0,0,.38),inset 0 1px 0 var(--goat-glass-highlight),inset 0 -1px 0 rgba(212,169,79,.11);backdrop-filter:var(--goat-glass-filter);-webkit-backdrop-filter:var(--goat-glass-filter);color:#f3d98f;transform:translateX(-50%);cursor:pointer;overflow:hidden;transition:width .34s cubic-bezier(.16,.84,.2,1),height .34s cubic-bezier(.16,.84,.2,1),border-color .22s ease,border-radius .34s ease,background .22s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}
.halftime-pack-collect::before{content:"";position:absolute;inset:1px 12% 55%;border-radius:999px;background:linear-gradient(180deg,rgba(255,255,255,.14),transparent);filter:blur(3px);pointer-events:none}
.halftime-pack-collect span{position:absolute;inset:0;display:grid;place-items:center;color:inherit;font:850 .7rem/1 var(--body);letter-spacing:.11em;text-transform:uppercase;transform:translateY(-1px);transition:opacity .18s ease,transform .26s ease}
.halftime-pack-collect img{position:absolute;top:50%;left:50%;display:block;width:74px;height:74px;object-fit:contain;opacity:0;filter:drop-shadow(0 8px 7px rgba(0,0,0,.48));transform:translate(-50%,-50%) scale(.48);transition:opacity .2s .08s ease,transform .34s cubic-bezier(.16,.84,.2,1);pointer-events:none;user-select:none}
.halftime-pack-collect:is(:hover,:focus-visible){color:#fff;border-color:rgba(238,210,139,.58);outline:0;box-shadow:0 15px 34px rgba(0,0,0,.44),0 0 20px rgba(212,169,79,.14),inset 0 1px 0 rgba(255,255,255,.19)}
.halftime-pack-collect:active{transform:translateX(-50%) scale(.98)}
.halftime-pack-collect.is-collecting{width:78px;height:78px;padding:0;border-color:transparent;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#f7dda0;cursor:default;overflow:visible;pointer-events:none}
.halftime-pack-collect.is-collecting span{opacity:0;transform:translateY(-1px) scale(.65)}
.halftime-pack-collect.is-collecting::before{opacity:0}
.halftime-pack-collect.is-collecting img{opacity:1;transform:translate(-50%,-50%) scale(1)}
.halftime-pack-collect.is-receiving{animation:halftime-album-receive .42s cubic-bezier(.18,.8,.22,1)}
.halftime-pack-collect:disabled{cursor:wait}
.goat-confirm-modal.halftime-collection-decision{width:min(460px,calc(100vw - 32px))!important;gap:12px!important;padding:18px 22px!important}
.halftime-collection-decision .goat-confirm-copy{text-align:center!important;white-space:pre-line}
.goat-confirm-modal.halftime-collection-decision>footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.goat-confirm-modal.halftime-collection-decision>footer button{width:100%!important;max-width:none!important}
.goat-confirm-action.halftime-category-choice{border:1px solid rgba(212,169,79,.48)!important;background:linear-gradient(180deg,rgba(58,45,25,.96),rgba(24,17,9,.96))!important;color:#fff!important}
.goat-confirm-action.halftime-category-choice:is(:hover,:focus-visible){border-color:rgba(240,215,155,.78)!important;background:linear-gradient(180deg,rgba(78,60,31,.98),rgba(31,22,11,.98))!important}
.halftime-pack-experience[data-pack-state="collecting"] .halftime-pack{opacity:.26;transform:translate3d(0,var(--pack-stage-y),0) scale(.96);transition:opacity .5s .35s ease,transform .5s .35s ease}
.halftime-pack-experience[data-pack-state="collecting"]:not([data-collect-ready="true"]) .halftime-pack-result-card.is-reviewed{z-index:2;opacity:1;transform:translate3d(calc(-430px - var(--pack-card-index) * 24px),calc(20px + var(--pack-card-index) * 13px),0) rotate(calc(-11deg + var(--pack-card-index) * -3deg));filter:none;pointer-events:none}
.halftime-pack-experience[data-pack-state="collecting"][data-collect-ready="true"] .halftime-pack-result-card.is-reviewed{z-index:11;opacity:0;transform:translate3d(var(--collect-target-x),var(--collect-target-y),0) rotate(0) scale(.055);filter:none;transition:transform .9s var(--collect-delay) cubic-bezier(.34,.02,.16,1),opacity .1s calc(var(--collect-delay) + .82s) ease;pointer-events:none}
.halftime-pack-experience.is-pack-refreshing .halftime-pack{animation:halftime-fresh-pack-arrive .52s cubic-bezier(.16,.84,.2,1) both}
@keyframes halftime-pack-cap-discard{0%{transform:translate3d(var(--pack-cap-x),var(--pack-cap-y),30px) rotate(var(--pack-cap-rotate))}58%{transform:translate3d(128%,-42px,60px) rotate(17deg)}100%{transform:translate3d(118%,24px,10px) rotate(9deg)}}
@keyframes halftime-collection-card-rise{0%{opacity:1;transform:translate3d(0,24px,0) rotate(0);animation-timing-function:cubic-bezier(.34,.04,.18,1)}58%{opacity:1;transform:translate3d(-10px,-205px,0) rotate(0);animation-timing-function:cubic-bezier(.3,.7,.18,1)}92%{opacity:1;transform:translate3d(0,0,0) rotate(0);animation-timing-function:cubic-bezier(.2,.72,.22,1)}100%{opacity:1;transform:translate3d(0,0,0) rotate(0)}}
@keyframes halftime-album-receive{0%,100%{transform:translateX(-50%) scale(1);filter:none}48%{transform:translateX(-50%) scale(1.13);filter:drop-shadow(0 0 13px rgba(229,195,87,.32))}}
@keyframes halftime-fresh-pack-arrive{0%{opacity:0;transform:translate3d(0,calc(var(--pack-stage-y) + 18px),0) scale(.94)}100%{opacity:1;transform:translate3d(0,var(--pack-stage-y),0) scale(1)}}
@media(max-width:760px){
  body.halftime-background .page-shell,body.halftime-collection-background .page-shell{padding-inline:12px}
  body.halftime-collection-background .page-shell{height:calc(100dvh - 98px)}
  .halftime-view,.halftime-collection-view{min-height:calc(100svh - 92px);padding-top:22px}
  .halftime-collection-view{height:100%;min-height:0;padding:0;overflow:hidden}
  .halftime-back,#halftimeCollectionBack{position:absolute!important;top:22px;left:12px;width:44px;height:44px}
  .halftime-collection-tabs{position:absolute;top:4px;right:auto;left:50%;flex-direction:row;gap:22px;max-width:calc(100% - 120px);transform:translateX(-50%) rotate(0)}
  .halftime-collection-tabs button{font-size:.72rem;letter-spacing:.07em}
  .halftime-view .halftime-menu-slider{width:calc(100vw - 24px);height:min(62svh,510px)}
  .halftime-menu-slider .halftime-menu-slide{flex-basis:clamp(190px,48vw,250px)}
  .halftime-collection-panel{position:absolute;inset:48px 0 30px;width:100%;height:auto;min-height:0}
  .halftime-collection-view.is-album-section #halftimeCollectionBack{top:48px}
  .halftime-collection-view.is-album-section .halftime-album-stage{inset:92px 0 22px}
  .halftime-mobile-album-controls{position:absolute;z-index:18;top:49px;left:68px;right:10px;display:grid;grid-template-columns:minmax(66px,.7fr) minmax(96px,1.15fr) minmax(82px,.9fr);gap:7px;height:42px}
  .halftime-mobile-album-controls label{display:block;min-width:0}
  .halftime-mobile-album-controls select{width:100%;height:42px;padding:0 28px 0 12px;border:1px solid rgba(220,181,91,.42);border-radius:13px;background:linear-gradient(180deg,rgba(48,36,24,.9),rgba(18,12,8,.94));box-shadow:inset 0 1px rgba(255,255,255,.12),0 7px 18px rgba(0,0,0,.25);color:#f4dda0;font:800 .67rem/1 var(--body);letter-spacing:.055em;text-transform:uppercase;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
  .halftime-mobile-album-controls select:focus{outline:2px solid rgba(229,195,87,.78);outline-offset:1px}
  .halftime-album-stage{display:block;overflow:hidden}
  .halftime-album-shell{position:absolute;inset:0;top:0;left:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;transform:none}
  .halftime-album-art{display:none}
  .halftime-album-main-bookmarks{display:none}
  .halftime-album-main-bookmarks button{height:35px;padding:0 13px 0 9px;font-size:.49rem;letter-spacing:.075em;transform:translateX(12px)}
  .halftime-album-main-bookmarks button:is(:hover,:focus-visible){transform:translateX(7px)}
  .halftime-album-main-bookmarks button.active{transform:translateX(-2px)}
  .halftime-album-sub-bookmarks{display:none}
  .halftime-album-sub-bookmarks::-webkit-scrollbar{display:none}
  .halftime-album-sub-bookmark{flex:0 0 auto;min-width:54px;height:33px;padding:4px 6px 8px;font-size:.43rem;transform:translateY(3px)}
  .halftime-album-sub-bookmark:is(:hover,:focus-visible){height:36px;transform:translateY(1px)}
  .halftime-album-sub-bookmark.active{height:38px;transform:translateY(0)}
  .halftime-album-sub-bookmarks[data-bookmark-group="nation"] .halftime-album-sub-bookmark{min-width:72px;font-size:.4rem}
  .halftime-album-sub-bookmarks[data-bookmark-group="rating"] .halftime-album-sub-bookmark{min-width:45px}
  .halftime-album-bookmark-flag{width:15px;height:10px}
  .halftime-album{position:absolute;inset:auto;top:0;bottom:6px;left:1%;width:98%;height:auto!important;min-height:0!important}
  .halftime-album-pages{filter:drop-shadow(0 13px 18px rgba(17,7,2,.42));touch-action:none}
  .halftime-album-page{padding:0!important}
  .halftime-album-page.--left,.halftime-album-page.--right{border-radius:12px;box-shadow:none}
  .halftime-page-leather,.halftime-album-page.--left .halftime-page-leather,.halftime-album-page.--right .halftime-page-leather{padding:8px;border:1px solid rgba(105,77,44,.48);border-radius:12px}
  .halftime-page-leather::before{inset:6px}
  .halftime-pocket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px;width:100%;height:100%}
  .halftime-card-pocket,.halftime-card-pocket:nth-child(n){position:relative;inset:auto;left:auto;right:auto;top:auto;bottom:auto;width:100%;height:100%;padding:2px;transform:scale(.965);transform-origin:center}
  .halftime-card-pocket:nth-child(3n+2){transform:scale(.965)}
  .halftime-card-pocket.is-selected{z-index:8;filter:brightness(.82) saturate(.72)}
  .halftime-card-pocket.is-selected::after{content:"✓";z-index:12;inset:6px auto auto 6px;display:grid;width:27px;height:27px;place-items:center;border:2px solid #fff;border-radius:50%;background:#b82424;color:#fff;font:900 1rem/1 var(--body);box-shadow:0 5px 12px rgba(0,0,0,.48)}
  .halftime-album-selection-bar{position:fixed;z-index:60;right:12px;bottom:max(12px,env(safe-area-inset-bottom));left:12px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid rgba(229,195,87,.34);border-radius:15px;background:rgba(18,13,9,.88);box-shadow:0 15px 34px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.11);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
  .halftime-album-selection-bar.hidden{display:none}
  .halftime-album-selection-bar span{text-align:center;color:#fff;font:800 .76rem/1 var(--body);letter-spacing:.04em}
  .halftime-album-selection-bar button{min-width:74px;height:38px;padding:0 13px;border:1px solid rgba(255,255,255,.28);border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font:800 .68rem/1 var(--body);letter-spacing:.06em;text-transform:uppercase}
  .halftime-album-selection-bar button.is-danger{border-color:#ff7777;background:#b62222}
  .halftime-album-card{width:auto;height:100%;max-width:100%;aspect-ratio:2/3}
  .halftime-pocket-card{width:100%;height:auto;max-height:100%}
  .halftime-page-number{right:12px;bottom:6px}
  .halftime-album-page.--left .halftime-page-number{right:12px;left:auto}
  .halftime-packs-panel{display:block;overflow:hidden}
  .halftime-pack-experience{--pack-stage-y:0px;display:grid;width:100%;height:100%;place-items:center;overflow:hidden}
  .halftime-pack{width:min(84vw,calc((100dvh - 196px)*.5735));min-width:0;max-height:calc(100% - 30px)}
  .halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack{transform:translate3d(0,var(--pack-stage-y),0)}
  .halftime-pack-results{width:min(72vw,calc((100dvh - 220px)*.49));height:auto;aspect-ratio:2/3;transform:translate(-50%,-50%);touch-action:none}
  .halftime-pack-result-card{width:100%;touch-action:none}
  .halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-front{transform:translate3d(0,var(--pack-review-drag-y,0px),0);transition:transform .24s cubic-bezier(.16,.84,.2,1)}
  .halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-front.is-review-dragging{transition:none}
  .halftime-pack-experience[data-pack-state="opened"] .halftime-pack-result-card.is-reviewed,
  .halftime-pack-experience[data-pack-state="collecting"]:not([data-collect-ready="true"]) .halftime-pack-result-card.is-reviewed{opacity:0;transform:translate3d(0,72vh,0) rotate(5deg);filter:none}
  .halftime-pack-collect{position:absolute;bottom:max(10px,env(safe-area-inset-bottom));width:116px;height:40px;padding-inline:16px}
  .halftime-pack-collect.is-collecting{width:68px;height:68px}
  .halftime-pack-collect img{width:64px;height:64px}
}

/* Phone landscape is wider than the portrait breakpoint on modern devices.
   Keep the bookmarks attached to the book, and let the user scroll far enough
   to see the complete 3x2 page instead of clipping everything below row one. */
@media(max-width:1000px) and (orientation:landscape){
  body.halftime-collection-background{height:auto;min-height:100dvh;overflow-y:auto;overflow-x:hidden}
  body.halftime-collection-background .page-shell{height:auto;min-height:720px}
  .halftime-collection-view{height:auto;min-height:720px;overflow:visible}
  .halftime-collection-panel{height:650px;overflow:visible}
  .halftime-collection-view.is-album-section #halftimeCollectionBack{top:54px}
  .halftime-collection-view.is-album-section .halftime-album-stage{top:104px}
  .halftime-mobile-album-controls{position:absolute;z-index:18;top:55px;left:68px;display:grid;grid-template-columns:130px 170px 140px;gap:7px;height:42px}
  .halftime-mobile-album-controls label{display:block}
  .halftime-mobile-album-controls select{width:100%;height:42px;padding:0 30px 0 12px;border:1px solid rgba(220,181,91,.42);border-radius:13px;background:linear-gradient(180deg,rgba(48,36,24,.9),rgba(18,12,8,.94));color:#f4dda0;font:800 .67rem/1 var(--body);letter-spacing:.055em;text-transform:uppercase}
  .halftime-album-stage{overflow:visible}
  .halftime-album-shell{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
  .halftime-album-art{display:none}
  .halftime-album-main-bookmarks{display:none}
  .halftime-album-main-bookmarks button{height:36px;padding:0 13px 0 9px;font-size:.5rem;transform:translateX(10px)}
  .halftime-album-sub-bookmarks{display:none}
  .halftime-album-sub-bookmark{flex:0 0 auto;height:35px;min-width:56px;font-size:.44rem}
  .halftime-album-sub-bookmark.active{height:40px}
  .halftime-album{position:absolute;top:0;bottom:auto;left:50%;width:min(98%,496px);height:610px!important;transform:translateX(-50%)}
  .halftime-pocket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
  .halftime-card-pocket,.halftime-card-pocket:nth-child(n){position:relative;inset:auto;width:100%;height:100%;transform:scale(.965)}
  .halftime-card-pocket:nth-child(3n+2){transform:scale(.965)}
}

/* Collection cards stay completely behind the sealed wrapper. The reveal
   layer is promoted only once the rising stack reaches the torn opening. */
.halftime-pack-experience:is([data-pack-state="sealed"],[data-pack-state="cutting"]) .halftime-pack-results,
.halftime-pack-experience[data-pack-state="opening"]:not([data-card-assets-ready="true"]) .halftime-pack-results{visibility:hidden}
.halftime-pack-experience[data-pack-state="opening"][data-card-assets-ready="true"] .halftime-pack-results{visibility:visible}

/* Friendly fixtures use the same neutral gray language in the full Calendar
   and in the embedded Office tablet. These final selectors win over the old
   green prototype rules retained earlier in the stylesheet. */
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly{
  border-color:rgba(212,169,79,0.34)!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.58),rgba(13,12,10,0.92))!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b{color:#d9d1c2!important}
@media(max-width:520px){
  .halftime-view .halftime-menu-slider{height:min(58svh,470px)}
  .halftime-menu-slider .halftime-menu-slide{flex-basis:210px}
}
@media(max-height:520px) and (orientation:landscape){
  .halftime-view{min-height:620px}.halftime-view .halftime-menu-slider{height:470px}
  .halftime-collection-view{min-height:720px}.halftime-album{height:610px!important;min-height:610px!important}.halftime-album-stage{min-height:650px}
}
@media(prefers-reduced-motion:reduce){
  .halftime-menu-track{animation:none!important}.halftime-menu-slide,.halftime-album-card,.halftime-card-pocket{transition:none!important}
  .halftime-pack-lid,.halftime-pack-body,.halftime-pack-burst,.halftime-pack-result-card{animation-duration:.01ms!important;animation-delay:0ms!important}
}
@media (max-width:900px){
  .sponsor-summary-strip{grid-template-columns:1fr}.sponsor-summary-strip article+article:before{left:18px;right:18px;top:0;bottom:auto;width:auto;height:1px}
  .sponsor-offer-grid.premium{grid-template-columns:1fr}.sponsor-offer-card.premium{min-height:0}.sponsor-insight-panel{grid-template-columns:1fr}.sponsor-active-premium>section{grid-template-columns:1fr 1fr}
  .competition-table-card{overflow-x:auto}.competition-table-head,.competition-table-row{min-width:710px}.competition-premium-hero{align-items:flex-start}.competition-hero-meta{min-width:120px}
}
@media (max-width:620px){
  .competition-premium-hero{flex-direction:column}.competition-hero-meta{text-align:left}.competition-primary-switch{width:100%;box-sizing:border-box}.competition-primary-switch button{flex:1;min-width:0;padding:0 7px}.competition-sub-switch button{padding:0 10px;white-space:nowrap}
  .sponsor-active-premium{grid-template-columns:auto minmax(0,1fr)}.sponsor-active-premium>b{grid-column:2}.sponsor-active-premium>section{grid-column:1/-1;grid-template-columns:1fr}.sponsor-choice-panel{padding:10px}.sponsor-choice-panel>header{align-items:start;flex-direction:column}
}

/* ========================================================================== */
/* THE G.O.A.T — Club hub                                                     */
/* The /club landing experience. Two stages share one stack:                  */
/*   1. grid   — the four club destinations as full-height cinematic cards.    */
/*               Moving the cursor across the row brings one forward and       */
/*               pushes the others back in depth.                              */
/*   2. slider — the chosen destination's pages on an infinite rail that       */
/*               drifts continuously and can be dragged/swiped.                */
/* Neither stage carries any page copy: artwork plus one glyph per card does   */
/* the work, and the accessible names live in aria-label/title.               */
/* Only GOAT tokens from the top of this file are used for colour, plus a      */
/* per-destination accent passed in from app.js as --hub-accent.              */
/* Widths animate through flex-grow (never transform:scaleX) so borders never  */
/* distort; depth/parallax use the independent translate/scale/rotate          */
/* properties so each can carry its own timing.                               */
/* ========================================================================== */

/* On the hub stage the (now empty) sticky nav row steps aside so the cards own
   the viewport like a title screen. */
body.club-hub-stage .profile-nav-row{display:none!important}
body.club-hub-stage .profile-return-row{min-height:0;margin:0 0 10px}

/* ---------------------------------------------------------------- shell --- */
.club-hub{
  --hub-ease:cubic-bezier(.16,1,.3,1);
  --hub-dur:.62s;
  --hub-accent:#d4a94f;
  --hub-glow:rgba(212,169,79,.5);
  --hub-line:rgba(212,169,79,.42);
  /* Canonical redesign: the hub is a self-contained component, so its palette
     and type are re-pointed here rather than in the shared :root — every
     --line/--surface/--text/etc. read by .club-hub-card, .club-hub-back and
     .club-slide below resolves to the homepage's antique-gold/charcoal set
     (see #homeView.gd-home's --gd- tokens in this file) without touching what
     the rest of the app — which still runs the older indigo/cyan theme —
     relies on. */
  --line:rgba(212,169,79,.18);
  --line-strong:rgba(212,169,79,.42);
  --surface-deep:#0a0908;
  --surface-raised:#17150f;
  --text:#fbf7ef;
  --muted:#d9d1c2;
  --faint:#635c50;
  --accent-cyan:#d4a94f;
  --body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  position:relative;
  display:block;
  /* #profileView is a two-column grid (return row | nav row); the board spans
     both, exactly as .profile-tab-panel does. min-width:0 overrides the grid
     item default of min-width:auto — without it this item refuses to shrink
     below its content's intrinsic width, which on the mobile horizontal card
     scroller (.club-hub-rail below) is wider than the viewport. body's own
     overflow-x:hidden was already clipping the visible result, but the box
     was still genuinely wider than its grid track underneath; this makes the
     box actually match the viewport instead of relying on that clip. */
  grid-column:1 / -1;
  width:100%;
  min-width:0;
  /* Restored to the original approved clamp(500px,76vh,820px) — a prior pass
     shrank this to clamp(420px,58vh,620px) specifically to force the footer
     onto one screen, which made the cards themselves visibly smaller. That
     traded away approved card size for page fit, which is the wrong
     direction: the surrounding layout (see body.club-hub-stage below) now
     centers this block in whatever vertical room is actually available
     instead of shrinking the cards to manufacture room. */
  height:clamp(500px,76vh,820px);
  margin:0 auto;
  /* contain:layout keeps this component's internal layout isolated (as
     originally authored); the paint containment that used to sit alongside
     it clipped anything the focused card renders outside .club-hub's own
     box — its lifted position (translate:0 -7px below) and its glow/shadow
     — which is what cut the expanded card off at the top. Layout
     containment alone doesn't clip paint, so the card can now lift and glow
     past this box's edge into the header/footer breathing room that the
     centering below provides. */
  contain:layout;
}
.club-hub.hidden{display:none!important}

.club-hub-stage{
  position:absolute;
  inset:0;
  transition:opacity .34s ease,translate .52s var(--hub-ease),scale .52s var(--hub-ease),filter .34s ease;
}
/* Leaving the grid reads as diving *into* the chosen card: the whole board
   pushes toward the camera and blurs out rather than simply fading. */
.club-hub[data-stage="slider"] .club-hub-stage-grid{
  opacity:0;pointer-events:none;scale:1.07;filter:blur(9px);
}
.club-hub[data-stage="grid"] .club-hub-stage-slider{
  opacity:0;pointer-events:none;scale:.95;translate:0 26px;filter:blur(7px);
}

/* ----------------------------------------------------------------- rail --- */
/* A shallow camera: the board sits slightly below eye line, so collapsed cards
   lean away from the focused one instead of just shrinking. */
.club-hub-rail{
  position:absolute;
  inset:0;
  display:flex;
  align-items:stretch;
  gap:12px;
  perspective:2600px;
  /* The camera, not the row, is what moves: the vanishing point follows the
     cursor, so the whole board re-angles around whatever you are looking at. */
  perspective-origin:calc(50% + var(--hub-cam-x,0) * 7%) calc(48% + var(--hub-cam-y,0) * 6%);
  transform-style:preserve-3d;
  transition:perspective-origin .55s cubic-bezier(.2,.85,.3,1);
}

.club-hub-card{
  position:relative;
  flex:1 1 0;
  min-width:0;
  height:100%;
  padding:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-deep);
  cursor:pointer;
  transform-style:preserve-3d;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 20px 50px -28px rgba(9,7,4,0.9);
  transition:
    flex-grow var(--hub-dur) var(--hub-ease),
    translate var(--hub-dur) var(--hub-ease),
    scale var(--hub-dur) var(--hub-ease),
    rotate var(--hub-dur) var(--hub-ease),
    border-color .36s ease,
    box-shadow .44s ease,
    opacity .42s ease,
    filter .42s ease;
}
.club-hub-card:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}

/* Depth: every unfocused card drops back and rotates away from the focus.
   --hub-off is the signed card distance from the focused card, set in JS. */
.club-hub-rail[data-focus="true"] .club-hub-card{
  flex-grow:.62;
  rotate:y calc(var(--hub-off,0) * -4deg);
  translate:0 7px;
  scale:.958;
}
.club-hub-rail[data-focus="true"] .club-hub-card.is-focus{
  flex-grow:3;
  rotate:y 0deg;
  translate:0 -7px;
  scale:1;
  border-color:var(--hub-line);
  box-shadow:
    0 58px 110px -32px rgba(0,0,0,.92),
    0 0 90px -32px var(--hub-glow);
}

/* --------------------------------------------------------------- media  --- */
.club-hub-card-media{
  position:absolute;
  inset:0;
  overflow:hidden;
  border-radius:inherit;
  pointer-events:none;
}
/* The art bleeds past the frame so pointer parallax never exposes an edge.
   translate (parallax, fast) and scale (expand, slow) are separate properties
   so the two motions keep their own easing and never fight. The procedural
   gradient is painted underneath every card, so a missing or slow image never
   shows as a blank box. */
.club-hub-card-art{
  position:absolute;
  /* Bleed is kept to just what the parallax needs (it travels 13px, this gives
     ~28px). Every extra percent here magnifies the photo and crops the frame,
     so it is deliberately tight. */
  inset:-3%;
  background-position:var(--art-pos,50% 50%);
  background-size:cover;
  background-repeat:no-repeat;
  background-color:transparent;
  translate:calc(var(--hub-px,0) * -13px) calc(var(--hub-py,0) * -9px);
  scale:1.05;
  filter:brightness(.62) saturate(.85);
  transition:
    translate .55s cubic-bezier(.2,.85,.3,1),
    scale var(--hub-dur) var(--hub-ease),
    filter .46s ease;
}
.club-hub-card-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 78% at 50% 8%,var(--hub-accent-wash,rgba(76,57,21,0.42)),transparent 62%),
    radial-gradient(90% 60% at 50% 108%,rgba(13,12,10,0.95),transparent 60%),
    linear-gradient(168deg,var(--surface-raised),var(--surface-deep) 70%);
}
.club-hub-rail[data-focus="true"] .club-hub-card:not(.is-focus) .club-hub-card-art{
  scale:1.09;
  filter:brightness(.34) saturate(.52) blur(1.5px);
}
/* The card in front sits at true cover — no magnification at all, so it shows
   the widest frame the card shape can hold. */
.club-hub-rail[data-focus="true"] .club-hub-card.is-focus .club-hub-card-art{
  scale:1;
  filter:brightness(1.04) saturate(1.08) blur(0);
}

/* Colour + depth grading, layered over the art. */
.club-hub-card-tint{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(158deg,var(--hub-accent-wash,rgba(76,57,21,0.4)) 0%,transparent 52%);
  opacity:.28;
  mix-blend-mode:screen;
  transition:opacity .46s ease;
}
/* Kept deliberately light: the artwork is the card, and the accent is only
   here to tell the four areas apart. */
.club-hub-card.is-focus .club-hub-card-tint{opacity:.5}
.club-hub-card-scrim{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to top,rgba(13,12,10,0.88) 0%,rgba(13,12,10,0.34) 30%,rgba(4,6,16,0) 62%,rgba(13,12,10,0.3) 100%);
}
/* Rim light — a thin lit edge on the focused card, as if the board is lit from
   above and only the card facing the camera catches it. */
.club-hub-card-sheen{
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  opacity:0;
  background:linear-gradient(148deg,rgba(255,255,255,.16),transparent 34%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.05);
  transition:opacity .46s ease;
}
.club-hub-card.is-focus .club-hub-card-sheen{opacity:1}

/* The name is the card's only marking, so it carries the identity on its own.
   At rest it stands on its side in the bottom-left corner like a spine label;
   bringing the card forward lets it fall flat and slide to the centre of the
   bottom edge.

   The whole move is one interpolation of three properties. The label is
   anchored at the card's bottom-left corner with its transform origin on its
   own bottom-left corner, so:
     • rest  — rotate -90deg pivots the line up the left edge, and `translate`
               then pushes it back inside the card. The rotation throws the box
               left by exactly its own height, so the x term is the inset plus
               --hub-label-h (which is why that height is fixed rather than
               left to the font).
     • front — rotate 0 lays it flat, `left:50%` puts its left edge on the card
               centre and translate -50% pulls it back by half its own width,
               which centres it whatever the word is.
   left, translate and rotate all animate, so it reads as the word toppling
   over into place rather than two states cross-fading. */
.club-hub-card-label{
  /* One size drives both states: the resting label is --hub-label-size and the
     active one is exactly twice that, so the two stay in step and only this one
     value changes per breakpoint. */
  --hub-label-size:1.24rem;
  --hub-label-lead:1.16;          /* line box, as a multiple of the font size */
  --hub-label-inset:24px;
  position:absolute;
  left:0;
  bottom:0;
  z-index:3;
  /* No explicit height: the box is exactly one line tall, which is what the
     resting offset below compensates for. Expressing that compensation in `em`
     rather than in pixels is what lets the type size change without the
     rotated label drifting off the corner. */
  line-height:var(--hub-label-lead);
  white-space:nowrap;
  font-family:var(--body);
  font-size:var(--hub-label-size);
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(251,247,239,.82);
  text-shadow:0 2px 18px rgba(0,0,0,.9);
  pointer-events:none;
  transform-origin:0 100%;
  translate:calc(var(--hub-label-inset) + var(--hub-label-lead) * 1em) calc(var(--hub-label-inset) * -1);
  rotate:-90deg;
  transition:
    left var(--hub-dur) var(--hub-ease),
    translate var(--hub-dur) var(--hub-ease),
    rotate var(--hub-dur) var(--hub-ease),
    font-size var(--hub-dur) var(--hub-ease),
    color .34s ease,
    opacity .34s ease;
}
.club-hub-rail[data-focus="true"] .club-hub-card:not(.is-focus) .club-hub-card-label{opacity:.62}
.club-hub-card.is-focus .club-hub-card-label{
  left:50%;
  translate:-50% calc(var(--hub-label-inset) * -1);
  rotate:0deg;
  font-size:calc(var(--hub-label-size) * 2);
  color:var(--hub-label-color,var(--hub-accent));
  opacity:1;
}

/* Entrance — the board assembles from below, one card after the next. */
.club-hub.is-entering .club-hub-card{opacity:0;translate:0 30px;filter:blur(7px)}
.club-hub.is-entered .club-hub-card{
  opacity:1;
  translate:0 0;
  filter:blur(0);
  transition-delay:calc(var(--i,0) * 64ms);
}

/* --------------------------------------------------------------- slider --- */
/* Icon-only, so the rail stays wordless. */
.club-hub-back{
  position:absolute;
  top:16px;
  left:16px;
  z-index:5;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:50%;
  background:rgba(13,12,10,0.72);
  color:var(--muted);
  backdrop-filter:blur(10px);
  cursor:pointer;
  transition:color .25s ease,border-color .25s ease,background .25s ease,scale .25s var(--hub-ease);
}
.club-hub-back svg{width:20px;height:20px;display:block}
.club-hub-back:hover,.club-hub-back:focus-visible{
  color:var(--text);
  border-color:var(--hub-line);
  background:rgba(13,12,10,0.9);
  scale:1.06;
  outline:none;
}
.club-hub-back:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}

.club-slider{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  perspective:1900px;
  cursor:grab;
  touch-action:pan-y;
  /* The rail runs past both edges rather than stopping at them, so the loop
     never shows a seam. */
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 8%,#000 92%,transparent 100%);
}
.club-slider.is-dragging{cursor:grabbing}
/* Nothing on the rail is text to select or an image to drag. Without this a
   press-and-drag across a window started a native text drag instead, which is
   what put the "no drop" cursor on screen and ate the rail drag underneath. */
.club-slider,
.club-slide,
.club-slide-label{
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
}
.club-slide{cursor:pointer}
.club-slider.is-dragging .club-slide{cursor:grabbing}
.club-slider-track{
  display:flex;
  align-items:center;
  gap:20px;
  height:100%;
  transform-style:preserve-3d;
  will-change:transform;
}

.club-slide{
  position:relative;
  flex:0 0 clamp(230px,25vw,360px);
  height:min(100%,560px);
  overflow:hidden;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-deep);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  /* --d is the signed distance from the viewport centre (-1..1) and --a its
     magnitude, written each frame by app.js. Everything else is derived, so
     the depth reads as one camera rather than per-card animation. */
  rotate:y calc(var(--d,0) * -8deg);
  translate:0 calc(var(--a,0) * 14px);
  scale:calc(1 - var(--a,0) * .1);
  filter:brightness(calc(1 - var(--a,0) * .46)) saturate(calc(1 - var(--a,0) * .3));
  transition:border-color .3s ease,box-shadow .4s ease;
}
.club-slide:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}
.club-slide.is-focus,
.club-slide:focus-visible{
  border-color:var(--hub-line);
  box-shadow:0 38px 78px -32px rgba(0,0,0,.9),0 0 62px -32px var(--hub-glow);
}
.club-slide-art{
  position:absolute;
  inset:0;
  background-position:50% 45%;
  background-size:cover;
  opacity:1;
  filter:brightness(.66) saturate(.9);
  transition:filter .38s ease,scale .5s var(--hub-ease);
  scale:1.02;
}
.club-slide.is-focus .club-slide-art{
  filter:brightness(1.06) saturate(1.08);
  scale:1;
}
.club-slide-wash{
  position:absolute;
  inset:0;
  background:linear-gradient(to top,rgba(13,12,10,0.92) 0%,rgba(13,12,10,0.45) 26%,rgba(4,6,16,0) 58%);
}
/* The page name is the slide's whole identity, sitting on the bottom edge
   where the eye lands after the artwork. */
.club-slide-label{
  position:absolute;
  left:0;
  right:0;
  bottom:22px;
  z-index:2;
  padding:0 14px;
  text-align:center;
  font-family:var(--body);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.19em;
  text-transform:uppercase;
  line-height:1.2;
  color:rgba(251,247,239,.76);
  text-shadow:0 2px 16px rgba(0,0,0,.85);
  pointer-events:none;
  transition:color .3s ease;
}
.club-slide.is-focus .club-slide-label{color:var(--hub-accent)}

/* --------------------------------------------------------- section crumb -- */
/* Inside a page the hub collapses to a two-step trail: back to the board, or
   back to this destination's rail. This is the only text the hub prints, and it
   lives on content pages rather than on the board or the rail. */
body.club-hub-crumb-active .profile-nav-row{
  min-height:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
/* The nav row is a wide, mostly transparent grid cell and is deliberately
   click-through (see "eliminate transparent navigation hitbox"), with only the
   visible navigation capsule opted back in. The trail lives in that same row,
   so it has to opt back in too — without this its buttons render correctly and
   silently swallow every click. */
.profile-nav-row .club-hub-crumb,
.profile-nav-row .club-hub-crumb *{pointer-events:auto!important}
.club-hub-crumb{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  padding:4px 0;
}
.club-hub-crumb.hidden{display:none!important}
.club-hub-crumb button{
  padding:7px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-family:var(--body);
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  transition:color .25s ease,border-color .25s ease,background .25s ease;
}
.club-hub-crumb button:hover,.club-hub-crumb button:focus-visible{
  color:var(--text);border-color:var(--line-strong);background:rgba(255,255,255,.06);outline:none;
}
.club-hub-crumb .club-hub-crumb-here{
  font-family:var(--body);
  font-size:.6rem;
  font-weight:800;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--accent-cyan);
}
.club-hub-crumb i{color:var(--faint);font-style:normal}

/* ----------------------------------------------------------- responsive --- */
@media (max-width:1180px){
  .club-hub{height:clamp(440px,72vh,700px)}
  .club-hub-rail{gap:9px}
  .club-hub-rail[data-focus="true"] .club-hub-card.is-focus{flex-grow:3.3}
  .club-hub-card-label{--hub-label-size:1.05rem;--hub-label-inset:20px}
  .club-slide{flex:0 0 clamp(210px,27vw,320px);height:min(100%,500px)}
}
@media (max-width:900px){
  .club-hub{height:auto;margin-bottom:22px}
  .club-hub-stage{position:relative;inset:auto}
  .club-hub[data-stage="grid"] .club-hub-stage-slider,
  .club-hub[data-stage="slider"] .club-hub-stage-grid{
    position:absolute;inset:0;height:0;overflow:hidden;
  }
  .club-hub-rail{
    position:relative;
    inset:auto;
    height:clamp(360px,62vw,470px);
    gap:10px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    padding-bottom:8px;
    perspective:none;
  }
  .club-hub-card{flex:0 0 132px;scroll-snap-align:center}
  .club-hub-rail[data-focus="true"] .club-hub-card{flex:0 0 132px;rotate:none;scale:1;translate:0}
  .club-hub-rail[data-focus="true"] .club-hub-card.is-focus{flex:0 0 300px;translate:0}
  .club-hub-card-label{--hub-label-size:.8rem;--hub-label-inset:16px}
  .club-hub-stage-slider{height:clamp(320px,58vw,430px)}
  .club-slide{flex:0 0 clamp(200px,42vw,280px);height:min(100%,420px)}
  .club-slide-label{bottom:18px;font-size:.62rem;letter-spacing:.15em}
  .club-hub-back{top:10px;left:10px;width:38px;height:38px}
}
@media (max-width:620px){
  .club-hub-rail{height:clamp(320px,70vw,420px)}
  .club-hub-card{flex:0 0 104px}
  .club-hub-rail[data-focus="true"] .club-hub-card{flex:0 0 104px}
  .club-hub-rail[data-focus="true"] .club-hub-card.is-focus{flex:0 0 248px}
  .club-hub-card-label{--hub-label-size:.68rem;--hub-label-inset:13px}
  .club-slide{flex:0 0 190px}
}

/* Motion is decoration here, never information: with reduced motion the board
   still expands and the rail still works, they simply stop moving on their own. */
@media (prefers-reduced-motion:reduce){
  .club-hub-stage,
  .club-hub-card,
  .club-hub-card-art,
  .club-hub-card-label,
  .club-hub-back,
  .club-slide,
  .club-slide-label,
  .club-hub-rail{
    transition-duration:.001s!important;
    transition-delay:0s!important;
  }
  .club-hub-card-art{translate:none!important}
  .club-hub[data-stage="slider"] .club-hub-stage-grid,
  .club-hub[data-stage="grid"] .club-hub-stage-slider{filter:none;scale:1;translate:0}
  .club-slide{rotate:none;translate:none;scale:1}
}

/* ========================================================================== */
/* Club menu (four-card hub) — canonical redesign pass                        */
/* Brings the hub screen's page chrome (background, header logo, footer) in   */
/* line with the redesigned homepage's antique-gold/charcoal identity. Scoped */
/* to body.club-hub-stage — set only while the hub itself is on screen (see   */
/* syncClubHub() in app.js) — so drilling into an actual Club page (Mail,     */
/* Calendar, Squad, ...), or visiting World/Preseason, keeps their existing   */
/* chrome exactly as it was.                                                  */
/* ========================================================================== */
body.club-hub-stage .world-bg{background:#0a0908}
body.club-hub-stage .world-bg::before{
  background-image:image-set(url('/club-menu-background.webp') type('image/webp'),url('/club-menu-background.png') type('image/png'));
  background-position:center top;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(4px) brightness(.82);
}
body.club-hub-stage .world-gradient{
  background:
    linear-gradient(180deg,rgba(5,5,4,.2) 0%,rgba(5,5,4,.6) 100%),
    radial-gradient(120% 90% at 50% 0%,rgba(212,169,79,.09) 0%,transparent 55%);
  animation:none;
}
body.club-hub-stage .world-grid{opacity:.03}

/* The header logo/wordmark, the "Development FC | World" tab shell, the
   global scrollbar and the footer are now fixed at their shared/global
   source (.brand-mark, .site-menu, the site-wide *::-webkit-scrollbar rules,
   .site-footer-* — see earlier in this file) instead of being patched only
   here, so the same premium black/gold treatment shows on every page, not
   just this one. Only this page's own background image stays scoped below.

   Vertical centring: the card group was sitting high with a large dead gap
   above the footer, because only the footer was pinned down (margin-top:auto)
   while the cards stayed top-aligned in normal flow. Instead, .page-shell and
   #profileView are turned into a flex column that actually fills the space
   between the header/tabs and the footer, and #profileView centers its one
   visible child (the hub) inside that space with justify-content:center —
   so the same slack is split evenly above and below the cards. #profileView
   already has other layouts (grid, for its return-row/nav-row) on every
   other route; this only replaces that for the hub state, where the nav-row
   is hidden and the return-row is collapsed to begin with. If a narrow or
   short viewport ever makes the content genuinely taller than 100vh, flex
   does not fight that — the page scrolls normally, same as before. */
body.club-hub-stage{
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
body.club-hub-stage .page-shell{
  display:flex;
  flex-direction:column;
  flex:1 0 auto;
  min-height:0;
}
body.club-hub-stage #profileView{
  display:flex;
  flex-direction:column;
  flex:1 0 auto;
  justify-content:center;
  min-height:0;
  /* .profile-view's base rule reserves padding:36px 0 80px so ordinary
     scrolling content pages (Mail, Calendar, Squad, ...) never butt against
     the footer. On the hub screen that fixed 116px was exactly consuming the
     slack this centering needs — 926px of available height minus 80px of
     bottom padding left zero free space, so justify-content:center had
     nothing left to distribute and the group sat flush at the top. The hub
     doesn't need that reserved breathing room (the space above/below is now
     genuinely free, balanced space), so it's zeroed only here. */
  padding:0;
}

/* ========================================================================== */
/* Club page pass — contracts search suggestions and homepage engagement block */
/* ========================================================================== */

/* ------------------------------------------- contracts: player search box -- */
/* The search box now offers the club's own players as you type, so the field
   needs a positioning context for the list to hang from. */
.contract-search-field{
  position:relative;
  min-width:0;
}
/* The v3 toolbar hides the Position dropdown with
   `.contract-filter-inputs label:last-child`. Wrapping the search input made
   its own <label> the last child of that new wrapper, so the same rule matched
   it too and the search box vanished. This puts it back; the Position label is
   still the last child of .contract-filter-inputs itself and stays hidden. */
.contract-toolbar-v3 .contract-filter-inputs .contract-search-field label,
.contract-toolbar-v3 .contract-filter-inputs .contract-search-field label:last-child{
  display:grid!important;
}
.contract-search-suggest{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:0;
  z-index:40;
  display:grid;
  gap:2px;
  max-height:268px;
  overflow-y:auto;
  padding:5px;
  border:1px solid rgba(212,169,79,0.28);
  border-radius:10px;
  background:linear-gradient(160deg,rgba(23,21,15,0.99),rgba(13,12,10,0.99));
  box-shadow:0 26px 54px -22px rgba(0,0,0,.85);
}
.contract-search-suggest button{
  display:grid;
  grid-template-columns:26px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  width:100%;
  padding:6px 8px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:rgba(251,247,239,0.82);
  font:inherit;
  font-size:.68rem;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,color .16s ease;
}
.contract-search-suggest button:hover,
.contract-search-suggest button.active{
  background:rgba(42,34,20,0.24);
  color:#fff;
}
.contract-search-suggest img{
  width:26px;
  height:26px;
  border-radius:50%;
  object-fit:cover;
  background:rgba(255,255,255,.05);
}
.contract-search-suggest span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
/* The typed run is picked out so it is obvious why a name is being offered. */
.contract-search-suggest b{color:var(--accent-cyan);font-weight:800}
.contract-search-suggest small{
  color:rgba(229,195,119,0.6);
  font-size:.56rem;
  letter-spacing:.04em;
  white-space:nowrap;
}

/* --------------------------------------------- homepage engagement block --- */
/* The four reward cards are the section now: the outer panel behind them and
   the oversized RETURN watermark are gone, so the heading no longer needs the
   inset that lined it up with a frame edge. */
.return-loop.home-engagement > .section-heading{
  padding-left:0;
  padding-top:0;
}

/* --------------------------------------------- homepage featured cards ----- */
/* The five featured cards lean toward the cursor. Everything the pointer drives
   is a custom property written from app.js, so the transform itself stays here
   as one declarative rule rather than being assembled in JavaScript.

   The shadow is a drop-shadow rather than a box-shadow on purpose: the cards
   are cut-out artwork with transparent corners, and drop-shadow follows the
   real silhouette where a box-shadow would draw a rectangle behind it. */
/* The homepage cards keep exactly the arrangement they had before the tilt was
   generalised: the transform and the shadow live on the button wrapper, not on
   the card shell. Moving them onto the shell is what put a dark rectangle back
   behind them, so that arrangement is left alone and the other surfaces get
   their own rule below. */
.home-featured-player{
  position:relative;
  transform-style:preserve-3d;
  transform:
    perspective(900px)
    rotateX(var(--tilt-x,0deg))
    rotateY(var(--tilt-y,0deg))
    translateY(var(--tilt-lift,0px))
    scale(var(--tilt-scale,1));
  /* Settling back is slow and eased; following the cursor is near-immediate,
     which is what stops the tilt feeling like it lags behind the pointer. */
  transition:transform .5s cubic-bezier(.16,1,.3,1),filter .4s ease;
}
.home-featured-player.is-tilting{
  transition:transform .1s linear,filter .2s ease;
  filter:
    brightness(1.06)
    drop-shadow(var(--tilt-sx,0px) var(--tilt-sy,22px) 30px rgba(13,12,10,0.6));
}

/* Everywhere else a card appears there is no such wrapper, so the shell itself
   tilts. No filter here: a drop-shadow on the shell is computed from the
   composite of the card plus its full-bleed glow and scrim layers, which are
   rectangular, and paints a dark rectangle behind cut-out artwork. */
.footballer-card-shell:not(.home-featured-footballer-card){
  transform:
    perspective(900px)
    rotateX(var(--tilt-x,0deg))
    rotateY(var(--tilt-y,0deg))
    translateY(var(--tilt-lift,0px))
    scale(var(--tilt-scale,1));
  transition:transform .5s cubic-bezier(.16,1,.3,1);
}
.footballer-card-shell:not(.home-featured-footballer-card).is-tilting{
  z-index:5;
  transition:transform .1s linear;
}
.home-featured-player:focus-visible{
  outline:2px solid var(--accent-cyan);
  outline-offset:4px;
}
@media (prefers-reduced-motion:reduce){
  .home-featured-player,
  .footballer-card-shell:not(.home-featured-footballer-card){
    transform:none;
    transition:filter .2s ease;
  }
  .home-featured-player.is-tilting,
  .footballer-card-shell:not(.home-featured-footballer-card).is-tilting{transform:none}
}

/* ===================== club sub-pages, cards and the goat card =========== */

/* Every club sub-page opened its own restatement of where you are — an eyebrow,
   a title and a paragraph of description — directly under the page trail that
   already says the same thing. The pages now open straight into their content.
   The markup stays in place because several of these headings carry ids that
   are written to from app.js. */
.profile-tab-panel > .goat-luxury-header,
.profile-tab-panel > .goat-management-header,
.profile-tab-panel > * > .goat-luxury-header,
.profile-tab-panel > * > .goat-management-header,
.profile-tab-panel .squad-command-hero,
.profile-tab-panel .league-registration-heading,
.profile-tab-panel .objectives-command-hero,
.profile-tab-panel .mc-hub-page-header{
  display:none!important;
}
/* Finances is the exception: its header carries the current balance as well as
   the title, so only the wording goes and the balance card stays. The card is
   the second child, so hiding the first child removes exactly the copy. */
.profile-tab-panel .finance-hero > div:first-child{display:none!important}
.profile-tab-panel .finance-hero{justify-content:flex-end}

/* The featured cards are cut-out artwork on a transparent background, but they
   kept a box-shadow, and a box-shadow is painted against the rectangular border
   box no matter what shape the artwork is. That rectangle is the dark square
   sitting behind each card. The tilt already casts a drop-shadow, which follows
   the real silhouette, so the box version is simply removed here. */
.footballer-card.has-card-template{
  box-shadow:none!important;
}

/* The animated Cloth implementation is defined with the homepage refinements
   at the end of this file. The SVG filter itself remains available globally. */
.goat-cloth-defs{position:absolute;width:0;height:0;overflow:hidden}

/* ============================== the office ================================ */
/* Opening your account walks you into a room rather than dropping a menu. The
   whole scene starts pushed back and slightly blurred and settles forward, so
   the transition reads as the camera moving to the desk. */
.office-view{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#0a0908;
}
.office-view.hidden{display:none!important}
body.office-open{overflow:hidden}

.office-scene{
  position:absolute;
  inset:0;
  background:image-set(url('/management-backgrounds/office-v3.webp?v=503580') type('image/webp'),url('/management-backgrounds/office-v3.png') type('image/png')) center/cover no-repeat;
  transform-origin:50% 62%;
  transition:scale .62s cubic-bezier(.16,1,.3,1),opacity .42s ease,filter .5s ease;
  scale:1;
  opacity:1;
  filter:blur(0);
}
/* The far position the room returns to on the way out. */
.office-view.is-leaving .office-scene{
  scale:.82;
  opacity:0;
  filter:blur(12px);
}

.office-back{
  position:absolute;
  top:22px;
  left:22px;
  z-index:4;
  padding:10px 16px;
  border:1px solid rgba(212,169,79,.28);
  border-radius:999px;
  background:rgba(10,9,8,.72);
  color:#d9d1c2;
  font-family:var(--body);
  font-size:.66rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  cursor:pointer;
  backdrop-filter:blur(10px);
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}
.office-back:hover{background:rgba(23,21,15,.88);border-color:rgba(212,169,79,.55);color:#fbf7ef}

.office-screen{
  position:absolute;
  left:11.465%;
  top:5.33%;
  width:77.11%;
  height:80.96%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  padding:0 3% 4%;
  overflow:hidden;
  border-radius:5px;
  background:linear-gradient(168deg,#17150f 0%,#0d0c0a 55%,#050403 100%);
}
.office-screen-glow{
  position:absolute;
  inset:0;
  background:radial-gradient(120% 70% at 50% 0%,rgba(212,169,79,.14),transparent 62%);
  pointer-events:none;
}
.office-greeting{
  position:absolute;
  top:9%;
  margin:0;
  color:rgba(251,247,239,0.9);
  font-family:var(--display);
  font-size:clamp(.9rem,1.7vw,1.6rem);
  letter-spacing:.01em;
  text-shadow:0 2px 20px rgba(0,0,0,.7);
}

/* ------------------------------------------------------------------ dock -- */
.office-dock{
  position:relative;
  display:block;
  padding:8px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:22px;
  background:rgba(45,45,45,.55);
  backdrop-filter:blur(14px);
  box-shadow:
    0 10px 34px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -1px 0 rgba(0,0,0,.2);
}
.office-dock-app{
  position:absolute;
  bottom:8px;
  display:grid;
  place-items:end center;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
  transform-origin:bottom center;
}
.office-dock-tile{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  border-radius:24%;
  color:#1a1207;
  background:linear-gradient(160deg,var(--dock-tone),color-mix(in srgb,var(--dock-tone) 55%,#0d0c0a));
  box-shadow:0 6px 14px rgba(0,0,0,.4),inset 0 1px 0 rgba(255,255,255,.4);
}
.office-dock-tile svg{width:58%;height:58%;display:block}
/* The name only appears for the icon actually under the cursor, which is the
   one the magnification has grown past its neighbours. */
.office-dock-name{
  position:absolute;
  bottom:calc(100% + 10px);
  padding:4px 10px;
  border-radius:6px;
  background:rgba(10,9,8,.92);
  color:#fbf7ef;
  font-family:var(--body);
  font-size:11px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
.office-dock-app:hover .office-dock-name{opacity:1}
.office-dock-dot{
  position:absolute;
  bottom:-6px;
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(255,255,255,.65);
  opacity:0;
}
.office-dock-app:hover .office-dock-dot{opacity:1}
.office-dock-app.is-bouncing{animation:officeDockBounce .42s ease-out}
@keyframes officeDockBounce{
  0%,100%{translate:0 0}
  40%    {translate:0 -14px}
}

@media (max-width:900px){
  .office-greeting{top:6%}
}
@media (prefers-reduced-motion:reduce){
  .office-scene{transition:opacity .2s ease}
  .office-view.is-leaving .office-scene{scale:1;filter:none}
  .office-dock-app.is-bouncing{animation:none}
}

/* Mail the game sends opens by addressing you. */
.mail-salutation{
  display:block;
  margin:0 0 10px;
  color:var(--accent-cyan);
  font-weight:800;
  letter-spacing:.02em;
}

/* Mail two-pane workspace: conversation list on the left, selected mail on the right. */
.mail-modal-card{width:min(1180px,96vw)}
.mail-view-inbox,
.mail-view-sent,
.mail-view-message{overflow:hidden;padding:0}
.mail-two-pane{
  display:grid;
  grid-template-columns:minmax(290px,360px) minmax(0,1fr);
  min-height:0;
  height:100%;
  background:linear-gradient(145deg,rgba(13,12,10,0.34),rgba(13,12,10,0.2));
}
.mail-conversation-pane{
  min-width:0;
  min-height:0;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  overflow:hidden;
  border-right:1px solid rgba(212,169,79,0.18);
  background:rgba(13,12,10,0.44);
}
.mail-conversation-pane .mail-folder-toolbar{
  min-height:82px;
  margin:0;
  padding:15px 14px 12px;
}
.mail-conversation-pane .mail-folder-toolbar h3{font-size:1.08rem}
.mail-conversation-pane .mail-folder-toolbar .mail-delete-all{
  width:34px;
  min-width:34px;
  min-height:34px;
  padding:0;
}
.mail-conversation-pane .mail-folder-toolbar .mail-delete-all span{display:none}
.mail-search{
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  margin:12px 13px;
  padding:0 10px 0 36px;
  border:1px solid rgba(212,169,79,0.26);
  border-radius:10px;
  background:rgba(13,12,10,0.9);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.mail-search:focus-within{
  border-color:rgba(212,169,79,0.68);
  box-shadow:0 0 0 3px rgba(212,169,79,0.07);
}
.mail-search-icon{
  position:absolute;
  left:13px;
  width:12px;
  height:12px;
  border:2px solid rgba(212,169,79,0.72);
  border-radius:50%;
}
.mail-search-icon::after{
  content:"";
  position:absolute;
  right:-5px;
  bottom:-3px;
  width:6px;
  height:2px;
  border-radius:2px;
  background:rgba(76,57,21,0.72);
  rotate:45deg;
}
.mail-search input{
  min-width:0;
  width:100%;
  height:40px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  font:inherit;
  font-size:.65rem;
}
.mail-search input::placeholder{color:rgba(217,209,194,0.5)}
.mail-search small{
  flex:0 0 auto;
  color:rgba(229,195,119,0.56);
  font-size:.49rem;
  white-space:nowrap;
}
.mail-conversation-scroll{
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:0 8px 12px;
}
.mail-message-list{display:grid;gap:3px}
.mail-thread{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:10px;
  min-width:0;
  padding:12px 11px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:inherit;
  cursor:pointer;
  transition:border-color .14s ease,background .14s ease;
}
.mail-thread:hover,
.mail-thread:focus-visible{
  border-color:rgba(212,169,79,0.25);
  background:rgba(23,21,15,0.42);
  outline:none;
}
.mail-thread.is-selected{
  border-color:rgba(212,169,79,0.42);
  background:linear-gradient(135deg,rgba(42,34,20,0.64),rgba(23,21,15,0.6));
  box-shadow:inset 3px 0 #d4a94f;
}
.mail-thread.is-unread{background:rgba(23,21,15,0.45)}
.mail-thread.is-unread.is-selected{background:linear-gradient(135deg,rgba(42,34,20,0.72),rgba(23,21,15,0.7))}
.mail-thread.is-filtered{display:none}
.mail-avatar{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(91,202,255,.34);
  border-radius:50%;
  background:linear-gradient(145deg,rgba(30,110,165,.88),rgba(18,49,103,.95));
  color:#e8fbff;
  font-family:var(--display);
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.03em;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 20px rgba(0,0,0,.18);
}
.mail-avatar.is-official{
  border-color:rgba(126,229,255,.58);
  background:linear-gradient(145deg,rgba(22,133,183,.96),rgba(28,66,139,.96));
  box-shadow:0 0 18px rgba(66,201,255,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.mail-thread-copy{min-width:0;display:grid;gap:4px}
.mail-thread-copy header{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0}
.mail-thread-copy header strong{
  overflow:hidden;
  color:#fbf7ef;
  font-size:.69rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mail-thread.is-unread .mail-thread-copy header strong{color:#fff}
.mail-thread-copy time{flex:0 0 auto;color:rgba(229,195,119,0.55);font-size:.47rem;white-space:nowrap}
.mail-thread-copy>b{
  overflow:hidden;
  color:rgba(251,247,239,0.84);
  font-size:.61rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mail-thread.is-unread .mail-thread-copy>b{color:#e5c377}
.mail-thread-copy>p{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:rgba(217,209,194,0.62);
  font-size:.55rem;
  line-height:1.45;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.mail-thread-copy footer{display:flex;align-items:center;gap:6px;min-width:0;margin-top:2px}
.mail-thread-copy footer small{
  overflow:hidden;
  color:rgba(229,195,119,0.7);
  font-size:.44rem;
  font-weight:850;
  letter-spacing:.045em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mail-thread-copy .mail-message-status{margin-left:auto;font-size:.4rem;font-style:normal}
.mail-thread-mark-read{
  position:absolute;
  right:8px;
  bottom:8px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  padding:0;
  border:1px solid rgba(212,169,79,0.25);
  border-radius:7px;
  background:rgba(23,21,15,0.88);
  color:#e5c377;
  font:inherit;
  font-size:.58rem;
  font-weight:950;
  opacity:0;
  cursor:pointer;
  transition:opacity .14s ease,border-color .14s ease,background .14s ease;
}
.mail-thread:hover .mail-thread-mark-read,
.mail-thread:focus-within .mail-thread-mark-read,
.mail-thread-mark-read:focus-visible{opacity:1}
.mail-thread-mark-read:hover,
.mail-thread-mark-read:focus-visible{border-color:#d4a94f;background:rgba(42,34,20,0.96);outline:none}
@media(hover:none){.mail-thread-mark-read{opacity:1}}
.mail-unread-dot{
  position:absolute;
  top:14px;
  right:5px;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#4c3915;
  box-shadow:0 0 9px rgba(212,169,79,0.85);
}
.mail-filter-empty,
.mail-list-empty{min-height:130px;padding:16px;font-size:.62rem}
.mail-filter-empty.hidden{display:none}
.mail-reading-pane{
  min-width:0;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:22px clamp(20px,3vw,38px);
  background:radial-gradient(circle at 88% 0,rgba(76,57,21,0.07),transparent 36%);
}
.mail-reading-empty{
  display:grid;
  place-items:center;
  align-content:center;
  min-height:100%;
  padding:40px;
  color:rgba(217,209,194,0.58);
  text-align:center;
}
.mail-reading-empty>span{
  position:relative;
  width:58px;
  height:40px;
  margin-bottom:17px;
  border:1px solid rgba(212,169,79,0.3);
  border-radius:9px;
  background:rgba(23,21,15,0.34);
}
.mail-reading-empty>span::after{
  content:"";
  position:absolute;
  inset:9px 10px 14px;
  border-right:1px solid rgba(212,169,79,0.42);
  border-bottom:1px solid rgba(212,169,79,0.42);
  rotate:45deg;
}
.mail-reading-empty strong{color:rgba(251,247,239,0.78);font-family:var(--display);font-size:1rem}
.mail-reading-empty p{margin:7px 0 0;font-size:.62rem}
.mail-message-detail{
  display:grid;
  gap:18px !important;
  max-width:none;
  min-height:100%;
  margin:0;
  padding:0 !important;
  border:0;
  border-radius:0;
  background:transparent;
}
.mail-message-detail>header{gap:16px !important;padding-bottom:18px;border-bottom:1px solid rgba(212,169,79,0.18)}
.mail-detail-back{display:none}
.mail-detail-correspondent{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
}
.mail-detail-correspondent .mail-avatar{width:48px;height:48px}
.mail-detail-correspondent-copy{min-width:0;display:grid;gap:3px}
.mail-detail-correspondent-copy>span{color:#e5c377;font-size:.5rem;font-weight:950;letter-spacing:.11em}
.mail-detail-correspondent-copy>strong{overflow:hidden;color:#fff;font-size:.76rem;text-overflow:ellipsis;white-space:nowrap}
.mail-detail-correspondent-copy>small{overflow:hidden;color:rgba(217,209,194,0.63);font-size:.52rem;text-overflow:ellipsis;white-space:nowrap}
.mail-detail-correspondent>time{align-self:start;color:rgba(229,195,119,0.56);font-size:.52rem;white-space:nowrap}
.mail-detail-subject-row{display:block}
.mail-message-detail .mail-detail-subject-row h3{
  margin:0;
  color:#fff;
  font-family:var(--display);
  font-size:clamp(1.35rem,2.5vw,2rem);
  line-height:1.12;
}
.mail-message-detail-body{
  min-height:180px !important;
  padding:20px !important;
  border-color:rgba(212,169,79,0.16);
  border-radius:12px;
  background:rgba(13,12,10,0.46);
  color:rgba(251,247,239,0.9);
  font-size:.72rem;
  line-height:1.75;
}
.mail-message-detail .mail-report-actions{margin-top:0}
.mail-message-detail>footer{
  align-self:end;
  padding-top:16px;
  border-top:1px solid rgba(212,169,79,0.16);
}
.mail-message-detail>footer>small{overflow:hidden;max-width:48%;text-overflow:ellipsis;white-space:nowrap}
.mail-detail-actions button{
  min-width:86px;
  min-height:38px;
  border-color:rgba(212,169,79,0.42);
  background:linear-gradient(135deg,rgba(42,34,20,0.84),rgba(23,21,15,0.9));
}
.mail-detail-actions button.delete{
  border-color:rgba(255,91,111,.38);
  background:rgba(111,24,44,.62);
}

@media(max-width:780px){
  .mail-modal-card{height:96vh}
  .mail-two-pane{grid-template-columns:1fr}
  .mail-two-pane:not(.has-selection) .mail-reading-pane{display:none}
  .mail-two-pane.has-selection .mail-conversation-pane{display:none}
  .mail-reading-pane{padding:17px 16px 22px}
  .mail-detail-back{display:inline-flex;align-items:center;gap:7px;margin:0 0 2px}
  .mail-detail-correspondent{grid-template-columns:44px minmax(0,1fr)}
  .mail-detail-correspondent .mail-avatar{width:44px;height:44px}
  .mail-detail-correspondent>time{grid-column:2;align-self:auto;white-space:normal}
  .mail-message-detail .mail-detail-subject-row h3{font-size:1.35rem}
  .mail-message-detail-body{min-height:150px !important;padding:16px !important}
  .mail-message-detail>footer{align-items:flex-start;flex-direction:column}
  .mail-message-detail>footer>small{max-width:100%}
  .mail-detail-actions{width:100%}
  .mail-detail-actions button{flex:1}
}

@media(max-width:420px){
  .mail-modal-header{padding:13px 14px}
  .mail-tabs{padding:9px}
  .mail-tabs button{min-height:39px;padding:8px 10px}
  .mail-conversation-pane .mail-folder-toolbar{min-height:72px;padding:11px 12px}
  .mail-search{margin:10px 11px}
  .mail-thread{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:11px 9px}
  .mail-thread .mail-avatar{width:38px;height:38px}
  .mail-thread-copy time{max-width:92px;overflow:hidden;text-overflow:ellipsis}
}

/* ========================================================================== */
/* Office tablet, in-screen Mail, crest identity and Canvas UI cloth adaptation */
/* ========================================================================== */

html.office-open,
body.office-open{height:100%;overflow:hidden!important;overscroll-behavior:none}
.office-view:not(.has-app-open){touch-action:none}

/* The homepage identity is the crest itself: a plain circular gold-rimmed
   coin, matching the official gd2-logo-coin.png mark used across the
   redesigned homepage (hero brand, footer). Canonical redesign: this was a
   frameless tilting crest lit by a cyan drop-shadow ("rgba(91,231,255,...)")
   — legacy accent colour with no frame at all, which is also why the mark
   could read as floating loose rather than "fitted" inside anything. A
   circular clipped frame is restored (overflow:hidden + border-radius:50%)
   sized so the coin's own tight art (see gd2-logo-coin.png) sits with a
   little breathing room inside the ring, and every cyan glow becomes the
   same warm gold used site-wide. This is shared header chrome, so the fix is
   made once here rather than per page. */
.brand{perspective:900px}
.brand-mark,
.brand-mark[data-logo-tilt]{
  width:58px;
  height:58px;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.45);
  border-radius:50%;
  clip-path:none;
  background:radial-gradient(circle at 35% 30%,rgba(212,169,79,.20),rgba(10,9,8,.94) 74%);
  box-shadow:0 0 20px rgba(212,169,79,.22);
  transform-style:preserve-3d;
  transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(var(--tilt-lift,0px)) scale(var(--tilt-scale,1));
  filter:drop-shadow(0 12px 16px rgba(13,12,10,0.52));
  transition:transform .5s cubic-bezier(.16,1,.3,1),filter .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.brand-mark::before{display:none}
/* Measured, not guessed: gd2-logo-coin.png is a 1000x1000 canvas whose own
   opaque pixels only span x:51-966 / y:28-943 (a 915x915 square, ~91.5% of
   the canvas — the coin art is already tightly cropped with a small amount
   of transparent margin baked in). The frame's content box (this .brand-mark
   at 58px, minus its 1px border each side) is 56px. Sizing the <img> at 88%
   of that box compounded a second, CSS-driven shrink on top of the PNG's own
   built-in margin — 56 x .88 x .915 = ~45px of visible coin inside a 56px
   circle, an 80% fill, which read as a small icon floating in the frame.
   Filling the full content box (100%) instead relies on the PNG's own
   margin to supply the breathing room: 56 x .915 = ~51px visible, a ~91%
   fill with a small ~4-5px gap to the border on every side. */
.brand-mark .goat-crest-logo{
  width:100%;
  height:100%;
  filter:none;
}
.brand-mark.is-tilting{
  transition:transform .1s linear,filter .2s ease;
  border-color:rgba(212,169,79,.62);
  box-shadow:0 0 26px rgba(212,169,79,.34);
  filter:brightness(1.08) drop-shadow(var(--tilt-sx,0px) var(--tilt-sy,22px) 24px rgba(13,12,10,0.72));
}
.site-menu #clubMenuButton{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* The whole live face moves through the displacement field. The low-resolution
   canvas is deliberately stretched: its broad values become soft cloth light,
   rather than a visible pixel texture, while the DOM remains interactive. */
#heroLeaderCard .leader-card-face{display:block;padding:0}
#heroLeaderCard .leader-card-face>.goat-cloth-surface{
  position:absolute;
  inset:-1px;
  z-index:2;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:28px;
  overflow:hidden;
  border-radius:20px;
  filter:url(#goatClothRipple);
  transform:translateZ(0);
}
.goat-cloth-surface>.goat-cloth-canvas{
  position:absolute;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  opacity:.92;
  mix-blend-mode:soft-light;
  pointer-events:none;
  image-rendering:auto;
}
.goat-cloth-surface>*:not(.goat-cloth-canvas){position:relative;z-index:2}
#heroLeaderCard .leader-card-face::after{z-index:3;opacity:.38}

/* The device never rises above 40% of the viewport. At rest its bottom edge is
   planted on the photographed desk and perspective makes it read as lying down. */
.office-device-stage{
  position:absolute;
  z-index:2;
  top:25vh;
  right:0;
  bottom:2vh;
  left:0;
  display:grid;
  place-items:start center;
  perspective:1200px;
  pointer-events:none;
}
.office-tablet{
  --office-tablet-tilt:58deg;
  --office-tablet-shift:34%;
  --office-tablet-scale:.92;
  --office-tablet-x:-2.25%;
  position:relative;
  width:min(60vw,calc(72vh * 1.62));
  aspect-ratio:1.62;
  pointer-events:auto;
  transform-origin:50% 100%;
  transform:translateX(var(--office-tablet-x)) translateY(var(--office-tablet-shift)) rotateX(var(--office-tablet-tilt)) scale(var(--office-tablet-scale));
  transform-style:preserve-3d;
  transition:transform .24s cubic-bezier(.2,.75,.25,1),filter .24s ease;
  filter:drop-shadow(0 42px 42px rgba(0,0,0,.62));
}
.office-tablet-frame{
  position:absolute;
  inset:0;
  overflow:hidden;
  border:1px solid rgba(240,242,245,.54);
  border-radius:clamp(18px,2.2vw,32px);
  background:linear-gradient(145deg,#d1d3d6 0%,#2a2214 5%,#0d0c0a 11%,#020304 88%,#2a2214 96%,#d6d7d9 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.64),inset 0 -2px 3px rgba(0,0,0,.8),0 0 0 2px rgba(0,0,0,.62),0 36px 70px rgba(0,0,0,.42);
  transform:translateZ(0);
}
.office-tablet-frame::before{
  content:"";
  position:absolute;
  inset:clamp(7px,1.1vw,13px);
  border:1px solid rgba(0,0,0,.92);
  border-radius:clamp(12px,1.65vw,24px);
  background:#0d0c0a;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.035);
}
.office-tablet-camera{
  position:absolute;
  z-index:5;
  top:clamp(4px,.55vw,7px);
  left:50%;
  width:clamp(5px,.55vw,8px);
  height:clamp(5px,.55vw,8px);
  translate:-50% 0;
  border-radius:50%;
  background:radial-gradient(circle at 36% 34%,#2a2214 0 16%,#0d0c0a 28%,#0d0c0a 72%);
  box-shadow:0 0 0 1px rgba(212,169,79,0.28),0 0 5px rgba(212,169,79,0.25);
}
.office-tablet-home{
  position:absolute;
  z-index:5;
  top:50%;
  right:clamp(4px,.55vw,7px);
  width:3px;
  height:12%;
  translate:0 -50%;
  border-radius:999px;
  background:rgba(215,217,220,.38);
}
.office-tablet .office-screen{
  position:absolute;
  z-index:3;
  inset:clamp(11px,1.55vw,18px);
  width:auto;
  height:auto;
  padding:0 3.2% 3.4%;
  overflow:hidden;
  border:1px solid rgba(80,71,54,.5);
  border-radius:clamp(10px,1.35vw,20px);
  background:linear-gradient(168deg,#17150f 0%,#0d0c0a 55%,#050403 100%);
  box-shadow:inset 0 0 34px rgba(0,0,0,.62),0 0 0 1px #000;
}
.office-status-bar{
  position:absolute;
  z-index:35;
  top:8px;
  right:11px;
  display:grid;
  place-items:center;
  width:42px;
  height:27px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:9px;
  background:rgba(13,12,10,0.62);
  color:rgba(251,247,239,0.92);
  pointer-events:none;
  backdrop-filter:blur(8px);
}
.office-battery{display:block;width:30px;height:20px;overflow:visible;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.6}
.office-battery .office-battery-level{fill:#43e578;stroke:none;filter:drop-shadow(0 0 4px rgba(67,229,120,.62))}
.office-battery .office-battery-segment{stroke:#137d37;stroke-width:.8;opacity:.72}
.office-screen-glow,.office-greeting,.office-dock{transition:opacity .2s ease}
.office-scroll-hint{
  position:absolute;
  left:50%;
  bottom:0;
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:8px 13px;
  border:1px solid rgba(212,169,79,.2);
  border-radius:999px;
  background:rgba(10,9,8,.76);
  color:#c7bfb0;
  font-size:.58rem;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
  translate:-50% 0;
  pointer-events:none;
  backdrop-filter:blur(10px);
  transition:opacity .2s ease,translate .2s ease;
}
.office-scroll-hint span{color:#c8a24f;font-size:.9rem}
.office-scroll-hint.is-hidden{opacity:0;translate:-50% 8px}
.office-view.is-tablet-raised .office-tablet{filter:drop-shadow(0 28px 34px rgba(0,0,0,.5))}

/* The dock root now has an explicit calculated width, so its absolutely
   positioned icons really are centred at the bottom of the live screen. */
.office-tablet .office-dock{
  position:relative;
  display:block;
  flex:0 0 auto;
  margin:0 auto;
  padding:0;
  border-radius:clamp(14px,2vw,22px);
  background:rgba(23,21,15,0.7);
}
.office-tablet .office-dock-app{bottom:var(--office-dock-pad,8px)}
.office-tablet .office-dock-tile{
  position:relative;
  overflow:hidden;
  color:#fbf7ef;
  background:linear-gradient(155deg,color-mix(in srgb,var(--dock-tone) 88%,#fff),color-mix(in srgb,var(--dock-tone) 58%,#0d0c0a));
  box-shadow:0 7px 16px rgba(0,0,0,.46),inset 0 1px 1px rgba(255,255,255,.48),inset 0 -1px 1px rgba(0,0,0,.3);
}
.office-tablet .office-dock-tile::after{
  content:"";
  position:absolute;
  inset:1px 2px 48%;
  border-radius:inherit;
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0));
  pointer-events:none;
}
.office-tablet .office-dock-tile svg{position:relative;z-index:2;width:56%;height:56%;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}
.office-icon-archive-lid,.office-icon-archive-handle{transition:transform .2s cubic-bezier(.2,.8,.2,1)}
.office-dock-app:hover .office-icon-archive-lid{transform:translateY(-1.5px)}
.office-dock-app:hover .office-icon-archive-handle{transform:translateY(2.5px)}
.office-icon-settings-gear{transform-box:fill-box;transform-origin:center}
.office-icon-settings-sparks{opacity:0}
.office-dock-app:hover .office-icon-settings-gear{animation:officeSettingsTurn .9s ease-in-out}
.office-dock-app:hover .office-icon-settings-sparks{animation:officeSettingsSpark .7s .16s ease-out}
.office-icon-calendar-dots circle{transform-box:fill-box;transform-origin:center}
.office-dock-app:hover .office-icon-calendar-dots circle{animation:officeCalendarDot .4s ease-in-out}
.office-dock-app:hover .office-icon-calendar-dots circle:nth-child(2){animation-delay:.1s}
.office-dock-app:hover .office-icon-calendar-dots circle:nth-child(3){animation-delay:.2s}
.office-dock-app:hover .office-icon-calendar-dots circle:nth-child(4){animation-delay:.3s}
.office-dock-app:hover .office-icon-calendar-dots circle:nth-child(5){animation-delay:.4s}
.office-dock-app:hover .office-icon-calendar-dots circle:nth-child(6){animation-delay:.5s}
.office-dock-app:hover .office-icon-email{animation:officeEmailLift .55s ease-in-out}
@keyframes officeSettingsTurn{0%,100%{transform:rotate(0) scale(1) translateY(0)}50%{transform:rotate(16deg) scale(1.06) translateY(-.8px)}}
@keyframes officeSettingsSpark{0%,100%{opacity:0}35%,72%{opacity:1}}
@keyframes officeCalendarDot{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.72)}}
@keyframes officeEmailLift{0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
.office-view.has-app-open .office-screen-glow,
.office-view.has-app-open .office-greeting,
.office-view.has-app-open .office-dock{opacity:0;pointer-events:none}

/* Existing account panels are temporarily moved into this live tablet shell.
   They retain their real controls and data; only their viewport changes. */
.office-app-shell{
  position:absolute;
  z-index:20;
  inset:0;
  display:grid;
  grid-template-rows:44px minmax(0,1fr);
  overflow:hidden;
  border-radius:inherit;
  background:linear-gradient(155deg,#17150f,#0d0c0a 58%,#050403);
}
.office-app-shell.hidden{display:none}
.office-app-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:7px 66px 7px 9px;
  border-bottom:1px solid rgba(212,169,79,.16);
  background:rgba(10,9,8,.96);
}
.office-app-toolbar button{
  min-height:29px;
  padding:5px 10px;
  border:1px solid rgba(212,169,79,.28);
  border-radius:8px;
  background:rgba(212,169,79,.1);
  color:#f0d79b;
  font:inherit;
  font-size:.52rem;
  font-weight:900;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.office-app-toolbar button:hover,
.office-app-toolbar button:focus-visible{border-color:rgba(212,169,79,.55);background:rgba(212,169,79,.18);color:#fbf7ef;outline:none}
.office-app-toolbar strong{overflow:hidden;color:#fbf7ef;font-family:var(--display);font-size:.77rem;letter-spacing:.035em;text-overflow:ellipsis;white-space:nowrap}
/* Tablet pages (Inventory/Objectives/Mail/Calendar/Legacy/Settings) are the
   same #profileInventoryPanel/#profileObjectivesPanel/etc. markup used by
   the standalone Squad dashboard — reached elsewhere via the account menu —
   so their component classes (.inventory-pack, .engagement-*, .achievement-*,
   .settings-*, ...) are shared, global, and still on the legacy indigo/cyan
   token set. Recolouring those classes directly would also repaint that
   other, unaudited surface. Most of their colour, however, is read from the
   shared --muted/--text/--accent-cyan/--line/--surface-* custom properties,
   which cascade to descendants — so redeclaring just those tokens here,
   scoped to .office-app-scroll, retints everything within the tablet that
   already deferred to the design system's own variables, without touching
   the classes' declarations or anything outside the tablet. Remaining
   hardcoded (non-variable) colours on specific tablet components are then
   fixed individually below. */
.office-app-scroll{
  --muted:#d9d1c2;
  --faint:#635c50;
  --text:#fbf7ef;
  --accent:#d4a94f;
  --accent-cyan:#d4a94f;
  --accent-hot:#d4a94f;
  --accent-pink:#d4a94f;
  --line:rgba(212,169,79,.18);
  --line-strong:rgba(212,169,79,.42);
  --surface:rgba(23,21,15,.85);
  --surface-solid:#17150f;
  --surface-deep:#0d0c0a;
  --surface-raised:#1a1713;
  --panel-glass:rgba(20,18,14,.78);
  --body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  min-width:0;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  padding:10px;
  cursor:grab;
  touch-action:pan-y;
  scrollbar-color:rgba(192,143,52,.72) #080603;
  scrollbar-width:thin;
}
.office-app-scroll.is-dragging{cursor:grabbing;user-select:none}
.office-app-scroll :is(iframe,[contenteditable]){cursor:auto}
.office-app-scroll :is(button,a,select,label,summary){cursor:pointer}
.office-app-scroll :is(input:not([type=file]):not([type=checkbox]):not([type=radio]),textarea){cursor:text}
.office-app-scroll :is(input[type=file],input[type=checkbox],input[type=radio],input[type=range]){cursor:pointer}
.office-app-scroll>.office-embedded-panel{
  display:block!important;
  grid-column:auto;
  width:100%;
  min-height:100%;
  margin:0;
  padding:0;
}
.office-app-scroll .section-frame{margin:0}
.office-app-scroll .goat-management-page,.office-app-scroll .inventory-section,.office-app-scroll .engagement-section,.office-app-scroll .club-calendar-section,.office-app-scroll .achievement-section,.office-app-scroll .settings-section{min-height:100%}
.office-app-loading,.office-app-error{display:grid;place-items:center;align-content:center;gap:7px;min-height:100%;padding:30px;color:rgba(251,247,239,0.7);font-size:.66rem;text-align:center}
.office-app-error strong{color:#fff;font-family:var(--display);font-size:1rem}
.office-app-error span{color:#ff9cab}

/* Mail is an app on the tablet: it occupies the exact live display rather than
   opening a second floating window over the Office. */
.mail-modal.is-office-mail{
  position:absolute;
  z-index:20;
  inset:0;
  display:grid;
  place-items:stretch;
  padding:0;
  overflow:hidden;
  border-radius:inherit;
}
.mail-modal.is-office-mail.hidden{display:none}
.is-office-mail .mail-modal-backdrop{display:none}
.is-office-mail .mail-modal-card{
  width:100%;
  height:100%;
  overflow:hidden;
  border:0;
  border-radius:inherit;
  background:#0d0c0a;
  box-shadow:none;
}
.is-office-mail .mail-modal-header{
  position:absolute;
  z-index:8;
  top:7px;
  right:62px;
  padding:0;
  border:0;
}
.is-office-mail .mail-modal-header>div{display:none}
.is-office-mail .mail-modal-close{width:28px;height:28px;border-radius:8px;background:rgba(13,12,10,0.88);font-size:1rem}
.is-office-mail .mail-modal-body{grid-template-columns:clamp(116px,18%,164px) minmax(0,1fr);height:100%;background:#0d0c0a}
.is-office-mail .mail-tabs{
  position:relative;
  gap:4px;
  padding:54px 10px 12px;
  border-color:rgba(255,255,255,.11);
  background:#0d0c0a;
}
.is-office-mail .mail-tabs::before{
  content:"CLUB MAIL";
  position:absolute;
  top:20px;
  left:15px;
  color:#fff;
  font-family:var(--display);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
}
.is-office-mail .mail-tabs button{min-height:38px;padding:8px 10px;border-radius:7px;font-size:.59rem}
.is-office-mail .mail-view{background:#0d0c0a}
.is-office-mail .mail-two-pane{grid-template-columns:minmax(215px,35%) minmax(0,1fr);background:#0d0c0a}
.is-office-mail .mail-conversation-pane{background:#0d0c0a;border-color:rgba(255,255,255,.12)}
.is-office-mail .mail-conversation-pane .mail-folder-toolbar{min-height:63px;padding:10px 12px 8px}
.is-office-mail .mail-conversation-pane .mail-folder-toolbar h3{font-size:.9rem}
.is-office-mail .mail-search{margin:8px 10px}
.is-office-mail .mail-search input{height:35px}
.is-office-mail .mail-conversation-scroll{padding:0 5px 8px}
.is-office-mail .mail-thread{grid-template-columns:38px minmax(0,1fr);gap:8px;padding:9px 8px;border-radius:7px}
.is-office-mail .mail-thread .mail-avatar{width:38px;height:38px}
.is-office-mail .mail-thread-copy>p{-webkit-line-clamp:1}
.is-office-mail .mail-reading-pane{padding:14px 16px;background:#0d0c0a}
.is-office-mail .mail-message-detail{gap:10px!important}
.is-office-mail .mail-message-detail>header{gap:9px!important;padding-bottom:10px}
.is-office-mail .mail-detail-correspondent{grid-template-columns:40px minmax(0,1fr) auto;gap:9px}
.is-office-mail .mail-detail-correspondent .mail-avatar{width:40px;height:40px}
.is-office-mail .mail-message-detail .mail-detail-subject-row h3{font-size:1.15rem}
.is-office-mail .mail-message-detail-body{min-height:110px!important;padding:12px!important;font-size:.62rem;line-height:1.6}
.is-office-mail .mail-message-detail>footer{padding-top:9px}
.is-office-mail .mail-detail-actions button{min-width:68px;min-height:33px;padding:6px 9px}
.mail-reading-empty>.mail-reading-empty-icon{width:64px;height:64px;margin-bottom:13px;color:rgba(229,195,119,0.62);filter:drop-shadow(0 0 12px rgba(76,57,21,0.14))}

.mail-avatar{position:relative;overflow:hidden}
.mail-avatar>b{position:relative;z-index:1;color:inherit;font:inherit}
.mail-avatar>img{
  position:absolute;
  z-index:2;
  inset:3px;
  width:calc(100% - 6px);
  height:calc(100% - 6px);
  border-radius:50%;
  object-fit:contain;
  background:rgba(4,10,26,.9);
}

@media(max-width:780px){
  .brand-mark,.brand-mark[data-logo-tilt]{width:50px!important;height:50px!important}
  #heroLeaderCard .leader-card-face>.goat-cloth-surface{padding:22px 22px 42px}
  .office-device-stage{top:25vh;bottom:3vh}
  .office-tablet{width:min(94vw,calc(70vh * 1.62))}
  .office-scroll-hint{font-size:.48rem}
  .office-app-shell{grid-template-rows:38px minmax(0,1fr)}
  .office-app-toolbar{padding:5px 57px 5px 6px}
  .office-app-toolbar button{min-height:27px;padding:4px 7px;font-size:.46rem}
  .office-app-toolbar strong{font-size:.65rem}
  .office-app-scroll{padding:6px}
  .office-status-bar{top:5px;right:6px;width:38px;height:25px}
  .is-office-mail .mail-modal-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .is-office-mail .mail-tabs{flex-direction:row;padding:8px 42px 8px 8px;overflow-x:auto}
  .is-office-mail .mail-tabs::before{display:none}
  .is-office-mail .mail-tabs button{min-width:max-content;min-height:34px}
  .is-office-mail .mail-two-pane{grid-template-columns:1fr}
}

@media(prefers-reduced-motion:reduce){
  .brand-mark,.brand-mark[data-logo-tilt]{transform:none;transition:filter .2s ease}
  #heroLeaderCard .leader-card-face>.goat-cloth-surface{filter:none}
  .office-tablet{transition:opacity .2s ease;transform:translateX(var(--office-tablet-x)) translateY(0) rotateX(0) scale(1)}
  .office-dock-app:hover :is(.office-icon-settings-gear,.office-icon-settings-sparks,.office-icon-calendar-dots circle,.office-icon-email){animation:none}
}

/* ===================== office chrome, headers and controls =============== */

/* The office is a place, not a panel: while you are in it the site header has
   no business being on screen. Only the Back control remains. */
body.office-open .site-header{display:none!important}
body.office-open .site-footer{display:none!important}

/* The last club pages that still restated their own name above their content.
   Same treatment as the rest — the trail already says where you are. */
.profile-tab-panel .settings-command-hero,
.profile-tab-panel .legacy-command-hero,
.directory-view .directory-header > div:first-child{
  display:none!important;
}
/* With its copy gone the database header is just the search box. */
.directory-view .directory-header{justify-content:flex-end}

/* Main calendar: the venue column sat flush against the date column, so the
   two read as one block of text. */


/* Buttons that did not look pressable. File inputs in particular showed a text
   caret, which reads as "type here" rather than "click me". */
.settings-section button,
.settings-section label.file-button,
.settings-section input[type="file"],
.settings-section input[type="file"]::file-selector-button,
.secondary-button,
.ghost-button{
  cursor:pointer;
}
.settings-section button:not(:disabled):hover,
.secondary-button:not(:disabled):hover,
.ghost-button:not(:disabled):hover{
  border-color:var(--accent-cyan);
  background:rgba(76,57,21,0.12);
  translate:0 -1px;
}
.settings-section button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.ghost-button:not(:disabled):active{
  translate:0 1px;
}
.settings-section button,
.secondary-button,
.ghost-button{
  transition:background .2s ease,border-color .2s ease,translate .12s ease;
}
.settings-section input[type="file"]::file-selector-button{
  border:1px solid rgba(212,169,79,0.28);
  border-radius:8px;
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:8px 14px;
  margin-right:12px;
  transition:background .2s ease,border-color .2s ease;
}
.settings-section input[type="file"]::file-selector-button:hover{
  border-color:var(--accent-cyan);
  background:rgba(76,57,21,0.12);
}

/* ======================= the G.O.A.T cloth banner ======================== */
/* One piece of fabric where the flip card used to be. The canvas overhangs the
   banner on every side so a fold that swings past the edge is not clipped. */
.goat-cloth-banner{
  position:relative;
  width:min(340px,100%);
  height:470px;
  margin:0 auto;
  isolation:isolate;
}
.goat-cloth-output{
  position:absolute;
  z-index:2;
  display:block;
}
/* Shown until the simulation mounts, and kept as the whole banner where WebGL2
   is unavailable — the same three things, just not moving. */
.goat-cloth-fallback{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:24px;
  text-align:center;
}
/* Only the no-WebGL2 case gets a backing panel. With the cloth live there must
   be nothing behind it, or the fabric looks like a card with a dark face. */
.goat-cloth-banner.is-unsupported .goat-cloth-fallback{
  border-radius:14px;
  background:linear-gradient(168deg,rgba(13,12,10,0.72),rgba(13,12,10,0.72));
}
.goat-cloth-fallback .goat-crest-logo{width:min(30%,120px);height:auto}
.goat-cloth-fallback span{
  color:var(--accent-cyan);
  font-family:var(--body);
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.22em;
}
.goat-cloth-fallback strong{
  color:#fff;
  font-family:var(--display);
  font-size:clamp(1.3rem,3vw,2rem);
  line-height:1.05;
}
/* Once the fabric is live the flat version underneath is redundant. */
.goat-cloth-banner.is-live .goat-cloth-fallback{display:none}

@media (max-width:620px){
  .goat-cloth-banner{height:400px}
}

/* ==================== tablet app layout corrections ====================== */

/* "Choose file" is a <label> styled as a button. Labels carry a text cursor by
   default, which read as a field to type into rather than a control. */
.file-picker-button{
  cursor:pointer!important;
  transition:background .2s ease,border-color .2s ease,translate .12s ease;
}
.file-picker-button:hover{
  border-color:var(--accent-cyan);
  background:rgba(76,57,21,0.12);
  translate:0 -1px;
}
.file-picker-button:active{translate:0 1px}

/* Each club page keeps padding that made room for the heading now hidden on
   the tablet, which is the gap at the top of Objectives, the Calendar and the
   rest. The panels start at their content instead. */
.office-app-scroll .section-frame,
.office-app-scroll .engagement-section,
.office-app-scroll .club-calendar-section,
.office-app-scroll .achievement-section,
.office-app-scroll .settings-section,
.office-app-scroll .inventory-section,
.office-app-scroll .goat-management-page{
  padding-top:6px!important;
}
.office-app-scroll .collection-heading,
.office-app-scroll .section-heading{padding-top:0!important;margin-top:0!important}
.office-app-scroll .section-number{display:none!important}

/* On the tablet the pages sit inside the device, which is already a frame.
   A second framed panel around every group of windows is one layer too many. */
.office-app-scroll .section-frame,
.office-app-scroll .goat-calendar-modern .section-frame,
.office-app-scroll .club-calendar-section.section-frame{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
  backdrop-filter:none!important;
}
.office-app-scroll .section-frame::before{content:none!important}

/* The calendar's next match was laid out for a full-width page and had to
   squeeze both halves into the tablet. It stacks instead. */
.office-app-scroll .goat-calendar-next-match-shell{
  grid-template-columns:1fr!important;
  gap:10px!important;
}
.office-app-scroll .goat-calendar-next-venue{padding-left:0!important}
.office-app-scroll .goat-calendar-overview-grid{gap:10px!important}

/* Inventory fits the display rather than scrolling: the pack grid is the only
   part that needs the room, so the surrounding chrome gives it up. */
.office-app-scroll .inventory-section{
  display:flex!important;
  flex-direction:column;
  gap:8px!important;
}
.office-app-scroll .inventory-pack-grid{
  grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  gap:8px!important;
}
.office-app-scroll .inventory-pack-grid > *{min-height:0!important}
.office-app-scroll .inventory-help,
.office-app-scroll .inventory-twitch-chat{margin:0!important}
.office-app-scroll .inventory-section .collection-heading p{display:none!important}

/* Mail (tablet only, via .is-office-mail): the inbox/sent/compose
   views hardcode a navy-and-cyan palette throughout, none of it through
   shared vars, so every surface needs its own override here. Pending/
   accepted/declined/cancelled friendly-invite chips keep their semantic
   amber/green/red — only the chrome around them moves to gold/espresso. */
.mail-modal.is-office-mail .mail-modal-close{
  border-color:rgba(212,169,79,.28)!important;
  color:#e5c377!important;
}
.mail-modal.is-office-mail .mail-tabs{border-right-color:rgba(212,169,79,.16)!important}
.mail-modal.is-office-mail .mail-tabs button{color:#d9d1c2}
.mail-modal.is-office-mail .mail-tabs button b{background:rgba(212,169,79,.14);color:#e5c377}
.mail-modal.is-office-mail .mail-tabs button:hover,
.mail-modal.is-office-mail .mail-tabs button.is-active{
  border-color:rgba(212,169,79,.4);
  background:linear-gradient(135deg,rgba(212,169,79,.22),rgba(60,50,26,.32));
  color:#fbf7ef;
}
.mail-modal.is-office-mail .mail-message{
  border-color:rgba(212,169,79,.16);
  background:linear-gradient(145deg,rgba(23,21,15,.8),rgba(11,10,8,.85));
}
.mail-modal.is-office-mail .mail-message header span{color:#e5c377}
.mail-modal.is-office-mail .mail-message time,
.mail-modal.is-office-mail .mail-message footer small{color:#d9d1c2}
.mail-modal.is-office-mail .mail-empty,
.mail-modal.is-office-mail .mail-error{color:#d9d1c2}
.mail-modal.is-office-mail .mail-folder-toolbar{border-color:rgba(212,169,79,.16)}
.mail-modal.is-office-mail .mail-folder-toolbar span{color:#e5c377}
.mail-modal.is-office-mail .mail-compose header p{color:#d9d1c2}
.mail-modal.is-office-mail .mail-compose-actions button{
  border-color:rgba(212,169,79,.4);
  background:rgba(212,169,79,.14);
  color:#f0d79b;
}
.mail-modal.is-office-mail .mail-compose-actions button:hover{
  background:rgba(212,169,79,.22);
  color:#fbf7ef;
}
.mail-modal.is-office-mail .mail-compose-actions button:last-child{
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%);
  border-color:transparent;
  color:#1a1207;
}
.mail-modal.is-office-mail .mail-compose label{color:#d9d1c2}
.mail-modal.is-office-mail .mail-compose label input,
.mail-modal.is-office-mail .mail-compose label select,
.mail-modal.is-office-mail .mail-compose label textarea{
  border-color:rgba(212,169,79,.22);
  background:#0d0c0a;
  color:#fbf7ef;
}
.mail-modal.is-office-mail .mail-compose label input:focus,
.mail-modal.is-office-mail .mail-compose label select:focus,
.mail-modal.is-office-mail .mail-compose label textarea:focus{
  border-color:rgba(212,169,79,.6);
  box-shadow:0 0 0 2px rgba(212,169,79,.12);
}
.mail-modal.is-office-mail .mail-form-message{color:#e5c377}
.mail-modal.is-office-mail .mail-recipient-suggestions{
  border-color:rgba(212,169,79,.32);
  background:linear-gradient(145deg,#17150f,#0d0c0a);
}
.mail-modal.is-office-mail .mail-message-actions button,
.mail-modal.is-office-mail .mail-detail-actions button,
.mail-modal.is-office-mail .mail-detail-back{
  border-color:rgba(212,169,79,.32);
  background:rgba(212,169,79,.12);
  color:#f0d79b;
}
.mail-modal.is-office-mail .mail-two-pane{background:linear-gradient(145deg,rgba(23,21,15,.4),rgba(11,10,8,.25))}
.mail-modal.is-office-mail .mail-conversation-pane{
  border-right-color:rgba(212,169,79,.14);
  background:rgba(13,12,10,.5);
}
.mail-modal.is-office-mail .mail-search{
  border-color:rgba(212,169,79,.2);
  background:rgba(10,9,8,.9);
}
.mail-modal.is-office-mail .mail-search:focus-within{
  border-color:rgba(212,169,79,.55);
  box-shadow:0 0 0 3px rgba(212,169,79,.1);
}
.mail-modal.is-office-mail .mail-search-icon{border-color:rgba(212,169,79,.5)}
.mail-modal.is-office-mail .mail-search-icon::after{background:rgba(212,169,79,.5)}
.mail-modal.is-office-mail .mail-search input::placeholder{color:#635c50}
.mail-modal.is-office-mail .mail-search small{color:#d9d1c2}
.mail-modal.is-office-mail .mail-thread:hover,
.mail-modal.is-office-mail .mail-thread:focus-visible{
  border-color:rgba(212,169,79,.28);
  background:rgba(23,21,15,.6);
}
.mail-modal.is-office-mail .mail-thread.is-selected{
  border-color:rgba(212,169,79,.45);
  background:linear-gradient(135deg,rgba(60,50,26,.55),rgba(23,21,15,.6));
  box-shadow:inset 3px 0 #d4a94f;
}
.mail-modal.is-office-mail .mail-thread.is-unread{background:rgba(30,26,17,.55)}
.mail-modal.is-office-mail .mail-thread.is-unread.is-selected{background:linear-gradient(135deg,rgba(66,55,28,.65),rgba(23,21,15,.65))}
.mail-modal.is-office-mail .mail-avatar{
  border-color:rgba(212,169,79,.34);
  background:linear-gradient(145deg,rgba(60,50,26,.9),rgba(23,21,15,.95));
  color:#f7e7bd;
}
.mail-modal.is-office-mail .mail-avatar.is-official{
  border-color:rgba(212,169,79,.55);
  background:linear-gradient(145deg,rgba(212,169,79,.4),rgba(60,50,26,.9));
  box-shadow:0 0 18px rgba(212,169,79,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.mail-modal.is-office-mail .mail-thread-copy time{color:#d9d1c2}
.mail-modal.is-office-mail .mail-thread-copy>b{color:#d9d1c2}
.mail-modal.is-office-mail .mail-thread.is-unread .mail-thread-copy>b{color:#f0d79b}
.mail-modal.is-office-mail .mail-thread-copy>p{color:#d9d1c2}
.mail-modal.is-office-mail .mail-thread-copy footer small{color:#c8a24f}
.mail-modal.is-office-mail .mail-thread-mark-read{
  border-color:rgba(212,169,79,.3);
  background:rgba(23,21,15,.9);
  color:#e5c377;
}
.mail-modal.is-office-mail .mail-thread-mark-read:hover,
.mail-modal.is-office-mail .mail-thread-mark-read:focus-visible{border-color:#f0d79b;background:rgba(40,34,20,.96)}
.mail-modal.is-office-mail .mail-unread-dot{background:#d4a94f;box-shadow:0 0 9px rgba(212,169,79,.6)}
.mail-modal.is-office-mail .mail-reading-pane{background:radial-gradient(circle at 88% 0,rgba(212,169,79,.06),transparent 36%)}
.mail-modal.is-office-mail .mail-reading-empty{color:#d9d1c2}
.mail-modal.is-office-mail .mail-reading-empty>span{
  border-color:rgba(212,169,79,.28);
  background:rgba(23,21,15,.5);
}
.mail-modal.is-office-mail .mail-reading-empty>span::after{
  border-right-color:rgba(212,169,79,.5);
  border-bottom-color:rgba(212,169,79,.5);
}
.mail-modal.is-office-mail .mail-reading-empty strong{color:#d9d1c2}
.mail-modal.is-office-mail .mail-reading-empty>.mail-reading-empty-icon{color:rgba(212,169,79,.55);filter:drop-shadow(0 0 12px rgba(212,169,79,.14))}
.mail-modal.is-office-mail .mail-message-detail{
  border-color:rgba(212,169,79,.2);
  background:linear-gradient(145deg,rgba(23,21,15,.85),rgba(11,10,8,.9));
}
.mail-modal.is-office-mail .mail-message-detail>header>span,
.mail-modal.is-office-mail .mail-detail-topline>span{color:#e5c377}
.mail-modal.is-office-mail .mail-message-detail time,
.mail-modal.is-office-mail .mail-detail-topline time,
.mail-modal.is-office-mail .mail-message-detail>footer>small{color:#d9d1c2}
.mail-modal.is-office-mail .mail-message-detail-body{
  border-color:rgba(212,169,79,.14);
  background:rgba(10,9,8,.55);
  color:#d9d1c2;
}
.mail-modal.is-office-mail .mail-message-detail>footer{border-top-color:rgba(212,169,79,.16)}
.mail-modal.is-office-mail .mail-compose header>span{color:#e5c377}
.mail-modal.is-office-mail .mail-emoji-picker{
  border-color:rgba(212,169,79,.2);
  background:rgba(13,12,10,.7);
}
.mail-modal.is-office-mail .mail-emoji-picker>span{color:#d9d1c2}
.mail-modal.is-office-mail .mail-emoji-picker button{
  border-color:rgba(212,169,79,.16);
  background:rgba(23,21,15,.75);
}
.mail-modal.is-office-mail .mail-emoji-picker button:hover,
.mail-modal.is-office-mail .mail-emoji-picker button:focus-visible{
  border-color:rgba(212,169,79,.5);
  background:rgba(60,50,26,.6);
}

/* Calendar: the month board/side panel used the same navy-indigo shell as
   Objectives/Mail, plus a cyan "League"/purple "Cup" event-type theme.
   League keeps design.md's own sanctioned info-blue, Cup moves to a warm
   bronze (still distinguishable from gold), Friendly keeps the sanctioned
   success green — none of the three is a leftover cyan/violet. */
.office-app-scroll .goat-calendar-board-shell,
.office-app-scroll .goat-calendar-side-panel,
.office-app-scroll .goat-calendar-support-row{
  border-color:rgba(212,169,79,.16);
  background:linear-gradient(180deg,rgba(23,21,15,.92),rgba(11,10,8,.9));
}
.office-app-scroll .goat-calendar-month-nav button,
.office-app-scroll .goat-calendar-view-toggle button{
  border-color:rgba(212,169,79,.18);
  background:rgba(212,169,79,.05);
}
.office-app-scroll .goat-calendar-month-nav button:hover:not(:disabled),
.office-app-scroll .goat-calendar-view-toggle button:hover,
.office-app-scroll .goat-calendar-view-toggle button.is-active{
  border-color:rgba(212,169,79,.5);
  background:rgba(212,169,79,.16);
}
.office-app-scroll .goat-calendar-day-cell:hover,
.office-app-scroll .goat-calendar-day-cell.is-selected{
  border-color:rgba(212,169,79,.5);
  background:rgba(212,169,79,.07);
}
.office-app-scroll .goat-calendar-day-cell.is-next{box-shadow:inset 0 0 0 1px rgba(212,169,79,.25)}
.office-app-scroll .goat-calendar-legend i.is-league{background:#4c3915;box-shadow:0 0 0 3px rgba(212,169,79,0.14)}
.office-app-scroll .goat-calendar-legend i.is-cup{background:#c9873f;box-shadow:0 0 0 3px rgba(201,135,63,.14)}
.office-app-scroll .goat-calendar-legend i.is-friendly{background:#5fa06d;box-shadow:0 0 0 3px rgba(95,160,109,.14)}
.office-app-scroll .goat-calendar-day-chip.is-league{background:rgba(76,57,21,0.14);color:#d9d1c2}
.office-app-scroll .goat-calendar-upcoming-item:hover,
.office-app-scroll .goat-calendar-upcoming-item.is-selected{
  border-color:rgba(212,169,79,.45);
  background:rgba(212,169,79,.07);
}
.office-app-scroll .goat-calendar-upcoming-date{background:rgba(212,169,79,.08)}
.office-app-scroll .goat-calendar-upcoming-item.is-registration .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-event .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-start .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-finish .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-offseason .goat-calendar-upcoming-date{background:rgba(212,169,79,.12)}
.office-app-scroll .goat-calendar-day-cell.has-cup{
  background:linear-gradient(180deg,rgba(74,52,24,.7),rgba(28,22,14,.94));
  border-color:rgba(201,135,63,.3);
}
.office-app-scroll .goat-calendar-day-cell.has-cup.is-selected{box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 0 0 1px rgba(201,135,63,.3)}
.office-app-scroll .goat-calendar-day-entry.is-cup b,
.office-app-scroll .goat-calendar-upcoming-item.is-cup b,
.office-app-scroll .goat-calendar-detail-event.is-cup strong{color:#e0ab6c}
.office-app-scroll .goat-calendar-upcoming-item.is-cup{
  background:linear-gradient(180deg,rgba(62,45,24,.85),rgba(24,19,12,.96));
  border-color:rgba(201,135,63,.26);
}
.office-app-scroll .goat-calendar-upcoming-item.is-cup:hover,
.office-app-scroll .goat-calendar-upcoming-item.is-cup.is-selected{
  background:linear-gradient(180deg,rgba(78,57,28,.92),rgba(28,22,14,.98));
  border-color:rgba(224,171,108,.44);
}
.office-app-scroll .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-date{
  background:linear-gradient(180deg,rgba(30,24,14,.95),rgba(14,11,8,.99));
  border-color:rgba(201,135,63,.3);
}
.office-app-scroll .goat-calendar-upcoming-item.is-cup .goat-calendar-upcoming-date small{color:#e0ab6c}
.office-app-scroll .goat-calendar-upcoming-item.is-friendly{
  border-color:rgba(95,160,109,.3);
  background:linear-gradient(180deg,rgba(24,52,32,.65),rgba(14,26,18,.92));
}
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b{color:#8ecb9c}
.office-app-scroll .goat-calendar-day-today{
  color:#1a1207!important;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%)!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.office-app-scroll .goat-calendar-day-cell.is-today{
  border-color:rgba(212,169,79,.85)!important;
  box-shadow:inset 0 0 0 2px rgba(212,169,79,.5),0 0 22px rgba(212,169,79,.12)!important;
}
.office-app-scroll .goat-calendar-day-cell.is-today .goat-calendar-day-today{color:#1a1207!important}
.office-app-scroll .goat-calendar-day-cell.is-today .goat-calendar-day-head strong{color:#fbf7ef!important}

/* Legacy: milestone/badge containers used the same navy shell as everywhere
   else. Per-badge --badge-color (bronze/silver/gold achievement tiers) and
   the milestone claim button are already semantic gold/amber and are left
   alone; the surrounding navy chrome moves to espresso. */
.office-app-scroll .legacy-content-shell{
  border-color:rgba(212,169,79,.18)!important;
  background:radial-gradient(circle at 92% 0%,rgba(212,169,79,.08),transparent 31%),linear-gradient(155deg,rgba(23,21,15,.94),rgba(11,10,8,.94))!important;
}
.office-app-scroll #profileLegacyPanel .milestone-card{
  border-color:rgba(212,169,79,.16)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.8),rgba(11,10,8,.92))!important;
}
.office-app-scroll #profileLegacyPanel .milestone-target{color:#e5c377!important}
.office-app-scroll #profileLegacyPanel .achievement-badge{
  border-color:rgba(212,169,79,.14)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.78),rgba(11,10,8,.92))!important;
}
.office-app-scroll .milestone-card.complete{
  border-color:rgba(212,169,79,.55)!important;
  background:linear-gradient(145deg,rgba(212,169,79,.1),rgba(11,10,8,.9))!important;
}
.office-app-scroll .milestone-card small,
.office-app-scroll .milestone-card>b{color:#d9d1c2!important}
.office-app-scroll .milestone-card .mission-progress{background:rgba(212,169,79,.1)!important}
.office-app-scroll .milestone-card .mission-progress span{
  background:linear-gradient(90deg,#9c7128,#d4a94f)!important;
  box-shadow:0 0 12px rgba(212,169,79,.35)!important;
}
/* --badge-color falls back to rarityColours' default #91a2ff (leftover
   indigo) for any achievement whose tier isn't a card-rarity name — which is
   most of them ("First Pack", "Founding Viewer", etc. aren't rarities).
   Force it gold; the unlocked/locked state is already carried by the
   checkmark and the greyscale filter, not by this tint. */
.office-app-scroll #profileLegacyPanel .achievement-badge{--badge-color:#d4a94f!important}

/* Settings: same navy admin-panel shell as Legacy. The danger zone (Close
   Account) is handled separately below with a muted premium-red treatment
   instead of gold, since it's a genuine destructive-action warning. */
.office-app-scroll #profileSettingsPanel .settings-grid article{
  border-color:rgba(212,169,79,.16)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.8),rgba(11,10,8,.92))!important;
}
.office-app-scroll #profileSettingsPanel .settings-grid article::before{
  background:#d4a94f!important;
  box-shadow:0 0 18px rgba(212,169,79,.35)!important;
}
.office-app-scroll #profileSettingsPanel .settings-grid span{color:#e5c377!important}
.office-app-scroll #profileSettingsPanel .settings-grid small{color:#d9d1c2!important}
.office-app-scroll #profileSettingsPanel .settings-editor input,
.office-app-scroll #profileSettingsPanel .settings-editor select{
  border-color:rgba(212,169,79,.2)!important;
  background:rgba(10,9,8,.9)!important;
}
.office-app-scroll #profileSettingsPanel .settings-editor input:focus,
.office-app-scroll #profileSettingsPanel .settings-editor select:focus{
  border-color:rgba(212,169,79,.6)!important;
  box-shadow:0 0 0 3px rgba(212,169,79,.1)!important;
}
.office-app-scroll #profileSettingsPanel .settings-editor button:not([data-disconnect-discord]),
.office-app-scroll #profileSettingsPanel .settings-link-button,
.office-app-scroll #profileSettingsPanel .file-picker-button{
  border-color:rgba(212,169,79,.32)!important;
  background:rgba(212,169,79,.12)!important;
  color:#f0d79b!important;
}
/* Home Location: labels, the locked-country display, the city search
   results dropdown, and "Leave blank to use <b>Canberra</b>" all hardcoded
   the same blue/cyan family independently of the rest of Settings. */
.office-app-scroll #profileSettingsPanel .home-location-setting form>label>small{color:#d9d1c2!important}
.office-app-scroll #profileSettingsPanel .home-location-setting.is-locked b{color:#f0d79b!important}
.office-app-scroll #profileSettingsPanel .location-city-results{
  border-color:rgba(212,169,79,.24)!important;
  background:linear-gradient(145deg,#17150f,#0d0c0a)!important;
}
.office-app-scroll #profileSettingsPanel .location-city-results button{color:#d9d1c2!important}
.office-app-scroll #profileSettingsPanel .location-city-results button:hover,
.office-app-scroll #profileSettingsPanel .location-city-results button:focus-visible{background:rgba(212,169,79,.12)!important}
.office-app-scroll #profileSettingsPanel .location-capital-help{color:#d9d1c2!important}
.office-app-scroll #profileSettingsPanel .location-capital-help b{color:#f0d79b!important}
/* The location-confirm modal reuses .close-account-modal's neutral fixed/
   backdrop layout but is its own card — this is a routine confirmation, not
   a destructive warning, so it gets the standard gold treatment rather than
   the muted-danger one used for Close Account. */
.location-confirm-card{
  border-color:rgba(212,169,79,.28)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.97),rgba(11,10,8,.99))!important;
}
.location-confirm-card .eyebrow{color:#e5c377!important}
.location-confirm-detail{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(212,169,79,.06)!important;
}
.office-app-scroll #profileSettingsPanel .settings-danger-zone{
  border-color:rgba(180,67,47,.34)!important;
  background:linear-gradient(145deg,rgba(45,22,18,.5),rgba(20,12,10,.85))!important;
}
.office-app-scroll #profileSettingsPanel .settings-danger-zone::before{
  background:#b4432f!important;
  box-shadow:0 0 18px rgba(180,67,47,.4)!important;
}
.office-app-scroll #profileSettingsPanel .settings-danger-zone > strong{color:#e0a08f!important}

/* Close Account (Settings danger zone) — muted premium red instead of a
   bright generic red, reused wherever it's reached (tablet or account menu):
   design.md's own danger token (#b4432f) rather than the old bright pink. */
.settings-danger-zone{
  border-color:rgba(180,67,47,.34)!important;
  background:linear-gradient(145deg,rgba(45,22,18,.5),rgba(20,12,10,.85))!important;
}
.settings-danger-zone>strong{color:#e0a08f}
.danger-button{
  border-color:rgba(180,67,47,.5);
  background:rgba(60,24,20,.42);
  color:#e8a99a;
}
.danger-button:hover,
.danger-button:focus-visible{
  border-color:rgba(180,67,47,.8);
  background:rgba(80,32,26,.58);
  color:#f0c4b8;
}
.close-account-card{
  border-color:rgba(180,67,47,.32);
  background:linear-gradient(145deg,rgba(35,20,17,.97),rgba(11,10,8,.99));
}
.close-account-card label span{color:#e0a08f}
.close-account-card input{
  border-color:rgba(180,67,47,.3);
  background:rgba(10,9,8,.85);
}
.close-account-card input:focus{
  border-color:rgba(180,67,47,.7);
  box-shadow:0 0 0 3px rgba(180,67,47,.12);
}

/* Keep the tablet's shared secondary/primary buttons in the heritage family. */
.office-app-scroll .secondary-button,
.office-app-scroll .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 28px;
  clip-path: none;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease, border-color .2s ease, background .2s ease;
}
.office-app-scroll .secondary-button {
  font-weight: 600;
  color: #f0d79b;
  background: rgba(212,169,79,.06);
  border: 1px solid rgba(212,169,79,.22);
  border-radius: 6px;
}
.office-app-scroll .secondary-button:hover,
.office-app-scroll .secondary-button:focus-visible {
  border-color: rgba(212,169,79,.5);
  box-shadow: 0 0 12px rgba(212,169,79,.28);
  outline: none;
}
.office-app-scroll .primary-button {
  font-weight: 700;
  color: #1a1207;
  background: linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.45);
}
.office-app-scroll .primary-button:hover,
.office-app-scroll .primary-button:focus-visible {
  filter: brightness(1.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 0 rgba(0,0,0,.35), 0 0 26px rgba(212,169,79,.35);
  outline: none;
}
.office-app-scroll .secondary-button:active,
.office-app-scroll .primary-button:active { transform: scale(.985); }

/* Lineup: left panel (Registered Squad / Leadership & Set Pieces), the
   pitch-view toggle and the Save button all carried their own indigo/cyan
   treatment independent of .secondary-button (which the Reset/Hide/Show
   buttons already picked up from the World/Facilities fix above, since
   they're plain .secondary-button + an icon-layout class). Save gets the
   primary gold-gradient treatment as the page's one commit action; the
   pitch-card rarity gradients (Starter/Prime/Legend/GOAT) are the same
   card-identity system used everywhere else in the game and are
   deliberately left untouched, same as player-card artwork. */
.office-app-scroll .lineup-filters label>span{color:#d9d1c2!important}
.office-app-scroll .lineup-filters input,
.office-app-scroll .lineup-filters select{
  border-color:rgba(212,169,79,.2)!important;
  background:rgba(10,9,8,.85)!important;
  color:#fbf7ef!important;
}
.office-app-scroll .lineup-available-panel,
.office-app-scroll .lineup-roles-panel,
.office-app-scroll .lineup-bench-panel,
.office-app-scroll .lineup-public-roles-panel{
  border-color:rgba(212,169,79,.16)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.75),rgba(11,10,8,.8))!important;
}
.office-app-scroll .lineup-panel-summary strong,
.office-app-scroll .lineup-roles-summary-toggle strong{color:#fbf7ef!important}
.office-app-scroll .lineup-selection-hint{color:#d9d1c2!important}
.office-app-scroll .lineup-registered-content{border-top-color:rgba(212,169,79,.12)!important}
.office-app-scroll .lineup-view-toggle{
  border-color:rgba(212,169,79,.16)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.75),rgba(11,10,8,.8))!important;
}
.office-app-scroll .lineup-view-toggle>span{color:#d9d1c2!important}
.office-app-scroll .lineup-view-toggle button{
  color:#c7bfb0!important;
  background:rgba(255,255,255,.02)!important;
}
.office-app-scroll .lineup-view-toggle button:hover,
.office-app-scroll .lineup-view-toggle button:focus-visible{color:#fbf7ef!important;border-color:rgba(212,169,79,.4)!important}
.office-app-scroll .lineup-view-toggle button.active,
.office-app-scroll .lineup-view-toggle button[aria-pressed="true"]{
  color:#1a1207!important;
  border-color:transparent!important;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 14px rgba(212,169,79,.22)!important;
}

/* The "Premium Lineup page" block further down this file (search
   "#profileLineupPanel .lineup-view-toggle" etc.) re-declares most of the
   above with an #profileLineupPanel-scoped selector, which outranks the
   plain-class .office-app-scroll rules above on specificity — so every one
   of those needs its own #profileLineupPanel-scoped counterpart here too. */
.office-app-scroll #profileLineupPanel .lineup-view-toggle{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(11,10,8,.75)!important;
}
.office-app-scroll #profileLineupPanel .lineup-view-toggle>span{color:#d9d1c2!important}
.office-app-scroll #profileLineupPanel .lineup-view-toggle button{color:#c7bfb0!important}
.office-app-scroll #profileLineupPanel .lineup-view-toggle button.active,
.office-app-scroll #profileLineupPanel .lineup-view-toggle button[aria-pressed="true"]{
  color:#1a1207!important;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 14px rgba(212,169,79,.22)!important;
}
.office-app-scroll #profileLineupPanel .lineup-pitch{border-color:rgba(212,169,79,.22)!important}
.office-app-scroll #profileLineupPanel .lineup-slot.empty{
  border-color:rgba(212,169,79,.28)!important;
  background:rgba(10,9,8,.5)!important;
}
.office-app-scroll #profileLineupPanel .lineup-slot.empty:hover,
.office-app-scroll #profileLineupPanel .lineup-slot.empty:focus-visible{background:rgba(212,169,79,.12)!important}
.office-app-scroll #profileLineupPanel .lineup-slot .lineup-mini-card,
.office-app-scroll #profileLineupPanel .lineup-available-grid .lineup-mini-card,
.office-app-scroll #profileLineupPanel .lineup-player-list .lineup-mini-card{
  border-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.85),rgba(11,10,8,.9))!important;
}
.office-app-scroll #profileLineupPanel .lineup-card-copy small,
.office-app-scroll #profileLineupPanel .lineup-card-copy em,
.office-app-scroll #profileLineupPanel .lineup-bench-panel #lineupBenchCount{color:#d9d1c2!important}
.office-app-scroll #profileLineupPanel .lineup-owner-actions button,
.office-app-scroll #profileLineupPanel .lineup-control-actions button,
.office-app-scroll #profileLineupPanel .lineup-public-navigation button{
  border-color:rgba(212,169,79,.22)!important;
  color:#f0d79b!important;
  background:rgba(212,169,79,.08)!important;
}
.office-app-scroll #profileLineupPanel .lineup-owner-actions button:hover,
.office-app-scroll #profileLineupPanel .lineup-owner-actions button:focus-visible,
.office-app-scroll #profileLineupPanel .lineup-control-actions button:hover,
.office-app-scroll #profileLineupPanel .lineup-control-actions button:focus-visible,
.office-app-scroll #profileLineupPanel .lineup-public-navigation button:hover,
.office-app-scroll #profileLineupPanel .lineup-public-navigation button:focus-visible{
  color:#fbf7ef!important;
  border-color:rgba(212,169,79,.5)!important;
  background:rgba(212,169,79,.16)!important;
}
.office-app-scroll #profileLineupPanel .lineup-role-summary article{background:rgba(11,10,8,.55)!important}
.office-app-scroll #profileLineupPanel .lineup-slot-picker{
  border-color:rgba(212,169,79,.32)!important;
  background:linear-gradient(160deg,rgba(23,21,15,.98),rgba(8,7,6,.98))!important;
}
.office-app-scroll #profileLineupPanel .lineup-slot-picker-list>button{
  border-color:rgba(212,169,79,.14)!important;
  background:rgba(255,255,255,.02)!important;
}
.office-app-scroll #profileLineupPanel .lineup-slot-picker-list>button:hover,
.office-app-scroll #profileLineupPanel .lineup-slot-picker-list>button:focus-visible{background:rgba(212,169,79,.12)!important}
.office-app-scroll .lineup-side-heading>span{color:#e5c377!important}
.office-app-scroll .lineup-side-heading small{color:#d9d1c2!important}

/* Squad: filter console, view toggle and "Compare players" open-button. The
   comparison modal itself is a document.body-level fixed overlay (like
   Close Account / Mail), so it's fixed unscoped further below rather than
   under .office-app-scroll. --rarity-color (card border in the comparison
   panes) and the green "winner" stat highlight are the same card-identity/
   comparison-semantics system used everywhere else and are left alone. */
.office-app-scroll #profileSquadPanel .squad-filter-console{
  border-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.9),rgba(11,10,8,.85))!important;
}
.office-app-scroll #profileSquadPanel .squad-filter-console label span{color:#d9d1c2!important}
.office-app-scroll #profileSquadPanel .squad-filter-console input,
.office-app-scroll #profileSquadPanel .squad-filter-console select{
  border-color:rgba(212,169,79,.18)!important;
  color:#fbf7ef!important;
  background:rgba(10,9,8,.9)!important;
}
.office-app-scroll #profileSquadPanel .squad-age-range-inputs em{color:#635c50!important}
.office-app-scroll #profileSquadPanel .squad-filter-console input:hover,
.office-app-scroll #profileSquadPanel .squad-filter-console select:hover{border-color:rgba(212,169,79,.4)!important}
.office-app-scroll #profileSquadPanel .squad-filter-console input:focus,
.office-app-scroll #profileSquadPanel .squad-filter-console select:focus{
  border-color:rgba(212,169,79,.65)!important;
  box-shadow:0 0 0 3px rgba(212,169,79,.1)!important;
}
.office-app-scroll #profileSquadPanel .clear-button{
  border-color:rgba(212,169,79,.22)!important;
  color:#f0d79b!important;
  background:rgba(212,169,79,.06)!important;
}
.office-app-scroll #profileSquadPanel .clear-button:hover,
.office-app-scroll #profileSquadPanel .clear-button:focus-visible{
  color:#fbf7ef!important;
  border-color:rgba(212,169,79,.5)!important;
  background:rgba(212,169,79,.14)!important;
}
.office-app-scroll .squad-results-stage{
  border-color:rgba(212,169,79,.14)!important;
  background:rgba(11,10,8,.5)!important;
}
.office-app-scroll .squad-view-toggle{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(11,10,8,.75)!important;
}
.office-app-scroll .squad-view-toggle button{color:#c7bfb0!important}
.office-app-scroll .squad-view-toggle button.active,
.office-app-scroll .squad-view-toggle button[aria-pressed="true"]{
  color:#1a1207!important;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 0 14px rgba(212,169,79,.22)!important;
}
.office-app-scroll .squad-compare-open{
  border-color:rgba(212,169,79,.32)!important;
  color:#f0d79b!important;
  background:rgba(212,169,79,.1)!important;
}
.office-app-scroll .squad-compare-open:hover,
.office-app-scroll .squad-compare-open:focus-visible{
  color:#fbf7ef!important;
  border-color:rgba(212,169,79,.55)!important;
  background:rgba(212,169,79,.18)!important;
}

/* Compare Players modal — global fixed overlay, fixed unscoped like Close
   Account/Mail so it's consistent whichever route opens it. */
.squad-comparison-content{
  border-color:rgba(212,169,79,.24)!important;
  background:linear-gradient(155deg,rgba(23,21,15,.99),rgba(11,10,8,.99))!important;
}
.squad-comparison-content>header{border-bottom-color:rgba(212,169,79,.16)!important}
.squad-comparison-content>header button{
  border-color:rgba(212,169,79,.2)!important;
  color:#f0d79b!important;
  background:rgba(212,169,79,.08)!important;
}
.squad-compare-selectors label span,
.squad-compare-selectors>span{color:#e5c377!important}
.squad-compare-selectors select{
  border-color:rgba(212,169,79,.22)!important;
  background:#0d0c0a!important;
  color:#fbf7ef!important;
}
.squad-compare-profile small{color:#e5c377!important}
.squad-compare-profile em{color:#d9d1c2!important}
.squad-compare-stat-grid div{
  border-color:rgba(212,169,79,.14)!important;
  background:rgba(11,10,8,.55)!important;
}
.squad-compare-stat-grid span{color:#d9d1c2!important}
.squad-compare-row{
  border-color:rgba(212,169,79,.14)!important;
  background:rgba(11,10,8,.58)!important;
}
.squad-compare-row span{color:#d9d1c2!important}
.squad-compare-row strong{color:#e5e0d4!important}
.squad-comparison-loading{color:#d9d1c2!important}
.squad-compare-section-label{
  border-color:rgba(212,169,79,.22)!important;
  background:rgba(19,17,16,.98)!important;
  color:#e5c377!important;
}
.squad-compare-no-details{color:#d9d1c2!important}

/* Squad List view: header/row shells were navy independent of --rarity-color
   (which is still mixed in at a low % for row identity — left in place). */
.office-app-scroll #profileSquadPanel .card-grid.squad-list-mode{
  border-color:rgba(212,169,79,.16)!important;
  background:rgba(11,10,8,.7)!important;
}
.office-app-scroll #profileSquadPanel .squad-list-header{
  background:linear-gradient(100deg,rgba(30,26,17,.98),rgba(15,13,9,.98))!important;
}
.office-app-scroll #profileSquadPanel .squad-list-header>span{color:#e5c377!important}
.office-app-scroll #profileSquadPanel .squad-list-row:not(.squad-list-header){
  background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#8a7550) 9%,rgba(19,17,16,.98)),rgba(11,10,8,.98))!important;
}
.office-app-scroll #profileSquadPanel .squad-list-row:not(.squad-list-header):hover,
.office-app-scroll #profileSquadPanel .squad-list-row:not(.squad-list-header):focus-visible{
  background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#8a7550) 16%,rgba(28,24,16,.99)),rgba(15,13,9,.99))!important;
}
.office-app-scroll .squad-list-sort.active em{color:#e5c377!important}

/* Lineup restates its own name like the other pages did. */
.profile-tab-panel .lineup-heading,
.office-app-scroll .lineup-heading{display:none!important}

/* The calendar lying on the desk in the office artwork. The box is placed over
   where it sits in the image; it carries no visuals of its own beyond a hover
   hint, because the calendar is already painted there. */
.office-desk-calendar{
  position:absolute;
  z-index:3;
  left:7%;
  bottom:12%;
  width:19%;
  height:16%;
  padding:0;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  cursor:pointer;
  transition:background .25s ease,border-color .25s ease,opacity .25s ease;
}
.office-desk-calendar span{
  position:absolute;
  left:50%;
  bottom:-26px;
  translate:-50% 0;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(13,12,10,0.9);
  color:#fbf7ef;
  font-family:var(--body);
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
  opacity:0;
  transition:opacity .2s ease;
}
.office-desk-calendar:hover:not(:disabled){
  border-color:rgba(212,169,79,0.6);
  background:rgba(76,57,21,0.12);
}
.office-desk-calendar:hover:not(:disabled) span{opacity:1}
.office-desk-calendar:focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}
/* Lifted tablet: the calendar is behind it and out of play. */
.office-desk-calendar.is-covered{opacity:0;pointer-events:none}

/* View squad sits with the pitch view controls and leads to the database. */
.lineup-view-squad{
  margin-left:10px;
  padding:7px 14px;
  border:1px solid rgba(212,169,79,0.4);
  border-radius:999px;
  background:rgba(76,57,21,0.1);
  color:#fbf7ef;
  font-family:var(--body);
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .2s ease,border-color .2s ease,translate .12s ease;
}
.lineup-view-squad:hover{background:rgba(76,57,21,0.2);border-color:var(--accent-cyan);translate:0 -1px}
.lineup-view-squad:active{translate:0 1px}

/* The manager's own tablet background, when they have chosen one. It sits
   behind the screen contents rather than replacing them. */
body.has-tablet-background .office-screen{
  background-image:var(--office-tablet-background,none);
  background-size:cover;
  background-position:center;
}
body.has-tablet-background .office-screen-glow{
  background:linear-gradient(180deg,rgba(13,12,10,0.55),rgba(13,12,10,0.78));
}

/* ============ card frame, tablet fill and tablet calendar ================= */

/* Nothing may paint a panel behind a cut-out card. The artwork is the card, so
   the shell and the wrapper around it stay completely bare — no background, no
   border, no box-shadow — regardless of what earlier rules set. */
.footballer-card-shell:has(.footballer-card.has-card-template),
.home-featured-player:has(.footballer-card.has-card-template),
.footballer-card.has-card-template{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  clip-path:none!important;
}
/* The template image has transparent corners, but these two full-size effect
   layers are rectangular. With overflow visible they repaint the panel even
   though the outer elements above are transparent. Featured cards already
   carry their finished artwork, so keep those backing effects out of the
   homepage version. The pointer tilt and its silhouette shadow remain intact. */
.home-featured-player .footballer-card.has-card-template::after{
  content:none!important;
  display:none!important;
  background:none!important;
}
.home-featured-player .footballer-card.has-card-template .footballer-card-glow{
  display:none!important;
  opacity:0!important;
  background:none!important;
  filter:none!important;
}
/* The PNG template has its own !important drop-shadow elsewhere in this file.
   Its silhouette fills almost the entire image box, so that shadow reads as a
   dark rectangular frame. Homepage cards must use the unshadowed PNG itself. */
.home-featured-player .footballer-card.has-card-template .footballer-card-template{
  filter:none!important;
}
/* Generated portraits are SVG scenes, not bare transparent people: they carry
   a full-canvas light wash, grid and soft glow. Earlier template rules combine
   that scene with visible overflow and no clip, which exposes its dark canvas
   around the PNG. Clip the complete homepage rendering to the shared physical
   template silhouette and remove the portrait's extra CSS shadow. */
.home-featured-player .footballer-card.has-card-template{
  overflow:hidden!important;
  clip-path:polygon(
    2.5% 4.5%,
    83.5% 4.5%,
    97% 13%,
    97% 88%,
    96.9% 90%,
    95.7% 95%,
    93.5% 96.5%,
    16% 96.5%,
    13.7% 95%,
    6.5% 90%,
    2.5% 88%
  )!important;
}
.home-featured-player .footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  filter:none!important;
}
/* Rarity is live text rather than part of the PNG. Keep the original footer
   out of the clipped artwork stack and print the same value on the shell, over
   the bottom edge of the card. It remains visible without opening a hole for
   any background or glow layer. */
.home-featured-player .footballer-card.has-card-template .footballer-card-footer{
  display:none!important;
}
.home-featured-footballer-card.has-card-template::after{
  content:attr(data-card-rarity);
  position:absolute;
  z-index:20;
  left:50%;
  bottom:clamp(4px,1.25%,6px);
  transform:translateX(-50%);
  border:0;
  background:none;
  box-shadow:none;
  color:color-mix(in srgb,var(--rarity-color) 88%,#fff 12%);
  font-family:var(--body);
  font-size:.54rem;
  font-weight:900;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-shadow:0 2px 6px rgba(0,0,0,.82);
  white-space:nowrap;
  pointer-events:none;
}
/* The older homepage rule applies a drop-shadow to the whole button. Because
   the button contains a full rectangular render layer, that shadow follows the
   rectangle rather than the visible green/gold/etc. card edge. Keep the 3D
   transform, but do not paint any shadow or panel behind the cut-out card. */
.home-featured-player{
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Tablet pages fill the display. The scroller's padding was letting the screen
   background show as a border around every page. */
.office-app-scroll{padding:0!important}
.office-app-scroll>.office-embedded-panel{
  min-height:100%;
  padding:0!important;
  margin:0!important;
}
/* Whatever a page leads with, it starts at the top of the display. The old
   spacing existed to clear headings the tablet hides. */
.office-app-scroll .section-frame,
.office-app-scroll .engagement-section,
.office-app-scroll .club-calendar-section,
.office-app-scroll .achievement-section,
.office-app-scroll .settings-section,
.office-app-scroll .inventory-section,
.office-app-scroll .goat-management-page,
.office-app-scroll .goat-calendar-modern{
  padding-top:0!important;
  margin-top:0!important;
}
.office-app-scroll .collection-heading,
.office-app-scroll .section-heading,
.office-app-scroll .panel-heading{
  margin-top:0!important;
  margin-bottom:10px!important;
  padding-top:0!important;
}
.office-app-scroll > * > *:first-child{margin-top:0!important}

/* The tablet calendar shows the month and what is coming up. The season
   overview, next match and registration cards are built for a full-width page
   and only crowded the display. */
.office-app-scroll .goat-calendar-dashboard-grid,
.office-app-scroll .goat-calendar-next-match-card,
.office-app-scroll .goat-calendar-overview-card,
.office-app-scroll .goat-calendar-registration-card,
.office-app-scroll .goat-calendar-season-nav{
  display:none!important;
}
.office-app-scroll .goat-calendar-lower-grid,
.office-app-scroll .goat-calendar-main-grid{
  grid-template-columns:minmax(0,1.85fr) minmax(220px,.9fr)!important;
  gap:10px!important;
}
/* One frame only: the tablet is the frame. */
.office-app-scroll .goat-calendar-dashboard-card,
.office-app-scroll .goat-calendar-panel{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* The dim over a chosen background covers the whole screen, corner to corner,
   so no bright edge is left around it. */
body.has-tablet-background .office-screen-glow{
  inset:-1px!important;
  border-radius:inherit;
}

/* A banner is hung, and hung things are lit. A soft pool of light behind the
   fabric gives it somewhere to hang and stops it floating on the page. */
.goat-cloth-banner::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:-14% -22% -18%;
  background:radial-gradient(58% 46% at 50% 40%,rgba(232,201,121,.20),transparent 68%);
  pointer-events:none;
}

/* ================= 3.0A.50.35.52 coordinated interface pass ============= */

/* The official homepage leader card is back in its original flip-card form.
   These rules undo the padding reset that belonged only to the retired cloth
   experiment. */
#heroLeaderCard .leader-card-face{
  display:flex;
  padding:28px 28px 46px;
}
#heroLeaderCard .leader-card-face::after{z-index:1;opacity:1}
@media(max-width:780px){#heroLeaderCard .leader-card-face{padding:22px 22px 42px}}

/* Every rendered player card now uses the same bare, cut-out presentation as
   the homepage cards: no rectangular effect layers, no template shadow, and a
   rarity label attached directly to the lower frame. */
.footballer-card-shell.has-card-template,
.footballer-card.has-card-template{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  filter:none!important;
}
/* The card silhouette is taken from the template artwork itself rather than a
   hand-measured polygon: the PNG's own alpha channel is the clipping mask, so
   a redrawn frame with different corners clips correctly with no CSS change.
   --card-template-mask is published on the shell by playerCardVisual(). */
.footballer-card.has-card-template{
  overflow:visible!important;
  clip-path:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
.footballer-card.has-card-template::after,
.footballer-card.has-card-template .footballer-card-glow{
  content:none!important;
  display:none!important;
  opacity:0!important;
  background:none!important;
  filter:none!important;
}
.footballer-card.has-card-template .footballer-card-template,
.footballer-card.has-card-template .footballer-card-art.template-single-portrait img{
  filter:none!important;
}
.footballer-card.has-card-template .footballer-card-footer{display:none!important}
/* One rule places the rarity caption on every card at every size. The shell is
   a container, so the caption's offset and its type size are both expressed as
   a share of the card's own width. Because the frame's aspect ratio is fixed,
   one width-relative offset lands the caption immediately under the printed
   bottom edge on every card, so a rail thumbnail and a showcase card read the
   same instead of drifting apart the way fixed px offsets made them. */
.footballer-card-shell.has-card-template{
  container-type:inline-size;
}
.footballer-card-shell.has-card-template::after{
  content:attr(data-card-rarity);
  position:absolute;
  z-index:20;
  left:50%;
  bottom:.3cqw;
  transform:translateX(-50%);
  color:color-mix(in srgb,var(--rarity-color) 88%,#fff 12%);
  font-family:var(--body);
  font-size:clamp(4.5px,2.9cqw,11px);
  font-weight:900;
  line-height:1;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-shadow:0 2px 6px rgba(0,0,0,.82);
  white-space:nowrap;
  pointer-events:none;
}

/* One circular back affordance is used by the hub, Office and tablet apps. */
.club-hub-crumb{padding:0}
.club-hub-crumb button,
.office-back,
.office-app-toolbar button{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  border-radius:50%;
}
.club-hub-crumb button svg,
.office-back svg,
.office-app-toolbar button svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.club-slider{cursor:pointer}
.club-slider.is-dragging{cursor:grabbing}

/* The squad database controls sit directly on the page. Its repeated heading
   and the panel behind it are both removed. */
#profileSquadPanel .squad-database-shell{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileSquadPanel>.collection-section.section-frame{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileSquadPanel>.collection-section.section-frame::before{content:none!important}
#profileSquadPanel .squad-database-shell::before{content:none!important}
#profileSquadPanel .squad-database-toolbar>div:first-child{display:none!important}
#profileSquadPanel .squad-database-toolbar{justify-content:flex-end!important}

/* Registration no longer shows progress prose or the three-step wrapper. */
#profileRegistrationPanel .league-registration-workflow,
#leagueRegistrationSelectedCapacity,
#leagueRegistrationAvailableCount{display:none!important}

/* Attack focus uses three direct lane checks while preserving the existing
   five server-authoritative tactical modes. */
.tc5-attack-focus{margin:0;min-inline-size:0}
.tc5-attack-focus legend{padding:0}
.tc5-attack-lanes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-width:0}
.tc5-attack-lanes label{position:relative;display:block;min-width:0;cursor:pointer}
.tc5-attack-lanes input{position:absolute;opacity:0;pointer-events:none}
.tc5-attack-lanes span{
  display:grid;
  place-items:center;
  min-height:42px;
  padding:7px 4px;
  border:1px solid rgba(212,169,79,0.34);
  border-radius:8px;
  background:#17150f;
  color:rgba(251,247,239,0.72);
  font-size:.66rem;
  font-weight:850;
  transition:.16s ease;
}
.tc5-attack-lanes input:checked+span{
  border-color:rgba(212,169,79,0.72);
  background:rgba(42,34,20,0.72);
  color:#fff;
  box-shadow:inset 0 0 0 1px rgba(212,169,79,0.12);
}
.tc5-attack-lanes input:focus-visible+span{outline:2px solid #d4a94f;outline-offset:2px}

/* Calendar windows live directly on the Calendar page. The wide next-match
   card gets a full row, giving both clubs, the central date and the away-side
   information independent breathing room. */
.club-calendar-section.section-frame,
.goat-league-calendar.goat-calendar-modern{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
.club-calendar-section.section-frame::before{content:none!important;display:none!important}
@media(min-width:981px){
  .goat-calendar-modern .goat-calendar-dashboard{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-card{
    grid-column:1/-1!important;
    grid-row:1!important;
  }
  .goat-calendar-modern .goat-calendar-overview-card{grid-column:1!important;grid-row:2!important}
  .goat-calendar-modern .goat-calendar-registration-card{grid-column:2!important;grid-row:2!important}
  .goat-calendar-modern .goat-calendar-next-match-shell{
    grid-template-columns:minmax(360px,1.45fr) minmax(190px,.62fr) minmax(190px,.72fr)!important;
    column-gap:0!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-clubs{
    grid-template-columns:minmax(120px,1fr) minmax(60px,auto) minmax(120px,1fr)!important;
    gap:18px!important;
    padding:4px 28px 4px 10px!important;
  }
  .goat-calendar-modern .goat-calendar-next-vs{justify-self:center!important;margin:0!important}
  .goat-calendar-modern .goat-calendar-next-match-datetime{padding:10px 24px!important}
  .goat-calendar-modern .goat-calendar-next-match-info{padding:8px 10px 8px 28px!important}
  .goat-calendar-modern .goat-calendar-team-block strong,
  .goat-calendar-modern .goat-calendar-team-block strong.is-long-club-name{
    width:100%!important;
    max-width:150px!important;
    margin:0 auto!important;
    white-space:normal!important;
    text-align:center!important;
  }
}

/* The tablet's active display reaches farther into the black-and-metal frame,
   removing the bright strip that was most visible along the lower edge. */
.office-tablet .office-screen{
  inset:clamp(8px,1.12vw,13px);
  padding:0 2.2% 2.1%;
}
.office-app-shell,.mail-modal.is-office-mail{
  inset:-1px!important;
  transform:translateX(var(--office-back-swipe,0));
  transition:transform .16s ease;
}
.office-view:not(.has-app-open) .office-app-shell{transform:none}
.office-app-toolbar{padding-left:7px}

/* Locked tablet: a black glass face and animated fingerprint affordance. */
.office-lock-screen{
  position:absolute;
  z-index:34;
  inset:-1px;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:9px;
  overflow:hidden;
  border-radius:inherit;
  background:#000;
  color:#fbf7ef;
  transition:opacity .34s ease,visibility .34s ease;
}
.office-lock-screen.hidden{display:grid!important;opacity:0;visibility:hidden;pointer-events:none}
.office-fingerprint-button{
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(72px,9vw,108px);
  aspect-ratio:1;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.32);
  border-radius:50%;
  background:radial-gradient(circle,rgba(212,169,79,.14),rgba(10,9,8,.92) 64%);
  color:#e5c377;
  cursor:pointer;
  box-shadow:0 0 0 8px rgba(212,169,79,.025),0 0 34px rgba(212,169,79,.1);
}
.office-fingerprint-button svg{position:relative;z-index:2;width:55%;height:55%;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.office-fingerprint-rings{position:absolute;inset:9%;border:1px solid rgba(212,169,79,.22);border-radius:50%}
.office-fingerprint-rings::before,.office-fingerprint-rings::after{content:"";position:absolute;border:1px solid rgba(212,169,79,.13);border-radius:50%}
.office-fingerprint-rings::before{inset:12%}.office-fingerprint-rings::after{inset:25%}
.office-fingerprint-scan{position:absolute;z-index:3;left:16%;right:16%;top:16%;height:2px;background:linear-gradient(90deg,transparent,#f0d79b,transparent);opacity:0;filter:drop-shadow(0 0 5px #d4a94f)}
.office-lock-screen.is-scanning .office-fingerprint-button{animation:officeFingerprintPulse .7s ease-in-out infinite alternate}
.office-lock-screen.is-scanning .office-fingerprint-scan{opacity:1;animation:officeFingerprintScan .72s ease-in-out infinite alternate}
.office-lock-screen.is-unlocking .office-fingerprint-button{color:#74ffad;border-color:rgba(80,255,147,.55)}
.office-lock-screen>strong{font-family:var(--display);font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}
.office-lock-screen>small{color:#d9d1c2;font-size:.5rem;letter-spacing:.08em;text-transform:uppercase}
@keyframes officeFingerprintScan{from{translate:0 0}to{translate:0 calc(clamp(72px,9vw,108px) * .67)}}
@keyframes officeFingerprintPulse{to{box-shadow:0 0 0 11px rgba(212,169,79,.05),0 0 42px rgba(212,169,79,.22)}}
.office-view.is-locked .office-dock,.office-view.is-locked .office-greeting{opacity:0!important;pointer-events:none!important}
.office-greeting{opacity:0;transition:opacity .25s ease,translate .25s ease;translate:0 -5px}
.office-greeting.is-visible{opacity:1;translate:0 0}

/* The five inventory pack cards use the tablet's height as well as its width:
   three on the first row and two on the second. */
.office-app-scroll .inventory-pack-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-rows:minmax(118px,1fr)!important;
  align-content:stretch!important;
  gap:9px!important;
}
.office-app-scroll .inventory-pack-grid>*{min-height:118px!important}
.office-app-scroll .inventory-pack[data-pack-type="promo"]{grid-column:2 / 4!important}

/* Embedded Calendar keeps only the month board and Upcoming beside it. */
.office-app-scroll .goat-calendar-season-header,
.office-app-scroll .goat-calendar-dashboard,
.office-app-scroll .goat-calendar-track-shell{display:none!important}
.office-app-scroll .goat-league-calendar.goat-calendar-modern{margin:0!important;display:block!important}
.office-app-scroll .goat-calendar-main-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.85fr) minmax(220px,.9fr)!important;
  gap:10px!important;
  align-items:start!important;
}
.office-app-scroll .goat-calendar-board-shell,
.office-app-scroll .goat-calendar-side-panel{margin:0!important}

/* .eyebrow's base rule hardcodes a lavender #c2c9ff (not a var), so every
   section kicker inside the tablet ("AVAILABLE PACKS", "TWITCH CHAT", etc.)
   needs its own scoped override, same as the World page's existing pattern. */
.office-app-scroll .eyebrow{color:#e5c377!important}

/* Inventory: pack-card glow, help note, and the Twitch chat wrapper card all
   carried the old indigo/cyan palette hardcoded (not via var()) — remap to
   the gold/espresso family. The small "Official chat" dot keeps Twitch's own
   #9146ff brand purple since it identifies the platform, not our chrome. */
.office-app-scroll .inventory-pack{
  border-color:rgba(212,169,79,.2)!important;
  background:linear-gradient(145deg,rgba(26,23,19,.9),rgba(13,12,10,.94))!important;
}
.office-app-scroll .inventory-pack::after{background:radial-gradient(circle,rgba(212,169,79,.18),transparent 70%)!important}
.office-app-scroll .inventory-help{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(19,17,16,.62)!important;
}
.office-app-scroll .inventory-help code{
  border-color:rgba(212,169,79,.24)!important;
  background:rgba(212,169,79,.1)!important;
  color:#f0d79b!important;
}
.office-app-scroll .inventory-chat-card{
  border-color:rgba(212,169,79,.22)!important;
  background:
    radial-gradient(circle at 100% 0,rgba(212,169,79,.12),transparent 34%),
    linear-gradient(145deg,rgba(26,23,19,.9),rgba(13,12,10,.96))!important;
}
.office-app-scroll .inventory-chat-watermark{color:rgba(212,169,79,.09)!important}
.office-app-scroll .inventory-chat-badge{
  border-color:rgba(212,169,79,.24)!important;
  color:#e5c377!important;
  background:rgba(20,18,14,.7)!important;
}
.office-app-scroll .inventory-chat-frame{border-color:rgba(212,169,79,.2)!important}
.office-app-scroll .inventory-chat-composer input{
  border-color:rgba(212,169,79,.22)!important;
  background:rgba(10,9,8,.78)!important;
}
.office-app-scroll .inventory-chat-composer input:focus{
  border-color:rgba(212,169,79,.65)!important;
  box-shadow:0 0 0 3px rgba(212,169,79,.14)!important;
}
.office-app-scroll .inventory-chat-composer input:disabled{color:#d9d1c2!important}
.office-app-scroll .inventory-chat-composer button{
  border-color:rgba(212,169,79,.32)!important;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%)!important;
  color:#1a1207!important;
}
.office-app-scroll .inventory-chat-composer button:disabled{
  background:rgba(212,169,79,.14)!important;
  color:#d9d1c2!important;
}
.office-app-scroll .inventory-chat-account-row a{
  border-color:rgba(212,169,79,.32)!important;
  color:#f0d79b!important;
  background:rgba(212,169,79,.08)!important;
}
.office-app-scroll .inventory-chat-account-row a:hover{
  border-color:rgba(212,169,79,.55)!important;
  background:rgba(212,169,79,.16)!important;
  color:#fbf7ef!important;
}

/* Objectives: --mission-cycle-color drives the weekly/monthly theming through
   color-mix(), so overriding it once to gold
   on each panel cascades through borders, the status badge, progress-bar
   fill and the "set reward" chip automatically. Green stays on the genuine
   "complete" state as a restrained success signal, per design.md. */
.office-app-scroll #profileObjectivesPanel .weekly-mission-panel,
.office-app-scroll #profileObjectivesPanel .monthly-mission-panel{--mission-cycle-color:#d4a94f!important}
.office-app-scroll #profileObjectivesPanel .mission-panel{
  border-color:rgba(212,169,79,.2)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.96),rgba(11,10,8,.96))!important;
}
.office-app-scroll #profileObjectivesPanel .mission-panel-heading{border-bottom-color:rgba(212,169,79,.16)!important}
.office-app-scroll #profileObjectivesPanel .mission-panel-heading small{color:#d9d1c2!important}
.office-app-scroll #profileObjectivesPanel .mission-panel-heading b{
  border-color:rgba(212,169,79,.2)!important;
  color:#c7bfb0!important;
  background:rgba(10,9,8,.68)!important;
}
.office-app-scroll #profileObjectivesPanel .mission-item{
  border-color:rgba(212,169,79,.14)!important;
  background:linear-gradient(100deg,rgba(23,21,15,.76),rgba(11,10,8,.76))!important;
}
.office-app-scroll #profileObjectivesPanel .mission-item:hover{
  background:linear-gradient(100deg,rgba(29,26,18,.82),rgba(13,12,10,.82))!important;
}
.office-app-scroll #profileObjectivesPanel .mission-status{background:color-mix(in srgb,var(--mission-cycle-color) 14%,#0d0c0a)!important}
.office-app-scroll #profileObjectivesPanel .mission-copy strong{color:#fbf7ef!important}
.office-app-scroll #profileObjectivesPanel .mission-copy > small{color:#d9d1c2!important}
.office-app-scroll #profileObjectivesPanel .mission-progress{background:rgba(212,169,79,.1)!important}
.office-app-scroll #profileObjectivesPanel .mission-reward{border-left-color:rgba(212,169,79,.14)!important}
.office-app-scroll #profileObjectivesPanel .mission-reward span,
.office-app-scroll #profileObjectivesPanel .mission-reward small{color:#d9d1c2!important}
.office-app-scroll #profileObjectivesPanel .mission-set-reward{background:rgba(13,12,10,.76)!important}

/* Same var-driven pattern for the three DAILY/WEEKLY/MONTHLY summary rings —
   one gold --cycle-color replaces the cyan/purple/orange per-period set. */
.office-app-scroll .objective-summary-card{
  --cycle-color:#d4a94f!important;
  background:linear-gradient(145deg,rgba(212,169,79,.08),rgba(19,17,16,.94)),rgba(11,10,8,.95)!important;
}
.office-app-scroll .objective-summary-card > small{color:#d9d1c2!important}
.office-app-scroll .objective-summary-card > div{background:conic-gradient(var(--cycle-color) var(--cycle-progress),rgba(212,169,79,.12) 0)!important}
.office-app-scroll .objective-summary-card > div i{background:#0d0c0a!important}

@media(max-width:780px){
  .office-app-scroll .goat-calendar-main-layout{grid-template-columns:minmax(0,1.6fr) minmax(170px,.8fr)!important}
  .office-app-scroll .inventory-pack-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
/* Below ~480px browser width the tablet itself renders too narrow for the
   calendar's two-column board+Upcoming split — the Upcoming panel's date/
   title text clips. Stack it instead, matching the non-tablet calendar's
   own narrow-viewport behavior (see .goat-calendar-main-layout at 780px
   above, line ~15484). */
@media(max-width:480px){
  .office-app-scroll .goat-calendar-main-layout{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  .office-lock-screen.is-scanning .office-fingerprint-button,
  .office-lock-screen.is-scanning .office-fingerprint-scan{animation:none}
}

/* ================= 3.0A.50.35.53 coordinated layout correction ========= */

/* Club pages open immediately; only their return motion is animated. */
@keyframes clubPageZoomOut{
  from{opacity:1;transform:scale(1);filter:blur(0)}
  to{opacity:0;transform:scale(.94);filter:blur(7px)}
}
.profile-tab-panel.club-page-leaving{
  pointer-events:none;
  transform-origin:50% 28%;
  animation:clubPageZoomOut .30s cubic-bezier(.4,0,.7,.2) both;
}
@media(prefers-reduced-motion:reduce){
  .profile-tab-panel.club-page-leaving{animation:none}
}

/* The page return control occupies the same 16px/16px anchor as the hub rail. */
.dashboard-mode #profileView{position:relative!important}
body.club-hub-crumb-active .profile-nav-row{
  position:absolute!important;
  z-index:90!important;
  top:26px!important;
  right:auto!important;
  left:16px!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.club-hub-crumb-active .club-hub-crumb{width:44px;height:44px}
.office-back{top:16px!important;left:16px!important}

/* A 100% width is intentional here: 100vw included the scrollbar and exposed
   a differently coloured strip at the right edge of the player dossier. */
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){
  inset:0!important;
  width:100%!important;
  max-width:100%!important;
  overflow-x:hidden!important;
  background:linear-gradient(145deg,#0d0c0a,#0d0c0a 52%,#0d0c0a)!important;
}
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet,
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content,
:is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-v4{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-inline:0!important;
  background-color:#0d0c0a!important;
}

/* Give the top row room for the 3D hover tilt instead of clipping its frame. */
#profileSquadPanel .squad-results-stage,
#profileSquadPanel .card-grid,
#profileSquadPanel .squad-player-tile{overflow:visible!important}
#profileSquadPanel .card-grid{padding-top:24px!important}
#profileSquadPanel .card-grid.list-mode{padding-top:0!important}
#profileLineupPanel .lineup-view-squad{margin-left:auto!important}

/* Attack focus is a standard dropdown whose checkboxes remain independent. */
.tc5-attack-focus{display:grid!important;gap:7px!important}
.tc5-multiselect{position:relative;min-width:0}
.tc5-multiselect>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  box-sizing:border-box;
  padding:8px 11px;
  border:1px solid rgba(212,169,79,0.34);
  border-radius:8px;
  background:#17150f;
  color:#fbf7ef;
  font-size:.66rem;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.tc5-multiselect>summary::-webkit-details-marker{display:none}
.tc5-multiselect>summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:rotate .18s ease}
.tc5-multiselect[open]>summary svg{rotate:180deg}
.tc5-multiselect .tc5-attack-lanes{
  position:absolute;
  z-index:30;
  top:calc(100% + 5px);
  left:0;
  right:0;
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  padding:6px;
  border:1px solid rgba(212,169,79,0.38);
  border-radius:9px;
  background:#0d0c0a;
  box-shadow:0 14px 30px rgba(0,0,0,.38);
}
.tc5-multiselect .tc5-attack-lanes span{min-height:34px;justify-content:start;padding-inline:10px}

/* Registration ends naturally after its content; the save bar is no longer
   detached at the viewport bottom. Exemptions form two rows then pan sideways. */
#profileRegistrationPanel .league-registration-screen{gap:12px!important;padding-bottom:0!important}
#profileRegistrationPanel .league-registration-u17,
#profileRegistrationPanel .league-registration-action-bar{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#profileRegistrationPanel .league-registration-action-bar{
  position:static!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  transform:none!important;
}
#profileRegistrationPanel .league-registration-u17{height:auto!important;min-height:0!important;align-content:start!important}
#profileRegistrationPanel .league-registration-u17-grid{
  display:grid!important;
  grid-template-rows:repeat(2,minmax(0,auto))!important;
  grid-template-columns:none!important;
  grid-auto-flow:column!important;
  grid-auto-columns:minmax(340px,calc((100% - 9px)/2))!important;
  gap:9px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-inline:contain;
  padding-bottom:2px;
}
#profileRegistrationPanel .league-registration-u17 .league-registration-empty{min-height:0!important;padding:8px 0!important}

/* Centre uses two shared row tracks, so the panels on each side align exactly. */
@media(min-width:981px){
  #profileCentrePanel .mc-hub-left-column,
  #profileCentrePanel .mc-hub-right-column{grid-template-rows:420px 330px!important;align-items:stretch!important}
  #profileCentrePanel .mc-hub-next,
  #profileCentrePanel .mc-hub-form-players,
  #profileCentrePanel .mc-hub-past:not(.is-history),
  #profileCentrePanel .mc-hub-right-bottom{height:100%!important;min-height:0!important}
  #profileCentrePanel .mc-hub-right-bottom{align-items:stretch!important}
  #profileCentrePanel .mc-hub-club-form,
  #profileCentrePanel .mc-hub-table{height:100%!important;min-height:0!important}
}

/* Sponsor offer cards now sit directly on the sponsor page. */
#profileSponsorPanel .sponsor-choice-panel{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileSponsorPanel .sponsor-choice-panel>header{padding:3px 3px 13px!important}

/* Finance period controls share the balance card's baseline. */
@media(min-width:881px){
  #profileFinancesPanel .finance-hero-zone{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:24px!important;
  }
  #profileFinancesPanel .finance-hero-clean{
    display:contents!important;
  }
  #profileFinancesPanel .finance-hero-clean>div:first-child{display:none!important}
  #profileFinancesPanel .finance-balance-card{grid-column:2!important;grid-row:1!important;align-self:end!important}
  #profileFinancesPanel .finance-periods{grid-column:1!important;grid-row:1!important;align-self:end!important;padding:0!important}
}

/* Keep the original live-screen boundary inside the black-and-metal frame.
   The tablet itself remains at its larger size; only the display is pulled
   back below the camera and away from the frame edges. */
.office-tablet .office-screen{
  inset:clamp(8px,1.12vw,13px)!important;
  padding:0 2.2% 2.1%!important;
}
.office-lock-screen,
.office-app-shell,
.mail-modal.is-office-mail{inset:-1px!important}
.office-greeting{
  top:3.5%!important;
  max-width:70%;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;
  font-size:clamp(.78rem,1.35vw,1.28rem)!important;
  font-weight:650!important;
  line-height:1.2!important;
  letter-spacing:-.015em!important;
  text-align:center;
}
.office-app-shell{grid-template-rows:40px minmax(0,1fr)!important}
.office-app-toolbar{padding:4px 57px 4px 6px!important;gap:8px!important}
.office-app-toolbar button{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
}
.office-app-toolbar button svg{width:15px!important;height:15px!important}
.office-app-scroll{padding:0!important;overflow-x:hidden!important}
.office-app-scroll>.office-embedded-panel{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:100%!important;
  padding:8px 10px!important;
}
.office-app-scroll>.office-embedded-panel>*{max-width:100%!important;min-width:0!important}
.office-app-scroll #profileInventoryPanel .inventory-layout{
  min-height:100%!important;
  align-items:center!important;
}
.office-app-scroll #profileInventoryPanel .inventory-chat-card{
  align-self:center!important;
  margin-block:auto!important;
}
.office-app-scroll #profileCalendarPanel{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.office-app-scroll #profileCalendarPanel .club-calendar-section{width:100%!important}
.office-app-scroll #profileCalendarPanel .goat-calendar-main-layout{align-items:center!important}
.office-app-scroll #profileSettingsPanel .settings-content-shell{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

@media(max-width:880px){
  #profileRegistrationPanel .league-registration-u17-grid{grid-auto-columns:minmax(280px,86%)!important}
}

/* ================= 3.0A.50.35.54 motion and dashboard refinement ======== */

/* Keep the camera fully in the metal bezel, above the restored live screen. */
.office-tablet-camera{top:clamp(1px,.18vw,3px)!important}

/* Tablet navigation is deliberately smaller than the page-level return
   control. A completed swipe carries the app fully beyond the glass. */
.office-app-toolbar button{
  width:26px!important;
  height:26px!important;
  min-width:26px!important;
  min-height:26px!important;
}
.office-app-toolbar button svg{width:13px!important;height:13px!important}
.office-app-shell.is-swipe-finishing,
.mail-modal.is-office-mail.is-swipe-finishing{
  transition:transform .28s cubic-bezier(.2,.76,.24,1)!important;
  pointer-events:none!important;
}

/* Calendar summary: next fixture and season overview are equal peers. */
.goat-calendar-modern .goat-calendar-registration-card{display:none!important}
@media(min-width:1281px){
  .goat-calendar-modern .goat-calendar-dashboard{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:1fr!important;
    align-items:stretch!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-card{
    grid-column:1!important;
    grid-row:1!important;
    height:100%!important;
    min-height:230px!important;
  }
  .goat-calendar-modern .goat-calendar-overview-card{
    grid-column:2!important;
    grid-row:1!important;
    height:100%!important;
    min-height:230px!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-shell{
    grid-template-columns:minmax(0,1.4fr) minmax(125px,.62fr) minmax(135px,.72fr)!important;
  }
}
@media(min-width:981px) and (max-width:1280px){
  .goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:1fr!important}
  .goat-calendar-modern .goat-calendar-next-match-card{grid-column:1!important;grid-row:1!important}
  .goat-calendar-modern .goat-calendar-overview-card{grid-column:1!important;grid-row:2!important}
}
.goat-calendar-modern .goat-calendar-next-match-clubs{padding-bottom:9px!important}
.goat-calendar-modern .goat-calendar-team-block strong,
.goat-calendar-modern .goat-calendar-team-block strong.is-long-club-name{
  margin-top:5px!important;
  margin-bottom:2px!important;
  overflow:visible!important;
}

/* Finance hierarchy: quieter period filters, a stronger balance card and a
   shallower row of the four headline figures. */
@media(min-width:881px){
  #profileFinancesPanel .finance-periods{gap:5px!important}
  #profileFinancesPanel .finance-periods button{
    min-width:84px!important;
    min-height:31px!important;
    padding:5px 10px!important;
    border-radius:8px!important;
    font-size:.61rem!important;
  }
  #profileFinancesPanel .finance-balance-card.finance-balance-bank{
    min-width:430px!important;
    min-height:118px!important;
    padding:20px 28px!important;
  }
  #profileFinancesPanel .finance-balance-card.finance-balance-bank strong{font-size:2.55rem!important}
}
#profileFinancesPanel .finance-bank-kpis-v3 article{
  min-height:86px!important;
  padding:10px 16px!important;
  grid-template-columns:46px minmax(0,1fr)!important;
}
#profileFinancesPanel .finance-bank-kpis-v3 .finance-kpi-icon{
  width:39px!important;
  height:39px!important;
}
#profileFinancesPanel .finance-bank-kpis-v3 strong{
  margin-top:4px!important;
  font-size:1.28rem!important;
}

/* ================= 3.0A.50.35.55 final entrance and tablet polish ===== */

/* The hero uses a wider right-hand grid track than Live Activity. Shifting
   its centred card by half that difference gives both cards one centre line. */
@media(min-width:1181px){
  .home-rebuild .hero-arena{translate:30px 0}
}

/* Compact Calendar summary cards with their information centred in the
   space below the heading, rather than leaving an empty lower half. */
@media(min-width:1281px){
  .goat-calendar-modern .goat-calendar-next-match-card,
  .goat-calendar-modern .goat-calendar-overview-card{
    height:131.2px!important;
    min-height:131.2px!important;
    grid-template-rows:auto minmax(0,1fr)!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-shell,
  .goat-calendar-modern .goat-calendar-overview-grid{
    height:100%!important;
    min-height:0!important;
    align-items:center!important;
    align-self:stretch!important;
    align-content:center!important;
  }
  .goat-calendar-modern .goat-calendar-overview-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    width:100%!important;
    padding:0!important;
  }
  .goat-calendar-modern .goat-calendar-stat{
    display:grid!important;
    justify-items:center!important;
    align-content:center!important;
    height:100%!important;
    min-height:0!important;
    padding:5px 12px!important;
    text-align:center!important;
  }
  .goat-calendar-modern .goat-calendar-stat-icon-img{
    width:30px!important;
    height:30px!important;
    margin-bottom:4px!important;
  }
  .goat-calendar-modern .goat-calendar-stat span,
  .goat-calendar-modern .goat-calendar-overview-card .goat-calendar-stat:last-child span{
    font-size:.62rem!important;
  }
  .goat-calendar-modern .goat-calendar-stat strong{
    margin-top:5px!important;
    font-size:1rem!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-clubs,
  .goat-calendar-modern .goat-calendar-next-match-datetime{
    justify-items:center!important;
    align-content:center!important;
    padding-block:0!important;
    text-align:center!important;
  }
  #profileCalendarPanel:not(.office-embedded-panel) .goat-calendar-next-match-card .goat-calendar-club-mark{
    width:60px!important;
    height:60px!important;
  }
  #profileCalendarPanel:not(.office-embedded-panel) .goat-calendar-next-match-card .goat-calendar-team-block{
    grid-template-rows:60px minmax(18px,auto)!important;
    align-content:center!important;
    gap:3px!important;
  }
  #profileCalendarPanel:not(.office-embedded-panel) .goat-calendar-next-match-card .goat-calendar-team-block strong,
  #profileCalendarPanel:not(.office-embedded-panel) .goat-calendar-next-match-card .goat-calendar-team-block strong.is-long-club-name{
    min-height:18px!important;
    margin-top:0!important;
    margin-bottom:0!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-info{
    grid-template-rows:repeat(3,minmax(0,1fr))!important;
    justify-items:start!important;
    align-items:center!important;
    align-content:stretch!important;
    align-self:stretch!important;
    gap:0!important;
    padding:0 8px 0 16px!important;
    text-align:left!important;
  }
  .goat-calendar-modern .goat-calendar-next-match-datetime>strong{font-size:1.08rem!important}
  .goat-calendar-modern .goat-calendar-next-match-datetime>span{font-size:.63rem!important}
  .goat-calendar-modern .goat-calendar-next-match-datetime>small{font-size:1.42rem!important}
  .goat-calendar-modern .goat-calendar-detail-line{
    justify-content:flex-start!important;
    gap:9px!important;
  }
  .goat-calendar-modern .goat-calendar-inline-icon,
  .goat-calendar-modern .goat-calendar-next-weather-icon,
  .goat-calendar-modern .goat-calendar-next-weather-icon svg{
    width:17px!important;
    height:17px!important;
    flex-basis:17px!important;
  }
  .goat-calendar-modern .goat-calendar-detail-line small,
  .goat-calendar-modern .goat-calendar-next-weather-copy small,
  .goat-calendar-modern .goat-calendar-next-venue-copy #goatLeagueNextDetailLocation{
    font-size:.66rem!important;
    line-height:1.15!important;
  }
  .goat-calendar-modern .goat-calendar-next-weather-copy strong{font-size:.72rem!important}
}

/* iPad-style centred welcome treatment, adapted from the supplied GlowHero
   without introducing a second UI framework into this browser application. */
.office-greeting{
  inset:0!important;
  top:0!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif!important;
  text-align:center;
  pointer-events:none;
}
.office-greeting-label{
  color:#d9d1c2;
  font-size:clamp(.92rem,1.65vw,1.42rem);
  font-weight:600;
  letter-spacing:-.02em;
  line-height:1;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}
.office-greeting-glow{
  position:relative;
  display:inline-block;
  z-index:1;
  isolation:isolate;
  color:transparent;
  font-size:clamp(2rem,4.15vw,3.75rem);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:1.05;
  text-shadow:none;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
  background:linear-gradient(90deg,#9c7128,#f0d79b,#d4a94f,#f7e7bd,#9c7128);
  background-size:200% 200%;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:officeGreetingGradient 12s ease-in-out infinite;
}
.office-greeting-glow::before{
  content:attr(data-text);
  position:absolute;
  inset:0;
  z-index:-1;
  color:transparent;
  background:linear-gradient(90deg,#9c7128,#f0d79b,#d4a94f,#f7e7bd,#9c7128);
  background-size:200% 200%;
  background-clip:text;
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  opacity:.48;
  filter:blur(11px) brightness(1.05);
  pointer-events:none;
  animation:officeGreetingGradient 12s ease-in-out infinite;
}
.office-greeting-glow::after{
  content:none!important;
}
@keyframes officeGreetingGradient{
  0%,100%{background-position:0 50%}
  50%{background-position:100% 50%}
}

/* Connected / muted / full-battery status cluster. */
.office-status-bar{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:auto!important;
  min-width:78px;
  height:27px!important;
  padding:0 7px;
}
.office-status-bar svg{
  display:block;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.office-status-wifi{width:15px;height:15px;stroke-width:2}
.office-status-muted{width:15px;height:15px;stroke-width:1.5}
.office-status-bar .office-battery{width:24px;height:17px}

.office-icon-legacy{
  stroke-width:1.5;
  transform-box:fill-box;
  transform-origin:center;
}
.office-dock-app:hover .office-icon-legacy{animation:officeTrophyPulse .6s ease-in-out}
@keyframes officeTrophyPulse{
  0%,100%{transform:scale(1)}
  25%{transform:scale(.9)}
  60%{transform:scale(1.2)}
}

/* Keep the Card view label and its two choices on the pitch centreline while
   View squad remains a separate action at the right edge. */
#profileLineupPanel .lineup-view-toggle{
  position:relative;
  justify-content:center!important;
  box-sizing:border-box;
  padding-inline:112px!important;
}
#profileLineupPanel .lineup-view-squad{
  position:absolute;
  right:6px;
  margin:0!important;
}

/* The compact period buttons visually sit a little above the deeper balance
   card, so lower the control row to share its bottom baseline. */
@media(min-width:881px){
  #profileFinancesPanel .finance-periods{translate:0 7px}
}

@media(max-width:700px){
  #profileLineupPanel .lineup-view-toggle{
    padding-inline:6px!important;
    padding-bottom:46px!important;
  }
  #profileLineupPanel .lineup-view-squad{
    right:50%;
    bottom:6px;
    translate:50% 0;
  }
  #profileLineupPanel .lineup-view-squad:hover{translate:50% -1px}
  #profileLineupPanel .lineup-view-squad:active{translate:50% 1px}
}

@media(prefers-reduced-motion:reduce){
  .office-greeting-glow,
  .office-greeting-glow::before,
  .office-greeting-glow::after,
  .office-dock-app:hover .office-icon-legacy{animation:none!important}
}

/* ================= 3.0A.50.35.56 calendar weather refinement ========== */

/* Put the welcome cluster around the first quarter of the live glass. */
.office-greeting{
  box-sizing:border-box;
  top:25%!important;
  bottom:auto!important;
  height:auto!important;
  justify-content:center!important;
  padding:0!important;
  transform:translateY(-50%);
}

/* Make all four overview cells consume exactly one quarter of the card. */
@media(min-width:821px){
  .goat-calendar-modern .goat-calendar-overview-card{
    justify-items:stretch!important;
  }
  .goat-calendar-modern .goat-calendar-overview-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-columns:auto!important;
    justify-self:stretch!important;
    justify-content:stretch!important;
    width:100%!important;
    max-width:none!important;
  }
  .goat-calendar-modern .goat-calendar-stat{
    box-sizing:border-box!important;
    width:auto!important;
    max-width:none!important;
  }
}

/* Player Profile Career History: readable dossier typography without losing
   the compact table density or its established gold-on-dark hierarchy. */
.player-modal.player-dossier-shell .player-career-v4>header span{
  font-family:var(--body)!important;
  font-size:.70rem!important;
  font-weight:850!important;
  letter-spacing:.07em!important;
}
.player-modal.player-dossier-shell .player-career-table-v4 th{
  padding:5px 8px!important;
  font:850 .68rem/1.15 var(--body)!important;
  letter-spacing:.025em!important;
}
.player-modal.player-dossier-shell .player-career-table-v4 :is(th,td):nth-child(1){width:16%}
.player-modal.player-dossier-shell .player-career-table-v4 :is(th,td):nth-child(2){width:14%}
.player-modal.player-dossier-shell .player-career-table-v4 :is(th,td):nth-child(3){width:16%}
.player-modal.player-dossier-shell .player-career-table-v4 :is(th,td):nth-child(4){width:16%}
.player-modal.player-dossier-shell .player-career-table-v4 :is(th,td):nth-child(n+5){width:9.5%}
.player-modal.player-dossier-shell .player-career-table-v4 td{
  padding:5px 8px!important;
  font:650 .74rem/1.2 var(--body)!important;
  font-variant-numeric:tabular-nums;
}
.player-modal.player-dossier-shell .player-career-table-v4 td:nth-child(-n+4){
  color:#eee7da!important;
  font-weight:700!important;
}
.player-modal.player-dossier-shell .player-career-table-v4 tr.total td{
  font-size:.76rem!important;
  font-weight:900!important;
}
.player-modal.player-dossier-shell .player-career-table-v4 .career-season-repeat{
  color:transparent!important;
}

/* The supplied animated weather set is rendered directly from the existing
   fixture condition_key, temperature, wind and stadium-timezone forecast. */
.goat-calendar-modern .goat-calendar-next-weather-icon{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  overflow:visible;
}
.goat-calendar-modern .goat-calendar-next-weather-icon .goat-weather-icon{
  display:block;
  width:22px!important;
  height:22px!important;
  overflow:visible;
}
.goat-weather-spin{transform-origin:24px 24px;animation:goatWeatherSpin 12s linear infinite}
.goat-weather-partly-sun{transform-origin:16px 16px;animation:goatWeatherSpin 20s linear infinite}
.goat-weather-pulse{transform-box:fill-box;transform-origin:center;animation:goatWeatherPulse 3s ease-in-out infinite}
.goat-weather-cloud{animation:goatWeatherCloud 6s ease-in-out infinite}
.goat-weather-stars circle{transform-box:fill-box;transform-origin:center;animation:goatWeatherStar 2s ease-in-out infinite}
.goat-weather-stars circle:nth-child(2){animation-delay:.5s}
.goat-weather-stars circle:nth-child(3){animation-delay:1s}
.goat-weather-stars circle:nth-child(4){animation-delay:1.5s}
.goat-weather-drop{
  transform-box:fill-box;
  animation:goatWeatherRain .8s ease-in infinite;
  animation-delay:var(--weather-delay,0s);
}
.goat-weather-drops.is-heavy .goat-weather-drop{animation-duration:.6s}
.goat-weather-flake{
  transform-box:fill-box;
  animation:goatWeatherSnowRight 2s ease-in infinite;
  animation-delay:var(--weather-delay,0s);
}
.goat-weather-flake.drift-left{animation-name:goatWeatherSnowLeft}
.goat-weather-bolt{animation:goatWeatherThunder 3s linear infinite}
.goat-weather-fog-line{
  animation:goatWeatherFog 3s ease-in-out infinite;
  animation-delay:var(--weather-delay,0s);
}
.goat-weather-wind-line{
  stroke-dasharray:1;
  stroke-dashoffset:1;
  animation:goatWeatherWind 1.5s ease-in-out infinite;
}
.goat-weather-wind-line.delay-1{animation-duration:2s;animation-delay:.3s}
.goat-weather-wind-line.delay-2{animation-duration:1.8s;animation-delay:.6s}
.goat-weather-sunrise{animation:goatWeatherSunrise 3s ease-in-out infinite alternate}
@keyframes goatWeatherSpin{to{transform:rotate(360deg)}}
@keyframes goatWeatherPulse{50%{transform:scale(1.15)}}
@keyframes goatWeatherCloud{25%{transform:translateX(2px)}75%{transform:translateX(-2px)}}
@keyframes goatWeatherStar{0%,100%{opacity:.2;transform:scale(.8)}50%{opacity:.9;transform:scale(1.2)}}
@keyframes goatWeatherRain{0%{opacity:.85;transform:translateY(0)}100%{opacity:0;transform:translateY(12px)}}
@keyframes goatWeatherSnowRight{0%{opacity:.85;transform:translate(0,0)}50%{transform:translate(3px,7px)}100%{opacity:0;transform:translate(0,14px)}}
@keyframes goatWeatherSnowLeft{0%{opacity:.85;transform:translate(0,0)}50%{transform:translate(-3px,7px)}100%{opacity:0;transform:translate(0,14px)}}
@keyframes goatWeatherThunder{0%,18%,28%,40%,62%,72%,100%{opacity:0}20%,24%,65%,68%{opacity:1}}
@keyframes goatWeatherFog{0%,100%{opacity:.25;transform:translateX(0)}50%{opacity:.7;transform:translateX(3px)}}
@keyframes goatWeatherWind{0%{stroke-dashoffset:1;opacity:.25}65%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes goatWeatherSunrise{from{transform:translateY(4px)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){
  .goat-weather-icon *{animation:none!important}
}

/* ================= 3.0A.50.35.57 layout and responsiveness fixes ====== */

/* Preserve the full descender area for names containing g, j, p, q or y.
   The glow is allowed outside the text line while the cluster stays at the
   first quarter of the live tablet display. */
.office-greeting{
  overflow:visible!important;
}
.office-greeting-glow{
  box-sizing:content-box!important;
  line-height:1.2!important;
  padding:0 .1em .18em!important;
  margin-bottom:-.18em;
  overflow:visible!important;
}
.office-greeting-glow::before{
  inset:-.02em -.06em -.14em!important;
  overflow:visible!important;
}

/* This is the Season Overview on the main Calendar page. A single full-width
   parent track and a four-column child grid give every statistic one quarter
   of the complete card, regardless of older calendar grid declarations. */
@media(min-width:821px){
  #profileCalendarPanel:not(.office-embedded-panel) .goat-calendar-overview-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    justify-items:stretch!important;
  }
  #profileCalendarPanel:not(.office-embedded-panel) #goatLeagueSeasonOverview{
    display:grid!important;
    grid-column:1/-1!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    column-gap:0!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    place-content:stretch!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
  #profileCalendarPanel:not(.office-embedded-panel) #goatLeagueSeasonOverview>.goat-calendar-stat{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:100%!important;
    text-align:center!important;
  }
}

/* Keep each Lineup control as its own field, but remove the extra panel that
   was wrapping the complete Saved preset / Preset name / Formation strip. */
#profileLineupPanel #lineupOwnerControls{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}

/* Starting Plan, Automated Reactions and the pitch already have their own
   cards, so the Tactical Centre itself should not look like a fourth card. */
#profileTacticsPanel .tactical-centre-v5{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* ================= 3.0A.50.35.58 liquid navigation + office live desk === */
/* Canonical redesign: this shell was a "restrained violet refraction" liquid-
   glass treatment — a purple-tinted background wash, a cool blue-white
   border, a violet corner bloom (::after) and a blue/violet active-tab
   gradient. It is shared chrome (every page's header uses this component),
   so it is fixed once, here, rather than patched per page. The glass/blur
   mechanic is kept; every purple/blue value underneath it is replaced with
   the homepage's near-black/antique-gold identity. */
.site-menu{
  position:relative!important;
  isolation:isolate;
  overflow:hidden;
  gap:4px!important;
  padding:5px!important;
  border:1px solid var(--goat-glass-edge,rgba(212,169,79,.28))!important;
  border-radius:999px!important;
  background:var(--goat-glass-surface,linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 48%,rgba(212,169,79,.07)),rgba(8,7,6,.5))!important;
  box-shadow:
    0 12px 34px rgba(1,1,1,.32),
    inset 0 1px 0 var(--goat-glass-highlight,rgba(255,255,255,.14)),
    inset 0 -1px 0 rgba(212,169,79,.10)!important;
  -webkit-backdrop-filter:var(--goat-glass-filter,blur(20px) saturate(140%))!important;
  backdrop-filter:var(--goat-glass-filter,blur(20px) saturate(140%))!important;
}
.site-menu::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:1px 8% 55%;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,0));
  filter:blur(4px);
  pointer-events:none;
}
.site-menu::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-9%;
  bottom:-80%;
  width:52%;
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(212,169,79,.12);
  filter:blur(18px);
  pointer-events:none;
}
.site-menu button,
.site-menu a{
  position:relative;
  z-index:1;
  min-height:38px!important;
  padding:8px 18px!important;
  overflow:hidden;
  border:1px solid transparent!important;
  border-radius:999px!important;
  color:rgba(217,209,194,.8)!important;
  text-shadow:0 1px 7px rgba(0,0,0,.42);
  transition:color .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease,transform .2s ease!important;
}
.site-menu button small,
.site-menu a small{
  color:#e5c377;
}
.site-menu button:hover,
.site-menu button:focus-visible,
.site-menu a:hover,
.site-menu a:focus-visible{
  color:#fbf7ef!important;
  border-color:rgba(212,169,79,.22)!important;
  background:rgba(212,169,79,.07)!important;
  transform:translateY(-1px);
}
.site-menu button.active,
.site-menu a.active{
  color:#f0d79b!important;
  border-color:rgba(212,169,79,.5)!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.02) 55%,rgba(212,169,79,.16))!important;
  box-shadow:
    0 5px 18px rgba(2,2,1,.24),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -8px 18px rgba(212,169,79,.10)!important;
}
.site-menu button.active::after,
.site-menu a.active::after{
  content:"";
  position:absolute;
  inset:1px 12% 58%;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.30),transparent);
  pointer-events:none;
}

/* Live tablet dashboard. Construction cards use the actual infrastructure and
   stadium queues; the folder uses the manager's five highest-rated cards. */
.office-live-dashboard{
  position:absolute;
  z-index:8;
  inset:42px 3.2% 88px;
  display:grid;
  grid-template-columns:1fr;
  align-items:stretch;
  gap:clamp(12px,2vw,24px);
  min-width:0;
  min-height:0;
  pointer-events:auto;
  transition:opacity .24s ease,transform .24s ease;
}
.office-live-dashboard.has-upgrades{
  grid-template-columns:minmax(0,1.45fr) minmax(190px,.72fr);
}
.office-live-loading{
  display:grid;
  place-items:center;
  color:rgba(251,247,239,0.58);
  font:750 .58rem var(--body);
  letter-spacing:.08em;
  text-transform:uppercase;
}
.office-view.is-locked .office-live-dashboard,
.office-view.has-app-open .office-live-dashboard,
.office-view.is-greeting-visible .office-live-dashboard{
  opacity:0;
  transform:translateY(5px) scale(.992);
  pointer-events:none;
}
.office-view.is-locked .office-live-dashboard{transition:none}
.office-greeting{z-index:14!important}
.office-tablet .office-dock{z-index:16}

.office-live-upgrades{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  align-content:start;
  gap:7px;
  min-width:0;
  min-height:0;
}
.office-live-upgrades>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:18px;
  padding:0 3px;
  color:#fbf7ef;
  font:900 .54rem var(--body);
  letter-spacing:.13em;
}
.office-live-upgrades>header small{
  color:rgba(217,209,194,0.72);
  font-size:.48rem;
  letter-spacing:.08em;
}
.office-live-upgrades>div{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:8px;
  min-width:0;
}
.office-live-upgrade-card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto 6px auto;
  gap:5px 9px;
  min-width:0;
  min-height:132px;
  padding:10px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.19);
  border-radius:13px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.035) 48%,rgba(42,34,20,0.11)),
    rgba(13,12,10,0.56);
  color:#fbf7ef;
  text-align:left;
  box-shadow:0 12px 30px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter:blur(14px) saturate(135%);
  backdrop-filter:blur(14px) saturate(135%);
  cursor:pointer;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.office-live-upgrade-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(115deg,rgba(255,255,255,.09),transparent 28%,transparent 72%,rgba(76,57,21,0.06));
  pointer-events:none;
}
.office-live-upgrade-card:hover,
.office-live-upgrade-card:focus-visible{
  z-index:2;
  border-color:rgba(212,169,79,0.42);
  outline:none;
  transform:translateY(-3px);
  box-shadow:0 17px 34px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.18);
}
.office-live-upgrade-date{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
  color:rgba(251,247,239,0.62);
}
.office-live-upgrade-date small{font:850 .43rem var(--body);letter-spacing:.08em}
.office-live-upgrade-date strong{color:#fff;font:900 .55rem var(--body);letter-spacing:.04em}
.office-live-upgrade-copy{
  grid-column:1/-1;
  display:grid;
  gap:2px;
  min-width:0;
}
.office-live-upgrade-copy strong{
  overflow:hidden;
  color:#fff;
  font:900 clamp(.64rem,1vw,.88rem)/1 var(--display);
  letter-spacing:.03em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.office-live-upgrade-copy small{color:rgba(217,209,194,0.7);font:780 .47rem var(--body);letter-spacing:.06em}
.office-live-upgrade-track{
  grid-column:1/-1;
  align-self:center;
  display:block;
  height:6px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  border-radius:999px;
  background:rgba(13,12,10,0.6);
}
.office-live-upgrade-track i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#4c3915,#70e9c4 62%,#4c3915);
  box-shadow:0 0 12px rgba(212,169,79,0.35);
}
.office-live-upgrade-footer{
  grid-column:1/-1;
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.office-live-upgrade-image{
  flex:0 0 32px;
  width:32px;
  height:32px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.20);
  border-radius:8px;
  background:#0d0c0a;
  box-shadow:0 5px 12px rgba(0,0,0,.30);
}
.office-live-upgrade-image img{display:block;width:100%;height:100%;object-fit:cover}
.office-live-upgrade-footer>span:last-child{display:grid;gap:1px;min-width:0}
.office-live-upgrade-footer strong{color:#fbf7ef;font:900 .52rem var(--body);letter-spacing:.045em}
.office-live-upgrade-footer small{color:rgba(217,209,194,0.66);font:800 .42rem var(--body);letter-spacing:.06em}

.office-squad-folder{
  position:relative;
  align-self:center;
  justify-self:center;
  width:min(100%,270px);
  height:210px;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.34));
  transition:transform .25s ease,filter .25s ease;
}
.office-live-dashboard:not(.has-upgrades) .office-squad-folder{justify-self:center;width:min(58%,300px)}
.office-squad-folder:hover,
.office-squad-folder:focus-visible{
  outline:none;
  transform:translateY(-4px);
  filter:drop-shadow(0 23px 30px rgba(0,0,0,.43));
}
.office-squad-folder-back{
  position:absolute;
  z-index:1;
  inset:56px 0 12px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.24);
  border-radius:14px;
  background:linear-gradient(150deg,rgba(76,57,21,0.9),rgba(42,34,20,0.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20);
}
.office-squad-folder-back::before{
  content:"";
  position:absolute;
  top:-16px;
  left:13px;
  width:45%;
  height:34px;
  border-radius:11px 15px 0 0;
  background:#4c3915;
}
.office-squad-folder-back small{
  position:absolute;
  top:11px;
  left:14px;
  color:rgba(251,247,239,0.54);
  font:850 .43rem var(--body);
  letter-spacing:.10em;
}
.office-squad-preview-stack{position:absolute;z-index:2;inset:0;pointer-events:none}
.office-squad-preview-card{
  position:absolute;
  left:50%;
  bottom:65px;
  z-index:calc(3 + var(--folder-index));
  display:block;
  width:66px;
  aspect-ratio:.70;
  transform:translateX(calc(-50% + var(--folder-rest))) rotate(var(--folder-rest-angle));
  transform-origin:50% 100%;
  transition:transform .34s cubic-bezier(.2,.72,.24,1),filter .34s ease;
  filter:drop-shadow(0 7px 7px rgba(0,0,0,.28));
}
.office-squad-folder:hover .office-squad-preview-card,
.office-squad-folder:focus-visible .office-squad-preview-card{
  transform:translateX(calc(-50% + var(--folder-open))) translateY(-14px) rotate(var(--folder-open-angle));
  filter:drop-shadow(0 10px 9px rgba(0,0,0,.34));
}
.office-squad-preview-art{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  clip-path:polygon(3% 4%,83% 4%,97% 14%,97% 89%,92% 97%,13% 97%,3% 88%);
  background:radial-gradient(circle at 50% 44%,color-mix(in srgb,var(--folder-rarity) 74%,#fff),color-mix(in srgb,var(--folder-rarity) 32%,#0d0c0a) 70%);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--folder-rarity) 72%,#fff);
}
.office-squad-preview-portrait{
  position:absolute;
  z-index:1;
  left:50%;
  bottom:5%;
  width:112%;
  height:88%;
  object-fit:contain;
  object-position:center bottom;
  transform:translateX(-50%);
}
.office-squad-preview-template{position:absolute;z-index:2;inset:0;width:100%;height:100%;object-fit:fill}
.office-squad-preview-art>b,
.office-squad-preview-art>em,
.office-squad-preview-art>strong{
  position:absolute;
  z-index:3;
  color:#fff;
  font-family:var(--display);
  font-style:normal;
  line-height:1;
  text-shadow:0 1px 3px rgba(0,0,0,.9);
}
.office-squad-preview-art>b{top:9%;left:9%;font-size:.70rem}
.office-squad-preview-art>em{top:25%;left:9%;font-size:.31rem}
.office-squad-preview-art>strong{right:8%;bottom:9%;left:8%;overflow:hidden;font-size:.34rem;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.office-squad-folder-front{
  position:absolute;
  z-index:12;
  right:0;
  bottom:0;
  left:0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  min-height:92px;
  padding:22px 18px 15px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,0.28);
  border-radius:13px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.045) 45%,rgba(76,57,21,0.22)),
    rgba(42,34,20,0.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.23),0 -5px 16px rgba(9,7,4,0.14);
  -webkit-backdrop-filter:blur(11px) saturate(140%);
  backdrop-filter:blur(11px) saturate(140%);
}
.office-squad-folder-front::before{
  content:"";
  position:absolute;
  inset:1px 8% 57%;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.16),transparent);
  pointer-events:none;
}
.office-squad-folder-front>span{position:relative;z-index:2;display:grid;gap:3px;text-align:left}
.office-squad-folder-front strong{font:900 1rem var(--display);letter-spacing:.06em}
.office-squad-folder-front small{color:rgba(251,247,239,0.66);font:800 .47rem var(--body);letter-spacing:.08em}
.office-squad-folder-front em{position:relative;z-index:2;color:#fbf7ef;font:900 .48rem var(--body);font-style:normal;letter-spacing:.10em}

@media(max-width:1000px){
  .office-live-dashboard{inset:37px 2.6% 76px;gap:9px}
  .office-live-dashboard.has-upgrades{grid-template-columns:minmax(0,1.25fr) minmax(145px,.75fr)}
  .office-live-upgrades>div{grid-template-columns:1fr}
  .office-live-upgrades>div>.office-live-upgrade-card:nth-child(n+3){display:none}
  .office-live-upgrade-card{min-height:112px;padding:8px;gap:3px 7px}
  .office-live-upgrade-image{flex-basis:27px;width:27px;height:27px}
  .office-squad-folder{height:174px}
  .office-squad-preview-card{width:52px;bottom:54px}
  .office-squad-folder-front{min-height:76px;padding:18px 12px 11px}
  .office-squad-folder-front strong{font-size:.78rem}
}
@media(max-width:760px){
  .site-menu{padding:5px!important;overflow:hidden!important}
  .site-menu button,.site-menu a{flex:1 1 auto!important;justify-content:center;min-width:0;padding-inline:12px!important}
  .office-live-dashboard.has-upgrades{grid-template-columns:minmax(0,1.15fr) minmax(128px,.85fr)}
  .office-live-upgrades>div>.office-live-upgrade-card:nth-child(n+2){display:none}
  .office-live-upgrade-card{min-height:106px}
  .office-live-upgrade-date small,.office-live-upgrade-footer small{display:none}
  .office-squad-folder{height:150px}
  .office-squad-preview-card{width:43px;bottom:49px}
  .office-squad-folder:hover .office-squad-preview-card,
  .office-squad-folder:focus-visible .office-squad-preview-card{transform:translateX(calc(-50% + var(--folder-open-mobile))) translateY(-8px) rotate(var(--folder-open-angle-mobile))}
  .office-squad-folder-front{min-height:64px;padding:15px 10px 9px}
  .office-squad-folder-front em{display:none}
}
@media(max-height:700px){
  .office-live-dashboard{inset:34px 2.8% 68px}
  .office-live-upgrades>div>.office-live-upgrade-card:nth-child(n+3){display:none}
  .office-live-upgrade-card{min-height:106px;padding:8px}
  .office-squad-folder{height:154px}
  .office-squad-preview-card{width:45px;bottom:50px}
  .office-squad-folder-front{min-height:66px;padding:15px 11px 10px}
}
@media(prefers-reduced-motion:reduce){
  .office-live-dashboard,.office-live-upgrade-card,.office-squad-folder,.office-squad-preview-card{transition:none!important}
}

/* ================= 3.0A.50.35.59 movable tablet workspace ============== */

/* The live screen is a bounded desktop rather than a stretching grid. Each
   child receives a saved left/top coordinate from app.js and can be arranged
   independently without ever escaping underneath the tablet frame. */
.office-live-dashboard,
.office-live-dashboard.has-upgrades{
  display:block!important;
  overflow:hidden;
  container-type:size;
}
.office-live-dashboard.is-positioning .office-live-widget{visibility:hidden}
.office-live-widget{
  position:absolute!important;
  right:auto!important;
  bottom:auto!important;
  box-sizing:border-box;
  margin:0!important;
  user-select:none;
  -webkit-user-select:none;
  touch-action:none;
  cursor:grab!important;
  will-change:left,top,filter;
}
.office-live-widget img{pointer-events:none;-webkit-user-drag:none}
.office-live-widget.is-dragging{
  cursor:grabbing!important;
  transform:none!important;
  transition:none!important;
  filter:drop-shadow(0 24px 30px rgba(0,0,0,.46))!important;
}

/* Course-card composition: a real date header, centred project identity,
   labelled progress area and a separate image/countdown footer. */
.office-live-upgrade-card{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:42px minmax(46px,1fr) 54px 62px!important;
  gap:0!important;
  width:clamp(238px,29%,318px)!important;
  height:clamp(185px,60%,235px)!important;
  min-width:0!important;
  min-height:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid rgba(212,169,79,0.12)!important;
  border-top-color:color-mix(in srgb,var(--widget-accent) 72%,#fff)!important;
  border-right-color:color-mix(in srgb,var(--widget-accent) 58%,rgba(255,255,255,.12))!important;
  border-radius:clamp(18px,2.1cqw,30px)!important;
  background:
    radial-gradient(105% 105% at 100% 0%,color-mix(in srgb,var(--widget-accent) 34%,transparent),transparent 58%),
    linear-gradient(145deg,rgba(13,12,10,0.97),rgba(13,12,10,0.96))!important;
  color:#fff!important;
  box-shadow:0 15px 30px rgba(0,0,0,.30),inset 0 1px rgba(255,255,255,.035)!important;
  -webkit-backdrop-filter:blur(14px) saturate(125%)!important;
  backdrop-filter:blur(14px) saturate(125%)!important;
  transform:none!important;
  transition:border-color .2s ease,box-shadow .2s ease,filter .2s ease!important;
}
.office-live-upgrade-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  border-radius:inherit;
  background:linear-gradient(112deg,rgba(255,255,255,.035),transparent 36%);
  pointer-events:none;
}
.office-live-upgrade-card::after{content:none!important}
.office-live-upgrade-card:hover,
.office-live-upgrade-card:focus-visible{
  border-color:color-mix(in srgb,var(--widget-accent) 72%,#fff)!important;
  outline:none!important;
  transform:none!important;
  box-shadow:0 19px 36px rgba(0,0,0,.38),0 0 0 1px color-mix(in srgb,var(--widget-accent) 16%,transparent) inset!important;
}
.office-live-upgrade-card>span{position:relative;z-index:1;box-sizing:border-box}
.office-live-upgrade-date{
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  padding:0 20px!important;
  color:#fbf7ef!important;
}
.office-live-upgrade-date strong{
  color:inherit!important;
  font:600 clamp(.60rem,1.15cqw,.82rem)/1 var(--body)!important;
  letter-spacing:0!important;
  text-transform:none!important;
}
.office-live-upgrade-menu{
  position:absolute!important;
  z-index:4!important;
  top:12px;
  right:18px!important;
  display:block!important;
  width:auto!important;
  color:rgba(255,255,255,.90)!important;
  font:800 1rem/1 var(--body)!important;
  letter-spacing:0!important;
}
.office-live-upgrade-copy{
  grid-row:2!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:3px 20px 8px!important;
  text-align:center!important;
}
.office-live-upgrade-copy strong{
  max-width:100%;
  overflow:hidden;
  color:#fff!important;
  font:800 clamp(.82rem,1.8cqw,1.16rem)/1.05 var(--body)!important;
  letter-spacing:-.025em!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.office-live-upgrade-copy small{
  color:rgba(251,247,239,0.86)!important;
  font:500 clamp(.55rem,1.05cqw,.72rem)/1 var(--body)!important;
  letter-spacing:0!important;
}
.office-live-upgrade-progress{
  grid-row:3!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto 5px auto!important;
  align-content:center!important;
  gap:5px 8px!important;
  padding:0 20px 7px!important;
}
.office-live-upgrade-progress>strong{
  grid-column:1/-1;
  color:#fff;
  font:750 clamp(.55rem,1.05cqw,.70rem)/1 var(--body);
  letter-spacing:0;
  text-transform:none;
}
.office-live-upgrade-progress>.office-live-upgrade-track{
  grid-column:1/-1!important;
  display:block!important;
  align-self:center!important;
  width:100%!important;
  height:5px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.15)!important;
}
.office-live-upgrade-progress>.office-live-upgrade-track i{
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  background:var(--widget-accent)!important;
  box-shadow:0 0 10px color-mix(in srgb,var(--widget-accent) 36%,transparent)!important;
}
.office-live-upgrade-progress>b{
  grid-column:2;
  color:#fff;
  font:700 clamp(.55rem,1cqw,.70rem)/1 var(--body);
}
.office-live-upgrade-footer{
  grid-row:4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-width:0!important;
  padding:10px 18px!important;
  border-top:1px solid rgba(255,255,255,.10)!important;
  background:rgba(13,12,10,0.36)!important;
}
.office-live-upgrade-image{
  flex:0 0 39px!important;
  width:39px!important;
  height:39px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.19)!important;
  border-radius:50%!important;
  background:#0d0c0a!important;
  box-shadow:0 5px 13px rgba(0,0,0,.35)!important;
}
.office-live-upgrade-image img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important}
.office-live-upgrade-footer>strong{
  display:grid!important;
  place-items:center!important;
  min-width:96px!important;
  min-height:38px!important;
  padding:0 15px!important;
  border-radius:999px!important;
  background:rgba(23,21,15,0.88)!important;
  color:#fff!important;
  font:700 clamp(.53rem,1cqw,.67rem)/1 var(--body)!important;
  letter-spacing:0!important;
  text-align:center!important;
}

/* Folder gallery: large real player cards are visibly fanned even at rest;
   hover/focus opens the fan further while the whole folder remains draggable. */
.office-squad-folder,
.office-live-dashboard:not(.has-upgrades) .office-squad-folder{
  align-self:auto!important;
  justify-self:auto!important;
  width:clamp(258px,34%,360px)!important;
  height:clamp(200px,72%,280px)!important;
  min-width:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#fff!important;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.36))!important;
  transform:none!important;
  transition:filter .24s ease!important;
}
.office-squad-folder:hover,
.office-squad-folder:focus-visible{
  outline:none!important;
  transform:none!important;
  filter:drop-shadow(0 24px 30px rgba(0,0,0,.46))!important;
}
.office-squad-folder-back{
  position:absolute!important;
  z-index:1!important;
  inset:32% 2% 6%!important;
  overflow:visible!important;
  border:1px solid rgba(255,255,255,.13)!important;
  border-radius:clamp(15px,2cqw,23px)!important;
  background:linear-gradient(155deg,rgba(52,52,57,.98),rgba(13,12,10,0.99))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.08),0 12px 24px rgba(0,0,0,.24)!important;
}
.office-squad-folder-back::before{
  content:""!important;
  position:absolute!important;
  top:-15px!important;
  left:7%!important;
  width:43%!important;
  height:30px!important;
  border-radius:11px 14px 0 0!important;
  background:#17150f!important;
}
.office-squad-folder-back small{display:none!important}
.office-squad-preview-stack{position:absolute!important;z-index:3!important;inset:0!important;overflow:visible!important;pointer-events:none!important}
.office-squad-preview-card{
  left:50%!important;
  bottom:36%!important;
  width:clamp(74px,7vw,102px)!important;
  aspect-ratio:.70!important;
  transform:translateX(calc(-50% + var(--folder-rest))) rotate(var(--folder-rest-angle))!important;
  transform-origin:50% 100%!important;
  filter:drop-shadow(0 9px 9px rgba(0,0,0,.38))!important;
  transition:transform .34s cubic-bezier(.2,.72,.24,1),filter .34s ease!important;
}
.office-squad-folder:hover .office-squad-preview-card,
.office-squad-folder:focus-visible .office-squad-preview-card{
  transform:translateX(calc(-50% + var(--folder-open))) translateY(-13px) rotate(var(--folder-open-angle))!important;
  filter:drop-shadow(0 13px 11px rgba(0,0,0,.44))!important;
}
.office-squad-preview-art{
  border:1px solid color-mix(in srgb,var(--folder-rarity) 72%,#fff)!important;
  border-radius:9px!important;
  clip-path:polygon(3% 4%,83% 4%,97% 14%,97% 89%,92% 97%,13% 97%,3% 88%)!important;
  background:radial-gradient(circle at 50% 44%,color-mix(in srgb,var(--folder-rarity) 72%,#fff),color-mix(in srgb,var(--folder-rarity) 32%,#0d0c0a) 70%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important;
}
.office-squad-preview-art>b{font-size:clamp(.66rem,1.1vw,.90rem)!important}
.office-squad-preview-art>em{font-size:clamp(.28rem,.5vw,.40rem)!important}
.office-squad-preview-art>strong{font-size:clamp(.30rem,.52vw,.42rem)!important}
.office-squad-folder-front{
  position:absolute!important;
  z-index:12!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  display:grid!important;
  place-items:center!important;
  min-height:43%!important;
  padding:15px!important;
  overflow:hidden!important;
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:clamp(15px,2cqw,23px)!important;
  background:linear-gradient(150deg,rgba(59,59,64,.98),rgba(13,12,10,0.99))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 -6px 18px rgba(0,0,0,.18)!important;
  -webkit-backdrop-filter:blur(12px) saturate(110%)!important;
  backdrop-filter:blur(12px) saturate(110%)!important;
}
.office-squad-folder-front::before{
  inset:1px 5% 57%!important;
  background:linear-gradient(180deg,rgba(255,255,255,.10),transparent)!important;
}
.office-squad-folder-front>span{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  gap:4px!important;
  min-width:58%!important;
  padding:10px 18px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:11px!important;
  background:rgba(1,1,3,.88)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.035)!important;
  text-align:center!important;
}
.office-squad-folder-front strong{font:850 clamp(.72rem,1.4cqw,.98rem)/1 var(--body)!important;letter-spacing:.035em!important}
.office-squad-folder-front small{color:rgba(251,247,239,0.56)!important;font:700 clamp(.40rem,.74cqw,.52rem)/1 var(--body)!important;letter-spacing:.08em!important}

.office-live-dashboard.is-compact-layout .office-live-upgrade-card{
  width:min(31.5%,205px)!important;
}
.office-live-dashboard.is-compact-layout .office-squad-folder{
  width:min(34%,225px)!important;
}
.office-live-dashboard.is-compact-layout:not(.has-upgrades) .office-squad-folder{width:min(70%,320px)!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-card{
  height:clamp(138px,46%,160px)!important;
  grid-template-rows:31px minmax(35px,1fr) 42px 46px!important;
  border-radius:16px!important;
}
.office-live-dashboard.is-low-layout .office-live-upgrade-date{padding-inline:13px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-menu{top:8px!important;right:12px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-copy{gap:3px!important;padding:1px 13px 4px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-progress{gap:3px 6px!important;padding:0 13px 4px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-footer{padding:6px 12px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-image{flex-basis:31px!important;width:31px!important;height:31px!important}
.office-live-dashboard.is-low-layout .office-live-upgrade-footer>strong{min-width:82px!important;min-height:31px!important;padding-inline:10px!important}
.office-live-dashboard.is-low-layout .office-squad-folder{height:clamp(168px,66%,195px)!important}
.office-live-dashboard.is-low-layout .office-squad-preview-card{width:clamp(60px,6vw,80px)!important}

@media(max-width:760px){
  .office-squad-preview-card{transform:translateX(calc(-50% + var(--folder-open-mobile))) rotate(var(--folder-open-angle-mobile))!important}
  .office-squad-folder:hover .office-squad-preview-card,
  .office-squad-folder:focus-visible .office-squad-preview-card{transform:translateX(calc(-50% + var(--folder-open-mobile))) translateY(-8px) rotate(var(--folder-open-angle-mobile))!important}
}
@media(prefers-reduced-motion:reduce){
  .office-live-widget,.office-squad-preview-card{transition:none!important}
}

/* ================= 3.0A.50.35.60 exact prompt proportions ============= */

/* Course widgets are true squares. JavaScript calculates one shared side
   length from the number of live projects and the usable tablet canvas. */
.office-live-dashboard .office-live-upgrade-card,
.office-live-dashboard.is-compact-layout .office-live-upgrade-card,
.office-live-dashboard.is-low-layout .office-live-upgrade-card{
  width:var(--office-course-size,190px)!important;
  height:var(--office-course-size,190px)!important;
  aspect-ratio:1!important;
  grid-template-rows:16% 27% 31% 26%!important;
  border-radius:clamp(17px,2.2cqw,28px)!important;
}
.office-live-dashboard .office-live-upgrade-date{padding-inline:7%!important}
.office-live-dashboard .office-live-upgrade-menu{top:5.5%!important;right:7%!important}
.office-live-dashboard .office-live-upgrade-copy{gap:5px!important;padding:1% 7% 3%!important}
.office-live-dashboard .office-live-upgrade-copy strong{font-size:clamp(.68rem,1.6cqw,1.06rem)!important}
.office-live-dashboard .office-live-upgrade-copy small{font-size:clamp(.47rem,.9cqw,.66rem)!important}
.office-live-dashboard .office-live-upgrade-progress{gap:4px 6px!important;padding:1% 7% 4%!important}
.office-live-dashboard .office-live-upgrade-footer{padding:5% 7%!important}
.office-live-dashboard .office-live-upgrade-image{flex-basis:20%!important;width:20%!important;height:auto!important;aspect-ratio:1!important}
.office-live-dashboard .office-live-upgrade-footer>strong{min-width:48%!important;min-height:68%!important;padding-inline:7%!important}

/* The supplied gallery is based on a 400 × 500 stage. Preserve every major
   ratio from that component: 320 × 224 folder back, 340 × 176 front and
   224 × 288 player cards. This also makes the folder narrower than before. */
.office-live-dashboard .office-squad-folder,
.office-live-dashboard.has-upgrades .office-squad-folder,
.office-live-dashboard:not(.has-upgrades) .office-squad-folder,
.office-live-dashboard.is-compact-layout .office-squad-folder,
.office-live-dashboard.is-compact-layout:not(.has-upgrades) .office-squad-folder,
.office-live-dashboard.is-low-layout .office-squad-folder{
  width:auto!important;
  height:min(88%,400px)!important;
  aspect-ratio:4/5!important;
  max-width:none!important;
  max-height:400px!important;
}
.office-live-dashboard .office-squad-folder-back{
  inset:auto auto 4.8% 10%!important;
  width:80%!important;
  height:44.8%!important;
  border-radius:clamp(10px,1.25cqw,18px)!important;
}
.office-live-dashboard .office-squad-folder-back::before{
  top:-17.8%!important;
  left:0!important;
  width:40%!important;
  height:17.8%!important;
  border-radius:10px 10px 0 0!important;
}
.office-live-dashboard .office-squad-folder-back::after{
  content:"";
  position:absolute;
  inset:9% 2.5% 3.5%;
  border-radius:9px;
  background:#050506;
  box-shadow:inset 0 0 22px rgba(0,0,0,.82);
  pointer-events:none;
}
.office-live-dashboard .office-squad-preview-card{
  left:50%!important;
  bottom:8%!important;
  width:56%!important;
  height:57.6%!important;
  aspect-ratio:7/9!important;
  transform:translate(calc(-50% + var(--folder-rest-x)),var(--folder-rest-y)) rotate(var(--folder-rest-angle)) scale(var(--folder-card-scale))!important;
  border-radius:clamp(7px,1cqw,12px)!important;
}
.office-live-dashboard .office-squad-folder:hover .office-squad-preview-card,
.office-live-dashboard .office-squad-folder:focus-visible .office-squad-preview-card{
  transform:translate(calc(-50% + var(--folder-hover-x)),var(--folder-hover-y)) rotate(var(--folder-hover-angle)) scale(var(--folder-card-scale))!important;
}
.office-live-dashboard .office-squad-preview-template{z-index:1!important}
.office-live-dashboard .office-squad-preview-portrait{
  z-index:2!important;
  bottom:3%!important;
  width:116%!important;
  height:91%!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
.office-live-dashboard .office-squad-preview-art>b,
.office-live-dashboard .office-squad-preview-art>em,
.office-live-dashboard .office-squad-preview-art>strong{z-index:3!important}
.office-live-dashboard .office-squad-folder-front{
  right:auto!important;
  left:7.5%!important;
  bottom:0!important;
  width:85%!important;
  height:35.2%!important;
  min-height:0!important;
  padding:8%!important;
  border-radius:clamp(11px,1.5cqw,20px)!important;
}
.office-live-dashboard .office-squad-folder-front>span{
  display:grid!important;
  place-items:center!important;
  gap:4px!important;
  min-width:68%!important;
  padding:7% 10%!important;
  text-align:center!important;
}
.office-live-dashboard .office-squad-folder-front strong,
.office-live-dashboard .office-squad-folder-front small{
  width:100%!important;
  text-align:center!important;
}

@media(max-width:760px){
  .office-live-dashboard .office-squad-preview-card{
    transform:translate(calc(-50% + var(--folder-rest-x)),var(--folder-rest-y)) rotate(var(--folder-rest-angle)) scale(var(--folder-card-scale))!important;
  }
  .office-live-dashboard .office-squad-folder:hover .office-squad-preview-card,
  .office-live-dashboard .office-squad-folder:focus-visible .office-squad-preview-card{
    transform:translate(calc(-50% + var(--folder-hover-x)),var(--folder-hover-y)) rotate(var(--folder-hover-angle)) scale(var(--folder-card-scale))!important;
  }
}

/* ================= 3.0A.50.35.61 folder finish ========================= */

/* The old tab belonged to the generic folder treatment. At this scale it
   reads as a separate floating piece, so the live SQUAD folder omits it. */
.office-live-dashboard .office-squad-folder-back::before{
  content:none!important;
  display:none!important;
}

/* Anchor the label to the front panel itself. Absolute centring prevents
   earlier responsive padding and alignment rules from pulling it left. */
.office-live-dashboard .office-squad-folder-front>span{
  position:absolute!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  left:50%!important;
  width:auto!important;
  min-width:58%!important;
  margin:0!important;
  transform:translate(-50%,-50%)!important;
  place-items:center!important;
}

/* The site uses a permanent scrollbar gutter and a violet global scrollbar.
   Neither belongs beside the full-screen Office. Limit this reset to the
   document roots so scrollable tablet applications keep their own scrollbar. */
html.office-open{
  overflow:hidden!important;
  scrollbar-gutter:auto!important;
  scrollbar-width:none!important;
}
body.office-open{
  overflow:hidden!important;
  scrollbar-width:none!important;
}
html.office-open::-webkit-scrollbar,
body.office-open::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}

/* ================= 3.0A.50.35.62 lineup and tactics folders ============ */

/* Tactics reuses the exact gallery geometry of Lineup, but each preview is a
   self-contained pitch card with a genuinely different formation. */
.office-live-dashboard .office-formation-preview-art{
  position:absolute;
  inset:0;
  display:block;
  overflow:hidden;
  border:1px solid rgba(154,255,191,.72);
  border-radius:clamp(7px,1cqw,12px);
  clip-path:polygon(3% 4%,83% 4%,97% 14%,97% 89%,92% 97%,13% 97%,3% 88%);
  background:
    linear-gradient(90deg,rgba(255,255,255,.025) 50%,transparent 50%) 0 0/24% 100%,
    linear-gradient(155deg,#176b43,#0a3d2c 62%,#071d19);
  box-shadow:inset 0 0 24px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.08);
}
.office-live-dashboard .office-formation-pitch-lines{
  position:absolute;
  inset:7% 8% 12%;
  display:block;
  border:1px solid rgba(225,255,237,.46);
  border-radius:2px;
}
.office-live-dashboard .office-formation-pitch-lines::before{
  content:"";
  position:absolute;
  top:50%;
  right:0;
  left:0;
  border-top:1px solid rgba(225,255,237,.42);
}
.office-live-dashboard .office-formation-pitch-lines::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:31%;
  aspect-ratio:1;
  border:1px solid rgba(225,255,237,.42);
  border-radius:50%;
  transform:translate(-50%,-50%);
}
.office-live-dashboard .office-formation-preview-art>i{
  position:absolute;
  z-index:2;
  width:7.5%;
  aspect-ratio:1;
  border:1px solid rgba(4,33,24,.68);
  border-radius:50%;
  background:#eafff2;
  box-shadow:0 1px 3px rgba(0,0,0,.65),0 0 0 1px rgba(111,255,173,.34);
  transform:translate(-50%,-50%);
}
.office-live-dashboard .office-formation-preview-art>strong{
  position:absolute;
  z-index:3;
  right:8%;
  bottom:3.5%;
  left:8%;
  color:#f4fff8;
  font:850 clamp(.30rem,.58cqw,.47rem)/1 var(--body);
  letter-spacing:.06em;
  text-align:center;
  text-shadow:0 1px 3px rgba(0,0,0,.85);
}
.office-live-dashboard .office-tactics-folder .office-squad-folder-back{
  border-color:rgba(116,210,157,.20)!important;
  background:linear-gradient(155deg,rgba(40,55,49,.99),rgba(15,22,20,.99))!important;
}
.office-live-dashboard .office-tactics-folder .office-squad-folder-front{
  border-color:rgba(137,223,174,.20)!important;
  background:linear-gradient(150deg,rgba(48,61,56,.99),rgba(19,25,23,.99))!important;
}

/* ================= 3.0A.50.35.63 office depth and world globe =========== */

/* The room photograph is isolated from the tablet and desk objects so its
   exit treatment cannot disturb their individual interactions. */
.office-scene{
  inset:0!important;
  background:none!important;
  transition:scale .62s cubic-bezier(.16,1,.3,1),opacity .42s ease,filter .5s ease!important;
}
.office-scene::before{content:none!important}
.office-room-look-layer{
  position:absolute;
  z-index:0;
  inset:0;
  background-image:image-set(url('/management-backgrounds/office-v3.webp?v=503580') type('image/webp'),url('/management-backgrounds/office-v3.png') type('image/png'));
  background-position:50% 50%;
  background-repeat:no-repeat;
  background-size:cover;
  transform-origin:50% 62%;
  scale:1;
  opacity:1;
  filter:blur(0);
  transition:scale .62s cubic-bezier(.16,1,.3,1),opacity .42s ease,filter .5s ease;
  pointer-events:none;
}
.office-view.is-leaving .office-room-look-layer{
  scale:.82;
  opacity:0;
  filter:blur(12px);
}

/* Repositioned for the replaced Office background (office.png, 1672x941):
   the open desk area right of the notebook stack and below the sofa
   (measured directly against the new image, not carried over from the old
   side-table coordinates). Enlarged ~4x from the previous pass's
   clamp(40px,2.8vw,68px) — that read as too small a globe on the desk — and
   nudged down (76%→79%) and slightly left (93%→90%) so the much larger
   sphere still sits fully on-screen and clear of the notebook stack, rather
   than crowding the right viewport edge.
   Nudged again (79%→75.5%, 90%→92.5%) — at that size its stand was landing
   on the leather portfolio's near edge instead of the open desk beside it;
   moved up and right onto the clear wood strip between the book stack and
   the portfolio's top corner, measured against the source image with a
   pixel grid overlaid on it. */
.office-desk-globe{
  position:absolute;
  z-index:3;
  top:75.5%;
  left:92.5%;
  width:clamp(160px,11.2vw,272px);
  aspect-ratio:1;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  cursor:grab;
  touch-action:none;
  -webkit-tap-highlight-color:transparent;
  transform:translate(-50%,-50%);
  transform-origin:center;
  transition:none;
  filter:none;
  box-shadow:none;
}
.office-desk-globe.is-dragging{cursor:grabbing}
.office-desk-globe-visual{
  position:absolute;
  inset:0;
  display:block;
  overflow:visible;
}
.office-desk-globe canvas{
  position:absolute;
  z-index:1;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  pointer-events:auto;
  cursor:inherit;
}
.office-desk-globe-stand{
  position:absolute;
  z-index:2;
  top:calc(75.5% + clamp(64px,5.6vw,136px));
  left:92.5%;
  width:clamp(80px,5.6vw,136px);
  height:clamp(20px,1.52vw,36px);
  border:1px solid rgba(211,222,227,.42);
  border-radius:50%;
  background:linear-gradient(180deg,#39434a,#07090b 70%);
  box-shadow:0 5px 7px rgba(0,0,0,.72);
  pointer-events:none;
  transform:translate(-50%,-50%);
}
.office-desk-globe-beam{
  position:absolute;
  z-index:1;
  top:0;
  left:0;
  width:0;
  height:clamp(96px,16vh,190px);
  background:linear-gradient(90deg,rgba(103,230,255,.16),rgba(103,230,255,.035));
  clip-path:polygon(0 46%,0 54%,100% 100%,100% 0);
  filter:none;
  opacity:0;
  pointer-events:none;
  transform:rotate(var(--office-globe-beam-angle,180deg)) scaleX(.02);
  transform-origin:0 50%;
  transition:opacity .3s ease,transform .76s cubic-bezier(.16,1,.3,1);
}
.office-desk-globe-hint{
  position:absolute;
  z-index:2;
  top:calc(100% + 9px);
  left:50%;
  width:max-content;
  padding:6px 9px;
  border:1px solid rgba(212,169,79,0.18);
  border-radius:999px;
  background:rgba(13,12,10,0.76);
  color:rgba(251,247,239,0.74);
  font:800 clamp(.42rem,.55vw,.58rem)/1 var(--body);
  letter-spacing:.11em;
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-5px);
  transition:opacity .22s ease .23s,transform .22s ease .23s;
  backdrop-filter:blur(8px);
}
.office-desk-globe:focus-visible{outline:none}
.office-desk-globe:focus-visible .office-desk-globe-hint{opacity:1;transform:translate(-50%,0)}

/* Mail's close control now sits directly below the right-most muted-bell icon
   instead of sharing the Wi-Fi/status row. */
.mail-modal.is-office-mail .mail-modal-header{
  top:41px!important;
  right:10px!important;
}

@media(max-width:780px){
  .mail-modal.is-office-mail .mail-modal-header{top:36px!important;right:6px!important}
  .office-desk-globe{width:clamp(152px,24vw,216px)}
}
@media(prefers-reduced-motion:reduce){
  .office-desk-globe{transition:none!important}
  .office-desk-globe-beam{transition:none!important}
}

/* ============================================================================
   HOMEPAGE — Claude Design implementation
   v3.0A homepage-claude-design branch (rebuild).

   Everything below is scoped under the #homeView ID selector (the homepage
   section only) so it cannot leak onto any other page/view that shares this
   stylesheet (club, match centre, world, preseason, leaderboard, directory,
   etc. all keep their existing look untouched). All custom properties use a
   --gd- prefix and all classes use a gd- prefix so nothing here collides
   with the rest of the file.

   Structure follows /root/claude-design-export exactly:
     - Hero        -> ui_kits/marketing/Hero.jsx      (assets/section-hero.png)
     - Features    -> ui_kits/marketing/Features.jsx  (assets/section-background.png, img-packs/trophy/stadium.png)
     - Showcase    -> ui_kits/marketing/Showcase.jsx  (assets/section-showcase.png)
     - Footer      -> components/navigation/Footer.jsx
   Hero and Showcase reproduce the export's own technique: content is laid
   out in the export's native pixel canvas (1729x910 / 1732x919) inside a
   container-query box, then the whole canvas is scaled to the available
   width with a single `transform: scale()` — the same mechanism the export
   itself uses — so proportions, spacing and type hierarchy track the export
   exactly at every desktop/tablet width. Below 760px the canvas is dropped
   for a simplified stacked mobile layout (see the max-width:760px block).

   Everything past Showcase (club spotlight, activity feed, engagement loop,
   footer) is real GOAT product surface with no equivalent in the export —
   the export itself only mocked hero/features/showcase/footer for a
   marketing comp ("Not in the comp, so not built"). Those sections extend
   the same token system so the page reads as one coherent design.
   ============================================================================ */

#homeView.gd-home {
  /* ---- ink ---- */
  --gd-ink-1000:#000000;
  --gd-ink-950:#050505;
  --gd-ink-900:#0a0908;
  --gd-ink-850:#111010;
  --gd-ink-800:#17150f;
  --gd-ink-700:#201d16;
  --gd-ink-600:#2b2720;
  --gd-ink-500:#3a352b;
  --gd-ink-400:#4d463a;

  /* ---- gold ---- */
  --gd-gold-100:#f7e7bd;
  --gd-gold-200:#f0d79b;
  --gd-gold-300:#e5c377;
  --gd-gold-400:#d4a94f;
  --gd-gold-500:#c08f34;
  --gd-gold-600:#9c7128;
  --gd-gold-700:#75531d;
  --gd-gold-800:#4d3714;
  --gd-gold-900:#2a1e0b;

  /* ---- parchment / neutral text ---- */
  --gd-parch-50:#fbf7ef;
  --gd-parch-100:#efe8db;
  --gd-parch-200:#d9d1c2;
  --gd-parch-300:#b3aa99;
  --gd-parch-400:#d9d1c2;
  --gd-parch-500:#635c50;

  /* ---- surfaces ---- */
  --gd-surface-page:var(--gd-ink-950);
  --gd-surface-panel:#0d0c0a;
  --gd-surface-card:#131110;
  --gd-surface-card-raised:#1a1713;
  --gd-surface-inset:#080706;
  --gd-surface-overlay:rgba(5,5,5,.82);
  --gd-surface-gold-wash:rgba(212,169,79,.08);

  /* ---- text ---- */
  --gd-text-primary:var(--gd-parch-50);
  --gd-text-body:var(--gd-parch-200);
  --gd-text-muted:var(--gd-parch-400);
  --gd-text-gold:var(--gd-gold-300);
  --gd-text-gold-strong:var(--gd-gold-200);
  --gd-text-on-gold:#1a1207;

  /* ---- line ---- */
  --gd-line-hairline:rgba(212,169,79,.18);
  --gd-line-strong:rgba(212,169,79,.42);
  --gd-line-neutral:rgba(239,232,219,.08);

  /* ---- gradients ---- */
  --gd-grad-gold:linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%);
  --gd-grad-gold-text:linear-gradient(180deg,#f7e7bd 0%,#d4a94f 60%,#a87b2c 100%);
  --gd-grad-card:linear-gradient(160deg,#1c1814 0%,#0b0a09 55%,#141110 100%);
  --gd-grad-protect-bottom:linear-gradient(180deg,rgba(5,5,5,0) 0%,rgba(5,5,5,.75) 55%,rgba(5,5,5,.96) 100%);
  --gd-grad-protect-top:linear-gradient(180deg,rgba(5,5,5,.9) 0%,rgba(5,5,5,0) 100%);

  /* ---- type ---- */
  --gd-font-display:"Poppins",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --gd-font-body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --gd-fw-medium:500; --gd-fw-semibold:600; --gd-fw-bold:700; --gd-fw-black:800;
  --gd-lh-tight:.86; --gd-lh-display:.93; --gd-lh-snug:1.2; --gd-lh-body:1.5;
  --gd-ls-display:-.01em; --gd-ls-label:.12em; --gd-ls-eyebrow:.18em;

  /* ---- spacing / radii ---- */
  --gd-space-2:4px; --gd-space-3:8px; --gd-space-4:12px; --gd-space-5:16px;
  --gd-space-6:20px; --gd-space-7:24px; --gd-space-8:32px; --gd-space-9:40px;
  --gd-space-10:48px; --gd-space-11:64px; --gd-space-12:80px;
  --gd-radius-sm:4px; --gd-radius-md:6px; --gd-radius-lg:10px; --gd-radius-pill:999px;
  --gd-radius-card:12px; --gd-radius-player:18px;
  --gd-container-max:1240px;

  /* ---- shadows / glow ---- */
  --gd-shadow-md:0 6px 18px rgba(0,0,0,.55);
  --gd-shadow-lg:0 18px 44px rgba(0,0,0,.65);
  --gd-shadow-card:0 14px 36px rgba(0,0,0,.6),0 0 0 1px rgba(212,169,79,.14);
  --gd-shadow-lift:0 22px 52px rgba(0,0,0,.7),0 0 0 1px rgba(212,169,79,.3);
  --gd-glow-gold-sm:0 0 12px rgba(212,169,79,.28);
  --gd-glow-gold-md:0 0 28px rgba(212,169,79,.35);
  --gd-inset-bevel:inset 0 1px 0 rgba(255,255,255,.45),inset 0 -2px 0 rgba(0,0,0,.35);
  --gd-inset-engrave:inset 0 1px 0 rgba(240,215,155,.10),inset 0 -1px 0 rgba(0,0,0,.7);

  /* ---- motion ---- */
  --gd-ease-standard:cubic-bezier(.2,.6,.2,1);
  --gd-ease-out-soft:cubic-bezier(.16,1,.3,1);
  --gd-dur-fast:160ms; --gd-dur-base:240ms; --gd-dur-slow:420ms; --gd-dur-reveal:700ms;
  --gd-lift-hover:-2px; --gd-press-scale:.985;

  position: relative;
  display: block;
  background: var(--gd-surface-page);
  color: var(--gd-text-body);
  font: 400 16px/var(--gd-lh-body) var(--gd-font-body);
  isolation: isolate;
}

/* Kill every legacy homepage rule this section used to carry: nothing here
   should inherit the pre-existing .hero/.hero-arena/.leader-card/etc. base
   styling, only the gd- rules below. */
#homeView.gd-home > * { box-sizing: border-box; }
#homeView.gd-home *, #homeView.gd-home *::before, #homeView.gd-home *::after { box-sizing: border-box; }
#homeView.gd-home img { max-width: 100%; display: block; }
#homeView.gd-home button { font: inherit; }
#homeView.gd-home a { text-decoration: none; }

/* Hide the shared global site footer only while the homepage is showing —
   the Claude Design footer below replaces it for this view only. */
body.home-background #siteFooter { display: none; }

/* Remove the old blue stadium photo + cyan/indigo ambient wash behind the
   homepage — replaced with the export's own dark grain page texture so the
   thin transparent edges of the hero/showcase masks reveal the right tone. */
body.home-background .world-bg {
  background: var(--ink-950, #050505) ;
  background-image: url("/gd2-page-texture.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
body.home-background .world-gradient { background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); animation: none; }
body.home-background .world-grid { opacity: 0; }

/* The header's Twitch login / dashboard pill is shared across every page
   (Club, World, Pre-season all keep it exactly as-is) — only recolour it
   while the homepage is showing, so the one purple accent left on this
   page doesn't fight the gold system right under the nav bar. */
body.home-background .twitch-login-button,
body.home-background .dashboard-button {
  background: linear-gradient(180deg,#f0d79b 0%,#d4a94f 42%,#9c7128 100%);
  border-color: rgba(212,169,79,.5);
  color: #1a1207;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}
body.home-background .dashboard-button { background: rgba(212,169,79,.10); color: #f0d79b; }

/* ---------------------------------------------------------------------- */
/* Shared primitives: eyebrow, ornament divider, buttons, section width    */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-eyebrow {
  margin: 0;
  font-family: var(--gd-font-body);
  font-weight: var(--gd-fw-semibold);
  font-size: 13px;
  letter-spacing: var(--gd-ls-eyebrow);
  color: var(--gd-text-body);
  text-transform: uppercase;
}

#homeView.gd-home .gd-divider { display: none; }
#homeView.gd-home .gd-divider.is-center { margin-inline: auto; }
#homeView.gd-home .gd-divider i {
  height: 1px; flex: 1;
  background: linear-gradient(90deg, rgba(212,169,79,0), var(--gd-line-strong), rgba(212,169,79,0));
}
#homeView.gd-home .gd-divider b {
  width: 6px; height: 6px; flex: 0 0 auto; transform: rotate(45deg);
  background: var(--gd-gold-400);
}

#homeView.gd-home .gd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gd-space-4);
  border: none; cursor: pointer; white-space: nowrap;
  font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold);
  font-size: 14px; letter-spacing: var(--gd-ls-label); text-transform: uppercase;
  height: 44px; padding: 0 var(--gd-space-8);
  transition: transform var(--gd-dur-fast) var(--gd-ease-standard), box-shadow var(--gd-dur-base) var(--gd-ease-standard), filter var(--gd-dur-base) var(--gd-ease-standard), border-color var(--gd-dur-base) var(--gd-ease-standard);
}
#homeView.gd-home .gd-btn:active { transform: scale(var(--gd-press-scale)); }
#homeView.gd-home .gd-btn-primary {
  background: var(--gd-grad-gold); color: var(--gd-text-on-gold);
  border-radius: var(--gd-radius-pill); font-weight: var(--gd-fw-bold);
  box-shadow: var(--gd-inset-bevel), var(--gd-shadow-md);
}
#homeView.gd-home .gd-btn-primary:hover { filter: brightness(1.06); box-shadow: var(--gd-inset-bevel), var(--gd-glow-gold-md), var(--gd-shadow-md); }
#homeView.gd-home .gd-btn-primary svg { width: 16px; height: 16px; }
#homeView.gd-home .gd-btn-lg { height: 56px; padding: 0 var(--gd-space-9); font-size: 15px; }
#homeView.gd-home .gd-btn-secondary {
  background: rgba(212,169,79,.06); color: var(--gd-text-gold-strong);
  border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-sm);
}
#homeView.gd-home .gd-btn-secondary:hover { border-color: var(--gd-line-strong); box-shadow: var(--gd-glow-gold-sm); }
#homeView.gd-home .gd-ghost-link {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  cursor: pointer; font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold);
  font-size: 13px; letter-spacing: var(--gd-ls-label); text-transform: uppercase; color: var(--gd-text-gold);
  transition: color var(--gd-dur-fast) var(--gd-ease-standard);
}
#homeView.gd-home .gd-ghost-link:hover { color: var(--gd-gold-200); }
#homeView.gd-home .gd-ghost-link i { font-style: normal; transition: transform var(--gd-dur-fast) var(--gd-ease-standard); }
#homeView.gd-home .gd-ghost-link:hover i { transform: translateX(3px); }

#homeView.gd-home .gd-section-inner { max-width: var(--gd-container-max); margin: 0 auto; padding: 0 var(--gd-space-8); }

/* ---------------------------------------------------------------------- */
/* Player card chrome — shared by hero pedestal / pull rail / showcase fan */
/* Real GOAT rarity colour (7 tiers) is passed in as --gd-rarity on each   */
/* card; the frame, inner hairline and hover glow all derive from it.     */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-card {
  --gd-rarity: var(--gd-gold-400);
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 7 / 10;
  padding: 2px;
  margin: 0;
  appearance: none;
  container-type: inline-size;
  border-radius: var(--gd-radius-player);
  background: linear-gradient(180deg, var(--gd-rarity) 0%, rgba(0,0,0,.6) 55%, var(--gd-rarity) 100%);
  clip-path: polygon(0 10%, 10% 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
  box-shadow: var(--gd-shadow-card);
  cursor: pointer;
  transition: transform var(--gd-dur-base) var(--gd-ease-standard), box-shadow var(--gd-dur-base) var(--gd-ease-standard);
  text-align: left;
  border: none;
  color: inherit;
  font: inherit;
}
#homeView.gd-home .gd-card:hover,
#homeView.gd-home .gd-card.is-selected {
  transform: translateY(-4px);
  box-shadow: 0 0 24px -4px var(--gd-rarity), var(--gd-shadow-lift);
}
#homeView.gd-home .gd-card-inner {
  position: absolute; inset: 2px; overflow: hidden;
  clip-path: polygon(0 10%, 10% 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
  background: var(--gd-grad-card);
}
#homeView.gd-home .gd-card-inner::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--gd-rarity) 55%, transparent);
  clip-path: polygon(0 10%, 10% 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
}
/* Foil sheen: a soft diagonal highlight sweeps across the card on hover. */
#homeView.gd-home .gd-card-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.16) 50%, transparent 60%);
  background-size: 220% 220%; background-position: 120% -20%;
  transition: background-position var(--gd-dur-slow) var(--gd-ease-out-soft);
}
#homeView.gd-home .gd-card:hover .gd-card-inner::after,
#homeView.gd-home .gd-card.is-selected .gd-card-inner::after { background-position: -20% 120%; }
#homeView.gd-home .gd-card-art { position: absolute; inset: 0; }
#homeView.gd-home .gd-card-art img {
  position: absolute; left: 50%; top: 12%; width: 76%; transform: translateX(-50%);
  object-fit: cover; filter: saturate(.95);
}
#homeView.gd-home .gd-card-portrait-fallback {
  display: none;
  position: absolute; left: 50%; top: 32%; transform: translateX(-50%);
  width: 46%; aspect-ratio: 1; border-radius: 50%; place-items: center;
  background: var(--gd-ink-800); color: var(--gd-rarity);
  font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 22cqw;
}
#homeView.gd-home .gd-card-art.is-fallback .gd-card-portrait-fallback { display: grid; }
#homeView.gd-home .gd-card-shade { position: absolute; inset: 0; background: var(--gd-grad-protect-bottom); }
#homeView.gd-home .gd-card-top {
  position: absolute; top: 7%; left: 8%; line-height: 1; text-align: center;
}
#homeView.gd-home .gd-card-rating { font-family: var(--gd-font-body); font-weight: var(--gd-fw-bold); font-size: clamp(15px, 21cqw, 30px); color: var(--gd-text-gold-strong); }
#homeView.gd-home .gd-card-position { margin-top: 2px; font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold); font-size: clamp(8px, 7cqw, 11px); letter-spacing: .1em; color: var(--gd-text-gold); }
#homeView.gd-home .gd-card-flag.player-country-flag-wrap { margin: 5px auto 0; width: 18px; height: 13px; flex: none; }
#homeView.gd-home .gd-card-flag .player-country-flag-fallback { font-size: 9px; line-height: 13px; }
#homeView.gd-home .gd-card-bottom { position: absolute; left: 0; right: 0; bottom: 6%; padding: 0 6%; text-align: center; }
#homeView.gd-home .gd-card-name {
  font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: clamp(9px, 7.5cqw, 14px);
  letter-spacing: .06em; color: var(--gd-text-gold-strong); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#homeView.gd-home .gd-card-rule { margin: 5px 0; height: 1px; background: linear-gradient(90deg, rgba(212,169,79,0), var(--gd-line-strong), rgba(212,169,79,0)); }
#homeView.gd-home .gd-card-stats { display: grid; grid-template-columns: repeat(var(--gd-stat-cols, 6), 1fr); gap: 1px; }
#homeView.gd-home .gd-card-stats span { display: block; font-family: var(--gd-font-body); font-size: clamp(6px, 4.2cqw, 9px); letter-spacing: .02em; color: var(--gd-text-muted); }
#homeView.gd-home .gd-card-stats b { display: block; font-family: var(--gd-font-body); font-weight: var(--gd-fw-bold); font-size: clamp(8px, 7cqw, 12px); color: var(--gd-parch-50); }
#homeView.gd-home .gd-card-empty {
  aspect-ratio: 7/10; border-radius: var(--gd-radius-player); border: 1px dashed var(--gd-line-hairline);
  display: grid; place-items: center; padding: var(--gd-space-5); text-align: center;
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--gd-text-muted);
}

/* ---------------------------------------------------------------------- */
/* HERO — Hero.jsx, assets/section-hero.png                                */
/* Native canvas: 1729 x 910. Everything positioned/sized in that space,   */
/* then the whole canvas is scaled to the available width.                 */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-hero {
  position: relative;
  width: 100%;
  container-type: inline-size;
}
#homeView.gd-home .gd-hero-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1729 / 910;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
#homeView.gd-home .gd-hero-stage {
  position: absolute; top: 0; left: 0; width: 1729px; height: 910px;
  transform-origin: top left;
  transform: scale(calc(100cqw / 1729px));
  background-image: url("/gd2-hero.webp");
  background-size: 1729px 910px; background-repeat: no-repeat; background-position: top left;
}
#homeView.gd-home .gd-hero-glow {
  position: absolute; left: 500px; top: 20px; width: 820px; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5,5,5,.88) 0%, rgba(5,5,5,.72) 55%, rgba(5,5,5,0) 100%);
}
#homeView.gd-home .gd-hero-copy { position: absolute; left: 29px; top: 441px; width: 530px; text-align: center; }
#homeView.gd-home .gd-hero-eyebrow {
  margin: 0; font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold); font-size: 14px;
  letter-spacing: var(--gd-ls-eyebrow); color: var(--gd-text-gold); text-transform: uppercase;
}
#homeView.gd-home .gd-hero-heading {
  margin: 20px 0 0; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black);
  font-size: 47px; line-height: var(--gd-lh-tight); letter-spacing: var(--gd-ls-display);
  text-transform: uppercase; color: var(--gd-text-primary); white-space: nowrap;
}
#homeView.gd-home .gd-hero-heading span {
  background: var(--gd-grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#homeView.gd-home .gd-hero-divider { margin: 26px auto; width: 260px; }
#homeView.gd-home .gd-hero-sub { margin: 0 auto; max-width: 420px; font-size: 18px; line-height: 1.5; color: var(--gd-text-body); }
#homeView.gd-home .gd-hero-cta { margin-top: 30px; height: 60px; padding: 0 42px; font-size: 17px; }

#homeView.gd-home .gd-hero-pedestal { position: absolute; left: 1128px; bottom: 340px; width: 250px; }
#homeView.gd-home .gd-hero-pedestal .gd-card-empty { color: var(--gd-text-gold); border-color: var(--gd-line-strong); }

#homeView.gd-home .gd-hero-rail-wrap {
  position: absolute; left: 624px; top: 641px; width: 631px; height: 170px;
  display: flex; align-items: center; gap: 24px;
}
#homeView.gd-home .gd-pull-tag {
  flex: 0 0 auto; width: 112px; padding: var(--gd-space-4);
  background: var(--gd-surface-overlay); border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-sm);
  display: flex; flex-direction: column; gap: 6px; justify-content: center; height: 112px;
}
#homeView.gd-home .gd-pull-tag span { font-size: 10px; letter-spacing: .1em; color: var(--gd-text-muted); text-transform: uppercase; }
#homeView.gd-home .gd-pull-tag b { font-family: var(--gd-font-display); font-weight: var(--gd-fw-bold); font-size: 15px; color: var(--gd-text-gold-strong); text-transform: uppercase; }
#homeView.gd-home .gd-pull-rail { display: flex; gap: 12px; overflow: hidden; flex: 1; }
#homeView.gd-home .gd-pull-rail .gd-card { width: 112px; flex: 0 0 112px; }
#homeView.gd-home .gd-pull-rail .gd-card:not(.is-selected) { opacity: .72; }

/* Stat strip: on the same row as the pull rail, inside the hero stage so it
   scales with the rest of the canvas at every width (see the "carries a lot
   of old ..." note above — everything that has to track the background art
   pixel-for-pixel lives inside .gd-hero-stage, never as a sibling of it). */
#homeView.gd-home .gd-hero-stage .gd-hero-stats { position: absolute; left: 1290px; top: 641px; width: 400px; height: 170px; }
#homeView.gd-home .gd-stat-strip {
  width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px;
  padding: var(--gd-space-5);
  background: rgba(8,7,6,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-md); box-shadow: var(--gd-inset-engrave), var(--gd-shadow-lg);
}
#homeView.gd-home .gd-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; text-align: left; }
#homeView.gd-home .gd-stat span { font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold); font-size: 10px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-muted); text-transform: uppercase; white-space: nowrap; }
#homeView.gd-home .gd-stat b { font-family: var(--gd-font-body); font-weight: var(--gd-fw-bold); font-size: 20px; color: var(--gd-text-gold-strong); }
#homeView.gd-home .gd-stat.is-link { cursor: pointer; background: none; border: none; padding: 0; font: inherit; }
#homeView.gd-home .gd-stat.is-link:hover b { color: var(--gd-gold-100); }
/* Mobile stat strip lives in normal flow inside .gd-hero-mobile instead. */
#homeView.gd-home .gd-hero-mobile .gd-hero-stats { width: 100%; }
#homeView.gd-home .gd-hero-mobile .gd-stat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gd-space-6); height: auto; padding: var(--gd-space-4) var(--gd-space-6); }
#homeView.gd-home .gd-hero-mobile .gd-stat { text-align: center; }

/* Simplified mobile hero below 760px: drop the fixed canvas, stack. */
@media (max-width: 760px) {
  #homeView.gd-home .gd-hero-canvas { display: none; }
  #homeView.gd-home .gd-hero-mobile {
    display: flex; flex-direction: column; align-items: center; gap: var(--gd-space-6);
    padding: 52px var(--gd-space-6) var(--gd-space-9); text-align: center;
    background: radial-gradient(120% 90% at 50% 0%, rgba(212,169,79,.10) 0%, transparent 55%), var(--gd-ink-950) url("/gd2-hero.webp") center 18% / cover no-repeat;
  }
  #homeView.gd-home .gd-hero-mobile::before {
    content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.88) 60%, rgba(5,5,5,1) 100%);
  }
  #homeView.gd-home .gd-hero-mobile { position: relative; }
  #homeView.gd-home .gd-hero-mobile > * { position: relative; z-index: 1; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-eyebrow { font-size: 12px; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-heading { font-size: clamp(2.12rem, 9.4vw, 2.72rem); white-space: normal; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-sub { font-size: 15px; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-cta { margin-top: 6px; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-pedestal-wrap { width: min(220px, 56vw); }
  #homeView.gd-home .gd-hero-mobile .gd-pull-rail-wrap { width: 100%; display: flex; flex-direction: column; gap: var(--gd-space-4); align-items: center; }
  #homeView.gd-home .gd-hero-mobile .gd-pull-tag { flex-direction: row; width: auto; height: auto; padding: 6px 14px; gap: 8px; }
  #homeView.gd-home .gd-hero-mobile .gd-pull-rail { width: 100%; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  #homeView.gd-home .gd-hero-mobile .gd-pull-rail .gd-card { width: 96px; flex: 0 0 96px; }
}
@media (min-width: 761px) { #homeView.gd-home .gd-hero-mobile { display: none; } }

/* ---------------------------------------------------------------------- */
/* FEATURES — Features.jsx, assets/section-background.png + img-*.png      */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-features {
  position: relative;
  padding: var(--gd-space-12) var(--gd-space-8);
  background: var(--gd-ink-950) url("/gd2-features-bg.webp") center top / cover no-repeat;
}
#homeView.gd-home .gd-features-inner { max-width: var(--gd-container-max); margin: 0 auto; }
#homeView.gd-home .gd-features-intro { text-align: center; margin-bottom: var(--gd-space-9); }
#homeView.gd-home .gd-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gd-space-7); }
#homeView.gd-home .gd-feature-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; container-type: inline-size;
  border-radius: var(--gd-radius-card); background: var(--gd-grad-card);
  border: 1px solid var(--gd-line-hairline); box-shadow: var(--gd-shadow-card);
  transition: transform var(--gd-dur-base) var(--gd-ease-standard), box-shadow var(--gd-dur-base) var(--gd-ease-standard), border-color var(--gd-dur-base) var(--gd-ease-standard);
  opacity: 0; transform: translateY(18px);
}
#homeView.gd-home .gd-feature-card.gd-in { opacity: 1; transform: none; transition: opacity var(--gd-dur-reveal) var(--gd-ease-out-soft), transform var(--gd-dur-reveal) var(--gd-ease-out-soft); }
#homeView.gd-home .gd-feature-card:hover { transform: translateY(var(--gd-lift-hover)); border-color: var(--gd-line-strong); box-shadow: var(--gd-shadow-lift); }
#homeView.gd-home .gd-feature-art { position: relative; height: 160px; flex: 0 0 auto; overflow: hidden; }
#homeView.gd-home .gd-feature-art img { width: 100%; height: 100%; object-fit: cover; opacity: .95; transition: transform var(--gd-dur-slow) var(--gd-ease-out-soft); }
#homeView.gd-home .gd-feature-card:hover .gd-feature-art img { transform: scale(1.05); }
#homeView.gd-home .gd-feature-art::after { content: ""; position: absolute; inset: 0; background: var(--gd-grad-protect-bottom); }
#homeView.gd-home .gd-feature-body { position: relative; padding: var(--gd-space-7); }
#homeView.gd-home .gd-feature-body h3 {
  margin: 0; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black);
  font-size: clamp(22px, 9cqw, 30px); letter-spacing: var(--gd-ls-display); color: var(--gd-text-primary); text-transform: uppercase; line-height: var(--gd-lh-tight);
}
#homeView.gd-home .gd-feature-body h3 span {
  display: block; margin-top: 4px; font-family: var(--gd-font-body); font-weight: var(--gd-fw-medium);
  font-size: clamp(12px, 4.6cqw, 15px); letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase;
}
#homeView.gd-home .gd-feature-body p { margin: var(--gd-space-5) 0 var(--gd-space-6); font-size: 15px; line-height: var(--gd-lh-body); color: var(--gd-text-body); }

/* ---------------------------------------------------------------------- */
/* SHOWCASE — Showcase.jsx, assets/section-showcase.png                    */
/* Native canvas: 1732 x 919.                                              */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-showcase {
  position: relative; width: 100%; container-type: inline-size;
  padding: var(--gd-space-11) 0;
  background: var(--gd-ink-950);
}
#homeView.gd-home .gd-showcase-canvas {
  position: relative; width: 100%; aspect-ratio: 1732 / 919; overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
#homeView.gd-home .gd-showcase-stage {
  position: absolute; top: 0; left: 0; width: 1732px; height: 919px;
  transform-origin: top left; transform: scale(calc(100cqw / 1732px));
  background-image: url("/gd2-showcase-frame.webp"); background-size: 1732px 919px; background-repeat: no-repeat;
}
#homeView.gd-home .gd-showcase-copy { position: absolute; left: 100px; top: 230px; width: 470px; }
#homeView.gd-home .gd-showcase-copy .gd-eyebrow { font-size: 14px; }
#homeView.gd-home .gd-showcase-heading {
  margin: 22px 0 0; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black);
  font-size: 50px; line-height: var(--gd-lh-display); text-transform: uppercase; color: var(--gd-text-primary);
}
#homeView.gd-home .gd-showcase-divider { margin: 24px 0; width: 280px; }
#homeView.gd-home .gd-showcase-body { margin: 0; font-size: 17px; line-height: 1.6; color: var(--gd-text-body); }
#homeView.gd-home .gd-showcase-cta { margin-top: 32px; }
#homeView.gd-home .gd-showcase-cards {
  position: absolute; left: 700px; right: 100px; top: 190px; bottom: 190px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
#homeView.gd-home .gd-showcase-cards .gd-card { width: 30%; max-width: 230px; }
#homeView.gd-home .gd-showcase-cards .gd-card.is-lead { width: 34%; max-width: 264px; }
#homeView.gd-home .gd-showcase-cards .gd-card:not(.is-lead) { transform: translateY(22px); }
#homeView.gd-home .gd-showcase-cards .gd-card:not(.is-lead):hover { transform: translateY(18px); }

@media (max-width: 900px) {
  #homeView.gd-home .gd-showcase-canvas { display: none; }
  #homeView.gd-home .gd-showcase-mobile {
    display: flex; flex-direction: column; gap: var(--gd-space-9); padding: 0 var(--gd-space-6);
  }
  #homeView.gd-home .gd-showcase-mobile .gd-showcase-copy { position: static; width: 100%; text-align: center; }
  #homeView.gd-home .gd-showcase-mobile .gd-showcase-divider { margin-inline: auto; }
  #homeView.gd-home .gd-showcase-mobile .gd-showcase-cards {
    position: static; inset: auto; display: flex; gap: var(--gd-space-5); overflow-x: auto; padding: var(--gd-space-3) var(--gd-space-3) var(--gd-space-6);
  }
  #homeView.gd-home .gd-showcase-mobile .gd-showcase-cards .gd-card,
  #homeView.gd-home .gd-showcase-mobile .gd-showcase-cards .gd-card.is-lead { width: 180px; max-width: none; flex: 0 0 180px; transform: none; }
}
@media (min-width: 901px) { #homeView.gd-home .gd-showcase-mobile { display: none; } }

/* ---------------------------------------------------------------------- */
/* CLUB SPOTLIGHT + LIVE ACTIVITY — real product surface, same tokens      */
/* (viewer search, current-leader flip card, elite/wonderkids flip card,   */
/* recent pack activity — all pre-existing functionality, restyled)        */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-spotlight { padding: var(--gd-space-12) var(--gd-space-8); background: var(--gd-ink-950); }
#homeView.gd-home .gd-spotlight-inner { max-width: var(--gd-container-max); margin: 0 auto; }
#homeView.gd-home .gd-spotlight-head { text-align: center; margin-bottom: var(--gd-space-9); }
#homeView.gd-home .gd-spotlight-head h2 {
  margin: 14px 0 0; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black);
  font-size: clamp(28px, 4vw, 38px); text-transform: uppercase; color: var(--gd-text-primary); line-height: var(--gd-lh-display);
}
#homeView.gd-home .gd-spotlight-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gd-space-8); align-items: start; }

#homeView.gd-home .gd-search {
  display: flex; align-items: center; gap: var(--gd-space-3); padding: 4px 4px 4px var(--gd-space-6);
  background: var(--gd-surface-panel); border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-pill);
  margin-bottom: var(--gd-space-6);
}
#homeView.gd-home .gd-search svg { width: 18px; height: 18px; color: var(--gd-gold-400); flex: 0 0 auto; }
#homeView.gd-home .gd-search input {
  flex: 1; border: none; background: none; color: var(--gd-text-primary); font: 15px/1.4 var(--gd-font-body); padding: 12px 4px;
}
#homeView.gd-home .gd-search input::placeholder { color: var(--gd-text-muted); }
#homeView.gd-home .gd-search input:focus { outline: none; }
#homeView.gd-home .gd-search button {
  flex: 0 0 auto; height: 40px; padding: 0 var(--gd-space-6); border-radius: var(--gd-radius-pill);
  background: var(--gd-grad-gold); color: var(--gd-text-on-gold); border: none; cursor: pointer;
  font-weight: var(--gd-fw-bold); font-size: 13px; letter-spacing: var(--gd-ls-label); text-transform: uppercase;
}
#homeView.gd-home .viewer-suggestions {
  position: relative; margin: -2px 0 var(--gd-space-5); background: var(--gd-surface-panel);
  border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-md); overflow: hidden;
}
#homeView.gd-home .viewer-suggestions button {
  display: flex; flex-direction: column; width: 100%; padding: var(--gd-space-4) var(--gd-space-5);
  background: none; border: none; text-align: left; cursor: pointer; color: var(--gd-text-body);
}
#homeView.gd-home .viewer-suggestions button:hover { background: var(--gd-surface-gold-wash); }
#homeView.gd-home .viewer-suggestions strong { color: var(--gd-text-primary); font-size: 14px; }
#homeView.gd-home .viewer-suggestions span { color: var(--gd-text-gold); font-size: 12px; }
#homeView.gd-home .viewer-suggestions small { color: var(--gd-text-muted); font-size: 11px; }
#homeView.gd-home .suggestion-empty { display: block; padding: var(--gd-space-5); color: var(--gd-text-muted); font-size: 13px; }
#homeView.gd-home #homeMessage { color: #d98668; font-size: 13px; min-height: 0; margin: 0 0 var(--gd-space-4); }
#homeView.gd-home #homeMessage:empty { display: none; }

/* This carousel reuses markup/behaviour from the pre-redesign homepage
   (flip cards, dots, arrows) which carries a lot of old purple/cyan themed
   rules with plain class selectors (see e.g. .leader-card-face,
   .leader-card-topline b, .hero-card-emblem around lines 690-4900). Those
   rules are lower-specificity than anything scoped under #homeView.gd-home,
   but only for the properties this block actually re-declares — so start
   with a blanket wipe of the decorative properties those old rules set,
   then layer the real gold/black look back on top below (equal-specificity
   ties resolve in source order, and everything from here down is later). */
#homeView.gd-home .hero-card-carousel * {
  background: none; background-image: none; border-color: transparent;
  box-shadow: none; clip-path: none; text-shadow: none;
}

#homeView.gd-home .hero-card-carousel { position: relative; width: 100%; max-width: none; overflow: hidden; }
#homeView.gd-home .hero-card-track { display: flex; width: 200%; transition: transform var(--gd-dur-slow) var(--gd-ease-standard); }
#homeView.gd-home .hero-card-slide { width: 50%; flex: 0 0 50%; padding-right: var(--gd-space-3); }
#homeView.gd-home .hero-card {
  position: relative; width: 100%; min-height: 340px; height: auto; padding: var(--gd-space-7); border-radius: var(--gd-radius-card);
  background: var(--gd-grad-card); border: 1px solid var(--gd-line-hairline); box-shadow: var(--gd-shadow-card);
  perspective: 1400px; cursor: pointer; animation: none;
}
#homeView.gd-home .leader-card-inner { position: relative; width: 100%; height: 100%; min-height: 260px; transform-style: preserve-3d; transition: transform var(--gd-dur-slow) var(--gd-ease-standard); }
#homeView.gd-home .hero-card.is-flipped .leader-card-inner { transform: rotateY(180deg); }
#homeView.gd-home .leader-card-face {
  position: absolute; inset: 0; backface-visibility: hidden; display: flex; flex-direction: column;
  padding: var(--gd-space-6); overflow: hidden; color: var(--gd-text-body);
  border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-card);
  background: var(--gd-grad-card); clip-path: none; box-shadow: none;
}
#homeView.gd-home .leader-card-face::after { display: none; }
#homeView.gd-home .leader-card-back { transform: rotateY(180deg); background: var(--gd-grad-card); }
#homeView.gd-home .leader-card-front > *, #homeView.gd-home .leader-card-back > * { position: relative; z-index: 2; }
#homeView.gd-home .leader-card-topline { display: flex; align-items: center; justify-content: space-between; }
#homeView.gd-home .leader-card-topline span { font-size: 11px; letter-spacing: var(--gd-ls-label); text-transform: uppercase; color: var(--gd-text-gold); }
#homeView.gd-home .leader-card-topline b {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 6px;
  font-family: var(--gd-font-display); font-weight: var(--gd-fw-bold); font-size: 12px; color: var(--gd-text-on-gold);
  background: var(--gd-grad-gold); border-radius: var(--gd-radius-sm);
}
#homeView.gd-home .hero-card-emblem { width: 46px; height: 46px; margin: var(--gd-space-5) auto; opacity: .9; }
#homeView.gd-home .hero-card-emblem img { width: 100%; height: 100%; object-fit: contain; }
#homeView.gd-home .leader-card-copy { text-align: center; }
#homeView.gd-home .leader-card-copy span { display: block; font-size: 11px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase; }
#homeView.gd-home .leader-card-copy strong { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 1.6rem; color: var(--gd-text-primary); text-transform: uppercase; }
#homeView.gd-home .leader-card-copy small { display: block; margin-top: 4px; color: var(--gd-text-muted); font-size: 12px; }
#homeView.gd-home .hero-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: var(--gd-space-5); }
#homeView.gd-home .hero-card-footer span { font-size: 10px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase; }
#homeView.gd-home .hero-card-footer i { width: 4px; height: 4px; border-radius: 50%; background: var(--gd-gold-400); box-shadow: 0 0 8px rgba(212,169,79,.6); }
#homeView.gd-home .leader-flip-hint { position: absolute; left: 0; right: 0; bottom: var(--gd-space-4); text-align: center; font-size: 10px; letter-spacing: .1em; color: rgba(229,195,119,.6); text-transform: uppercase; }
#homeView.gd-home .elite-card-heading { text-align: center; }
#homeView.gd-home .elite-card-heading span { display: block; font-size: 11px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase; }
#homeView.gd-home .elite-card-heading strong { display: block; margin-top: 6px; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 1.3rem; color: var(--gd-text-primary); text-transform: uppercase; }
#homeView.gd-home .elite-card-heading small { display: block; margin-top: 6px; color: var(--gd-text-muted); font-size: 12px; line-height: 1.4; }
#homeView.gd-home .leader-back-heading { text-align: center; margin-bottom: var(--gd-space-4); }
#homeView.gd-home .leader-back-heading span { font-size: 11px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase; }
#homeView.gd-home .leader-back-heading strong { display: block; margin-top: 4px; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); color: var(--gd-text-primary); text-transform: uppercase; }
#homeView.gd-home .leader-top-label { display: block; text-align: center; margin: var(--gd-space-2) 0 var(--gd-space-3); font-size: 10px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-muted); text-transform: uppercase; }
#homeView.gd-home .leader-top-cards { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
#homeView.gd-home .leader-top-card {
  display: flex; align-items: center; gap: var(--gd-space-3); width: 100%; padding: 6px var(--gd-space-3);
  background: rgba(212,169,79,.05); border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-sm);
  color: var(--gd-text-body); cursor: pointer; font: inherit; text-align: left;
}
#homeView.gd-home .leader-top-card:hover { border-color: var(--gd-line-strong); }
#homeView.gd-home .leader-top-card.loading { color: var(--gd-text-muted); justify-content: center; cursor: default; }
#homeView.gd-home .leader-top-card > span { font-size: 10px; color: var(--gd-text-muted); }
#homeView.gd-home .leader-rarity-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rarity-color, var(--gd-gold-400)); flex: 0 0 auto; }
#homeView.gd-home .leader-top-card b { font-size: 13px; color: var(--gd-text-gold-strong); }
#homeView.gd-home .leader-top-card div { flex: 1; min-width: 0; }
#homeView.gd-home .leader-top-card strong { display: block; font-size: 12px; color: var(--gd-text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#homeView.gd-home .leader-top-card small { color: var(--gd-text-muted); font-size: 10px; }
#homeView.gd-home .leader-pack-total { display: flex; justify-content: space-between; align-items: center; margin-top: var(--gd-space-4); padding-top: var(--gd-space-4); border-top: 1px solid var(--gd-line-neutral); }
#homeView.gd-home .leader-pack-total span { font-size: 11px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-muted); text-transform: uppercase; }
#homeView.gd-home .leader-pack-total strong { font-family: var(--gd-font-display); font-size: 1.1rem; color: var(--gd-gold-200); }
#homeView.gd-home .hero-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  background: var(--gd-surface-overlay); border: 1px solid var(--gd-line-hairline); color: var(--gd-text-gold);
  cursor: pointer; font-size: 16px; z-index: 3;
}
#homeView.gd-home .hero-carousel-previous { left: 10px; }
#homeView.gd-home .hero-carousel-next { right: 10px; }
#homeView.gd-home .hero-carousel-arrow:hover { border-color: var(--gd-line-strong); color: var(--gd-gold-100); }
#homeView.gd-home .hero-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--gd-space-5); }
#homeView.gd-home .hero-carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(212,169,79,.28); cursor: pointer; padding: 0; }
#homeView.gd-home .hero-carousel-dots button.active { background: var(--gd-gold-400); box-shadow: 0 0 8px rgba(212,169,79,.6); }

#homeView.gd-home .gd-activity-panel {
  padding: var(--gd-space-6); background: var(--gd-surface-panel); border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-card);
}
#homeView.gd-home .gd-activity-panel h2 { margin: 6px 0 0; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 1.2rem; color: var(--gd-text-primary); text-transform: uppercase; }
#homeView.gd-home .home-activity-feed { margin-top: var(--gd-space-5); display: flex; flex-direction: column; gap: 8px; }
#homeView.gd-home .home-activity-row {
  display: flex; align-items: center; gap: var(--gd-space-3); width: 100%; padding: var(--gd-space-3) var(--gd-space-4);
  background: rgba(212,169,79,.04); border: 1px solid var(--gd-line-neutral); border-radius: var(--gd-radius-sm);
  color: var(--gd-text-body); font: inherit; text-align: left; cursor: pointer;
}
#homeView.gd-home .home-activity-row:hover { border-color: var(--gd-line-hairline); }
#homeView.gd-home .home-activity-row i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: var(--activity-color, var(--gd-gold-400)); }
#homeView.gd-home .home-activity-row span { flex: 1; font-size: 13px; color: var(--gd-text-body); }
#homeView.gd-home .home-activity-row strong { color: var(--gd-text-primary); }
#homeView.gd-home .home-activity-row time { font-size: 11px; color: var(--gd-text-muted); white-space: nowrap; }
#homeView.gd-home .home-activity-empty, #homeView.gd-home .home-featured-loading { padding: var(--gd-space-5); text-align: center; color: var(--gd-text-muted); font-size: 13px; }

/* ---------------------------------------------------------------------- */
/* Loop ticker + return-loop grid                                          */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-loop-rail { overflow: hidden; border-top: 1px solid var(--gd-line-hairline); border-bottom: 1px solid var(--gd-line-hairline); background: var(--gd-surface-panel); }
#homeView.gd-home .game-loop-track { display: flex; width: max-content; animation: gdLoopScroll 26s linear infinite; }
#homeView.gd-home .game-loop-group { display: flex; align-items: center; gap: var(--gd-space-5); padding: var(--gd-space-4) var(--gd-space-6); white-space: nowrap; }
#homeView.gd-home .game-loop-group span { font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold); font-size: 12px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-muted); text-transform: uppercase; }
#homeView.gd-home .game-loop-group i { font-style: normal; color: var(--gd-gold-400); font-size: 10px; }
@keyframes gdLoopScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

#homeView.gd-home .gd-return-loop { padding: var(--gd-space-12) var(--gd-space-8); background: var(--gd-ink-950); }
#homeView.gd-home .gd-return-loop-inner { max-width: var(--gd-container-max); margin: 0 auto; }
#homeView.gd-home .gd-return-loop-head { text-align: center; margin-bottom: var(--gd-space-9); }
#homeView.gd-home .gd-return-loop-head h2 { margin: 14px 0 20px; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: clamp(26px, 3.6vw, 34px); color: var(--gd-text-primary); text-transform: uppercase; }
#homeView.gd-home .return-loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gd-space-6); }
#homeView.gd-home .engagement-feature {
  padding: var(--gd-space-6); background: var(--gd-surface-panel); border: 1px solid var(--gd-line-hairline); border-radius: var(--gd-radius-card);
  transition: border-color var(--gd-dur-base) var(--gd-ease-standard), transform var(--gd-dur-base) var(--gd-ease-standard);
  opacity: 0; transform: translateY(14px);
}
#homeView.gd-home .engagement-feature.gd-in { opacity: 1; transform: none; transition: opacity var(--gd-dur-reveal) var(--gd-ease-out-soft), transform var(--gd-dur-reveal) var(--gd-ease-out-soft); }
#homeView.gd-home .engagement-feature:hover { border-color: var(--gd-line-strong); }
#homeView.gd-home .engagement-feature span { display: block; font-family: var(--gd-font-display); font-weight: var(--gd-fw-bold); font-size: 12px; color: var(--gd-text-muted); }
#homeView.gd-home .engagement-feature strong { display: block; margin: var(--gd-space-3) 0 var(--gd-space-2); font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 1.05rem; color: var(--gd-text-gold-strong); text-transform: uppercase; }
#homeView.gd-home .engagement-feature p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gd-text-body); }

/* ---------------------------------------------------------------------- */
/* FOOTER — Footer.jsx                                                     */
/* ---------------------------------------------------------------------- */

#homeView.gd-home .gd-footer { background: var(--gd-surface-panel); border-top: 1px solid var(--gd-line-hairline); padding: var(--gd-space-9) var(--gd-space-8) var(--gd-space-6); }
#homeView.gd-home .gd-footer-inner { max-width: var(--gd-container-max); margin: 0 auto; }
#homeView.gd-home .gd-footer-top { display: flex; gap: var(--gd-space-12); flex-wrap: wrap; }
#homeView.gd-home .gd-footer-brand { display: flex; align-items: center; gap: var(--gd-space-4); }
#homeView.gd-home .gd-footer-brand img { width: 46px; height: 46px; object-fit: contain; }
#homeView.gd-home .gd-footer-brand strong { display: block; font-family: var(--gd-font-display); font-weight: var(--gd-fw-black); font-size: 1.05rem; color: var(--gd-text-primary); text-transform: uppercase; letter-spacing: .04em; }
#homeView.gd-home .gd-footer-brand small { display: block; margin-top: 4px; color: var(--gd-text-muted); font-size: 12px; }
#homeView.gd-home .gd-footer-columns { display: flex; gap: var(--gd-space-11); flex: 1; flex-wrap: wrap; }
#homeView.gd-home .gd-footer-col { display: flex; flex-direction: column; gap: var(--gd-space-4); min-width: 120px; }
#homeView.gd-home .gd-footer-col-title { font-family: var(--gd-font-body); font-weight: var(--gd-fw-semibold); font-size: 12px; letter-spacing: var(--gd-ls-label); color: var(--gd-text-gold); text-transform: uppercase; }
#homeView.gd-home .gd-footer-col a { font-size: 14px; color: var(--gd-text-body); white-space: nowrap; }
#homeView.gd-home .gd-footer-col a:hover { color: var(--gd-gold-200); }
#homeView.gd-home .gd-footer-social { display: flex; flex-direction: column; gap: var(--gd-space-5); }
#homeView.gd-home .gd-footer-social-icons { display: flex; gap: var(--gd-space-6); }
#homeView.gd-home .gd-footer-social-icons a { color: var(--gd-gold-300); }
#homeView.gd-home .gd-footer-social-icons svg { width: 20px; height: 20px; }
#homeView.gd-home .gd-footer-social-icons a:hover { color: var(--gd-gold-100); }
#homeView.gd-home .gd-footer-bottom {
  margin-top: var(--gd-space-9); padding-top: var(--gd-space-5); border-top: 1px solid var(--gd-line-neutral);
  display: flex; gap: var(--gd-space-8); align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--gd-text-muted);
}
#homeView.gd-home .gd-footer-bottom a { color: var(--gd-text-muted); white-space: nowrap; }
#homeView.gd-home .gd-footer-bottom a:hover { color: var(--gd-text-gold); }

/* ---------------------------------------------------------------------- */
/* Responsive: features / spotlight / return-loop below hero+showcase      */
/* ---------------------------------------------------------------------- */

@media (max-width: 980px) {
  #homeView.gd-home .gd-features-grid { grid-template-columns: 1fr 1fr; }
  #homeView.gd-home .gd-spotlight-grid { grid-template-columns: 1fr; }
  #homeView.gd-home .return-loop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  #homeView.gd-home .gd-features { padding: var(--gd-space-9) var(--gd-space-5); }
  #homeView.gd-home .gd-features-grid { grid-template-columns: 1fr; }
  #homeView.gd-home .gd-spotlight { padding: var(--gd-space-9) var(--gd-space-5); }
  #homeView.gd-home .gd-return-loop { padding: var(--gd-space-9) var(--gd-space-5); }
  #homeView.gd-home .return-loop-grid { grid-template-columns: 1fr; }
  #homeView.gd-home .gd-footer { padding: var(--gd-space-8) var(--gd-space-5) var(--gd-space-6); }
  #homeView.gd-home .gd-footer-top { gap: var(--gd-space-8); }
  #homeView.gd-home .gd-footer-columns { gap: var(--gd-space-8); }
}

/* ---------------------------------------------------------------------- */
/* Reveal-on-scroll (shared with app.js's [data-reveal] IntersectionObserver) */
/* ---------------------------------------------------------------------- */

#homeView.gd-home [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--gd-dur-reveal) var(--gd-ease-out-soft), transform var(--gd-dur-reveal) var(--gd-ease-out-soft); }
#homeView.gd-home [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* Motion & accessibility                                                  */
/* ---------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  #homeView.gd-home [data-reveal],
  #homeView.gd-home .gd-feature-card,
  #homeView.gd-home .engagement-feature,
  #homeView.gd-home .gd-card,
  #homeView.gd-home .leader-card-inner,
  #homeView.gd-home .game-loop-track {
    transition-duration: .001s !important;
    animation-duration: .001s !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Final homepage shell correction. This block must remain at EOF: the shared
   application stylesheet contains later legacy/mobile rules by design. */
html:has(body.home-background) {
  background: #050403;
  scrollbar-gutter: auto;
  scrollbar-color: rgba(192,143,52,.72) #080603;
}
body.home-background {
  min-height: 100%;
  background: #050403 url("/gd2-page-texture.webp") center top / 1727px auto repeat-y;
  color: #efe8db;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body.home-background .world-bg { background: #050403 url("/gd2-page-texture.webp") center / cover no-repeat fixed !important; }
body.home-background .world-gradient,
body.home-background .world-grid,
body.home-background .home-view::before { display: none !important; }
body.home-background .page-shell { width: 100% !important; max-width: none !important; margin: 0 !important; }

body.home-background .site-header {
  position: absolute !important;
  inset: 0 0 auto !important;
  z-index: 220;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  pointer-events: none;
}
body.home-background .site-header::after,
body.home-background .site-header > .brand,
body.home-background .site-header > .site-menu,
body.home-background .site-header .header-status { display: none !important; }
body.home-background .site-header .header-account {
  position: absolute;
  top: clamp(16px,1.8vw,30px);
  right: clamp(18px,2.6vw,48px);
  margin: 0 !important;
  pointer-events: none;
}
body.home-background .site-header .header-account > * { pointer-events: auto; }
body.home-background .twitch-login-button,
body.home-background .dashboard-button {
  min-height: 46px;
  padding: 0 25px;
  border: 1px solid rgba(229,195,119,.72);
  border-radius: 999px;
  background: rgba(8,6,3,.78);
  color: #f0d79b;
  font: 700 12px/1 "Inter",ui-sans-serif,system-ui,sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(229,195,119,.08),0 12px 28px rgba(0,0,0,.35);
}
body.home-background .twitch-login-button:hover,
body.home-background .dashboard-button:hover {
  background: linear-gradient(180deg,#f0d79b,#c08f34);
  color: #1a1207;
}

#homeView.gd-home {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  background: #050403 url("/gd2-page-texture.webp") center top / 1727px auto repeat-y;
}
#homeView.gd-home > .gd-hero,
#homeView.gd-home > .gd-features,
#homeView.gd-home > .gd-showcase,
#homeView.gd-home > .gd-footer { width: 100%; max-width: none; margin-inline: 0; }

#homeView.gd-home .gd-hero {
  z-index: 4;
  min-height: min(100svh,calc(100vw * .5263));
  background: #050403;
}
#homeView.gd-home .gd-hero-canvas {
  min-height: min(100svh,calc(100vw * .5263));
  overflow: clip;
  mask-image: linear-gradient(180deg,#000 0%,#000 84%,rgba(0,0,0,.92) 91%,transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,#000 0%,#000 84%,rgba(0,0,0,.92) 91%,transparent 100%);
}
#homeView.gd-home .gd-hero-stage { background-image: url("/gd2-hero.webp?v=503580"); }
#homeView.gd-home .gd-hero-stage::before {
  content:"";
  position:absolute;
  z-index:1;
  top:0;
  left:0;
  width:400px;
  height:170px;
  pointer-events:none;
  background:radial-gradient(ellipse 100% 110% at 0 0,rgba(5,4,3,.98) 0 58%,rgba(5,4,3,.84) 72%,rgba(5,4,3,.34) 86%,transparent 100%);
}
#homeView.gd-home .gd-hero-glow {
  left: 520px;
  top: 22px;
  width: 760px;
  height: 540px;
  background: radial-gradient(closest-side,rgba(4,3,2,.84),rgba(4,3,2,.63) 58%,transparent 100%);
}
#homeView.gd-home .gd-hero-brand {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gd-gold-300);
  font-family: var(--gd-font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .36em;
  text-transform: uppercase;
}
#homeView.gd-home .gd-hero-brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.55)); }
#homeView.gd-home .gd-hero-copy { left: 605px; top: 100px; width: 520px; }
#homeView.gd-home .gd-hero-heading { margin-top: 18px; font-size: 58px; line-height: .9; text-shadow: 0 6px 22px rgba(0,0,0,.72); }
#homeView.gd-home .gd-hero-sub { max-width: 380px; font-size: 15px; line-height: 1.52; }
#homeView.gd-home .gd-hero-divider { margin-block: 22px; }
#homeView.gd-home .gd-hero-cta { margin-top: 22px; min-width: 230px; height: 56px; }
#homeView.gd-home .gd-hero-pedestal { left: 1128px; bottom: 342px; }
#homeView.gd-home .gd-hero-rail-wrap { left: 150px; top: 641px; width: 940px; }
#homeView.gd-home .gd-pull-rail { gap: 10px; }
#homeView.gd-home .gd-hero-stage .gd-hero-stats { left: 1110px; top: 641px; width: 455px; }
#homeView.gd-home .gd-home-message {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 7%;
  width: min(620px,calc(100% - 40px));
  margin: 0;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gd-parch-200);
}
#homeView.gd-home .gd-home-message:empty { display: none; }

#homeView.gd-home .gd-features {
  z-index: 3;
  margin-top: clamp(-130px,-6.8vw,-72px);
  padding: clamp(145px,11vw,215px) clamp(24px,5vw,96px) clamp(92px,7vw,140px);
  background: #0b0906 url("/gd2-features-bg.png") center top / cover no-repeat;
  overflow: hidden;
}
#homeView.gd-home .gd-features::before,
#homeView.gd-home .gd-features::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: 0;
  left: 0;
  pointer-events: none;
}
#homeView.gd-home .gd-features::before { top: 0; height: clamp(120px,11vw,210px); background: linear-gradient(180deg,#050403,rgba(5,4,3,.83) 28%,transparent); }
#homeView.gd-home .gd-features::after { bottom: 0; height: clamp(90px,9vw,170px); background: linear-gradient(180deg,transparent,rgba(5,4,3,.92)); }
#homeView.gd-home .gd-features-inner { position: relative; z-index: 1; max-width: 1560px; }
#homeView.gd-home .gd-features-intro { display: none; }
#homeView.gd-home .gd-features-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(14px,1.4vw,24px); }
#homeView.gd-home .gd-feature-card {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(128px,.92fr);
  min-height: clamp(240px,17vw,285px);
  border-radius: 7px;
  background: linear-gradient(115deg,rgba(12,10,7,.98),rgba(15,12,8,.88));
}
#homeView.gd-home .gd-feature-art { grid-column: 2; grid-row: 1; height: 100%; min-height: 0; }
#homeView.gd-home .gd-feature-art img { object-fit: cover; object-position: center; }
#homeView.gd-home .gd-feature-art::after { background: linear-gradient(90deg,#0c0a07,rgba(12,10,7,.2) 52%,rgba(5,4,3,.08)); }
#homeView.gd-home .gd-feature-body {
  grid-column: 1;
  grid-row: 1;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px,2.2vw,36px);
}
#homeView.gd-home .gd-feature-body p { margin: 18px 0 24px; font-size: clamp(12px,.86vw,15px); }
#homeView.gd-home .gd-feature-body .gd-ghost-link { margin-top: auto; }

#homeView.gd-home .gd-showcase {
  z-index: 2;
  margin-top: clamp(-72px,-4vw,-42px);
  padding: clamp(92px,6vw,120px) 0 0;
  background: linear-gradient(180deg,rgba(5,4,3,.98),rgba(5,4,3,.38) 11%,transparent 23%),#050403 url("/gd2-page-texture.webp") center / cover no-repeat;
}
#homeView.gd-home .gd-showcase-canvas {
  mask-image: linear-gradient(180deg,transparent,#000 7%,#000 100%);
  -webkit-mask-image: linear-gradient(180deg,transparent,#000 7%,#000 100%);
}
#homeView.gd-home .gd-showcase-stage { background-image: url("/gd2-showcase-frame.webp?v=503580"); }

#homeView.gd-home .gd-footer {
  position: relative;
  z-index: 5;
  margin-top: -1px;
  padding: clamp(42px,4vw,68px) clamp(24px,5vw,96px) 28px;
  border-top: 0;
  background: linear-gradient(180deg,rgba(13,10,7,.98),rgba(7,6,4,.99)),url("/gd2-page-texture.webp") center / cover no-repeat;
}
#homeView.gd-home .gd-footer::before {
  content: "";
  position: absolute;
  top: -85px;
  right: 0;
  left: 0;
  height: 86px;
  pointer-events: none;
  background: linear-gradient(180deg,transparent,rgba(13,10,7,.98));
}
#homeView.gd-home .gd-footer-inner { max-width: 1560px; }
#homeView.gd-home .gd-footer-brand img { width: 68px; height: 68px; }
#homeView.gd-home .gd-footer-brand strong { color: var(--gd-gold-200); letter-spacing: .13em; }

/* Desktop homepage composition. */
@media (min-width: 1101px) {
  body.home-background .twitch-login-button { transform: translate3d(-139px,-11px,0); }
  #homeView.gd-home .gd-hero-copy { left: 70px; top: 399px; }
  #homeView.gd-home .gd-hero-sub-prefix { display: none; }
  #homeView.gd-home .gd-hero-rail-wrap { left: 624px; }
  #homeView.gd-home .gd-hero-stage .gd-pull-tag,
  #homeView.gd-home .gd-hero-stage .gd-hero-stats,
  #homeView.gd-home .gd-footer-brand { display: none; }
  #homeView.gd-home .gd-features { background-image: url("/gd2-features-bg-final.webp?v=503580"); }
  #homeView.gd-home .gd-showcase-stage > .gd-showcase-copy { left: 93px; top: 226px; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  #homeView.gd-home .gd-hero-copy { left: 555px; }
  #homeView.gd-home .gd-features { padding-inline: 24px; }
  #homeView.gd-home .gd-feature-card { grid-template-columns: 1fr; }
  #homeView.gd-home .gd-feature-art { position: absolute; inset: 0; opacity: .5; }
  #homeView.gd-home .gd-feature-art::after { background: linear-gradient(90deg,rgba(8,7,5,.98),rgba(8,7,5,.62)); }
}

@media (max-width: 760px) {
  body.home-background .page-shell { width: 100% !important; max-width: none !important; margin: 0 !important; }
  body.home-background .site-header .header-account { top: 15px; right: 14px; }
  body.home-background .twitch-login-button,
  body.home-background .dashboard-button { min-height: 40px !important; padding: 0 14px !important; font-size: 10px; }
  #homeView.gd-home .gd-hero { min-height: 0; }
  #homeView.gd-home .gd-hero-mobile {
    min-height: 100svh;
    padding: 16px 20px 64px;
    gap: 18px;
    background-position: 46% top;
  }
  #homeView.gd-home .gd-hero-mobile::before { background: linear-gradient(180deg,rgba(5,4,3,.2),rgba(5,4,3,.82) 34%,#050403 88%); }
  #homeView.gd-home .gd-hero-mobile .gd-hero-brand {
    position: relative;
    inset: auto;
    z-index: 2;
    isolation: isolate;
    align-self: flex-start;
    min-height: 44px;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .2em;
  }
  #homeView.gd-home .gd-hero-mobile .gd-hero-brand::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -18px;
    left: -18px;
    width: 170px;
    height: 100px;
    pointer-events: none;
    background: radial-gradient(ellipse 100% 110% at 0 0, rgba(5,4,3,.98) 0 58%, rgba(5,4,3,.84) 72%, rgba(5,4,3,.34) 86%, transparent 100%);
  }
  #homeView.gd-home .gd-hero-mobile .gd-hero-brand img { width: 42px; height: 42px; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-eyebrow { margin-top: clamp(150px,37vh,300px); }
  #homeView.gd-home .gd-home-message { bottom: 22px; font-size: 12px; }
  #homeView.gd-home .gd-features {
    margin-top: -28px;
    padding: 90px 18px 84px !important;
    background-size: auto 100%;
  }
  #homeView.gd-home .gd-features-grid { grid-template-columns: 1fr; gap: 14px; }
  #homeView.gd-home .gd-feature-card { grid-template-columns: minmax(0,1.08fr) minmax(120px,.92fr); min-height: 220px; }
  #homeView.gd-home .gd-feature-art { position: relative; inset: auto; grid-column: 2; grid-row: 1; opacity: 1; }
  #homeView.gd-home .gd-feature-body { padding: 22px 16px; }
  #homeView.gd-home .gd-feature-body h3 { font-size: 22px; }
  #homeView.gd-home .gd-feature-body p { font-size: 12px; }
  #homeView.gd-home .gd-showcase { margin-top: -44px; padding: 105px 0 32px; }
  #homeView.gd-home .gd-showcase-mobile { padding-inline: 20px; }
  #homeView.gd-home .gd-footer { padding: 42px 20px 24px !important; }
  #homeView.gd-home .gd-footer-top,
  #homeView.gd-home .gd-footer-columns { gap: 30px; }
}

@media (max-width: 430px) {
  body.home-background .page-shell { width: 100% !important; }
  #homeView.gd-home .gd-hero-mobile .gd-hero-brand span { display: none; }
  #homeView.gd-home .gd-feature-card { grid-template-columns: 1fr; min-height: 255px; }
  #homeView.gd-home .gd-feature-art { position: absolute; inset: 0; grid-column: 1; opacity: .58; }
  #homeView.gd-home .gd-feature-art::after { background: linear-gradient(90deg,rgba(8,7,5,.97),rgba(8,7,5,.48)); }
  #homeView.gd-home .gd-feature-body { grid-column: 1; width: 70%; }
  #homeView.gd-home .gd-footer-columns { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  #homeView.gd-home .gd-footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

/* A feature card must never remain transparent after its parent section has
   entered the viewport. The per-card observer still supplies the stagger when
   available; this parent fallback covers tall and unusually wide viewports. */
#homeView.gd-home .gd-features.is-visible .gd-feature-card {
  opacity: 1;
  transform: none;
  transition: opacity var(--gd-dur-reveal) var(--gd-ease-out-soft),
              transform var(--gd-dur-reveal) var(--gd-ease-out-soft),
              border-color var(--gd-dur-base) var(--gd-ease-standard),
              box-shadow var(--gd-dur-base) var(--gd-ease-standard);
}
#homeView.gd-home .gd-features.is-visible .gd-feature-card:nth-child(2) { transition-delay: 90ms; }
#homeView.gd-home .gd-features.is-visible .gd-feature-card:nth-child(3) { transition-delay: 180ms; }

/* Tactics uses the same dark walnut, antique-gold control family as the
   converted Lineup, Squad and Settings screens. The pitch stays green and
   readiness/danger states retain their semantic colours. */
#profileTacticsPanel .tactical-centre-v5{color:#d9d1c2}
#profileTacticsPanel .tc5-starting,
#profileTacticsPanel .tc5-automation,
#profileTacticsPanel .tc5-bottom-bar,
#profileTacticsPanel .tc5-modal{
  border-color:rgba(212,169,79,.24)!important;
  background:linear-gradient(145deg,rgba(23,21,15,.97),rgba(11,10,8,.98))!important;
  box-shadow:0 18px 42px rgba(0,0,0,.32)!important;
}
#profileTacticsPanel .tc5-control select,
#profileTacticsPanel .tc5-condition-grid select,
#profileTacticsPanel .tc5-planned-subs select,
#profileTacticsPanel .tc5-sub-fallback select,
#profileTacticsPanel .tc5-condition-grid input{
  border-color:rgba(212,169,79,.22)!important;
  background:#0d0c0a!important;
  color:#fbf7ef!important;
}
#profileTacticsPanel .tc5-control-label>span,
#profileTacticsPanel .tc5-condition-grid label>span,
#profileTacticsPanel .tc5-planned-subs label>span,
#profileTacticsPanel .tc5-lineup-summary span,
#profileTacticsPanel .tc5-bottom-bar .tc5-meta>span{color:#e5c377!important}
#profileTacticsPanel .tc5-reaction-card,
#profileTacticsPanel .tc5-condition-grid,
#profileTacticsPanel .tc5-sub-plan,
#profileTacticsPanel .tc5-planned-subs>article,
#profileTacticsPanel .tc5-sub-fallback,
#profileTacticsPanel .tc5-bench{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(11,10,8,.74)!important;
}
#profileTacticsPanel .tc5-reaction-card:hover,
#profileTacticsPanel .tc5-reaction-card:focus-visible,
#profileTacticsPanel .tc5-branch-tabs button.active{
  border-color:rgba(212,169,79,.58)!important;
  background:rgba(212,169,79,.11)!important;
  box-shadow:0 0 18px rgba(212,169,79,.12)!important;
}
#profileTacticsPanel .tc5-reaction-card .tc5-reaction-copy strong,
#profileTacticsPanel .tc5-modal h2,
#profileTacticsPanel .tc5-sub-plan h3,
#profileTacticsPanel .tc5-bottom-bar>div>b,
#profileTacticsPanel .tc5-planned-subs>article>div span{color:#fbf7ef!important}
#profileTacticsPanel .tc5-reaction-card .tc5-reaction-copy span,
#profileTacticsPanel .tc5-reaction-card .tc5-reaction-copy small,
#profileTacticsPanel .tc5-modal header p,
#profileTacticsPanel .tc5-sub-plan header p,
#profileTacticsPanel .tc5-planned-subs>article>div small,
#profileTacticsPanel .tc5-save-message,
#profileTacticsPanel .tc5-bench>header>small{color:#d9d1c2!important}
#profileTacticsPanel .tc5-multiselect>summary,
#profileTacticsPanel .tc5-multiselect .tc5-attack-lanes{
  border-color:rgba(212,169,79,.24)!important;
  background:#0d0c0a!important;
  color:#fbf7ef!important;
}
#profileTacticsPanel .tc5-multiselect .tc5-attack-lanes span{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(212,169,79,.05)!important;
  color:#d9d1c2!important;
}
#profileTacticsPanel .tc5-multiselect .tc5-attack-lanes input:checked+span{
  border-color:rgba(212,169,79,.7)!important;
  background:rgba(212,169,79,.18)!important;
  color:#fbf7ef!important;
}
#profileTacticsPanel .tc5-multiselect .tc5-attack-lanes input:focus-visible+span{outline-color:#e5c377!important}
#profileTacticsPanel .tc5-bottom-bar button,
#profileTacticsPanel .tc5-modal>footer button{
  border-color:transparent!important;
  background:linear-gradient(180deg,#f0d79b,#d4a94f 46%,#9c7128)!important;
  color:#1a1207!important;
}
#profileTacticsPanel .tc5-modal-backdrop{background:rgba(5,4,3,.84)!important}
#profileTacticsPanel .tc5-modal>header,
#profileTacticsPanel .tc5-modal>footer,
#profileTacticsPanel .tc5-branch-tabs{border-color:rgba(212,169,79,.16)!important;background:rgba(11,10,8,.92)!important}
#profileTacticsPanel .tc5-branch-tabs button{border-color:rgba(212,169,79,.18)!important;background:rgba(23,21,15,.8)!important;color:#d9d1c2!important}
#profileTacticsPanel .tc5-branch-tabs button.add{color:#e5c377!important}
#profileTacticsPanel .tc5-modal-close{border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.08)!important;color:#f0d79b!important}
#profileTacticsPanel .tc5-switch{color:#d9d1c2!important}
#profileTacticsPanel .tc5-switch i{background:#494235!important}
#profileTacticsPanel .tc5-switch input:checked+i{background:rgba(57,128,74,.82)!important}
#profileTacticsPanel .tc5-pitch{border-color:rgba(212,169,79,.25)!important}
#profileTacticsPanel .tc5-pitch .tc5-player>b{border-color:#d4a94f!important;background:linear-gradient(145deg,#66501f,#261d0c)!important}
#profileTacticsPanel .tc5-pitch .tc5-player>small,
#profileTacticsPanel .tc5-bench>header>span{color:#e5c377!important}
@media(max-width:850px){
  #profileTacticsPanel .tc5-bottom-bar{grid-template-columns:1fr 1fr!important}
  #profileTacticsPanel .tc5-bottom-bar button{grid-column:1/-1!important}
}

/* Final tablet cleanup: complete objectives use a bright, high-contrast tick
   on restrained green; the surrounding mission stays visibly distinct from an
   incomplete gold-progress item. */
.office-app-scroll #profileObjectivesPanel .mission-item.complete .mission-status{
  color:#fffdf6!important;
  border-color:rgba(111,208,142,.9)!important;
  background:linear-gradient(145deg,#397a4d,#1d4c31)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 2px rgba(83,176,111,.12)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.5);
}

/* Mail is a grid child of the tablet shell. A 100%-high body overflowed its
   allocated track after the header became absolutely positioned, making the
   workspace look cut short. Let the grid calculate the body, then let only
   the list/detail panes scroll. */
.mail-modal.is-office-mail .mail-modal-card{grid-template-rows:minmax(0,1fr)!important}
.mail-modal.is-office-mail .mail-modal-body{height:auto!important;min-height:0!important}
.mail-modal.is-office-mail .mail-view,
.mail-modal.is-office-mail .mail-two-pane,
.mail-modal.is-office-mail .mail-conversation-pane,
.mail-modal.is-office-mail .mail-reading-pane{min-height:0!important;height:100%!important}

/* The Upcoming window is app chrome, not a semantic match result: keep all
   of its event variants in the warm calendar family. */
.office-app-scroll .goat-calendar-upcoming-item.is-registration,
.office-app-scroll .goat-calendar-upcoming-item.is-event,
.office-app-scroll .goat-calendar-upcoming-item.is-start,
.office-app-scroll .goat-calendar-upcoming-item.is-finish,
.office-app-scroll .goat-calendar-upcoming-item.is-offseason{
  border-color:rgba(212,169,79,.28)!important;
  background:linear-gradient(145deg,rgba(43,36,21,.88),rgba(15,13,9,.96))!important;
}
.office-app-scroll .goat-calendar-upcoming-item.is-registration .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-event .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-start .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-finish .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-offseason .goat-calendar-upcoming-date{
  border-color:rgba(212,169,79,.36)!important;
  background:rgba(212,169,79,.11)!important;
  color:#f0d79b!important;
}
.office-app-scroll .goat-calendar-upcoming-item.is-registration :is(b,strong,small,span),
.office-app-scroll .goat-calendar-upcoming-item.is-event :is(b,strong,small,span),
.office-app-scroll .goat-calendar-upcoming-item.is-start :is(b,strong,small,span),
.office-app-scroll .goat-calendar-upcoming-item.is-finish :is(b,strong,small,span),
.office-app-scroll .goat-calendar-upcoming-item.is-offseason :is(b,strong,small,span){color:inherit}

.office-app-scroll #profileSettingsPanel .settings-content-shell{align-content:start!important}

/* Delete remains the one destructive action in the preset row. The preset
   field itself now uses the reusable .goat-form-field primitive below. */
.office-app-scroll #profileLineupPanel .lineup-delete-button{
  border-color:rgba(180,67,47,.5)!important;
  background:rgba(91,35,29,.5)!important;
  color:#f0b2a5!important;
}
.office-app-scroll #profileLineupPanel .lineup-delete-button:hover:not(:disabled),
.office-app-scroll #profileLineupPanel .lineup-delete-button:focus-visible:not(:disabled){
  border-color:rgba(200,86,68,.82)!important;
  background:rgba(114,42,33,.68)!important;
  color:#ffe0d9!important;
}
.office-app-scroll #profileLineupPanel :is(.lineup-heading,.lineup-panel-summary,.lineup-roles-summary-toggle) .eyebrow,
.office-app-scroll #profileLineupPanel .lineup-owner-controls>label>span{color:#e5c377!important}

/* The comparison dialog is a global overlay, so its dimmer must be neutral
   as well as its content shell. Semantic better/worse values remain untouched. */
.squad-comparison-backdrop{background:rgba(5,4,3,.86)!important;backdrop-filter:blur(10px)!important}
.squad-comparison-content{scrollbar-color:rgba(192,143,52,.72) #080603}
.squad-comparison-content::-webkit-scrollbar{width:8px}
.squad-comparison-content::-webkit-scrollbar-track{background:#080603}
.squad-comparison-content::-webkit-scrollbar-thumb{background:rgba(192,143,52,.72);border-radius:99px}

/* A reaction editor is shown inside the existing tablet display. At tablet
   widths it becomes a contained one-column dialog: header/footer stay in the
   display, content scrolls inside the dialog, and no page-level horizontal
   scroll is needed to reach Done or Close. */
.office-app-scroll #profileTacticsPanel{position:relative;min-height:100%}
.office-app-scroll #profileTacticsPanel .tc5-modal-backdrop{
  position:absolute!important;
  z-index:80!important;
  inset:0!important;
  display:grid!important;
  align-items:stretch!important;
  padding:6px!important;
}
.office-app-scroll #profileTacticsPanel .tc5-modal{
  width:100%!important;
  max-width:none!important;
  max-height:none!important;
  height:100%!important;
  min-height:0!important;
  grid-template-rows:auto auto minmax(0,1fr) auto!important;
}
.office-app-scroll #profileTacticsPanel .tc5-modal-body{
  grid-template-columns:1fr!important;
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  padding:9px!important;
}
.office-app-scroll #profileTacticsPanel .tc5-modal-body>aside{display:grid;justify-items:center}
.office-app-scroll #profileTacticsPanel .tc5-modal .tc5-pitch{width:min(100%,320px)!important;height:350px!important}
.office-app-scroll #profileTacticsPanel .tc5-modal>header{position:relative;z-index:2}
.office-app-scroll #profileTacticsPanel .tc5-modal>footer{position:sticky;bottom:0;z-index:3;background:#0d0c0a!important}
.office-app-scroll #profileTacticsPanel .tc5-modal>footer button{min-width:120px!important}
.office-app-scroll #profileTacticsPanel .tc5-modal-tactics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.office-app-scroll #profileTacticsPanel .tc5-condition-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.office-app-scroll #profileTacticsPanel .tc5-planned-subs>article{grid-template-columns:22px minmax(0,1fr) 18px minmax(0,1fr)!important}
.office-app-scroll #profileTacticsPanel .tc5-planned-subs>article :is(label,.actions){grid-column:2/-1!important}
@media(max-width:520px){
  .office-app-scroll #profileTacticsPanel .tc5-modal-tactics,
  .office-app-scroll #profileTacticsPanel .tc5-condition-grid{grid-template-columns:1fr!important}
}

/* Forensic target pass. These selectors are intentionally page-scoped and
   placed after the legacy v5 declarations; some use !important because the
   earlier screen-specific rules already do. */

/* Tactics: the prior pass styled only outer cards. The blue visible in the
   starting controls and pitch rail came from the direct tc5 child surfaces. */
#profileTacticsPanel .tc5-lineup-summary,
#profileTacticsPanel .tc5-pitch-wrap{
  border-color:rgba(212,169,79,.22)!important;
  background:linear-gradient(145deg,rgba(27,24,17,.96),rgba(11,10,8,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}
#profileTacticsPanel .tc5-control,
#profileTacticsPanel .tc5-starting .tc5-control{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileTacticsPanel .tc5-lineup-summary>div{border-right-color:rgba(212,169,79,.14)!important}
#profileTacticsPanel .tc5-lineup-summary strong,
#profileTacticsPanel .tc5-control>span,
#profileTacticsPanel .tc5-starting>header span,
#profileTacticsPanel .tc5-automation>header span,
#profileTacticsPanel .tc5-modal header>div>span{color:#e5c377!important}
#profileTacticsPanel .tc5-slot.empty{
  border-color:rgba(240,215,155,.30)!important;
  background:rgba(10,17,9,.20)!important;
}
#profileTacticsPanel .tc5-pitch.interactive .tc5-slot:hover{
  background:rgba(212,169,79,.12)!important;
  box-shadow:0 0 16px rgba(212,169,79,.16)!important;
}
#profileTacticsPanel .tc5-empty-slot{color:#f0e6ce!important}
#profileTacticsPanel .tc5-bench-player>b{
  border-color:rgba(212,169,79,.62)!important;
  background:#2b210e!important;
}
#profileTacticsPanel .tc5-bench-player small,
#profileTacticsPanel .tc5-drag-help,
#profileTacticsPanel .tc5-sub-plan header>b,
#profileTacticsPanel .tc5-sub-fallback>strong{color:#e5c377!important}
#profileTacticsPanel .tc5-planned-subs>article>b{
  background:rgba(212,169,79,.18)!important;
  color:#f0d79b!important;
}
#profileTacticsPanel .tc5-planned-subs>article>i,
#profileTacticsPanel .tc5-sub-fallback>i{color:#e5c377!important}
#profileTacticsPanel .tc5-planned-subs button{
  border-color:rgba(212,169,79,.24)!important;
  background:rgba(212,169,79,.08)!important;
  color:#f0d79b!important;
}

/* Lineup: this exact label group is separate from owner controls. The earlier
   broad selector therefore left the six leadership labels cyan. */
#profileLineupPanel #lineupRoleControls>label>span,
#profileLineupPanel .lineup-owner-controls>label>span,
#profileLineupPanel .lineup-filters>label>span{
  color:#e5c377!important;
}
/* The old ID rule supplied a bright pink/white gradient and won outside the
   tablet-only scope. Target the ID directly for every enabled/disabled state. */
#profileLineupPanel #lineupDeletePreset.lineup-delete-button{
  border-color:rgba(180,67,47,.62)!important;
  background:linear-gradient(145deg,rgba(103,39,31,.96),rgba(58,23,19,.98))!important;
  color:#f3c1b6!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),0 7px 17px rgba(67,19,14,.20)!important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button :is(span,img){
  color:#f3c1b6!important;
  -webkit-text-fill-color:#f3c1b6!important;
  filter:none!important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button:hover:not(:disabled),
#profileLineupPanel #lineupDeletePreset.lineup-delete-button:focus-visible:not(:disabled){
  border-color:rgba(205,92,74,.88)!important;
  background:linear-gradient(145deg,rgba(128,47,37,.98),rgba(75,28,22,.99))!important;
  color:#ffe1da!important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button:disabled{
  opacity:.48!important;
  border-color:rgba(180,67,47,.34)!important;
  background:rgba(65,30,25,.72)!important;
  color:rgba(240,178,165,.62)!important;
}

/* View Squad filter labels were scoped to .office-app-scroll only, so the
   profile view still inherited the legacy cool label. Scope to the screen. */
#profileSquadPanel .squad-filter-console label>span{color:#e5c377!important}

/* Compare Players: the first pass recoloured only the modal and individual
   rows. These are the actual blue player and grouped-attribute surfaces. */
.squad-comparison-content .squad-compare-player{
  border-color:rgba(212,169,79,.24)!important;
  background:linear-gradient(145deg,rgba(30,26,17,.98),rgba(11,10,8,.99))!important;
}
.squad-comparison-content .squad-compare-player:nth-child(3){
  background:linear-gradient(145deg,rgba(27,24,17,.98),rgba(10,9,8,.99))!important;
}
.squad-comparison-content .squad-compare-profile strong{color:#fbf7ef!important}
.squad-comparison-content .squad-compare-profile>b{color:#f0d79b!important}
.squad-comparison-content .squad-compare-attribute-group{
  border-color:rgba(212,169,79,.20)!important;
  background:rgba(12,11,9,.94)!important;
}
.squad-comparison-content .squad-compare-attribute-group>header{
  border-bottom-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(90deg,rgba(54,43,20,.86),rgba(22,19,12,.94))!important;
}
.squad-comparison-content .squad-compare-attribute-group>header b{color:#e5c377!important}
.squad-comparison-content .squad-compare-attribute-group>header em,
.squad-comparison-content .squad-compare-row.is-main span{color:#d9d1c2!important}
.squad-comparison-content .squad-compare-attribute-group .squad-compare-row{background:rgba(19,17,14,.78)!important}
.squad-comparison-content .squad-compare-row>strong.is-equal{color:#e5e0d4!important;background:rgba(212,169,79,.12)!important}

/* ---------------------------------------------------------------------- */
/* Shared heritage-control primitives. Components opt in with explicit,
   reusable roles rather than carrying their page's historical palette. */
:root{
  --goat-surface-page:#050505;
  --goat-surface-panel:#17150f;
  --goat-surface-elevated:#211d15;
  --goat-surface-espresso:#2a2214;
  --goat-border-subtle:rgba(212,169,79,.16);
  --goat-border-strong:rgba(212,169,79,.42);
  --goat-panel-radius:18px;
  --goat-modal-radius:20px;
  --goat-button-radius:10px;
  --goat-shadow-panel:0 18px 48px rgba(0,0,0,.38);
  --goat-shadow-modal:0 32px 90px rgba(0,0,0,.68);
  --goat-success:#7fffd4;
  --goat-warning:#d6a34a;
  --goat-danger:#ff808f;
  --goat-control-height:44px;
  --goat-control-radius:10px;
  --goat-control-surface:#0d0c0a;
  --goat-control-surface-hover:#2a2214;
  --goat-control-border:rgba(212,169,79,.24);
  --goat-control-focus:rgba(212,169,79,.64);
  --goat-action-gold:#d4a94f;
  --goat-label-color:#e5c377;
  --goat-text-primary:#fbf7ef;
  --goat-text-body:#d9d1c2;
  --goat-text-muted:#d9d1c2;
  --goat-text-gold-strong:#f0d79b;
  --goat-divider-color:rgba(212,169,79,.16);
}
.league-registration-modal-card .eyebrow{color:var(--goat-label-color)!important}
.goat-form-field{
  display:grid;
  gap:6px;
  min-width:0;
}
.goat-form-field>:is(span,.tc5-control-label>span){
  color:var(--goat-label-color)!important;
  font-family:var(--mono);
  font-size:.58rem!important;
  font-weight:850!important;
  letter-spacing:.09em!important;
  line-height:1.1;
  text-transform:uppercase;
}
.goat-form-field>:is(input,select,.goat-select),
.goat-form-field>.tc5-multiselect{width:100%;min-width:0}
.goat-form-field>:is(input,select),
.goat-form-field>.goat-select>.goat-select-trigger,
.goat-form-field>.tc5-multiselect>summary,
.goat-form-field .squad-age-range-inputs>input{
  box-sizing:border-box;
  min-height:var(--goat-control-height)!important;
  border:1px solid var(--goat-control-border)!important;
  border-radius:var(--goat-control-radius)!important;
  padding:0 12px!important;
  background:var(--goat-control-surface)!important;
  color:#fbf7ef!important;
  font-family:var(--body)!important;
  font-size:.72rem!important;
  font-weight:760!important;
  letter-spacing:.01em;
  line-height:1.2;
}
.goat-form-field>.goat-select>.goat-select-trigger{display:flex!important}
.goat-form-field>.tc5-multiselect>summary{display:flex;align-items:center;justify-content:space-between}
.goat-form-field>:is(input,select):focus,
.goat-form-field>.goat-select>.goat-select-trigger:focus-visible,
.goat-form-field>.tc5-multiselect>summary:focus-visible{
  border-color:var(--goat-control-focus)!important;
  box-shadow:0 0 0 3px rgba(212,169,79,.11)!important;
  outline:none!important;
}

/* Destructive and saved actions use light, readable content independently of
   the button's semantic surface. This also protects raster icons from old
   page-specific black-icon rules. */
:is(.danger-button,.danger-soft,.goat-save-action)>:is(span,svg){color:#fff4e3!important;-webkit-text-fill-color:#fff4e3!important}
:is(.danger-button,.danger-soft,.goat-save-action)>img{
  filter:brightness(0) invert(95%) sepia(20%) saturate(420%) hue-rotate(328deg) brightness(104%) contrast(97%)!important;
  opacity:1!important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button>img{filter:brightness(0) invert(95%) sepia(20%) saturate(420%) hue-rotate(328deg) brightness(104%) contrast(97%)!important}
:is(#profileLineupPanel,#profileRegistrationPanel) .goat-save-action{
  border-color:rgba(212,169,79,.46)!important;
  background:linear-gradient(145deg,#4c3915,#21180a)!important;
  color:#fff4e3!important;
}
:is(#profileLineupPanel,#profileRegistrationPanel) .goat-save-action:hover:not(:disabled),
:is(#profileLineupPanel,#profileRegistrationPanel) .goat-save-action:focus-visible:not(:disabled){
  border-color:rgba(240,215,155,.72)!important;
  background:linear-gradient(145deg,#5a4318,#2a1e0b)!important;
}
:is(#profileLineupPanel,#profileRegistrationPanel) .goat-save-action.is-save-confirmed{
  border-color:rgba(111,208,142,.68)!important;
  background:linear-gradient(145deg,#3d7e50,#1d482e)!important;
  color:#fffdf6!important;
}

/* Shared data-table chrome: warm labels/dividers, while rating and rarity
   values keep their own meaningful colour coding. */
.goat-data-table .squad-list-row{border-bottom-color:var(--goat-divider-color)!important;color:#e5e0d4!important}
.goat-data-table .squad-list-header{
  color:#e5c377!important;
  border-bottom-color:rgba(212,169,79,.28)!important;
  background:linear-gradient(100deg,rgba(34,29,18,.99),rgba(16,14,10,.99))!important;
  box-shadow:inset 0 -1px 0 rgba(212,169,79,.10)!important;
}
.goat-data-table .squad-list-header>span,
.goat-data-table .squad-list-sort{color:#e5c377!important}
.goat-data-table .squad-list-sort:hover,
.goat-data-table .squad-list-sort:focus-visible{
  border-color:rgba(212,169,79,.38)!important;
  background:rgba(212,169,79,.10)!important;
  color:#fbf7ef!important;
}
.goat-data-table .squad-list-sort.active{
  border-color:rgba(212,169,79,.52)!important;
  background:rgba(212,169,79,.16)!important;
  color:#fbf7ef!important;
}
.goat-data-table .squad-list-sort.active em{color:#e5c377!important}
.goat-data-table .squad-list-row:not(.squad-list-header):hover,
.goat-data-table .squad-list-row:not(.squad-list-header):focus-visible{
  border-bottom-color:rgba(212,169,79,.26)!important;
  border-left-color:color-mix(in srgb,var(--rarity-color,#8a7550) 78%,#d4a94f)!important;
  box-shadow:inset 0 0 0 1px rgba(212,169,79,.12),0 8px 22px rgba(0,0,0,.18)!important;
}

/* Player comparison consumes the same label, field and analysis-surface
   roles. Better/worse values intentionally remain green/red. */
.squad-comparison-content>header{min-height:0;padding-bottom:10px!important}
.squad-comparison-content>header .eyebrow{margin:0;color:var(--goat-label-color)!important}
.squad-comparison-content .goat-analysis-surface{
  border-color:rgba(212,169,79,.22)!important;
  background:linear-gradient(145deg,rgba(30,26,17,.98),rgba(11,10,8,.99))!important;
}
.squad-comparison-content .goat-analysis-surface.squad-compare-attribute-group{background:rgba(12,11,9,.94)!important}
.squad-comparison-content .goat-analysis-surface.squad-compare-attribute-group>header{
  border-bottom-color:var(--goat-divider-color)!important;
  background:linear-gradient(90deg,rgba(54,43,20,.86),rgba(22,19,12,.94))!important;
}
.squad-comparison-content .goat-analysis-row{
  border-color:var(--goat-divider-color)!important;
  background:rgba(19,17,14,.78)!important;
}
.squad-comparison-content :is(.squad-compare-row,.squad-compare-attribute-group>header){grid-template-columns:55px minmax(0,1fr) 55px!important;gap:9px!important;padding-inline:9px!important;text-align:center!important}
.squad-comparison-content .squad-compare-attribute-group>div{padding:7px!important}
.squad-comparison-content .squad-compare-attribute-group.is-supporting>header{grid-template-columns:1fr!important}
.squad-comparison-content :is(.goat-analysis-row,.goat-analysis-surface)>strong.is-better{
  color:#effff5!important;
  background:#159357!important;
}
.squad-comparison-content :is(.goat-analysis-row,.goat-analysis-surface)>strong.is-lower{
  color:#ffd5da!important;
  background:rgba(126,28,48,.52)!important;
}

/* The summary belongs to the tablet surface, not a second floating card. */
#profileTacticsPanel .tc5-lineup-summary{
  margin:0 0 12px!important;
  padding:5px 2px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileTacticsPanel .tc5-lineup-summary>div{padding:0 12px!important}
#profileTacticsPanel .tc5-sub-plan-status>strong{color:#e5c377!important}

/* Final targeted tablet cleanup: the pitch and match strip are layout groups,
   not cards. The tablet surface supplies their shared background. */
#profileTacticsPanel .tc5-pitch-wrap{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileTacticsPanel .tc5-bottom-bar{
  margin-top:10px!important;
  padding:8px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileTacticsPanel .tc5-bottom-bar>div{
  padding:0 10px!important;
  border-right-color:rgba(212,169,79,.15)!important;
}
#profileTacticsPanel .tc5-bottom-bar button{
  border-color:rgba(212,169,79,.46)!important;
  background:linear-gradient(145deg,#4c3915,#21180a)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 6px 16px rgba(0,0,0,.26)!important;
  color:#fff4e3!important;
}

/* The shared managed select is also used while a native source select is
   disabled, so a later enabled render cannot expose browser-native chrome. */
.goat-select.is-disabled .goat-select-trigger{opacity:.48;cursor:not-allowed}

/* Position abbreviations are table labels, not rarity indicators. */
.goat-data-table .squad-list-position{
  color:#e5c377!important;
  border-color:rgba(212,169,79,.28)!important;
  background:rgba(212,169,79,.10)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;
}

/* Complete shared-surface audit. These active dashboard and Match Centre roots
   inherit the heritage tokens without touching the approved homepage. */
:is(.dashboard-mode #profileView,.leaderboard-detail-view,.directory-view,.preseason-view,#matchCentreView.goat-match-centre){--muted:#d9d1c2;--faint:#635c50;--text:#fbf7ef;--accent:#d4a94f;--accent-cyan:#d4a94f;--accent-hot:#d4a94f;--accent-pink:#d4a94f;--line:rgba(212,169,79,.18);--line-strong:rgba(212,169,79,.42);--surface:#17150f;--surface-solid:#17150f;--surface-deep:#0d0c0a;--surface-raised:#1a1713;--panel-glass:rgba(20,18,14,.82)}
:is(.dashboard-mode #profileView,.leaderboard-detail-view,.directory-view,.preseason-view) :is(.secondary-button,.ghost-button,.file-picker-button){border-color:rgba(212,169,79,.28);background:rgba(212,169,79,.08);color:#e5c377}
:is(.dashboard-mode #profileView,.leaderboard-detail-view,.directory-view,.preseason-view) :is(.secondary-button,.ghost-button,.file-picker-button):hover:not(:disabled),:is(.dashboard-mode #profileView,.leaderboard-detail-view,.directory-view,.preseason-view) :is(.secondary-button,.ghost-button,.file-picker-button):focus-visible{border-color:rgba(240,215,155,.66);background:rgba(212,169,79,.16);color:#fbf7ef;outline:none}

/* Live office cards are application chrome, not facility artwork. */
.office-live-loading{color:#d9d1c2}.office-live-upgrades>header{color:#fbf7ef}.office-live-upgrades>header small{color:#e5c377}
.office-live-upgrade-card{border-color:rgba(212,169,79,.24);background:linear-gradient(145deg,rgba(43,36,21,.82),rgba(13,11,8,.94));color:#fbf7ef;box-shadow:0 12px 30px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.08);-webkit-backdrop-filter:none;backdrop-filter:none}
.office-live-upgrade-card::after{background:linear-gradient(115deg,rgba(255,255,255,.07),transparent 28%,transparent 72%,rgba(212,169,79,.08))}
.office-live-upgrade-card:hover,.office-live-upgrade-card:focus-visible{border-color:rgba(240,215,155,.62);box-shadow:0 17px 34px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.12)}
.office-live-upgrade-date{color:#d9d1c2}.office-live-upgrade-date strong{color:#fbf7ef}.goat-cloth-banner.is-unsupported .goat-cloth-fallback{background:linear-gradient(168deg,rgba(35,29,18,.82),rgba(12,9,6,.9))}.goat-cloth-fallback span{color:#e5c377}.goat-cloth-fallback strong{color:#fbf7ef}

/* Match event/pitch colours remain semantic; framing, controls and reports
   move from decorative cyan/violet to warm espresso and antique gold. */
#matchCentreView.goat-match-centre{--mc-bg:#090705;--mc-panel:#12100c;--mc-panel-2:#1a1711;--mc-panel-3:#211c13;--mc-line:rgba(212,169,79,.2);--mc-line-strong:rgba(212,169,79,.44);--mc-text:#fbf7ef;--mc-muted:#d9d1c2;--mc-cyan:#d4a94f;--mc-blue:#b7924c;--mc-purple:#9c7128;--mc-magenta:#b7924c;--mc-home:#d4a94f;--mc-away:#e8dcc1}
#matchCentreView .mc-tabs button.active{background:linear-gradient(180deg,rgba(212,169,79,.16),rgba(92,67,24,.08));color:#fbf7ef;box-shadow:inset 0 -10px 20px rgba(212,169,79,.06)}
#matchCentreView .mc-action-layer path{filter:drop-shadow(0 0 2px rgba(212,169,79,.45))}#matchCentreView .mc-momentum i,#matchCentreView .mc-momentum-column>i{background:linear-gradient(180deg,#f0d79b,#9c7128)}#matchCentreView .mc-momentum i.is-away,#matchCentreView .mc-momentum-column>i.is-away{background:linear-gradient(180deg,#d9d1c2,#80602d)}#matchCentreView .mc-stat-bars i{background:linear-gradient(90deg,#9c7128,var(--mc-home))}#matchCentreView .mc-stat-bars i:last-child{background:linear-gradient(90deg,var(--mc-away),#80602d)}
#matchCentreView .mc-player-portrait{background:#2b210e;color:#e5c377}#matchCentreView .mc-commentary{scrollbar-color:rgba(192,143,52,.72) #080603}#matchCentreView .mc-commentary-filters{border-color:rgba(212,169,79,.14)}#matchCentreView .mc-commentary-filters button,#matchCentreView .mc-commentary-latest{border-color:rgba(212,169,79,.2);background:rgba(212,169,79,.07);color:#d9d1c2}#matchCentreView .mc-commentary-filters button.active{border-color:rgba(212,169,79,.5);background:rgba(212,169,79,.16);color:#fbf7ef}
#matchCentreView .mc-commentary-row{border-color:rgba(212,169,79,.1)}#matchCentreView .mc-commentary-row:hover{background:rgba(212,169,79,.07)}#matchCentreView .mc-commentary-row.is-important{border-color:rgba(212,169,79,.2);background:linear-gradient(115deg,rgba(75,56,21,.24),rgba(18,14,8,.52))}#matchCentreView .mc-commentary-row.is-goal{background:linear-gradient(115deg,rgba(36,137,97,.17),rgba(60,47,19,.14))}#matchCentreView .mc-commentary-row.is-substitution{border-color:rgba(212,169,79,.25)}#matchCentreView .mc-commentary-row time,#matchCentreView .mc-panel-heading span{color:#e5c377}#matchCentreView .mc-commentary-icon{background:rgba(212,169,79,.12);color:#f0d79b}#matchCentreView .mc-commentary-row strong,#matchCentreView .mc-panel-heading h2{color:#fbf7ef}#matchCentreView .mc-commentary-row :is(small,p),#matchCentreView .mc-panel-heading p{color:#d9d1c2}

/* Live Calendar/Objectives contract ------------------------------------------------
   These selectors intentionally start at the two panel roots. The markup is used
   both in the standalone Club screen and in the Office tablet; older styling only
   addressed the latter through .office-app-scroll, leaving the standalone route
   on the retired cyan/indigo generation. Semantic event outcomes remain distinct. */
#profileCalendarPanel{
  --goat-calendar-surface:linear-gradient(180deg,rgba(30,26,17,.95),rgba(11,10,8,.96));
  --goat-calendar-line:rgba(212,169,79,.22);
  --goat-calendar-muted:#d9d1c2;
  --goat-calendar-label:#e5c377;
}
#profileCalendarPanel :is(.goat-calendar-dashboard-card,.goat-calendar-board-shell,.goat-calendar-side-panel,.goat-calendar-support-row){
  border-color:var(--goat-calendar-line)!important;
  background:var(--goat-calendar-surface)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 14px 34px rgba(0,0,0,.26)!important;
}
#profileCalendarPanel :is(.goat-calendar-season-header,.goat-calendar-overview-card footer,.goat-calendar-weather-row.is-compact){border-color:rgba(212,169,79,.16)!important}
#profileCalendarPanel :is(.goat-calendar-stat span,.goat-calendar-registration-grid span,.goat-calendar-weather-row small,.goat-calendar-legend span,.goat-calendar-upcoming-copy small,.goat-calendar-match-card-copy small,.goat-calendar-detail-event small,.goat-calendar-empty-detail){color:var(--goat-calendar-muted)!important}
#profileCalendarPanel :is(.goat-calendar-board-title-group h3,.goat-calendar-stat strong,.goat-calendar-registration-grid strong,.goat-calendar-next-match-copy strong,.goat-calendar-team-block strong,.goat-calendar-date-detail h3){color:#fbf7ef!important}
#profileCalendarPanel :is(.goat-calendar-month-nav button,.goat-calendar-view-toggle button){border-color:rgba(212,169,79,.24)!important;background:rgba(212,169,79,.06)!important;color:#e5c377!important}
#profileCalendarPanel :is(.goat-calendar-month-nav button:hover:not(:disabled),.goat-calendar-view-toggle button:hover,.goat-calendar-view-toggle button.is-active){border-color:rgba(240,215,155,.66)!important;background:rgba(212,169,79,.17)!important;color:#fbf7ef!important}
#profileCalendarPanel .goat-calendar-day-cell{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.72)!important;color:#fbf7ef!important}
#profileCalendarPanel .goat-calendar-day-cell:hover,
#profileCalendarPanel .goat-calendar-day-cell.is-selected{border-color:rgba(212,169,79,.58)!important;background:rgba(212,169,79,.10)!important}
#profileCalendarPanel .goat-calendar-day-cell.is-next{box-shadow:inset 0 0 0 1px rgba(212,169,79,.3)!important}
#profileCalendarPanel .goat-calendar-day-cell.is-today{border-color:rgba(212,169,79,.88)!important;box-shadow:inset 0 0 0 2px rgba(212,169,79,.42),0 0 22px rgba(212,169,79,.12)!important}
#profileCalendarPanel .goat-calendar-day-today{color:#1a1207!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;border-color:transparent!important}
#profileCalendarPanel .goat-calendar-day-entry{border-color:rgba(212,169,79,.18)!important;background:rgba(212,169,79,.08)!important;color:#e5e0d4!important}
#profileCalendarPanel .goat-calendar-day-entry :is(b,small){color:inherit!important}
#profileCalendarPanel .goat-calendar-day-entry.is-league{border-color:rgba(212,169,79,0.34)!important;background:rgba(76,57,21,0.12)!important;color:#d9d1c2!important}
#profileCalendarPanel .goat-calendar-day-entry.is-cup{border-color:rgba(201,135,63,.38)!important;background:rgba(201,135,63,.13)!important;color:#e8bd84!important}
#profileCalendarPanel .goat-calendar-day-entry.is-friendly{border-color:rgba(95,160,109,.40)!important;background:rgba(95,160,109,.13)!important;color:#b1d7b9!important}
#profileCalendarPanel .goat-calendar-upcoming-item{border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.76)!important;color:#fbf7ef!important}
#profileCalendarPanel .goat-calendar-upcoming-item:hover,
#profileCalendarPanel .goat-calendar-upcoming-item.is-selected{border-color:rgba(212,169,79,.52)!important;background:rgba(212,169,79,.10)!important}
#profileCalendarPanel .goat-calendar-upcoming-date{border:1px solid rgba(212,169,79,.23)!important;background:rgba(212,169,79,.09)!important;color:#f0d79b!important}
#profileCalendarPanel .goat-calendar-upcoming-date small{color:#e5c377!important}
#profileCalendarPanel .goat-calendar-upcoming-item.is-cup{border-color:rgba(201,135,63,.34)!important;background:linear-gradient(145deg,rgba(62,45,24,.72),rgba(18,14,9,.94))!important}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly{border-color:rgba(95,160,109,.36)!important;background:linear-gradient(145deg,rgba(24,52,32,.60),rgba(12,21,14,.94))!important}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly :is(.goat-calendar-upcoming-date,.goat-calendar-upcoming-copy>b){color:#b1d7b9!important}
#profileCalendarPanel .goat-calendar-match-card.modern{border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,rgba(59,47,20,.38),rgba(13,11,8,.92))!important}
#profileCalendarPanel .goat-calendar-match-card-copy b,
#profileCalendarPanel .goat-calendar-all-fixtures summary,
#profileCalendarPanel .goat-calendar-header-icon,
#profileCalendarPanel .goat-calendar-next-vs{color:#e5c377!important;text-shadow:none!important}
#profileCalendarPanel .goat-calendar-club-mark{border-color:rgba(212,169,79,.40)!important;background:radial-gradient(circle at 30% 25%,rgba(240,215,155,.48),rgba(92,67,24,.58) 45%,rgba(12,10,7,.98) 85%)!important;color:#fff4e3!important}
#profileCalendarPanel .goat-calendar-club-mark.is-away{border-color:rgba(183,146,76,.46)!important;background:radial-gradient(circle at 30% 25%,rgba(224,190,124,.45),rgba(83,57,23,.58) 45%,rgba(12,10,7,.98) 85%)!important}

#profileObjectivesPanel{
  --goat-objective-surface:linear-gradient(180deg,#1e1a11,#0b0a08);
  --goat-objective-line:rgba(212,169,79,.22);
}
#profileObjectivesPanel .objectives-command-hero{border-color:rgba(212,169,79,.26)!important;background:linear-gradient(145deg,rgba(38,32,18,.82),rgba(13,11,8,.96))!important}
#profileObjectivesPanel .objectives-command-hero::after{color:rgba(212,169,79,.06)!important}
#profileObjectivesPanel .objectives-command-copy .eyebrow{color:#e5c377!important}
#profileObjectivesPanel .objectives-overall-progress{background:conic-gradient(#d4a94f var(--objective-progress),rgba(212,169,79,.14) 0)!important;box-shadow:0 0 36px rgba(212,169,79,.16)!important}
#profileObjectivesPanel .objectives-overall-progress::before{border-color:rgba(212,169,79,.24)!important;background:radial-gradient(circle at 45% 35%,#332711,#0d0c0a)!important}
#profileObjectivesPanel :is(.objective-summary-card,.objective-summary-card.is-weekly,.objective-summary-card.is-monthly,.objective-summary-card.is-monthly-bonus){--cycle-color:#d4a94f!important;border-color:rgba(212,169,79,.26)!important;background:linear-gradient(180deg,#211d14,#0d0c0a)!important}
#profileObjectivesPanel .objective-summary-card>small{color:#d9d1c2!important}
#profileObjectivesPanel .objective-summary-card>div{background:conic-gradient(var(--cycle-color) var(--cycle-progress),rgba(212,169,79,.12) 0)!important}
#profileObjectivesPanel .objective-summary-card>div i{background:#0d0c0a!important}
#profileObjectivesPanel .mission-panel{border-color:var(--goat-objective-line)!important;background:var(--goat-objective-surface)!important}
#profileObjectivesPanel .mission-copy>small,
#profileObjectivesPanel .mission-panel-heading small{color:#d9d1c2!important}
#profileObjectivesPanel :is(.weekly-mission-panel,.monthly-mission-panel){--mission-cycle-color:#d4a94f!important}
#profileObjectivesPanel .mission-panel-heading{border-bottom-color:rgba(212,169,79,.16)!important}
#profileObjectivesPanel .mission-panel-heading b{border-color:rgba(212,169,79,.20)!important;background:rgba(10,9,8,.68)!important;color:#c7bfb0!important}
#profileObjectivesPanel .mission-item{border-color:rgba(212,169,79,.15)!important;background:linear-gradient(100deg,rgba(23,21,15,.86),rgba(11,10,8,.88))!important}
#profileObjectivesPanel .mission-item:hover{border-color:rgba(212,169,79,.38)!important;background:linear-gradient(100deg,rgba(35,30,19,.92),rgba(15,13,9,.94))!important}
#profileObjectivesPanel .mission-status{background:color-mix(in srgb,var(--mission-cycle-color) 14%,#0d0c0a)!important}
#profileObjectivesPanel .mission-copy strong,
#profileObjectivesPanel .mission-reward b{color:#fbf7ef!important}
#profileObjectivesPanel .mission-progress{background:rgba(212,169,79,.10)!important}
#profileObjectivesPanel .mission-reward{border-left-color:rgba(212,169,79,.14)!important}
#profileObjectivesPanel :is(.mission-reward span,.mission-reward small,.mission-set-reward small){color:#d9d1c2!important}
#profileObjectivesPanel .mission-set-reward{border-color:rgba(212,169,79,.34)!important;background:rgba(13,12,10,.78)!important}

/* Final known-failure corrections: these are the concrete selectors that still
   won after the broader Calendar/Objectives root migration. */
#profileCalendarPanel .goat-calendar-modern :is(
  .goat-calendar-header-icon,
  .goat-calendar-icon-img,
  .goat-calendar-stat-icon-img,
  .goat-calendar-inline-icon,
  .goat-calendar-rule-icon,
  .goat-calendar-upcoming-copy-icon-img,
  .goat-calendar-entry-icon,
  .goat-calendar-md-icon
){
  filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%)!important;
  opacity:.92!important;
}
#profileCalendarPanel .goat-calendar-modern :is(.goat-calendar-day-entry.is-cup,.goat-calendar-upcoming-item.is-cup) :is(.goat-calendar-entry-icon,.goat-calendar-upcoming-copy-icon-img){
  filter:brightness(0) saturate(100%) invert(70%) sepia(31%) saturate(976%) hue-rotate(345deg) brightness(86%) contrast(90%)!important;
}
#profileCalendarPanel .goat-calendar-modern :is(.goat-calendar-day-entry.is-friendly,.goat-calendar-upcoming-item.is-friendly) :is(.goat-calendar-entry-icon,.goat-calendar-upcoming-copy-icon-img,.goat-calendar-md-icon){
  filter:brightness(0) saturate(100%) invert(67%) sepia(14%) saturate(1154%) hue-rotate(79deg) brightness(91%) contrast(82%)!important;
}
#profileCalendarPanel .goat-calendar-track-shell{
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(28,24,16,.94),rgba(11,10,8,.97))!important;
}
#profileCalendarPanel .goat-calendar-track-shell :is(.eyebrow,h3){color:#e5c377!important;text-shadow:none!important}
#profileCalendarPanel .goat-calendar-timeline{scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileCalendarPanel .goat-calendar-fixture-row{border-color:rgba(212,169,79,.11)!important;background:rgba(13,12,10,.72)!important}
#profileCalendarPanel .goat-calendar-fixture-row:hover,
#profileCalendarPanel .goat-calendar-fixture-row.is-selected,
#profileCalendarPanel .goat-calendar-fixture-row.is-next{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.09)!important}
#profileCalendarPanel .goat-calendar-md-badge{border:1px solid rgba(212,169,79,.18)!important;background:rgba(212,169,79,.08)!important}
#profileCalendarPanel .goat-calendar-status-pill{border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}
#profileCalendarPanel :is(.goat-calendar-month-nav button,.goat-calendar-view-toggle button):focus-visible{
  outline:2px solid rgba(240,215,155,.82)!important;
  outline-offset:2px!important;
  box-shadow:0 0 0 4px rgba(212,169,79,.11)!important;
}

#profileObjectivesPanel .mission-item.complete{
  border-color:rgba(91,171,116,.34)!important;
  background:linear-gradient(100deg,rgba(25,61,37,.62),rgba(10,25,16,.82))!important;
}
#profileObjectivesPanel .mission-item.complete .mission-status{
  color:#fffdf6!important;
  border-color:rgba(111,208,142,.90)!important;
  background:linear-gradient(145deg,#397a4d,#1d4c31)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 0 0 2px rgba(83,176,111,.12)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.5)!important;
}
#profileObjectivesPanel .mission-item.complete .mission-status span{color:#fffdf6!important}
#profileObjectivesPanel .mission-item.complete .mission-progress span{background:linear-gradient(90deg,#397a4d,#6fcf8e)!important;box-shadow:none!important}
#profileObjectivesPanel .mission-item.complete .mission-title-row em,
#profileObjectivesPanel .mission-item.complete .mission-reward small{color:#8fdaa7!important}

/* Store / Player Trade ------------------------------------------------------
   Pack and player artwork remains untouched; this contract replaces only the
   modal, selection and transaction chrome that was still indigo/cyan. */
.store-modal-backdrop{background:rgba(5,4,3,.88)!important;backdrop-filter:blur(12px)!important}
.store-modal-card{
  border-color:rgba(212,169,79,.28)!important;
  background:radial-gradient(circle at 88% 0,rgba(212,169,79,.08),transparent 30%),linear-gradient(145deg,#1c1811,#0b0907)!important;
  box-shadow:0 36px 100px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.08)!important;
  color:#fbf7ef!important;
}
.store-modal-card::after{background:linear-gradient(110deg,rgba(212,169,79,.04),transparent 30%,rgba(212,169,79,.06))!important}
.store-modal-close{
  border-color:rgba(212,169,79,.30)!important;
  background:rgba(212,169,79,.08)!important;
  color:#f0d79b!important;
  box-shadow:none!important;
}
.store-modal-close:hover,.store-modal-close:focus-visible{border-color:rgba(240,215,155,.72)!important;background:rgba(212,169,79,.18)!important;color:#fffdf6!important;outline:2px solid rgba(240,215,155,.64)!important;outline-offset:2px!important}
.store-modal-kicker,.trade-result-kicker{color:#e5c377!important;text-shadow:none!important}
.store-modal-icon{border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
.store-modal-card :is(h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
.store-modal-card :is(p,small){color:#d9d1c2!important}
.trade-store-heading{border-bottom-color:rgba(212,169,79,.18)!important}
.trade-heading-back,.trade-back-button,.trade-warning-reset{
  border-color:rgba(212,169,79,.25)!important;
  background:rgba(212,169,79,.07)!important;
  color:#e5c377!important;
}
.trade-heading-back:hover,.trade-heading-back:focus-visible,.trade-back-button:hover,.trade-back-button:focus-visible,.trade-warning-reset:hover,.trade-warning-reset:focus-visible{border-color:rgba(240,215,155,.66)!important;background:rgba(212,169,79,.16)!important;color:#fffdf6!important;outline:none!important}
.trade-dev-badge{border-color:rgba(212,169,79,.24)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}
.trade-store-body,.trade-player-list{scrollbar-color:rgba(192,143,52,.72) #080603!important}
.trade-store-body::-webkit-scrollbar,.trade-player-list::-webkit-scrollbar{width:8px;height:8px}
.trade-store-body::-webkit-scrollbar-track,.trade-player-list::-webkit-scrollbar-track{background:#080603}
.trade-store-body::-webkit-scrollbar-thumb,.trade-player-list::-webkit-scrollbar-thumb{border-radius:99px;background:rgba(192,143,52,.72)}
.trade-pack-sidebar,.trade-player-picker,.trade-selection-footer,.trade-rule-card{
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(29,25,17,.96),rgba(12,10,8,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
}
.trade-store-intro{border:0!important;background:transparent!important;box-shadow:none!important}
.trade-store-intro>span,.trade-rule-card span,.trade-player-picker header span,.trade-selection-footer span{color:#e5c377!important}
.trade-pack-card{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
.trade-pack-card:hover,.trade-pack-card:focus-visible{border-color:transparent!important;background:transparent!important;box-shadow:none!important;outline:2px solid rgba(240,215,155,.66)!important;outline-offset:4px!important}
.trade-pack-copy>span,.trade-pack-copy small{color:#d9d1c2!important}
.trade-player-row{border-color:rgba(212,169,79,.13)!important;background:rgba(15,13,10,.84)!important;color:#e5e0d4!important}
.trade-player-row:hover:not(:disabled),.trade-player-row:focus-visible{border-color:rgba(212,169,79,.40)!important;background:rgba(212,169,79,.09)!important;outline:none!important}
.trade-player-row.selected{border-color:rgba(212,169,79,.62)!important;background:rgba(212,169,79,.14)!important;box-shadow:inset 3px 0 #d4a94f!important}
.trade-player-check{border-color:rgba(212,169,79,.40)!important;background:#0d0c0a!important;color:#1a1207!important}
.trade-player-row.selected .trade-player-check{border-color:#d4a94f!important;background:#d4a94f!important}
.trade-player-row>img{background:#17150f!important}
.trade-player-name small,.trade-player-stat small,.trade-selection-average small{color:#d9d1c2!important}
.trade-submit-button{
  border:1px solid rgba(240,215,155,.48)!important;
  background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;
  color:#1a1207!important;
  box-shadow:0 9px 22px rgba(80,55,13,.30),inset 0 1px 0 rgba(255,255,255,.44)!important;
}
.trade-submit-button:hover:not(:disabled),.trade-submit-button:focus-visible:not(:disabled){filter:brightness(1.07)!important;transform:translateY(-1px);outline:2px solid rgba(240,215,155,.65)!important;outline-offset:2px!important}
.trade-submit-button:disabled{border-color:rgba(212,169,79,.13)!important;background:rgba(212,169,79,.08)!important;color:#635c50!important;box-shadow:none!important}
.trade-store-loading span{border-color:rgba(212,169,79,.15)!important;border-top-color:#d4a94f!important}
.trade-empty,.trade-store-loading,.trade-store-error{border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.74)!important;color:#d9d1c2!important}
.trade-store-error button{border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}
.trade-confirm-panel{background:rgba(5,4,3,.90)!important;backdrop-filter:blur(8px)!important}
.trade-confirm-card{border-color:rgba(180,67,47,.40)!important;background:linear-gradient(145deg,#21130f,#0c0907)!important;box-shadow:0 28px 70px rgba(0,0,0,.60)!important}
.trade-confirm-skip{color:#c7bfb0!important}.trade-confirm-skip input{accent-color:#d4a94f!important}
.trade-result{border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(29,25,17,.94),rgba(12,10,8,.98))!important}

/* Club Overview ------------------------------------------------------------ */
#profileOverviewPanel{color:#e5e0d4}
#profileOverviewPanel .profile-header{
  border:0!important;
  border-bottom:1px solid rgba(212,169,79,.20)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileOverviewPanel .profile-header .eyebrow,
#profileOverviewPanel .panel-heading .eyebrow{color:#e5c377!important;text-shadow:none!important}
#profileOverviewPanel .profile-header h1{color:#fbf7ef!important;text-shadow:0 12px 32px rgba(0,0,0,.44)!important}
#profileOverviewPanel .profile-handle{color:#d9d1c2!important}
#profileOverviewPanel .profile-watermark{color:rgba(212,169,79,.055)!important}
#profileOverviewPanel .progression-panel,
#profileOverviewPanel .summary-card,
#profileOverviewPanel .dashboard-panel{
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(30,26,17,.96),rgba(11,10,8,.98))!important;
  box-shadow:0 18px 44px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
#profileOverviewPanel .progression-panel::before,
#profileOverviewPanel .summary-card::before{background:linear-gradient(90deg,#d4a94f,transparent)!important;box-shadow:none!important}
#profileOverviewPanel :is(.summary-card .label,.summary-card small,.progression-panel small){color:#d9d1c2!important}
#profileOverviewPanel :is(.summary-card strong,.progression-panel strong,.panel-heading h2){color:#fbf7ef!important;text-shadow:none!important}
#profileOverviewPanel .summary-card:hover{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(145deg,rgba(40,34,20,.98),rgba(13,11,8,.99))!important}
#profileOverviewPanel .rarity-stat{
  border-color:color-mix(in srgb,var(--rarity-color,#d4a94f) 46%,rgba(212,169,79,.16))!important;
  background:linear-gradient(145deg,color-mix(in srgb,var(--rarity-color,#d4a94f) 8%,#1b1811),#0d0c0a)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
#profileOverviewPanel .rarity-stat::before{background:var(--rarity-color,#d4a94f)!important;box-shadow:none!important}
#profileOverviewPanel .rarity-stat small{color:#d9d1c2!important}
#profileOverviewPanel .collection-insights>article,
#profileOverviewPanel .dominant-insight,
#profileOverviewPanel .position-insight{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileOverviewPanel .collection-insights{gap:0!important;border:1px solid rgba(212,169,79,.16)!important;border-radius:14px!important;padding:0!important;background:rgba(13,12,10,.72)!important;overflow:hidden}
#profileOverviewPanel .collection-insights .dominant-insight{border-bottom:1px solid rgba(212,169,79,.14)!important}
#profileOverviewPanel .collection-insights .dominant-insight+ .dominant-insight{border-left:1px solid rgba(212,169,79,.14)!important}
#profileOverviewPanel .collection-insights .position-insight{border-top:1px solid rgba(212,169,79,.14)!important}
#profileOverviewPanel .position-donut::before{border-color:rgba(212,169,79,.18)!important;background:#17150f!important;box-shadow:inset 0 0 22px rgba(0,0,0,.42)!important}
#profileOverviewPanel .overview-best-player .best-card-panel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileOverviewPanel .best-player-showcase{background:radial-gradient(circle at 9% 12%,color-mix(in srgb,var(--rarity-color) 11%,transparent),transparent 42%),linear-gradient(145deg,#1e1a12,#0b0907)!important}
#profileOverviewPanel :is(.insight-label,.position-legend span){color:#d9d1c2!important}
#profileOverviewPanel :is(.dominant-insight strong,.position-insight strong){color:#fbf7ef!important}
#profileOverviewPanel .profile-active-lineup-overview{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(11,10,8,.68)!important;
}
#profileOverviewPanel .profile-active-lineup-meta{border-bottom-color:rgba(212,169,79,.17)!important;background:rgba(212,169,79,.06)!important}
#profileOverviewPanel .profile-active-lineup-meta strong{color:#fbf7ef!important}
#profileOverviewPanel .profile-active-lineup-meta span{color:#e5c377!important}
#profileOverviewPanel .profile-active-lineup-player:focus-visible{outline-color:#d4a94f!important}
#profileOverviewPanel :is(.profile-active-lineup-loading,.profile-active-lineup-empty,.collection-insights-empty){border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.68)!important;color:#d9d1c2!important}
#profileOverviewPanel .profile-active-lineup-actions button,
#profileOverviewPanel .profile-actions button{
  border-color:rgba(212,169,79,.28)!important;
  background:rgba(212,169,79,.08)!important;
  color:#e5c377!important;
}
#profileOverviewPanel :is(.profile-active-lineup-actions button,.profile-actions button):hover,
#profileOverviewPanel :is(.profile-active-lineup-actions button,.profile-actions button):focus-visible{border-color:rgba(240,215,155,.64)!important;background:rgba(212,169,79,.16)!important;color:#fbf7ef!important;outline:none!important}

/* Lineup ------------------------------------------------------------------ */
#profileLineupPanel .lineup-builder{border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileLineupPanel :is(.lineup-owner-controls,.lineup-left-panel,.lineup-side-panel,.lineup-available-panel,.lineup-roles-panel,.lineup-bench-panel,.lineup-public-roles-panel){
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(29,25,17,.96),rgba(11,10,8,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
#profileLineupPanel .lineup-owner-controls{background:transparent!important;border:0!important;box-shadow:none!important}
#profileLineupPanel :is(.lineup-left-panel,.lineup-side-panel){padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileLineupPanel :is(.lineup-panel-summary,.lineup-roles-summary-toggle,.lineup-side-heading){border-color:rgba(212,169,79,.17)!important;background:rgba(212,169,79,.05)!important}
#profileLineupPanel :is(.lineup-panel-summary,.lineup-roles-summary-toggle,.lineup-side-heading) :is(strong,h3){color:#fbf7ef!important}
#profileLineupPanel .lineup-toggle-chevron{color:#e5c377!important}
#profileLineupPanel .lineup-selection-hint,
#profileLineupPanel .lineup-message,
#profileLineupPanel .lineup-card-copy :is(small,em){color:#d9d1c2!important}
#profileLineupPanel .lineup-view-toggle{
  border-color:rgba(212,169,79,.22)!important;
  background:#0d0c0a!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
#profileLineupPanel .lineup-view-toggle>span{color:#e5c377!important}
#profileLineupPanel .lineup-view-toggle button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
#profileLineupPanel .lineup-view-toggle button:hover,
#profileLineupPanel .lineup-view-toggle button:focus-visible{background:rgba(212,169,79,.10)!important;color:#fbf7ef!important;outline:none!important}
#profileLineupPanel .lineup-view-toggle button.active,
#profileLineupPanel .lineup-view-toggle button[aria-pressed="true"]{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important;box-shadow:inset 0 0 0 1px rgba(212,169,79,.08),0 0 14px rgba(80,55,13,.24)!important}
#profileLineupPanel .lineup-view-squad{border-left-color:rgba(212,169,79,.22)!important;color:#e5c377!important}
#profileLineupPanel .lineup-role-summary article{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.72)!important}
#profileLineupPanel .lineup-owner-actions button,
#profileLineupPanel .lineup-control-actions button,
#profileLineupPanel .lineup-public-navigation button{
  border-color:rgba(212,169,79,.28)!important;
  background:rgba(212,169,79,.08)!important;
  color:#e5c377!important;
}
#profileLineupPanel :is(.lineup-owner-actions button,.lineup-control-actions button,.lineup-public-navigation button):hover:not(:disabled),
#profileLineupPanel :is(.lineup-owner-actions button,.lineup-control-actions button,.lineup-public-navigation button):focus-visible:not(:disabled){border-color:rgba(240,215,155,.66)!important;background:rgba(212,169,79,.17)!important;color:#fbf7ef!important;outline:none!important}
#profileLineupPanel :is(.lineup-available-grid,.lineup-player-list,.lineup-slot-picker-list){scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileLineupPanel .lineup-slot-picker{border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,#1f1a11,#0b0907)!important;box-shadow:0 22px 55px rgba(0,0,0,.58)!important}
#profileLineupPanel .lineup-slot-picker-head{border-bottom-color:rgba(212,169,79,.18)!important}
#profileLineupPanel .lineup-slot-picker-head button{border-color:rgba(212,169,79,.24)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#profileLineupPanel .lineup-slot-picker-list>button:hover,
#profileLineupPanel .lineup-slot-picker-list>button:focus-visible{background:rgba(212,169,79,.11)!important;outline:none!important}
#profileLineupPanel :is(#lineupNewPreset,#lineupRenamePreset,#lineupResetButton,#lineupVisibilityButton){border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,#211d14,#0d0c0a)!important;color:#e5c377!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
#profileLineupPanel #lineupSaveButton.lineup-save-button{border-color:rgba(212,169,79,.52)!important;background:linear-gradient(145deg,#4c3915,#21180a)!important;color:#fff4e3!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 18px rgba(0,0,0,.26)!important}
#profileLineupPanel #lineupSaveButton.lineup-save-button span{color:#fff4e3!important;-webkit-text-fill-color:#fff4e3!important}
#profileLineupPanel #lineupSaveButton.lineup-save-button img{filter:brightness(0) invert(96%) sepia(13%) saturate(445%) hue-rotate(333deg) brightness(104%) contrast(98%)!important;opacity:1!important}
#profileLineupPanel #lineupSaveButton.lineup-save-button.is-save-confirmed{border-color:rgba(111,208,142,.68)!important;background:linear-gradient(145deg,#3d7e50,#1d482e)!important;color:#fffdf6!important}

/* Squad cards/list and comparison ----------------------------------------- */
#profileSquadPanel .squad-command-centre,
#profileSquadPanel .squad-database-shell{border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileSquadPanel .squad-command-hero{border-color:rgba(212,169,79,.22)!important;background:linear-gradient(145deg,rgba(35,30,19,.88),rgba(12,10,8,.96))!important}
#profileSquadPanel .squad-command-copy :is(.eyebrow,h2){color:#e5c377!important;text-shadow:none!important}
#profileSquadPanel .squad-command-copy>p{color:#d9d1c2!important}
#profileSquadPanel .squad-filter-console{border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.70)!important;clip-path:none!important}
#profileSquadPanel .squad-results-stage{border:0!important;background:transparent!important;padding-inline:0!important}
#profileSquadPanel .squad-view-toggle{border-color:rgba(212,169,79,.22)!important;background:#0d0c0a!important}
#profileSquadPanel .squad-view-toggle button{color:#d9d1c2!important}
#profileSquadPanel .squad-view-toggle button:hover,#profileSquadPanel .squad-view-toggle button:focus-visible{background:rgba(212,169,79,.10)!important;color:#fbf7ef!important;outline:none!important}
#profileSquadPanel .squad-view-toggle button.active,#profileSquadPanel .squad-view-toggle button[aria-pressed="true"]{background:rgba(212,169,79,.17)!important;color:#f0d79b!important;box-shadow:inset 0 0 0 1px rgba(212,169,79,.40)!important}
#profileSquadPanel .squad-compare-open{border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.09)!important;color:#e5c377!important}
#profileSquadPanel .squad-compare-open:hover,#profileSquadPanel .squad-compare-open:focus-visible{border-color:rgba(240,215,155,.68)!important;background:rgba(212,169,79,.17)!important;color:#fbf7ef!important;outline:none!important}
#profileSquadPanel .card-grid.squad-list-mode{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileSquadPanel .squad-list-table{border-color:rgba(212,169,79,.18)!important;background:#0d0c0a!important}
#profileSquadPanel .goat-data-table .squad-list-row:not(.squad-list-header){background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#d4a94f) 7%,#17150f),#0d0c0a)!important}
#profileSquadPanel :is(.squad-list-table,.card-grid,.squad-filter-console){scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileSquadPanel :is(.empty-compact,.squad-empty,.message){color:#d9d1c2!important}
.squad-comparison-content{
  border-color:rgba(212,169,79,.28)!important;
  background:linear-gradient(145deg,#1c1811,#0b0907)!important;
  box-shadow:0 36px 100px rgba(0,0,0,.68),inset 0 1px 0 rgba(255,255,255,.07)!important;
}
.squad-comparison-content>header{border-bottom-color:rgba(212,169,79,.18)!important}
.squad-comparison-content>header :is(h2,strong){color:#fbf7ef!important}
.squad-comparison-content .squad-compare-vs{border-color:rgba(212,169,79,.30)!important;background:#0d0c0a!important;color:#e5c377!important}
.squad-comparison-content .squad-comparison-close{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}

/* Tactics and every reaction branch --------------------------------------- */
#profileTacticsPanel .tactical-centre-v5{border:0!important;background:transparent!important;box-shadow:none!important}
#profileTacticsPanel .tc5-sub-plan{border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(29,25,17,.96),rgba(11,10,8,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
#profileTacticsPanel :is(.tc5-starting,.tc5-automation){padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profileTacticsPanel :is(.tc5-starting,.tc5-automation,.tc5-sub-plan)>header{border-bottom-color:rgba(212,169,79,.17)!important;background:rgba(212,169,79,.04)!important}
#profileTacticsPanel .tc5-clear-reactions{border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#profileTacticsPanel .tc5-reaction-icon{filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%)!important}
#profileTacticsPanel .tc5-reaction-card.danger .tc5-reaction-icon{filter:none!important}
#profileTacticsPanel .tc5-field-icon,#profileTacticsPanel .tc5-meta-icon{filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%)!important}
#profileTacticsPanel :is(.tc5-starting-list,.tc5-reaction-list,.tc5-modal-body,.tc5-planned-subs){scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileTacticsPanel .tc5-modal-backdrop{background:rgba(5,4,3,.88)!important;backdrop-filter:blur(9px)!important}
#profileTacticsPanel .tc5-modal{border-color:rgba(212,169,79,.28)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:0 30px 88px rgba(0,0,0,.68)!important}
#profileTacticsPanel .tc5-modal :is(.tc5-condition-grid,.tc5-modal-tactics,.tc5-sub-plan){border-color:rgba(212,169,79,.18)!important}
#profileTacticsPanel .tc5-modal :is(.tc5-branch-tabs button,.tc5-remove-branch,.tc5-planned-subs button){border-color:rgba(212,169,79,.24)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#profileTacticsPanel .tc5-modal .tc5-branch-tabs button.active{border-color:rgba(212,169,79,.56)!important;background:rgba(212,169,79,.17)!important;color:#fbf7ef!important}
#profileTacticsPanel .tc5-modal :is(.tc5-branch-tabs button,.tc5-remove-branch,.tc5-planned-subs button):focus-visible{outline:2px solid rgba(240,215,155,.70)!important;outline-offset:2px!important}
.office-app-scroll:has(#profileTacticsPanel .tc5-modal-backdrop){overflow:hidden!important}
.office-app-scroll #profileTacticsPanel .tc5-modal-backdrop{
  inset:-8px -10px!important;
  box-sizing:border-box!important;
  width:auto!important;
  height:auto!important;
  min-height:calc(100% + 16px)!important;
  align-items:stretch!important;
  padding:4px!important;
}
.office-app-scroll #profileTacticsPanel .tc5-modal{height:100%!important;max-height:100%!important;overflow:hidden!important}
.office-app-scroll #profileTacticsPanel .tc5-modal-body{overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
.office-app-scroll #profileTacticsPanel .tc5-modal>header,
.office-app-scroll #profileTacticsPanel .tc5-modal>footer{flex:0 0 auto!important}

/* Stadium and Facilities --------------------------------------------------- */
#profileStadiumPanel .stadium-management-page,
#profileInfrastructurePanel .goat-management-page{border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
#profileStadiumPanel .goat-management-header,
#profileInfrastructurePanel .goat-management-header{border-bottom-color:rgba(212,169,79,.20)!important;background:transparent!important}
#profileStadiumPanel .goat-management-header :is(.eyebrow,h2),
#profileInfrastructurePanel .goat-management-header :is(.eyebrow,h2){color:#e5c377!important;text-shadow:none!important}
#profileStadiumPanel .stadium-premium-kpis article,
#profileInfrastructurePanel .infrastructure-summary-v3 article{
  border-color:rgba(212,169,79,.22)!important;
  background:linear-gradient(145deg,rgba(31,27,18,.94),rgba(12,10,8,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 32px rgba(0,0,0,.25)!important;
}
#profileStadiumPanel .stadium-premium-kpis article::after,
#profileInfrastructurePanel .infrastructure-summary-v3 article::after{background:linear-gradient(90deg,rgba(12,10,8,.96),rgba(27,23,15,.55),rgba(12,10,8,.18))!important}
#profileStadiumPanel .stadium-premium-kpis :is(span,small),
#profileInfrastructurePanel .infrastructure-summary-v3 span{color:#d9d1c2!important}
#profileStadiumPanel .stadium-premium-kpis strong,
#profileInfrastructurePanel .infrastructure-summary-v3 strong{color:#fbf7ef!important}
#profileStadiumPanel :is(.stadium-kpi-icon,.stadium-upgrade-icon){filter:brightness(0) invert(96%) sepia(13%) saturate(445%) hue-rotate(333deg) brightness(104%) contrast(98%)!important;opacity:1!important}
#profileStadiumPanel :is(.stadium-room-v4,.stadium-boardroom>article,.stadium-data-card.premium,.stadium-next-match.premium){
  border-color:rgba(212,169,79,.22)!important;
  background-color:#0d0c0a!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 16px 38px rgba(0,0,0,.28)!important;
}
#profileStadiumPanel .stadium-room-v4{background:linear-gradient(145deg,#17150f,#090806)!important}
#profileStadiumPanel .stadium-room-copy-overlay,
#profileStadiumPanel .stadium-current-level-overlay,
#profileStadiumPanel .stadium-room-v4 .stadium-room-footer>span{border:1px solid rgba(212,169,79,.18)!important;background:linear-gradient(145deg,rgba(24,21,14,.90),rgba(8,7,5,.88))!important;color:#fbf7ef!important}
#profileStadiumPanel .stadium-room-copy-overlay{padding:0!important;border:0!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important}
#profileStadiumPanel .stadium-current-level-overlay small,
#profileStadiumPanel .stadium-room-footer small{color:#d9d1c2!important}
#profileStadiumPanel .stadium-current-level-overlay em{color:#e5c377!important}
#profileStadiumPanel :is(.stadium-fan-card-v3>span,.stadium-readiness-card>span,.stadium-level-board-v3>span,.stadium-next-match>span,.stadium-data-card.premium header span){color:#e5c377!important}
#profileStadiumPanel .stadium-readiness-ring{background:conic-gradient(#d4a94f var(--readiness),rgba(212,169,79,.13) 0)!important}
#profileStadiumPanel .stadium-readiness-ring::before{background:#0d0c0a!important;border-color:rgba(212,169,79,.18)!important}
#profileStadiumPanel .stadium-level-board-v3>section p,
#profileStadiumPanel .stadium-next-match.premium>div span,
#profileStadiumPanel .stadium-revenue-layout>p,
#profileStadiumPanel .stadium-image-path article,
#profileStadiumPanel .stadium-full-path-premium p{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.74)!important}
#profileStadiumPanel .stadium-level-board-v3>section p span,
#profileStadiumPanel .stadium-next-match.premium :is(p,span),
#profileStadiumPanel .stadium-data-card.premium :is(p,small),
#profileStadiumPanel .stadium-image-path small,
#profileStadiumPanel .stadium-full-path-premium :is(small,em){color:#d9d1c2!important}
#profileStadiumPanel .stadium-level-board-v3 button{
  border-color:rgba(240,215,155,.48)!important;
  background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;
  color:#1a1207!important;
  box-shadow:0 9px 22px rgba(80,55,13,.28),inset 0 1px 0 rgba(255,255,255,.40)!important;
}
#profileStadiumPanel .stadium-level-board-v3 button:hover:not(:disabled),
#profileStadiumPanel .stadium-level-board-v3 button:focus-visible:not(:disabled){filter:brightness(1.07)!important;outline:2px solid rgba(240,215,155,.68)!important;outline-offset:2px!important}
#profileStadiumPanel .stadium-level-board-v3 button:disabled{border-color:rgba(212,169,79,.14)!important;background:rgba(212,169,79,.08)!important;color:#635c50!important;box-shadow:none!important}
#profileStadiumPanel .stadium-construction-progress{border:1px solid rgba(212,169,79,.18)!important;background:rgba(212,169,79,.07)!important}
#profileStadiumPanel .stadium-construction-progress>div{background:rgba(212,169,79,.11)!important}
#profileStadiumPanel .stadium-construction-progress>div i{background:linear-gradient(90deg,#9c7128,#d4a94f,#f0d79b)!important}
#profileStadiumPanel .stadium-construction-progress :is(>span,>strong){color:#fff4e3!important}
#profileStadiumPanel .stadium-image-path article.current{border-color:rgba(212,169,79,.58)!important;background:rgba(212,169,79,.12)!important;box-shadow:0 0 0 2px rgba(212,169,79,.08)!important}
#profileStadiumPanel .stadium-image-path span,
#profileStadiumPanel .stadium-full-path-premium summary{color:#e5c377!important}
#profileStadiumPanel .stadium-full-path-premium{scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileStadiumPanel .stadium-attendance-grid{stroke:rgba(212,169,79,.15)!important}
#profileStadiumPanel .stadium-attendance-y-label,
#profileStadiumPanel .stadium-attendance-x-label{fill:#d9d1c2!important}
#profileStadiumPanel .stadium-attendance-line{stroke:#d4a94f!important;filter:drop-shadow(0 0 5px rgba(212,169,79,.24))!important}
#profileStadiumPanel .stadium-attendance-v3 .stadium-attendance-chart.area circle{fill:#17150f!important;stroke:#f0d79b!important}

#profileInfrastructurePanel .facility-construction-board,
#profileInfrastructurePanel .facility-project-progress,
#profileInfrastructurePanel .facility-unified-card{
  border-color:rgba(212,169,79,.22)!important;
  background:linear-gradient(145deg,rgba(29,25,17,.96),rgba(11,10,8,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 15px 34px rgba(0,0,0,.25)!important;
}
#profileInfrastructurePanel .facility-unified-visual{border-bottom-color:rgba(212,169,79,.17)!important;background:linear-gradient(145deg,#19160f,#0c0a07)!important}
#profileInfrastructurePanel .facility-unified-visual>span{border-color:rgba(212,169,79,.34)!important;background:rgba(13,12,10,.84)!important;color:#f0d79b!important}
#profileInfrastructurePanel .facility-unified-body{background:transparent!important}
#profileInfrastructurePanel .facility-unified-body>header small,
#profileInfrastructurePanel .facility-construction-board>header span{color:#e5c377!important}
#profileInfrastructurePanel .facility-unified-body>header h3{color:#fbf7ef!important}
#profileInfrastructurePanel .facility-unified-metrics>span,
#profileInfrastructurePanel .facility-unified-state{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.74)!important}
#profileInfrastructurePanel .facility-unified-metrics small,
#profileInfrastructurePanel .facility-unified-state small,
#profileInfrastructurePanel .facility-project-progress small{color:#d9d1c2!important}
#profileInfrastructurePanel .facility-unified-metrics strong,
#profileInfrastructurePanel .facility-unified-state strong,
#profileInfrastructurePanel .facility-project-progress strong,
#profileInfrastructurePanel .facility-project-progress>header>b{color:#fbf7ef!important}
#profileInfrastructurePanel :is(.facility-project-track,.facility-unified-state>span){background:rgba(212,169,79,.11)!important}
#profileInfrastructurePanel :is(.facility-project-track i,.facility-unified-state>span i){background:linear-gradient(90deg,#9c7128,#d4a94f,#f0d79b)!important}
#profileInfrastructurePanel .facility-unified-state.is-ready b{color:#74c98f!important}
#profileInfrastructurePanel .facility-unified-footer{border-top-color:rgba(212,169,79,.15)!important}
#profileInfrastructurePanel .facility-unified-footer button{
  border-color:rgba(240,215,155,.46)!important;
  background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;
  color:#1a1207!important;
  box-shadow:0 8px 20px rgba(80,55,13,.26),inset 0 1px 0 rgba(255,255,255,.40)!important;
}
#profileInfrastructurePanel .facility-unified-footer button:hover:not(:disabled),
#profileInfrastructurePanel .facility-unified-footer button:focus-visible:not(:disabled){filter:brightness(1.07)!important;outline:2px solid rgba(240,215,155,.66)!important;outline-offset:2px!important}
#profileInfrastructurePanel .facility-unified-footer button:disabled{border-color:rgba(212,169,79,.14)!important;background:rgba(212,169,79,.08)!important;color:#635c50!important;box-shadow:none!important}

/* Shared investment confirmations: Stadium and Facilities use goatConfirm(). */
.goat-confirm-overlay{background:rgba(5,4,3,.88)!important;backdrop-filter:blur(10px)!important}
.goat-confirm-modal{border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:0 32px 90px rgba(0,0,0,.68)!important}
.goat-confirm-modal>header{border-bottom-color:rgba(212,169,79,.18)!important}
.goat-confirm-modal>header>span{color:#e5c377!important}
.goat-confirm-modal>header>h3,.goat-confirm-details strong{color:#fbf7ef!important}
.goat-confirm-copy,.goat-confirm-details span{color:#d9d1c2!important}
.goat-confirm-details>p{border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.74)!important}
.goat-confirm-cancel{border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
.goat-confirm-submit:not(.danger){border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important;box-shadow:0 8px 20px rgba(80,55,13,.27)!important}
.goat-confirm-cancel:hover,.goat-confirm-cancel:focus-visible{border-color:rgba(240,215,155,.64)!important;background:rgba(212,169,79,.16)!important;color:#fbf7ef!important;outline:none!important}
.goat-confirm-submit:focus-visible{outline:2px solid rgba(240,215,155,.70)!important;outline-offset:2px!important}

/* The detailed report is global, so it needs the same explicit neutral shell. */
.centre-report-modal{background:rgba(5,4,3,.84)!important;backdrop-filter:blur(10px)!important}.centre-report-sheet{border-color:rgba(212,169,79,.25)!important;background:linear-gradient(145deg,#1b170f,#0c0a07)!important;box-shadow:0 42px 110px rgba(0,0,0,.66)!important}.centre-report-sheet::before{background:linear-gradient(110deg,rgba(212,169,79,.04),transparent 30%,rgba(212,169,79,.05))!important}.centre-report-header,.centre-report-tabs,.centre-report-summary>footer{border-color:rgba(212,169,79,.16)!important;background:rgba(16,13,9,.78)!important}.centre-report-header span,.mc-report-summary-score small,.centre-report-summary>footer .mc-hub-icon{color:#e5c377!important}.centre-report-header h2,.mc-report-summary-club strong,.mc-report-summary-score b{color:#fbf7ef!important;text-shadow:none!important}.centre-report-close{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}.centre-report-close:hover{border-color:rgba(240,215,155,.65)!important;background:rgba(212,169,79,.16)!important}.centre-report-tabs button{color:#d9d1c2!important}.centre-report-tabs button:hover{background:rgba(212,169,79,.1)!important;color:#fbf7ef!important}.centre-report-tabs button.is-active{border-color:rgba(212,169,79,.48)!important;background:linear-gradient(180deg,rgba(212,169,79,.22),rgba(92,67,24,.26))!important;color:#f0d79b!important;box-shadow:none!important}.centre-report-body{scrollbar-color:rgba(192,143,52,.72) #080603!important}

/* Match Centre: lobby, live match and report surfaces share one warm-neutral contract. */
#matchCentreView.goat-match-centre,
#matchCentreView .mc-hub-page{
  color:#fbf7ef!important;
  background:transparent!important;
}
#matchCentreView .mc-hub-page::before{display:none!important}
#matchCentreView :is(.mc-hub-page-header,.mc-shell-header){
  border-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(145deg,rgba(27,23,15,.96),rgba(11,9,7,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 16px 36px rgba(0,0,0,.26)!important;
}
#matchCentreView :is(.mc-hub-page-header,.mc-shell-header) :is(h1,h2,strong),
#matchCentreView :is(.mc-hub-panel-title,.mc-panel-heading) :is(h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
#matchCentreView :is(.mc-hub-page-header,.mc-shell-header,.mc-hub-panel-title,.mc-panel-heading) :is(p,small,span:not(.mc-status)){color:#d9d1c2!important}
#matchCentreView :is(.mc-hub-icon,.mc-hub-button-icon,.mc-tab-icon){color:#e5c377!important;filter:none!important}
#matchCentreView :is(.mc-hub-panel,.mc-hub-hero-stage,.mc-hub-next,.mc-hub-result,.mc-hub-past,.mc-hub-history-page,.mc-scoreboard,.mc-commentary-card,.mc-pitch-card,.mc-momentum-card,.mc-attacking-zones-card,.mc-insight-card,.mc-statistics,.mc-players,.mc-tactics-report){
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(27,23,15,.97),rgba(12,10,7,.98))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.23)!important;
}
#matchCentreView :is(.mc-hub-panel-title,.mc-panel-heading,.mc-hub-league-head,.mc-hub-match-head){border-color:rgba(212,169,79,.16)!important;background:rgba(14,12,8,.72)!important}
#matchCentreView :is(.mc-hub-section-label,.mc-hub-status,.mc-kickoff-meta,.mc-clock,.mc-status,.mc-competition-copy,.mc-hub-competition,.mc-hub-countdown-label){color:#e5c377!important}
#matchCentreView :is(.mc-hub-countdown-units,.mc-hub-fixture-meta,.mc-hub-weather,.mc-hub-player-metrics,.mc-hub-fallback-stats) :is(span,small,p){color:#d9d1c2!important}
#matchCentreView :is(.mc-hub-countdown-units,.mc-hub-form-boxes)>*{border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.76)!important}
#matchCentreView :is(.mc-hub-club,.mc-club) :is(strong,b),
#matchCentreView :is(.mc-hub-score-area,.mc-score-core,.mc-hub-row-score) :is(strong,b),
#matchCentreView :is(.mc-hub-opponent,.mc-hub-versus){color:#fbf7ef!important;text-shadow:none!important}
#matchCentreView :is(.mc-hub-dashboard-grid,.mc-live-grid,.mc-live-main,.mc-live-side){border-color:rgba(212,169,79,.12)!important}
#matchCentreView :is(.mc-hub-player-row,.mc-hub-match-row,.mc-hub-league-row){border-color:rgba(212,169,79,.12)!important;background:rgba(13,12,10,.68)!important}
#matchCentreView :is(.mc-hub-player-row,.mc-hub-match-row,.mc-hub-league-row):hover{background:rgba(212,169,79,.08)!important}
#matchCentreView :is(.mc-hub-player-name,.mc-hub-player-name-link,.mc-hub-table-link){color:#fbf7ef!important}
#matchCentreView :is(.mc-hub-position,.mc-hub-rank,.mc-hub-latest-rating){border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}
#matchCentreView :is(.mc-hub-table,.mc-hub-match-table,.mc-hub-league-table){border-color:rgba(212,169,79,.16)!important;background:#100e0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
#matchCentreView :is(.mc-hub-table,.mc-hub-match-table,.mc-hub-league-table) :is(th,.mc-hub-match-head,.mc-hub-league-head){border-color:rgba(212,169,79,.18)!important;background:#17130d!important;color:#e5c377!important}
#matchCentreView :is(.mc-hub-table,.mc-hub-match-table,.mc-hub-league-table) :is(td,.mc-hub-match-row,.mc-hub-league-row){border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
#matchCentreView :is(.mc-hub-primary-button,.mc-hub-report-link){border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important;box-shadow:0 8px 20px rgba(80,55,13,.28)!important}
#matchCentreView :is(.mc-hub-secondary-button,.mc-hub-text-button,.mc-hub-history-link,.mc-back,.mc-shell-actions button,.mc-pitch-modes button,.mc-replay-controls button){border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important;box-shadow:none!important}
#matchCentreView :is(.mc-hub-secondary-button,.mc-hub-text-button,.mc-hub-history-link,.mc-back,.mc-shell-actions button,.mc-pitch-modes button,.mc-replay-controls button):hover,
#matchCentreView :is(.mc-hub-secondary-button,.mc-hub-text-button,.mc-hub-history-link,.mc-back,.mc-shell-actions button,.mc-pitch-modes button,.mc-replay-controls button):focus-visible{border-color:rgba(240,215,155,.58)!important;background:rgba(212,169,79,.15)!important;color:#fbf7ef!important;outline:2px solid rgba(240,215,155,.56)!important;outline-offset:2px!important}
#matchCentreView .mc-tabs{border-color:rgba(212,169,79,.18)!important;background:#0d0b08!important}
#matchCentreView .mc-tabs button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
#matchCentreView .mc-tabs button:hover{background:rgba(212,169,79,.08)!important;color:#fbf7ef!important}
#matchCentreView .mc-tabs button.active{border-color:rgba(212,169,79,.44)!important;background:rgba(212,169,79,.14)!important;color:#f0d79b!important}
#matchCentreView :is(.mc-live-stats,.mc-pressure,.mc-attacking-zones,.mc-match-timeline)>*{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.72)!important}
#matchCentreView :is(.mc-live-stats,.mc-pressure,.mc-attacking-zones,.mc-match-timeline) :is(small,span,p){color:#d9d1c2!important}
#matchCentreView :is(.mc-live-stats,.mc-pressure,.mc-attacking-zones,.mc-match-timeline) :is(strong,b){color:#fbf7ef!important}
/* Pitch grass, club crests, player portraits, cards and match-event semantics are intentionally untouched. */
#matchCentreView :is(.mc-hub-loading,.mc-hub-empty-state,.mc-hub-list-empty,.mc-hub-inline-message,.mc-loading,.mc-message){border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.74)!important;color:#d9d1c2!important}
#matchCentreView :is(.mc-hub-error,.mc-hub-server-state.is-error){border-color:rgba(201,74,74,.44)!important;background:rgba(111,31,31,.18)!important;color:#f0a5a5!important}
#matchCentreView :is(.mc-commentary,.mc-hub-player-list,.mc-hub-past,.mc-hub-table){scrollbar-color:rgba(192,143,52,.72) #080603!important}

/* Report body: neutral data surfaces; comparison and event outcome colours remain semantic. */
.centre-report-body :is(.mc-report-formation-team,.mc-report-tactics-team,.mc-report-ratings-team,.mc-report-team-stats,.mc-report-timeline,.mc-report-key-timeline,.mc-report-player-stats,.mc-report-potm,.mc-report-tactic-block,.mc-report-popup-changes){border-color:rgba(212,169,79,.18)!important;background:linear-gradient(145deg,rgba(26,22,15,.96),rgba(12,10,7,.98))!important;box-shadow:none!important}
.centre-report-body{background:#0d0c0a!important}
.centre-report-body .mc-report-tab-panel{background:transparent!important}
.centre-report-body .mc-report-formation-team>footer{border-color:rgba(212,169,79,.15)!important;background:rgba(14,12,8,.74)!important;color:#d9d1c2!important}
.centre-report-body .mc-report-pitch-player>span:last-child{border-color:rgba(212,169,79,.22)!important;background:rgba(13,12,10,.86)!important;box-shadow:0 4px 10px rgba(0,0,0,.30)!important}
.centre-report-body .mc-report-pitch-player small{color:#e5c377!important}
.centre-report-body .mc-report-player-portrait{border-color:rgba(212,169,79,.34)!important;background:linear-gradient(145deg,#3b2d13,#171008)!important}
.centre-report-body :is(.mc-report-popup-tactic-grid div,.mc-report-change-list article){border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.72)!important}
.centre-report-body :is(.mc-report-formation-team,.mc-report-tactics-team,.mc-report-ratings-team,.mc-report-team-stats,.mc-report-timeline,.mc-report-key-timeline)>header{border-color:rgba(212,169,79,.15)!important;background:rgba(14,12,8,.74)!important}
.centre-report-body :is(.mc-report-formation-team,.mc-report-tactics-team,.mc-report-ratings-team,.mc-report-team-stats,.mc-report-timeline,.mc-report-key-timeline)>header :is(h3,h4,strong){color:#fbf7ef!important}
.centre-report-body :is(.mc-report-formation-team,.mc-report-tactics-team,.mc-report-ratings-team,.mc-report-team-stats,.mc-report-timeline,.mc-report-key-timeline)>header :is(span,small,p){color:#d9d1c2!important}
.centre-report-body :is(.mc-report-rating-row,.mc-report-timeline article,.mc-report-popup-changes article,.mc-report-player-table tbody tr,.mc-report-tactic-grid div,.mc-report-summary-grid div){border-color:rgba(212,169,79,.12)!important;background:rgba(13,12,10,.68)!important}
.centre-report-body :is(.mc-report-rating-row,.mc-report-timeline article,.mc-report-popup-changes article,.mc-report-player-table tbody tr):hover{background:rgba(212,169,79,.08)!important}
.centre-report-body :is(.mc-report-player-table-wrap,.mc-report-player-table){border-color:rgba(212,169,79,.16)!important;background:#100e0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
.centre-report-body .mc-report-player-table th{border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}
.centre-report-body .mc-report-player-table td{border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
.centre-report-body .mc-report-player-filter{border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.72)!important}
.centre-report-body .mc-report-player-filter select{border-color:rgba(212,169,79,.30)!important;background:#17150f!important;color:#fbf7ef!important}
.centre-report-body :is(.mc-report-popup-loading,.mc-report-popup-empty){border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.72)!important;color:#d9d1c2!important}
.centre-report-body .mc-report-popup-error{border-color:rgba(201,74,74,.42)!important;background:rgba(111,31,31,.18)!important;color:#f0a5a5!important}
.centre-report-body .mc-report-key-timeline>div::before{background:linear-gradient(180deg,transparent,rgba(212,169,79,.34) 12%,rgba(156,113,40,.26) 88%,transparent)!important}
.centre-report-body .mc-report-key-timeline .mc-report-key-event:hover{background:rgba(212,169,79,.06)!important}

/* Remaining Club desks: one hierarchy, with artwork and data semantics kept. */
:is(#profileRegistrationPanel,#profileMarketPanel,#profileCompetitionsPanel,#profileFinancesPanel,#profileSponsorPanel,#profileInvestPanel,#profileContractsPanel,#profileHistoryPanel,#profileInventoryPanel,#profileLegacyPanel,#profileSettingsPanel){color:#d9d1c2!important}
:is(#profileCompetitionsPanel,#profileSponsorPanel,#profileInvestPanel,#profileContractsPanel) :is(.goat-luxury-page,.goat-management-page){border:0!important;background:transparent!important;box-shadow:none!important;clip-path:none!important}
:is(#profileMarketPanel,#profileCompetitionsPanel,#profileSponsorPanel,#profileInvestPanel,#profileContractsPanel) :is(.goat-luxury-header,.goat-management-header){border-bottom-color:rgba(212,169,79,.18)!important;background:transparent!important}
:is(#profileMarketPanel,#profileCompetitionsPanel,#profileSponsorPanel,#profileInvestPanel,#profileContractsPanel) :is(.goat-luxury-header,.goat-management-header) :is(.eyebrow,h2){color:#e5c377!important;text-shadow:none!important}
:is(#profileMarketPanel,#profileCompetitionsPanel,#profileSponsorPanel,#profileInvestPanel,#profileContractsPanel) :is(.goat-luxury-header,.goat-management-header) p{color:#d9d1c2!important}

/* Registration: neutral workbench; warning/valid/invalid statuses stay semantic. */
#profileRegistrationPanel .league-registration-screen{border:0!important;background:transparent!important;box-shadow:none!important}
#profileRegistrationPanel :is(.league-registration-summary-item,.league-registration-deadline,.league-registration-panel,.league-registration-swap,.league-registration-action-bar){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(180deg,#1c1810,#0b0a08)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 13px 30px rgba(0,0,0,.23)!important}
#profileRegistrationPanel :is(.league-registration-validation,.league-registration-u17){padding-inline:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profileRegistrationPanel :is(.league-registration-panel-heading,.league-registration-u17>header,.league-registration-swap>header,.league-registration-validation>header){border-color:rgba(212,169,79,.15)!important;background:rgba(14,12,8,.70)!important}
#profileRegistrationPanel :is(.league-registration-heading,.league-registration-panel-heading,.league-registration-u17>header,.league-registration-swap>header,.league-registration-validation>header) :is(.eyebrow,h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
#profileRegistrationPanel :is(.league-registration-heading,.league-registration-panel-heading,.league-registration-u17>header,.league-registration-swap>header,.league-registration-validation>header) :is(p,small,em){color:#d9d1c2!important}
#profileRegistrationPanel .league-registration-summary-icon{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.10)!important;color:#fff4e3!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important}
#profileRegistrationPanel .league-registration-summary-icon img{filter:brightness(0) invert(96%) sepia(13%) saturate(445%) hue-rotate(333deg) brightness(104%) contrast(98%)!important}
#profileRegistrationPanel .league-registration-summary-icon svg{color:#fff4e3!important;filter:none!important}
#profileRegistrationPanel :is(.league-registration-player,.league-registration-u17-card,.league-registration-position-counts>span,.league-registration-sidebar-counts>div,.league-registration-validation-item){border-color:rgba(212,169,79,.12)!important;background:rgba(13,12,10,.70)!important}
#profileRegistrationPanel .league-registration-rules{border:1px solid rgba(212,169,79,.38)!important;border-left-width:3px!important;border-left-color:#d4a94f!important;background:rgba(29,24,15,.90)!important;color:#fbf7ef!important}
#profileRegistrationPanel .league-registration-rules p{color:#fbf7ef!important;font-size:.78rem!important;line-height:1.65!important}
#profileRegistrationPanel .league-registration-validation-item small{color:#d9d1c2!important;font-size:.7rem!important;line-height:1.5!important}
#profileRegistrationPanel #leagueRegistrationWindowLabel{color:#d9d1c2!important;text-shadow:none!important}
#profileRegistrationPanel .league-registration-notes p{color:#e7dfd1!important}
#profileRegistrationPanel .league-registration-notes p::before{background:#d4a94f!important}
#profileRegistrationPanel :is(.league-registration-player,.league-registration-u17-card):hover{border-color:rgba(212,169,79,.38)!important;background:rgba(212,169,79,.08)!important}
#profileRegistrationPanel :is(.league-registration-player-copy strong,.league-registration-summary-copy strong,.league-registration-sidebar-counts dd){color:#fbf7ef!important}
#profileRegistrationPanel :is(.league-registration-player-copy small,.league-registration-summary-copy small,.league-registration-summary-copy em,.league-registration-sidebar-counts dt){color:#d9d1c2!important}
#profileRegistrationPanel #leagueRegistrationSelectedCount{color:#e5c377!important}
#profileRegistrationPanel #leagueRegistrationSelectedCount.is-minimum-met{color:#7be09b!important}
#profileRegistrationPanel #leagueRegistrationSaveDraft{
  min-height:42px!important;
  padding:0 17px!important;
  border:1px solid rgba(212,169,79,.28)!important;
  border-radius:6px!important;
  background:rgba(212,169,79,.06)!important;
  color:#f0d79b!important;
  box-shadow:none!important;
  clip-path:none!important;
  font:700 .68rem var(--body)!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
#profileRegistrationPanel #leagueRegistrationSaveDraft:hover:not(:disabled),
#profileRegistrationPanel #leagueRegistrationSaveDraft:focus-visible:not(:disabled){border-color:rgba(240,215,155,.66)!important;background:rgba(212,169,79,.16)!important;color:#fbf7ef!important;outline:2px solid rgba(212,169,79,.24)!important;outline-offset:2px!important}
#profileRegistrationPanel #leagueRegistrationSaveDraft:disabled{opacity:.42!important;cursor:not-allowed!important}
#profileRegistrationPanel #leagueRegistrationSaveDraft.is-save-confirmed{border-color:rgba(111,208,142,.68)!important;background:linear-gradient(145deg,#3d7e50,#1d482e)!important;color:#fffdf6!important}
#profileRegistrationPanel :is(.league-registration-clear-button,.league-registration-filter-toggle,.league-registration-rules-button){border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#profileRegistrationPanel :is(.league-registration-search input,.league-registration-filters input,.league-registration-filters select,.league-registration-swap-selects select){min-height:44px!important;border-color:var(--goat-control-border)!important;background:var(--goat-control-surface)!important;color:#fbf7ef!important;font-family:var(--body)!important;font-size:.72rem!important;font-weight:760!important}
#profileRegistrationPanel .league-registration-filters label>span,
#profileRegistrationPanel .league-registration-swap-selects label>span{color:var(--goat-label-color)!important;font-family:var(--mono)!important;font-size:.58rem!important;font-weight:850!important;letter-spacing:.09em!important}
#profileRegistrationPanel .league-registration-player-position{border:1px solid color-mix(in srgb,var(--rarity-color,#d4a94f) 45%,rgba(212,169,79,.20))!important;background:color-mix(in srgb,var(--rarity-color,#d4a94f) 12%,#17150f)!important;color:#fbf7ef!important}
#profileRegistrationPanel :is(.league-registration-player,.league-registration-u17-card){border-left:3px solid var(--rarity-color,#d4a94f)!important}
#profileRegistrationPanel :is(.league-registration-player-list,.league-registration-u17-grid){scrollbar-color:rgba(192,143,52,.72) #080603!important}

/* Market and Invest are intentionally sparse, but their empty/future states are still product surfaces. */
#profileMarketPanel :is(.market-luxury-shell,.market-luxury-hero,.market-luxury-note),
#profileInvestPanel :is(.invest-hero-card,.invest-roadmap,.invest-luxury-grid>article,.invest-pill-row){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
#profileMarketPanel :is(h3,strong,.eyebrow),#profileInvestPanel :is(h3,strong,.eyebrow){color:#fbf7ef!important;text-shadow:none!important}
#profileMarketPanel :is(p,small,span),#profileInvestPanel :is(p,small,span){color:#d9d1c2!important}

/* Competition chrome is neutral; league/cup state, crests and rankings remain meaningful. */
#profileCompetitionsPanel :is(.competition-premium-hero,.competition-overview-layout>*,.competition-table-card,.competition-round-card,.competition-next-fixture,.competition-news-grid article,.competition-preseason-note){border-color:rgba(212,169,79,.18)!important;background:linear-gradient(145deg,rgba(27,23,15,.96),rgba(11,10,8,.98))!important;box-shadow:none!important}
#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch,.competition-switch,.competition-division-switch){border-color:rgba(212,169,79,.18)!important;background:#0d0c0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch,.competition-switch,.competition-division-switch) button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch,.competition-switch,.competition-division-switch) button:hover{background:rgba(212,169,79,.08)!important;color:#fbf7ef!important}
#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch,.competition-switch,.competition-division-switch) button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important}

/* League page navigation is a text rail: hover adds emphasis without drawing
   a new rectangular control or shifting neighbouring tabs. */
#profileCompetitionsPanel .competition-sub-switch button:not(.active):is(:hover,:focus-visible){
  border-color:transparent!important;
  background:transparent!important;
  color:#f0d79b!important;
  transform:scale(1.035);
}
#profileCompetitionsPanel .competition-sub-switch button:focus-visible{
  outline:0!important;
  text-decoration:underline;
  text-decoration-color:rgba(240,215,155,.9);
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}

.goat-unsaved-modal footer{display:flex;justify-content:flex-end;gap:10px}
.goat-unsaved-modal .goat-unsaved-save{
  border-color:rgba(116,196,139,.5)!important;
  background:linear-gradient(180deg,rgba(55,131,78,.96),rgba(29,91,49,.98))!important;
  color:#fff!important;
}
.goat-unsaved-modal [data-goat-unsaved-leave]{
  border-color:rgba(206,80,85,.58)!important;
  background:linear-gradient(180deg,rgba(139,45,51,.96),rgba(91,25,30,.98))!important;
  color:#fff!important;
}
.goat-unsaved-modal :is(.goat-unsaved-save,[data-goat-unsaved-leave]):focus-visible{
  outline:2px solid rgba(240,215,155,.72)!important;
  outline-offset:3px;
}
#profileCompetitionsPanel :is(.competition-table-head,.competition-table-row,.competition-round-fixture){border-color:rgba(212,169,79,.12)!important}
#profileCompetitionsPanel .competition-table-head{background:#17130d!important;color:#e5c377!important}
#profileCompetitionsPanel .competition-table-row{background:rgba(13,12,10,.66)!important;color:#d9d1c2!important}
#profileCompetitionsPanel .competition-table-row:hover{background:rgba(212,169,79,.07)!important}
#profileCompetitionsPanel :is(.competition-context-strip,.competition-explainer){border-color:rgba(212,169,79,.20)!important;background:rgba(13,12,10,.72)!important;color:#d9d1c2!important}
#profileCompetitionsPanel :is(.competition-context-strip strong,.competition-next-fixture strong,.competition-news-grid article strong){color:#fbf7ef!important}
#profileCompetitionsPanel :is(.competition-next-fixture small,.competition-next-fixture span,.competition-news-grid article p){color:#d9d1c2!important}
#profileCompetitionsPanel .competition-news-grid article :is(small,span){color:#e5c377!important}

/* Finance, Sponsor and Invest controls. Positive/negative cash flow stays semantic. */
#profileFinancesPanel .finance-command-centre{border:0!important;background:transparent!important;box-shadow:none!important}
#profileFinancesPanel :is(.finance-balance-card,.finance-bank-kpis-v3 article,.finance-cashflow-card,.finance-ledger-card,.finance-donut-card,.finance-breakdown-card,.finance-commitment-card,.finance-compact-card){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(180deg,#1c1810,#0b0a08)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important}
#profileFinancesPanel .finance-periods{border-color:rgba(212,169,79,.18)!important;background:#0d0c0a!important}
#profileFinancesPanel .finance-periods button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
#profileFinancesPanel .finance-periods button:hover{background:rgba(212,169,79,.08)!important;color:#fbf7ef!important}
#profileFinancesPanel .finance-periods button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important;box-shadow:none!important}
#profileFinancesPanel :is(.finance-bank-kpis-v3 span,.finance-donut-legend span,.finance-chart-labels,.finance-y-label,.finance-commitment-copy small){color:#d9d1c2!important}
#profileFinancesPanel :is(.finance-bank-kpis-v3 strong,.finance-balance-card strong,.finance-commitment-copy strong){color:#fbf7ef!important;text-shadow:none!important}
#profileFinancesPanel .finance-bank-kpis-v3 .finance-kpi-icon{filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%)!important}
#profileFinancesPanel :is(.management-asset-icon,.finance-commitment-icon) img{filter:brightness(0) invert(96%) sepia(13%) saturate(445%) hue-rotate(333deg) brightness(104%) contrast(98%)!important;opacity:1!important}
#profileFinancesPanel .finance-donut:before{background:#17150f!important;box-shadow:inset 0 0 0 1px rgba(212,169,79,.16)!important}
#profileFinancesPanel .finance-commitment-card{border-color:rgba(212,169,79,.18)!important;background:linear-gradient(145deg,#211d14,#0d0c0a)!important}
#profileFinancesPanel .finance-table-wrap{border-color:rgba(212,169,79,.16)!important;background:#100e0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileFinancesPanel table th{border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}
#profileFinancesPanel table td{border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
#profileSponsorPanel :is(.sponsor-commercial-shell,.sponsor-choice-panel,.sponsor-insight-panel,.sponsor-summary-strip,.sponsor-offer-card){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98))!important;box-shadow:none!important}
#profileSponsorPanel .sponsor-offer-card:hover,#profileSponsorPanel .sponsor-offer-card.sponsor-selected{border-color:rgba(212,169,79,.58)!important;background:linear-gradient(145deg,rgba(62,48,20,.70),rgba(13,11,8,.98))!important}
#profileSponsorPanel :is(.sponsor-brand-badge,.sponsor-recommended){border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}
#profileSponsorPanel :is(h3,strong),#profileInvestPanel :is(h3,strong){color:#fbf7ef!important}
#profileSponsorPanel :is(p,small,.sponsor-offer-summary span){color:#d9d1c2!important}
#profileSponsorPanel .sponsor-summary-strip article+article:before{background:rgba(212,169,79,.14)!important}
#profileSponsorPanel .sponsor-offer-card p{border-color:rgba(212,169,79,.14)!important}
#profileSponsorPanel .sponsor-insight-panel article,
#profileSponsorPanel .sponsor-active-premium>section p{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.72)!important}
#profileSponsorPanel .sponsor-risk-track{border-color:rgba(212,169,79,.20)!important;background:#0d0c0a!important}
#profileSponsorPanel .sponsor-risk-track i{background:linear-gradient(90deg,#80602d,#d4a94f,#f0d79b)!important}
#profileSponsorPanel .sponsor-offer-card button{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(145deg,#4c3915,#21180a)!important;color:#fff4e3!important;box-shadow:none!important}
#profileSponsorPanel .sponsor-offer-card button:hover,
#profileSponsorPanel .sponsor-offer-card button:focus-visible{border-color:rgba(240,215,155,.76)!important;background:linear-gradient(145deg,#5a4318,#2a1e0b)!important;outline:2px solid rgba(240,215,155,.52)!important;outline-offset:2px!important}
#profileSponsorPanel .sponsor-active-premium{border-color:rgba(212,169,79,.22)!important;background:linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98))!important}

/* Contracts: artwork windows remain intact; all surrounding controls and data chrome are warm. */
#profileContractsPanel :is(.contracts-kpi-v2 article,.contract-toolbar-v3,.contract-table-panel,.contract-detail-panel,.contract-urgent-panel,.contract-negotiation-box,.contract-identity-section-v5,.contract-core-metrics-v5,.contract-detail-grid-v5>p){border-color:rgba(212,169,79,.20)!important;background-color:#0d0c0a!important;box-shadow:none!important}
#profileContractsPanel .contract-toolbar-v3{padding-inline:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profileContractsPanel .contract-filter-tabs{border-color:rgba(212,169,79,.18)!important;background:#090806!important}
#profileContractsPanel .contract-filter-tabs button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
#profileContractsPanel .contract-filter-tabs button:hover{background:rgba(212,169,79,.08)!important;color:#fbf7ef!important}
#profileContractsPanel .contract-filter-tabs button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important}
#profileContractsPanel :is(.contract-search-field input,.contract-filter-inputs select,.contract-negotiation-field input,.contract-term-trigger){border-color:rgba(212,169,79,.28)!important;background:#17150f!important;color:#fbf7ef!important}
#profileContractsPanel :is(.contract-search-suggest,.contract-review-popover),.contract-term-menu.is-portal{border-color:rgba(212,169,79,.26)!important;background:#17150f!important;box-shadow:0 18px 42px rgba(0,0,0,.56)!important}
#profileContractsPanel :is(.contract-search-suggest button,.contract-review-popover button),.contract-term-menu.is-portal button{border-color:rgba(212,169,79,.10)!important;background:transparent!important;color:#d9d1c2!important}
#profileContractsPanel :is(.contract-search-suggest button,.contract-review-popover button):hover,.contract-term-menu.is-portal button:hover{background:rgba(212,169,79,.10)!important;color:#fbf7ef!important}
#profileContractsPanel :is(.finance-table-wrap,.contract-table-panel){scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileContractsPanel table th{border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}
#profileContractsPanel table td{border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
#profileContractsPanel table tbody tr{background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#d4a94f) 6%,#17150f),#0d0c0a)!important}
#profileContractsPanel table tbody tr:hover{background:linear-gradient(90deg,color-mix(in srgb,var(--rarity-color,#d4a94f) 11%,#211d14),#12100c)!important}
#profileContractsPanel :is(.contract-primary-cta,.contract-negotiation-confirm){border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important;-webkit-text-fill-color:#1a1207!important}
#profileContractsPanel .contract-negotiation-confirm .contract-button-icon{color:#1a1207!important;background:transparent!important}
#profileContractsPanel :is(.contract-row-cta,.contract-pagination button,.contract-urgent-panel button){border-color:rgba(212,169,79,.23)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
.contract-negotiation-notice-backdrop{background:rgba(5,4,3,.86)!important;backdrop-filter:blur(10px)!important}
.contract-negotiation-notice-card{border-color:rgba(212,169,79,.28)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:0 32px 90px rgba(0,0,0,.68)!important}
.contract-negotiation-notice-card :is(h2,strong){color:#fbf7ef!important}.contract-negotiation-notice-card :is(p,small){color:#d9d1c2!important}.contract-negotiation-notice-kicker{color:#e5c377!important}
.contract-negotiation-notice-continue{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important}

/* Inventory keeps pack artwork and Twitch's identity; its framing is neutral. */
#profileInventoryPanel .inventory-section{border:0!important;background:transparent!important;box-shadow:none!important}
#profileInventoryPanel :is(.inventory-chat-card,.inventory-help){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98))!important;box-shadow:none!important}
#profileInventoryPanel .inventory-pack{border-color:rgba(212,169,79,.18)!important;background:rgba(13,12,10,.68)!important;box-shadow:none!important}
#profileInventoryPanel .inventory-pack:hover{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.08)!important}
#profileInventoryPanel .inventory-chat-heading{border-bottom-color:rgba(212,169,79,.16)!important;background:rgba(14,12,8,.72)!important}
#profileInventoryPanel .inventory-chat-frame{border-color:rgba(212,169,79,.14)!important;background:#080603!important}
#profileInventoryPanel .inventory-chat-composer{border-top-color:rgba(212,169,79,.16)!important;background:#0d0c0a!important}
#profileInventoryPanel .inventory-chat-composer input{border-color:rgba(212,169,79,.26)!important;background:#17150f!important;color:#fbf7ef!important}
#profileInventoryPanel .inventory-chat-composer button{border-color:rgba(240,215,155,.45)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important}
#profileInventoryPanel .inventory-pack-grid{scrollbar-color:rgba(192,143,52,.72) #080603!important}

/* Legacy and Settings, both standalone and inside the Office tablet. */
#profileLegacyPanel :is(.legacy-command-hero,.legacy-content-shell,.milestone-card,.achievement-badge),
#profileSettingsPanel :is(.settings-command-hero,.settings-content-shell,.settings-editor,.settings-discord-card){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98))!important;box-shadow:none!important}
#profileLegacyPanel :is(.legacy-command-copy .eyebrow,.legacy-command-metric span,.legacy-content-shell .eyebrow,.milestone-target),
#profileSettingsPanel :is(.settings-command-copy .eyebrow,.settings-editor>span){color:#e5c377!important;text-shadow:none!important}
#profileLegacyPanel :is(h2,h3,strong),#profileSettingsPanel :is(h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
#profileLegacyPanel :is(p,small),#profileSettingsPanel :is(p,small){color:#d9d1c2!important}
#profileLegacyPanel .milestone-track,#profileLegacyPanel .badge-grid{scrollbar-color:rgba(192,143,52,.72) #080603!important}
#profileLegacyPanel .milestone-claim-button,#profileSettingsPanel .settings-link-button{border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}
#profileSettingsPanel .settings-editor :is(input,select),#profileSettingsPanel .location-city-picker input{border-color:rgba(212,169,79,.28)!important;background:#17150f!important;color:#fbf7ef!important}
#profileSettingsPanel .location-city-results{border-color:rgba(212,169,79,.26)!important;background:#17150f!important;box-shadow:0 18px 42px rgba(0,0,0,.56)!important}
#profileSettingsPanel .location-city-results button{border-color:rgba(212,169,79,.10)!important;background:transparent!important;color:#d9d1c2!important}
#profileSettingsPanel .location-city-results button:hover{background:rgba(212,169,79,.10)!important;color:#fbf7ef!important}

/* Competition Centre embedded in Club: same hub language as the live route. */
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-page{color:#fbf7ef!important;background:transparent!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-page::before{display:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-dev-matchday{border-color:rgba(212,169,79,.22)!important;background:linear-gradient(145deg,rgba(32,27,17,.96),rgba(12,10,8,.98))!important;box-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-dev-matchday-copy>span{color:#e5c377!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-dev-matchday-actions button{border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.10)!important;color:#fff4e3!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-dev-matchday-actions button.secondary{border-color:rgba(180,67,47,.40)!important;background:rgba(103,39,31,.38)!important;color:#f3c1b6!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-page-header,.mc-hub-panel,.mc-hub-hero-stage,.mc-hub-next,.mc-hub-result,.mc-hub-past,.mc-hub-history-page,.mc-hub-club-form,.mc-hub-form-players,.mc-hub-table){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(27,23,15,.97),rgba(12,10,7,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.23)!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-panel-title,.mc-hub-league-head,.mc-hub-match-head){border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-player-row,.mc-hub-match-row,.mc-hub-league-row){border-color:rgba(212,169,79,.11)!important;background:rgba(13,12,10,.68)!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-player-row,.mc-hub-match-row,.mc-hub-league-row):hover{background:rgba(212,169,79,.08)!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-section-label,.mc-hub-status,.mc-hub-competition,.mc-hub-icon,.mc-hub-button-icon,.mc-hub-position,.mc-hub-rank,.mc-hub-latest-rating){color:#e5c377!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-player-name,.mc-hub-player-name-link,.mc-hub-table-link,.mc-hub-panel-title h2,.mc-hub-page-header h1){color:#fbf7ef!important;text-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-page-header p,.mc-hub-fixture-meta,.mc-hub-weather,.mc-hub-player-metrics,.mc-hub-fallback-stats){color:#d9d1c2!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-primary-button{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-report-link{border-color:rgba(240,215,155,.52)!important;background:linear-gradient(145deg,#4c3915,#21180a)!important;color:#fff4e3!important;box-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-report-link :is(b,span,svg){color:#fff4e3!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-secondary-button,.mc-hub-text-button,.mc-hub-history-link){border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-table-link{padding-inline:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-table-link:hover{color:#f0d79b!important;background:transparent!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-table-link:focus-visible{outline:2px solid rgba(240,215,155,.52)!important;outline-offset:3px!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-next:not(.is-finished) .mc-hub-score-area b{color:#d9d1c2!important;text-shadow:none!important;filter:none!important;font-size:clamp(1.15rem,2.2vw,1.7rem)!important;font-weight:760!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-league-row{color:#d9d1c2!important;box-shadow:none!important;text-shadow:none!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-league-row.is-user{border-color:rgba(212,169,79,.34)!important;background:rgba(212,169,79,.12)!important;color:#fbf7ef!important;box-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-league-row>span:nth-child(2)>strong{color:#fbf7ef!important;text-shadow:none!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-league-row>span:not(:nth-child(2)){color:inherit!important;text-shadow:none!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-league-row>b{color:#fbf7ef!important;text-shadow:none!important;filter:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-table,.mc-hub-player-list,.mc-hub-past){scrollbar-color:rgba(192,143,52,.72) #080603!important}

/* Public Leaderboard, Directory and Pre-season routes. */
:is(#leaderboardView,#directoryView,.preseason-view){color:#d9d1c2!important}
#leaderboardView :is(.leaderboard-detail-header,.leaderboard-table-panel),
#directoryView :is(.directory-header,.directory-table-panel),
.preseason-view :is(.preseason-hero,.preseason-table-panel,.preseason-rules,.preseason-status-card,.preseason-unqualified-panel){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(27,23,15,.97),rgba(12,10,7,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.23)!important}
:is(#leaderboardView,#directoryView,.preseason-view) :is(h1,h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
:is(#leaderboardView,#directoryView,.preseason-view) :is(p,small,.leaderboard-detail-copy,.preseason-table-note){color:#d9d1c2!important}
:is(#leaderboardView,#directoryView) :is(.leaderboard-tabs,.directory-tabs){border-color:rgba(212,169,79,.18)!important;background:#0d0c0a!important}
:is(#leaderboardView,#directoryView) :is(.leaderboard-tabs,.directory-tabs) button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important}
:is(#leaderboardView,#directoryView) :is(.leaderboard-tabs,.directory-tabs) button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important}
#directoryView :is(.directory-search input,.directory-filters){border-color:rgba(212,169,79,.20)!important;background:#17150f!important;color:#fbf7ef!important}
#directoryView .directory-filter-group label>span,#directoryView .directory-search>span{color:#e5c377!important}
:is(#leaderboardView,#directoryView,.preseason-view) :is(.leaderboard-table-wrap,.directory-table-wrap,.preseason-table){border-color:rgba(212,169,79,.16)!important;background:#100e0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
:is(#leaderboardView,#directoryView,.preseason-view) table th{border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}
:is(#leaderboardView,#directoryView,.preseason-view) table td{border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
:is(#leaderboardView,#directoryView,.preseason-view) table tbody tr:hover{background:rgba(212,169,79,.07)!important}
:is(#leaderboardView,#directoryView,.preseason-view) :is(.pagination button,.back-button){border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
.preseason-view .preseason-rule-grid article{border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.70)!important}
/* Division thresholds, club crests, national flags and form/result colours remain semantic. */

/* World map and facility overlays: UI chrome only; illustrated map/interiors stay untouched. */
#worldView :is(.goat-world-header-summary,.goat-world-action-menu,.goat-world-player-detail-rail,.goat-world-inline-picker){border-color:rgba(212,169,79,.22)!important;background:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.97))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.26)!important;color:#d9d1c2!important}
#worldView .goat-world-inline-header{display:grid!important;grid-template-columns:42px auto minmax(0,1fr)!important;align-items:center!important;gap:12px!important;margin:0 0 8px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#d9d1c2!important}
#worldView .goat-world-inline-header::after{display:none!important}
#worldView .goat-world-inline-header>div{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:5px 10px!important;min-width:0!important}
#worldView .goat-world-inline-header :is(#goatWorldInteriorEyebrow,#goatWorldInteriorTitle){margin:0!important}
#worldView .goat-world-inline-header #goatWorldInteriorEyebrow{width:100%;color:#e5c377!important;font-size:.52rem!important}
#worldView .goat-world-inline-header #goatWorldInteriorTitle{font-size:1.05rem!important;line-height:1.1!important}
#worldView .goat-world-inline-header #goatWorldInteriorCopy{display:none!important}
#worldView .goat-world-rename-pitch{display:inline-flex!important;margin:0!important}
#worldView .goat-world-rename-pitch.hidden{display:none!important}
#worldView .goat-world-rename-pitch>button{min-height:30px!important;padding:0 10px!important}
#worldView .goat-world-back-icon{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid rgba(212,169,79,.30);border-radius:50%;background:rgba(13,12,10,.72);color:#e5c377;cursor:pointer;backdrop-filter:blur(10px)}
#worldView .goat-world-back-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#worldView .goat-world-back-icon:hover,#worldView .goat-world-back-icon:focus-visible{border-color:rgba(240,215,155,.66);background:rgba(33,28,19,.90);color:#fbf7ef;outline:2px solid rgba(240,215,155,.48);outline-offset:2px}
#worldView .goat-world-inline-interior{padding-top:6px!important}
#worldView :is(.goat-world-header-summary,.goat-world-action-menu,.goat-world-player-detail-rail,.goat-world-inline-picker,.goat-world-inline-header) :is(.eyebrow,h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
#worldView :is(.goat-world-header-summary,.goat-world-action-menu,.goat-world-player-detail-rail,.goat-world-inline-picker,.goat-world-inline-header) :is(p,small,span){color:#d9d1c2!important}
#worldView .goat-world-status-card{border-color:rgba(212,169,79,.34)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}
#worldView :is(.goat-world-action-close,.goat-world-modal-close,.world-compact-action,.goat-world-apartment-switch button){border-color:rgba(212,169,79,.25)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#worldView :is(.goat-world-picker-list,.goat-world-current-activity-list,.goat-world-player-filters){scrollbar-color:rgba(192,143,52,.72) #080603!important}
.goat-world-modal-shell{background:rgba(5,4,3,.86)!important;backdrop-filter:blur(10px)!important}
.goat-world-choice-card{border-color:rgba(212,169,79,.28)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:0 32px 90px rgba(0,0,0,.68)!important;color:#d9d1c2!important}
.goat-world-choice-card :is(.eyebrow,h2,strong){color:#fbf7ef!important}.goat-world-choice-card :is(p,small){color:#d9d1c2!important}

/* Mail window: Twitch/friendly status remains semantic, while app chrome is neutral. */
.mail-modal:not(.is-office-mail){display:none!important;background:rgba(5,4,3,.86)!important;backdrop-filter:blur(10px)!important}
.mail-modal-card{border-color:rgba(212,169,79,.24)!important;background:linear-gradient(145deg,#1b170f,#0b0907)!important;box-shadow:0 32px 90px rgba(0,0,0,.65)!important;color:#d9d1c2!important}
.mail-modal :is(.mail-modal-header,.mail-folder-toolbar,.mail-tabs,.mail-compose-actions,.mail-detail-actions){border-color:rgba(212,169,79,.16)!important;background:rgba(14,12,8,.74)!important}
.mail-modal :is(.mail-thread,.mail-message-detail,.mail-compose,.mail-conversation-pane,.mail-reading-pane){border-color:rgba(212,169,79,.14)!important;background:rgba(13,12,10,.70)!important}
.mail-modal .mail-thread:hover,.mail-modal .mail-thread.is-active{border-color:rgba(212,169,79,.42)!important;background:rgba(212,169,79,.09)!important}
.mail-modal :is(.mail-tabs button,.mail-detail-back,.mail-modal-close,.mail-detail-actions button,.mail-compose-actions button){border-color:rgba(212,169,79,.24)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
.mail-modal .mail-tabs button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important}
.mail-modal :is(input,textarea,.mail-recipient-control){border-color:rgba(212,169,79,.27)!important;background:#17150f!important;color:#fbf7ef!important}
.mail-modal .mail-recipient-suggestions{border-color:rgba(212,169,79,.26)!important;background:#17150f!important;box-shadow:0 18px 42px rgba(0,0,0,.56)!important}
.mail-modal :is(.mail-message-list,.mail-conversation-scroll,.mail-reading-pane){scrollbar-color:rgba(192,143,52,.72) #080603!important}
.mail-modal :is(.mail-empty,.mail-list-empty,.mail-filter-empty,.mail-reading-empty){border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.70)!important;color:#d9d1c2!important}
.mail-modal .mail-error{border-color:rgba(201,74,74,.42)!important;background:rgba(111,31,31,.18)!important;color:#f0a5a5!important}

/* Account setup/location/closure and finance decision dialogs. */
:is(.onboarding-modal,.location-confirm-modal,.close-account-modal,.finance-modal){background:rgba(5,4,3,.87)!important;backdrop-filter:blur(10px)!important}
.finance-modal-backdrop{background:rgba(5,4,3,.76)!important;backdrop-filter:blur(6px)!important}
:is(.onboarding-card,.location-confirm-card,.close-account-card,.finance-modal-card){border-color:rgba(212,169,79,.28)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:0 32px 90px rgba(0,0,0,.68)!important;color:#d9d1c2!important}
:is(.onboarding-card,.location-confirm-card,.close-account-card,.finance-modal-card) :is(.eyebrow,h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
:is(.onboarding-card,.location-confirm-card,.close-account-card,.finance-modal-card) :is(p,small,span){color:#d9d1c2!important}
:is(.onboarding-card,.location-confirm-card,.close-account-card,.finance-modal-card) :is(input,select,textarea){border-color:rgba(212,169,79,.28)!important;background:#17150f!important;color:#fbf7ef!important}
.onboarding-form label>span,.location-confirm-detail>span{color:#e5c377!important}
.onboarding-card .location-city-results{border-color:rgba(212,169,79,.26)!important;background:#17150f!important;box-shadow:0 18px 42px rgba(0,0,0,.56)!important}
.close-account-card{border-color:rgba(180,67,47,.42)!important}.close-account-card .danger-button{color:#fff4e3!important}
.finance-modal-actions button:not(#financeReleaseConfirm){border-color:rgba(180,67,47,.60)!important;background:linear-gradient(145deg,#7a3026,#451b17)!important;color:#fff4e3!important;box-shadow:none!important}
.finance-modal-actions #financeReleaseConfirm,.finance-modal-actions #financeReleaseConfirm.danger-button{border-color:rgba(111,208,142,.62)!important;background:linear-gradient(145deg,#3d7e50,#1d482e)!important;color:#fffdf6!important;box-shadow:none!important}
.finance-modal-actions button:not(#financeReleaseConfirm):hover:not(:disabled),.finance-modal-actions button:not(#financeReleaseConfirm):focus-visible{border-color:rgba(223,123,104,.76)!important;background:linear-gradient(145deg,#8c392d,#531f19)!important;color:#fffdf6!important;outline:2px solid rgba(223,123,104,.28)!important;outline-offset:2px!important}
.finance-modal-actions #financeReleaseConfirm:hover:not(:disabled),.finance-modal-actions #financeReleaseConfirm:focus-visible{border-color:rgba(151,224,172,.76)!important;background:linear-gradient(145deg,#4c915e,#255636)!important;color:#fffdf6!important;outline:2px solid rgba(151,224,172,.28)!important;outline-offset:2px!important}
.finance-modal-actions button:disabled{opacity:.45!important;cursor:not-allowed!important;box-shadow:none!important}

/* Public player dossier/modal: framing is warm; card rarity, ratings, flags and stat quality stay semantic. */
.player-modal{background:rgba(5,4,3,.88)!important;backdrop-filter:blur(10px)!important}
.player-profile-sheet,.player-modal-content{border-color:rgba(212,169,79,.26)!important;background:linear-gradient(145deg,#1b170f,#090806)!important;box-shadow:0 38px 110px rgba(0,0,0,.72)!important;color:#d9d1c2!important}
.player-dossier-loading{background:radial-gradient(circle at 50% 42%,rgba(212,169,79,.09),transparent 34%),#090705!important}
.player-dossier-loading>span{color:#e5c377!important}.player-dossier-loading>i{border-color:rgba(212,169,79,.18)!important;border-top-color:#d4a94f!important}.player-dossier-loading>strong{color:#fbf7ef!important}.player-dossier-loading>small{color:#d9d1c2!important}
.player-dossier-hero,.player-dossier-panel,.player-dossier-facts,.player-career-v4{border-color:rgba(212,169,79,.18)!important;background:linear-gradient(145deg,rgba(27,23,15,.96),rgba(11,10,8,.98))!important;box-shadow:none!important}
.player-dossier-hero-overlay{background:linear-gradient(90deg,rgba(9,7,5,.94),rgba(9,7,5,.68),rgba(9,7,5,.28))!important}
.player-dossier-identity :is(h1,h2,strong),.player-dossier-panel :is(h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
.player-dossier-identity :is(p,small,span),.player-dossier-panel :is(p,small,span){color:#d9d1c2!important}
.player-dossier-club-mark,.player-profile-badges>*{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.09)!important;color:#e5c377!important}
.player-career-table-v4{border-color:rgba(212,169,79,.16)!important;background:#100e0a!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
.player-career-table-v4 th{border-color:rgba(212,169,79,.16)!important;background:#17130d!important;color:#e5c377!important}.player-career-table-v4 td{border-color:rgba(212,169,79,.10)!important;color:#d9d1c2!important}
.player-modal :is(.player-modal-close,.player-modal-nav,.player-modal-previous,.player-modal-next,.player-dossier-actions button){border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}

/* Office live desktop chrome; the room photograph, cards and tactics pitch remain artwork. */
.office-live-upgrade-track{border-color:rgba(212,169,79,.14)!important;background:#0d0c0a!important}
.office-live-upgrade-track i{background:linear-gradient(90deg,#9c7128,#d4a94f,#f0d79b)!important;box-shadow:0 0 12px rgba(212,169,79,.22)!important}
.office-live-upgrade-copy small,.office-live-upgrade-footer small{color:#d9d1c2!important}
.office-live-upgrade-copy strong,.office-live-upgrade-footer strong{color:#fbf7ef!important}
.office-live-upgrade-image{border-color:rgba(212,169,79,.20)!important;background:#0d0c0a!important}
.office-squad-folder-back{border-color:rgba(212,169,79,.24)!important;background:linear-gradient(150deg,#3d311c,#1b160d)!important}
.office-squad-folder-front{border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,rgba(84,65,29,.96),rgba(31,24,13,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 -5px 16px rgba(0,0,0,.20)!important}
.office-squad-folder-front>span{border-color:rgba(212,169,79,.16)!important;background:rgba(8,7,5,.90)!important}
.office-squad-folder-front strong{color:#fbf7ef!important}.office-squad-folder-front small,.office-squad-folder-back small{color:#d9d1c2!important}.office-squad-folder-front em{color:#e5c377!important}
.office-desk-globe-beam{background:linear-gradient(90deg,rgba(212,169,79,.17),rgba(212,169,79,.035))!important}
.office-desk-globe-hint{border-color:rgba(212,169,79,.20)!important;background:rgba(8,7,5,.82)!important;color:#d9d1c2!important}

/* Legal/support and the standalone 404/500 documents. */
.legal-support-view{color:#d9d1c2!important}
:is(.legal-page-hero,.legal-support-grid>a,.legal-document>section,.support-contact-card){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(27,23,15,.97),rgba(11,10,8,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.20)!important}
:is(.legal-page-hero,.legal-support-grid>a,.legal-document>section) :is(h1,h2,h3,strong){color:#fbf7ef!important;text-shadow:none!important}
:is(.legal-page-hero,.legal-support-grid>a,.legal-document>section) :is(p,li,small,.legal-updated){color:#d9d1c2!important}
.legal-support-grid>a>span,.legal-document a,.legal-email,.legal-breadcrumb a{color:#e5c377!important}
.legal-support-grid>a:hover,.legal-support-grid>a:focus-visible{border-color:rgba(240,215,155,.58)!important;background:linear-gradient(145deg,rgba(55,43,20,.88),rgba(13,11,8,.98))!important;outline:none!important}
.legal-primary-button{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important}
.legal-breadcrumb{border-color:rgba(212,169,79,.16)!important;background:rgba(13,12,10,.72)!important;color:#d9d1c2!important}
.error-page-shell{background:#090705!important;color:#d9d1c2!important}
.error-page{border-color:rgba(212,169,79,.26)!important;background:radial-gradient(circle at 50% 0,rgba(212,169,79,.10),transparent 35%),linear-gradient(145deg,#1b170f,#0b0907)!important;box-shadow:0 28px 80px rgba(0,0,0,.60)!important}
.error-page h1{color:#fbf7ef!important;text-shadow:none!important}.error-page>.eyebrow{color:#e5c377!important}.error-page>p:not(.eyebrow){color:#d9d1c2!important}
.error-page nav a{border-color:rgba(212,169,79,.27)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important}
.error-page nav a:first-child{border-color:rgba(240,215,155,.48)!important;background:linear-gradient(180deg,#f0d79b,#d4a94f 48%,#9c7128)!important;color:#1a1207!important}

/* Browser-computed forensic cleanup: late, specific legacy rules below the
   original components still won on these descendants. */
body:not(.home-background) .world-gradient{background:linear-gradient(180deg,rgba(9,7,5,.18),rgba(9,7,5,.58) 58%,rgba(9,7,5,.86))!important;animation:none!important}
body:not(.home-background) .world-grid{background-image:linear-gradient(rgba(212,169,79,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(212,169,79,.035) 1px,transparent 1px)!important;opacity:.34!important}
.profile-tab-panel .eyebrow{color:#e5c377!important;border-color:transparent!important;text-shadow:none!important;outline-color:transparent!important}

/* Shared managed select — every enhanced dropdown, including generated ones. */
.goat-select>.goat-select-trigger{border-color:rgba(212,169,79,.30)!important;background:#17150f!important;color:#fbf7ef!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.045)!important;outline-color:transparent!important}
.goat-select>.goat-select-trigger:hover,.goat-select>.goat-select-trigger:focus-visible{border-color:rgba(240,215,155,.66)!important;background:#211c13!important;outline:2px solid rgba(240,215,155,.55)!important;outline-offset:2px!important}
.goat-select :is(.goat-select-value,.goat-select-caret){color:#e5c377!important;border-color:#e5c377!important;outline-color:transparent!important}
.goat-select-menu{border-color:rgba(212,169,79,.30)!important;background:#17150f!important;box-shadow:0 18px 45px rgba(0,0,0,.62)!important;scrollbar-color:rgba(192,143,52,.72) #080603!important}
.goat-select-menu .goat-select-option{border-color:rgba(212,169,79,.10)!important;background:transparent!important;color:#d9d1c2!important}
.goat-select-menu .goat-select-option:hover,.goat-select-menu .goat-select-option:focus-visible,.goat-select-menu .goat-select-option.is-selected{background:rgba(212,169,79,.13)!important;color:#fbf7ef!important;outline:none!important}

/* Overview progression is interface status, not rarity artwork. Position
   distribution remains an approved categorical data visualization. */
#profileOverviewPanel :is(.progression-level-block,.progression-track-block,.next-reward-block){border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,rgba(31,26,16,.94),rgba(13,11,8,.98))!important;box-shadow:none!important}
#profileOverviewPanel .progression-level-number{color:#f0d79b!important;text-shadow:none!important}
#profileOverviewPanel .xp-track{border-color:rgba(212,169,79,.22)!important;background:#0d0c0a!important}
#profileOverviewPanel .xp-track-fill{background:linear-gradient(90deg,#9c7128,#d4a94f,#f0d79b)!important;box-shadow:0 0 14px rgba(212,169,79,.22)!important}
#profileOverviewPanel .next-reward-block{border-left-color:#d4a94f!important}
#profileOverviewPanel .next-reward-block p{color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
#profileOverviewPanel .club-star-empty{border-color:rgba(212,169,79,.20)!important;background:rgba(13,12,10,.68)!important;color:#d9d1c2!important}
#profileLineupPanel .lineup-registered-content{border-top-color:rgba(212,169,79,.16)!important}

/* Competition active row and copy details. */
#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch) button.active{box-shadow:inset 0 0 0 1px rgba(212,169,79,.12)!important}
#profileCompetitionsPanel .competition-table-row.is-user{border-color:rgba(212,169,79,.48)!important;box-shadow:inset 3px 0 #d4a94f!important}
#profileCompetitionsPanel .competition-table-card>header{border-color:rgba(212,169,79,.16)!important;background:#17130d!important}
#profileCompetitionsPanel .competition-table-card>header strong{color:#e5c377!important}
#profileCompetitionsPanel .competition-table-card :is(small,p){color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}

/* Centre empty/current-match details. */
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-empty-icon{border-color:rgba(212,169,79,.30)!important;background:linear-gradient(145deg,#3a2c12,#171008)!important;color:#e5c377!important;box-shadow:none!important;outline-color:transparent!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-secondary-button,:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-secondary-button *{text-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-panel :is(p,small,dt){color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-panel>div:not([class]){border-color:rgba(212,169,79,.15)!important;background:rgba(13,12,10,.68)!important}

/* Finance charts use a warm categorical ramp; green/red cash-flow outcomes are unchanged. */
#profileFinancesPanel .finance-commitment-icon{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.10)!important;color:#fff4e3!important;outline-color:transparent!important;filter:none!important;opacity:1!important}
#profileFinancesPanel .management-asset-icon{background:currentColor!important;color:#fff4e3!important;outline-color:transparent!important;filter:none!important;opacity:1!important}
#profileFinancesPanel .finance-chart-filters{border-color:rgba(212,169,79,.18)!important;background:#0d0c0a!important}
#profileFinancesPanel .finance-chart-filters button{border-color:transparent!important;background:transparent!important;color:#d9d1c2!important;box-shadow:none!important}
#profileFinancesPanel .finance-chart-filters button.active{border-color:rgba(212,169,79,.48)!important;background:rgba(212,169,79,.16)!important;color:#f0d79b!important;box-shadow:none!important}
#profileFinancesPanel .finance-cashflow-chart text{fill:#d9d1c2!important}
#profileFinancesPanel .finance-cashflow-chart circle{stroke:#d4a94f!important}
#profileFinancesPanel .finance-donut{background:var(--donut)!important}
#profileFinancesPanel .finance-donut-legend p>i{background:var(--breakdown-color)!important}
#profileFinancesPanel :is(.finance-donut-legend p,.finance-commitment-list p){border-color:rgba(212,169,79,.14)!important}
#profileFinancesPanel :is(.finance-donut-legend em,.finance-commitment-copy em,.finance-ledger-card header span){color:#d9d1c2!important;text-shadow:none!important;border-color:transparent!important;outline-color:transparent!important}

/* Contract detail descendants that retained the old cyan agency skin. */
#profileContractsPanel .contracts-kpi-v2 article{background-image:linear-gradient(90deg,rgba(9,7,5,.94),rgba(21,17,10,.62),rgba(9,7,5,.24))!important}
#profileContractsPanel .contract-toolbar-v3{border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
#profileContractsPanel .contract-sort-header.active{color:#e5c377!important;border-color:transparent!important;outline-color:transparent!important}
#profileContractsPanel tr.selected{background:linear-gradient(90deg,rgba(212,169,79,.16),rgba(13,12,10,.72))!important;box-shadow:inset 3px 0 #d4a94f!important}
#profileContractsPanel :is(.contract-player-cell .portrait,.contract-portrait-frame){border-color:rgba(212,169,79,.28)!important;background:linear-gradient(145deg,#332711,#171008)!important}
#profileContractsPanel .contract-player-cell img{background:#17150f!important}
#profileContractsPanel :is(.contract-detail-panel,.contract-urgent-panel){background-image:linear-gradient(145deg,#17150f,#0d0c0a)!important}
#profileContractsPanel .management-asset-icon{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important;outline-color:transparent!important;filter:none!important}
#profileContractsPanel :is(.contract-hero-score,.renewal-outlook,.contract-status,.finance-empty){border-color:rgba(212,169,79,.20)!important}
#profileContractsPanel .contract-hero-score-v5{border-color:rgba(212,169,79,.34)!important;background:radial-gradient(circle at 50% 32%,rgba(212,169,79,.14),#17150f 72%)!important;box-shadow:none!important}
#profileContractsPanel .contract-hero-score-v5 span{color:#d9d1c2!important}
#profileContractsPanel .contract-rating-badge{border-color:rgba(212,169,79,.28)!important;background:radial-gradient(circle at 50% 32%,rgba(212,169,79,.12),#17150f 72%)!important;color:#fbf7ef!important;box-shadow:none!important}
#profileContractsPanel :is(.contract-hero-score strong,.renewal-outlook strong,.contract-detail-panel strong){color:#fbf7ef!important;border-color:transparent!important;outline-color:transparent!important}
#profileContractsPanel :is(.contract-player-cell small,.contract-detail-panel small,.contract-detail-panel span,.contract-pagination,.contract-pagination div){color:#d9d1c2!important;border-color:rgba(212,169,79,.14)!important;outline-color:transparent!important}
#profileContractsPanel .contract-pagination>span{font-size:.68rem!important;color:#d9d1c2!important}
#profileContractsPanel .contracts-kpi-contracted>div>span{color:#d9d1c2!important;font-weight:760!important}
#profileContractsPanel .contracts-kpi-wage>div>span{color:#e5c377!important;font-weight:850!important}
#profileContractsPanel .contracts-kpi-expiring>div>span{color:#e7b56f!important;font-weight:900!important}
#profileContractsPanel .contracts-kpi-loyalty>div>span{color:#c9c0b1!important;font-weight:760!important}
#profileContractsPanel .contract-loyalty-line.low{background:#635c50!important}
#profileContractsPanel .contract-primary-cta{box-shadow:0 8px 20px rgba(80,55,13,.28)!important}

/* Stadium data framing. Image-backed windows remain approved artwork, but
   their surrounding charts/placeholders and all KPI icons are neutral. */
#profileStadiumPanel .management-asset-icon{border-color:rgba(212,169,79,.28)!important;background:#fff4e3!important;color:#fff4e3!important;outline-color:transparent!important;filter:none!important;opacity:1!important}
#profileStadiumPanel :is(.goat-premium-empty,.stadium-chart-empty){border-color:rgba(212,169,79,.20)!important;background:transparent!important;color:#d9d1c2!important}
#profileStadiumPanel .stadium-revenue-donut{background:conic-gradient(#d4a94f 0 var(--stadium-revenue-angle),rgba(212,169,79,.13) var(--stadium-revenue-angle) 100%)!important}
#profileStadiumPanel .stadium-revenue-donut:before{background:#17150f!important;box-shadow:inset 0 0 0 1px rgba(212,169,79,.16)!important}
#profileStadiumPanel .stadium-data-card em{color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
#profileStadiumPanel .stadium-image-path p.current{outline-color:#d4a94f!important}
#profileStadiumPanel .stadium-next-match.premium>div span{align-items:baseline;font-size:.62rem!important}
#profileStadiumPanel .stadium-next-match.premium>div b{font-size:.82rem!important;font-weight:850!important;color:#fbf7ef!important}
#profileStadiumPanel .stadium-revenue-layout>p{grid-template-columns:minmax(0,1fr) auto!important}

/* Inventory commands are product actions; the embedded/reconnect Twitch
   purple is intentionally preserved as third-party identity. */
#profileInventoryPanel .inventory-help code{border-color:rgba(212,169,79,.22)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}
#profileInventoryPanel .inventory-chat-heading .eyebrow{color:#e5c377!important}

/* Legacy badge chrome uses gold; completion still uses green. */
#profileLegacyPanel .mission-progress{background:rgba(212,169,79,.12)!important}
#profileLegacyPanel .achievement-badge{--badge-color:#d4a94f!important}
#profileLegacyPanel .badge-icon,#profileLegacyPanel .achievement-badge>span{border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important;outline-color:transparent!important}

/* Generated Settings articles and development-only controls. */
#profileSettingsPanel .settings-grid>article{border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:none!important}
#profileSettingsPanel .settings-grid>article>span{color:#e5c377!important;border-color:transparent!important;outline-color:transparent!important}
#profileSettingsPanel .settings-grid button:not(.danger-button){border-color:rgba(212,169,79,.26)!important;background:rgba(212,169,79,.08)!important;color:#e5c377!important;outline-color:transparent!important}
#profileSettingsPanel .settings-grid b{color:#f0d79b!important;border-color:transparent!important;outline-color:transparent!important}
#profileDevPanel .dev-console{border-color:rgba(212,169,79,.20)!important;background:linear-gradient(145deg,#1c1811,#0b0907)!important;box-shadow:none!important}
#profileDevPanel .dev-console-hero{border-color:rgba(212,169,79,.22)!important;background:linear-gradient(145deg,#2a2112,#0d0c0a)!important}
#profileDevPanel .dev-console-hero .eyebrow{color:#e5c377!important}
#profileDevPanel :is(.dev-mode-state,.dev-mode-control,.dev-console-sleep){border-color:rgba(212,169,79,.20)!important;background:rgba(13,12,10,.72)!important}
#profileDevPanel :is(.dev-mode-state,.dev-mode-control,.dev-console-sleep) :is(span,small,p){color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
#profileDevPanel button{border-color:rgba(212,169,79,.28)!important;background:rgba(212,169,79,.10)!important;color:#e5c377!important}

.legal-updated{border-color:rgba(212,169,79,.24)!important;background:#17150f!important;color:#d9d1c2!important}

#profileCalendarPanel .goat-calendar-legend i.is-league{background:#4c3915!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-legend i.is-cup{background:#c9873f!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-legend i.is-friendly{background:#5fa06d!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-legend i.is-event{background:#d4a94f!important;box-shadow:none!important}

#profileFinancesPanel :is(.finance-balance-card,.finance-bank-kpis-v3,.finance-bank-main-v3,.finance-bank-support-v3) :is(span,small,em){color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important;text-shadow:none!important}
#profileFinancesPanel :is(.finance-balance-card,.finance-bank-kpis-v3,.finance-bank-main-v3,.finance-bank-support-v3) :is(strong,b){color:#fbf7ef!important;border-color:transparent!important;outline-color:transparent!important;text-shadow:none!important}

#profileContractsPanel :is(.contracts-kpi-v2 article,.contract-detail-panel,.contract-urgent-panel){background-color:#0d0c0a!important;background-image:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.98))!important}
#profileContractsPanel :is(.contract-table-panel,.contract-detail-panel,.contract-urgent-panel,.contract-toolbar-v3) :is(p,small,span,footer,div:not(.contract-portrait-frame):not(.contract-hero-score)){border-color:rgba(212,169,79,.14)!important;outline-color:transparent!important;text-shadow:none!important}
#profileContractsPanel :is(.contract-table-panel,.contract-detail-panel,.contract-urgent-panel) :is(p,small,span,footer){color:#d9d1c2!important}
#profileContractsPanel :is(.contract-table-panel,.contract-detail-panel,.contract-urgent-panel) :is(strong,b){color:#fbf7ef!important}
#profileContractsPanel .contract-status{background:rgba(212,169,79,.08)!important;color:#e5c377!important}

#profileStadiumPanel :is(.stadium-fan-card-v3,.stadium-level-board-v3){background-color:#0d0c0a!important;background-image:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.98))!important}
#profileStadiumPanel .stadium-next-match.premium{background-color:#0d0c0a!important;background-image:linear-gradient(145deg,rgba(27,23,15,.82),rgba(11,10,8,.92))!important}
#profileStadiumPanel .stadium-data-card.premium{background-color:#0d0c0a!important;background-image:linear-gradient(145deg,rgba(27,23,15,.76),rgba(11,10,8,.88))!important}
#profileStadiumPanel .stadium-data-card.premium.revenue{
  border:0!important;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
}
#profileStadiumPanel .stadium-data-card.premium.revenue .stadium-revenue-layout{
  grid-template-columns:1fr!important;
  place-items:center!important;
  align-content:center!important;
  gap:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:0!important;
}
#profileStadiumPanel .stadium-data-card.premium.revenue .stadium-revenue-donut{
  width:176px!important;
  height:176px!important;
}
#profileStadiumPanel .stadium-data-card.premium.revenue .stadium-revenue-donut:before{
  width:118px!important;
  height:118px!important;
}
#profileStadiumPanel .stadium-data-card.premium.revenue .stadium-revenue-donut strong{
  font-size:1.2rem!important;
  line-height:1.05!important;
  font-variant-numeric:tabular-nums;
}
#profileStadiumPanel .stadium-data-card.premium.revenue .stadium-revenue-donut small{
  margin-top:6px!important;
  font-size:.68rem!important;
}
#profileStadiumPanel :is(.stadium-fan-card-v3,.stadium-level-board-v3,.stadium-next-match.premium,.stadium-data-card.premium) :is(span,small,p,em){border-color:rgba(212,169,79,.14)!important;outline-color:transparent!important;text-shadow:none!important}
#profileStadiumPanel :is(.stadium-fan-card-v3,.stadium-level-board-v3,.stadium-next-match.premium,.stadium-data-card.premium) :is(p,small,em){color:#d9d1c2!important}

#directoryView .directory-tabs button.active,#leaderboardView .leaderboard-tabs button.active{box-shadow:inset 0 0 0 1px rgba(212,169,79,.12)!important}
#directoryView :is(.directory-sort,.directory-attributes-heading,.goalkeeper-attributes-hint){border-color:rgba(212,169,79,.22)!important;background:rgba(212,169,79,.07)!important;color:#e5c377!important}
#leaderboardView td.metric-active{background:rgba(212,169,79,.12)!important;box-shadow:inset 3px 0 #d4a94f!important}
#profileSquadPanel .squad-age-range-inputs em{color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
#profileCompetitionsPanel .competition-round-card>header{border-bottom-color:rgba(212,169,79,.16)!important;background:#17130d!important}
#profileCompetitionsPanel .competition-round-card>header strong{color:#e5c377!important;border-color:transparent!important;outline-color:transparent!important}
#profileCompetitionsPanel .competition-round-empty small{color:#d9d1c2!important;border-color:transparent!important;outline-color:transparent!important}
#profileCompetitionsPanel .goat-premium-empty{
  border-color:rgba(212,169,79,.18)!important;
  background:#0d0c0a!important;
  color:#d9d1c2!important;
  box-shadow:none!important;
}
#profileCompetitionsPanel .goat-premium-empty strong{color:#fbf7ef!important}
#profileCompetitionsPanel .goat-premium-empty span{color:#d9d1c2!important}
:is(#profileTacticsPanel,.office-app-scroll #profileTacticsPanel) .tc5-attack-lanes input:checked+span{box-shadow:inset 0 0 0 1px rgba(212,169,79,.16)!important}
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-fallback-stats div{border-color:rgba(212,169,79,.18)!important;background:linear-gradient(145deg,rgba(27,23,15,.92),rgba(11,10,8,.96))!important}
#profileFinancesPanel .finance-ledger-card>header{border-bottom-color:rgba(212,169,79,.16)!important}
.finance-loading{border-color:rgba(212,169,79,.20)!important;background:rgba(13,12,10,.70)!important;color:#d9d1c2!important}
#profileContractsPanel .contract-toolbar.agency.contract-toolbar-v3{border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important}
#profileContractsPanel .contract-sort-header i{color:#e5c377!important;border-color:transparent!important;outline-color:transparent!important}
#profileContractsPanel :is(.contract-loyalty-table>i,.contract-loyalty-line){background:rgba(212,169,79,.14)!important}

/* Live Directory attribute controls have no component class of their own. */
#directoryView .directory-attributes button,
#directoryView .directory-attributes-cell button,
#directoryView .attribute-sort-menu button {
  border-color: rgba(212,169,79,.20) !important;
  background: rgba(212,169,79,.07) !important;
  color: #e5c377 !important;
}

/* Directory cleanup: the table is the only elevated surface. Search and
   navigation remain useful, but no longer create spare dark panels or chips. */
#directoryView .directory-nav-row .back-button{
  min-height:0!important;
  padding:0!important;
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
#directoryView .directory-nav-row .back-button:hover{color:#f0d79b!important}
#directoryView .directory-nav-row .back-button:focus-visible{
  color:#fffdf6!important;
  outline:2px solid rgba(240,215,155,.72)!important;
  outline-offset:4px!important;
}
#directoryView .directory-header.section-frame{
  min-height:0!important;
  margin:0 0 14px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#directoryView .directory-header.section-frame::before{display:none!important}
#directoryView .directory-search{gap:6px!important}
#directoryView .directory-search input{
  border-color:rgba(212,169,79,.28)!important;
  background:#17150f!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035)!important;
}
#directoryView .directory-search input:focus{
  border-color:#e5c377!important;
  outline:2px solid rgba(229,195,119,.24)!important;
  outline-offset:2px!important;
}
#directoryView .directory-table-panel.section-frame{
  margin-top:0!important;
  padding:20px 22px 22px!important;
  border:1px solid rgba(212,169,79,.22)!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(28,24,16,.97),rgba(12,10,7,.99))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 14px 32px rgba(0,0,0,.23)!important;
  clip-path:none!important;
}
#directoryView .directory-table-panel.section-frame::before{display:none!important}
#directoryView .directory-filters{
  gap:14px!important;
  margin-bottom:14px!important;
  padding-bottom:14px!important;
  border-bottom-color:rgba(212,169,79,.16)!important;
  background:transparent!important;
}
#directoryView .directory-filter-group label>span{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#directoryView .directory-filters select{
  border-color:rgba(212,169,79,.24)!important;
  background:#17150f!important;
  color:#fbf7ef!important;
}
#directoryView .directory-table-wrap{
  border:1px solid rgba(212,169,79,.16)!important;
  border-radius:12px!important;
  background:#100e0a!important;
  overflow:auto!important;
}
#directoryView .directory-sort,
#directoryView .directory-attributes-heading{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
}
#directoryView .directory-sort:hover,
#directoryView .directory-sort:focus-visible{color:#f0d79b!important}
#directoryView .attribute-sort-menu button{
  border-color:rgba(212,169,79,.22)!important;
  background:transparent!important;
  color:#e5c377!important;
}
#directoryView .attribute-sort-menu button.active{
  border-color:rgba(240,215,155,.56)!important;
  background:rgba(212,169,79,.13)!important;
  color:#fff4df!important;
}
/* statTone() supplies the quality variable. This restores it after the
   generic directory-button rule above so every player uses real stat bands. */
#directoryView .directory-attributes .directory-stat{
  border-color:color-mix(in srgb,var(--stat-color) 68%,rgba(255,255,255,.18))!important;
  background:var(--stat-color)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 3px 8px color-mix(in srgb,var(--stat-color) 16%,transparent)!important;
  color:#1a1207!important;
}
#directoryView .directory-attributes .directory-stat :is(b,span){color:#1a1207!important}
@media (max-width:900px){
  #directoryView .directory-table-panel.section-frame{padding:16px!important;border-radius:14px!important}
  #directoryView .directory-header{margin-bottom:12px!important}
}

/* Loading is a first-class Tactics state and uses the same warm shell. */
.tactics-loading {
  border-color: rgba(212,169,79,.20) !important;
  background: rgba(13,12,10,.80) !important;
  color: #d9d1c2 !important;
}

/* Responsive separators inherit the system colour instead of the legacy
   mobile-only blue declared inside earlier media queries. */
#profileTacticsPanel .tc5-lineup-summary > div {
  border-bottom-color: rgba(212,169,79,.14) !important;
}
#profileObjectivesPanel .mission-reward {
  border-top-color: rgba(212,169,79,.14) !important;
}

/* Public club profile chrome. Public profiles use the same panels as the
   owner dashboard but do not receive the dashboard-mode ancestor. */
#profileView .profile-tabs {
  border-color: rgba(212,169,79,.22) !important;
  background: rgba(23,21,15,.88) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045) !important;
}
#profileView .profile-tabs button {
  border-color: transparent !important;
  background: transparent !important;
  color: #d9d1c2 !important;
  box-shadow: none !important;
}
#profileView .profile-tabs button:hover,
#profileView .profile-tabs button:focus-visible,
#profileView .profile-tabs button.active {
  border-color: rgba(212,169,79,.48) !important;
  background: rgba(212,169,79,.14) !important;
  color: #f0d79b !important;
  box-shadow: inset 0 0 0 1px rgba(212,169,79,.08) !important;
  outline-color: #e5c377 !important;
}
#profileView .manager-label,
#profileOverviewPanel .progression-overline,
#profileOverviewPanel .progression-track-heading b {
  color: #e5c377 !important;
  border-color: transparent !important;
  outline-color: transparent !important;
}
#profileOverviewPanel .xp-track {
  border-color: rgba(212,169,79,.20) !important;
  background: #0d0c0a !important;
}
#profileOverviewPanel .xp-track-fill {
  background: linear-gradient(90deg,#9c7128,#d4a94f 58%,#f0d79b) !important;
  box-shadow: 0 0 22px rgba(212,169,79,.25) !important;
}

/* Rating/position plates are interface labels layered over rarity-aware card
   frames. The rarity frame remains untouched; only the generic badge is warm. */
.lineup-pitch-card .lineup-card-visual > strong,
.lineup-pitch-card .lineup-card-position,
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-visual > strong,
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-position {
  border-color: rgba(212,169,79,.40) !important;
  background: linear-gradient(145deg,rgba(58,44,20,.96),rgba(24,18,9,.96)) !important;
  box-shadow: 0 3px 9px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#profileOverviewPanel .club-star-empty > span {
  color: #e5c377 !important;
  border-color: transparent !important;
  outline-color: transparent !important;
}

/* Final targeted cleanup: the World facility header is a compact utility row,
   not a hero banner. This override also removes the legacy fixed-height gap. */
#worldView .goat-world-inline-header {
  min-height: 42px !important;
}
#worldView .goat-world-inline-layout {
  margin-top: 8px !important;
}

/* Finance uses the product's warm data palette throughout. Positive/negative
   account values still retain their established semantic green/red colours. */
#profileFinancesPanel .finance-cashflow-chart .finance-chart-line {
  stroke: #d4a94f !important;
  filter: drop-shadow(0 0 5px rgba(212,169,79,.24)) !important;
}
#profileFinancesPanel .finance-cashflow-chart .finance-chart-area {
  fill: rgba(212,169,79,.10) !important;
}
#profileFinancesPanel .finance-cashflow-chart stop:first-child {
  stop-color: #d4a94f !important;
}
#profileFinancesPanel .finance-cashflow-chart stop:last-child {
  stop-color: #d4a94f !important;
}
#profileFinancesPanel .finance-cashflow-chart circle {
  fill: #17150f !important;
}
#profileFinancesPanel .finance-commitment-list > p {
  border-color: rgba(212,169,79,.18) !important;
  background: linear-gradient(180deg,#1c1810,#0d0c0a) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}

/* Final visual-correction pass: targeted active-rule fixes only. --------- */

/* Construction projects keep their established category identity from the
   live dashboard payload. The surrounding card stays warm-neutral; only the
   edge, image keyline and progress indicator carry the category accent. */
.office-live-dashboard .office-live-upgrade-card {
  border-left-color: color-mix(in srgb,var(--widget-accent) 62%,#d4a94f) !important;
  background:
    radial-gradient(105% 105% at 100% 0%,color-mix(in srgb,var(--widget-accent) 27%,transparent),transparent 58%),
    linear-gradient(145deg,rgba(28,24,16,.97),rgba(11,9,7,.98)) !important;
}
.office-live-dashboard .office-live-upgrade-image {
  border-color: color-mix(in srgb,var(--widget-accent) 46%,rgba(212,169,79,.24)) !important;
  background: #0d0c0a !important;
}
.office-live-dashboard .office-live-upgrade-progress > .office-live-upgrade-track i {
  background: linear-gradient(90deg,color-mix(in srgb,var(--widget-accent) 72%,#9c7128),var(--widget-accent)) !important;
  box-shadow: 0 0 8px color-mix(in srgb,var(--widget-accent) 28%,transparent) !important;
}

/* Tablet Mail's body and view retained the original #06080d after the inner
   panes had already migrated. These exact office-only roots close that gap. */
.mail-modal.is-office-mail .mail-modal-body,
.mail-modal.is-office-mail .mail-view {
  background: #0d0c0a !important;
}
.mail-modal.is-office-mail .mail-two-pane {
  background: linear-gradient(145deg,rgba(23,21,15,.58),rgba(11,10,8,.72)) !important;
}
.mail-modal.is-office-mail .mail-tabs {
  background: #100e0a !important;
}
.mail-modal.is-office-mail :is(.mail-conversation-pane,.mail-reading-pane) {
  background: rgba(13,12,10,.82) !important;
}
.mail-modal.is-office-mail :is(.mail-compose,.mail-message-detail,.mail-reading-empty) {
  border-color: rgba(212,169,79,.16) !important;
  background: rgba(13,12,10,.74) !important;
}

/* Starting Plan and Automated Reactions are layout columns. Their late header
   fill was the square strip visible on both desktop and the Office tablet. */
#profileTacticsPanel :is(.tc5-starting,.tc5-automation) > header {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* The invisible reserved scrollbar gutter clipped the Registered Squad header
   on the right. Bench used a separate inset-padding rule, so it is normalised
   independently and its list receives the content padding instead. */
#profileLineupPanel .lineup-available-panel {
  scrollbar-gutter: auto !important;
}
#profileLineupPanel :is(.lineup-panel-summary,.lineup-roles-summary-toggle) {
  box-sizing: border-box !important;
  width: 100% !important;
  border-radius: 21px 21px 0 0 !important;
}
#profileLineupPanel :is(.lineup-available-panel,.lineup-roles-panel):not([open]) > :is(.lineup-panel-summary,.lineup-roles-summary-toggle) {
  border-radius: 21px !important;
}
#profileLineupPanel .lineup-bench-panel {
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}
#profileLineupPanel .lineup-bench-panel > .lineup-side-heading {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 70px !important;
  padding: 16px 18px !important;
  border-radius: 21px 21px 0 0 !important;
}
#profileLineupPanel .lineup-bench-panel > #lineupBench {
  box-sizing: border-box !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 11px 13px 13px !important;
  overflow-y: auto !important;
}

/* Cards view presents the official collectible directly. The button remains
   the accessible hit target and receives a restrained warm keyboard outline. */
#profileSquadPanel .card-grid:not(.squad-list-mode) .squad-player-tile {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#profileSquadPanel .card-grid:not(.squad-list-mode) .squad-player-tile:hover {
  background: transparent !important;
  filter: brightness(1.04) !important;
}
#profileSquadPanel .card-grid:not(.squad-list-mode) .squad-player-tile:focus-visible {
  outline: 2px solid rgba(240,215,155,.78) !important;
  outline-offset: 5px !important;
}
/* The official card template already owns the cut-corner silhouette. Legacy
   rarity hover shadows paint against the inner element's rectangular border
   box, while the GOAT tile shine paints across the full square button. Keep
   Squad's shared 3D transform, but remove those two backing layers here. */
#profileSquadPanel .card-grid:not(.squad-list-mode) .squad-player-tile .footballer-card.has-card-template {
  box-shadow: none !important;
}
#profileSquadPanel .card-grid:not(.squad-list-mode) .squad-player-tile::after {
  content: none !important;
  display: none !important;
}

/* Lineup and Tactics use the exact sizing/type contract shown in the approved
   preview. Colour variants retain their action meaning. */
#profileLineupPanel :is(#lineupNewPreset,#lineupRenamePreset,#lineupDeletePreset,#lineupResetButton,#lineupVisibilityButton,#lineupSaveButton),
#profileTacticsPanel :is(.tc5-clear-reactions,.tc5-remove-branch,.tc5-planned-subs button,.tc5-modal>footer button,.tc5-bottom-bar>button) {
  min-height: 42px !important;
  padding: 0 17px !important;
  border-radius: 6px !important;
  clip-path: none !important;
  font-family: var(--body) !important;
  font-size: .68rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
#profileLineupPanel :is(#lineupNewPreset,#lineupRenamePreset,#lineupResetButton,#lineupVisibilityButton) {
  border-color: rgba(212,169,79,.28) !important;
  background: rgba(212,169,79,.06) !important;
  color: #f0d79b !important;
  box-shadow: none !important;
}
#profileLineupPanel :is(#lineupNewPreset,#lineupRenamePreset,#lineupResetButton,#lineupVisibilityButton):is(:hover,:focus-visible):not(:disabled) {
  border-color: rgba(240,215,155,.66) !important;
  background: rgba(212,169,79,.16) !important;
  color: #fbf7ef !important;
  outline: none !important;
}
#profileLineupPanel #lineupSaveButton,
#profileTacticsPanel .tc5-bottom-bar>button,
#profileTacticsPanel .tc5-modal>footer button {
  border-color: rgba(212,169,79,.46) !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  color: #fff4e3 !important;
  box-shadow: none !important;
}
#profileTacticsPanel :is(.tc5-clear-reactions,.tc5-remove-branch,.tc5-planned-subs button.remove) {
  border-color: rgba(255,94,109,.25) !important;
  background: rgba(92,30,23,.42) !important;
  color: #ff5968 !important;
  box-shadow: none !important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button {
  border-color: rgba(255,94,109,.25) !important;
  background: rgba(92,30,23,.42) !important;
  color: #ff5968 !important;
  box-shadow: none !important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button span {
  color: #ff5968 !important;
  -webkit-text-fill-color: #ff5968 !important;
}
#profileLineupPanel #lineupDeletePreset.lineup-delete-button img {
  filter: brightness(0) saturate(100%) invert(49%) sepia(92%) saturate(1877%) hue-rotate(319deg) brightness(103%) contrast(101%) !important;
}

/* Match Centre focus/current indicators are warm UI state. Team, event and
   outcome colours remain untouched. */
#matchCentreView .mc-hub-page-header .eyebrow i {
  background: linear-gradient(90deg,#d4a94f,transparent) !important;
  box-shadow: none !important;
}
#matchCentreView :is(.mc-hub-club-logo,.mc-hub-empty-icon,.mc-hub-league-row.is-user) {
  box-shadow: none !important;
}
#matchCentreView .mc-hub-empty-icon {
  border-color: rgba(212,169,79,.30) !important;
  background: linear-gradient(145deg,#3a2c12,#171008) !important;
  color: #e5c377 !important;
}
#matchCentreView .mc-hub-league-row.is-user {
  border-color: rgba(212,169,79,.48) !important;
  background: linear-gradient(90deg,rgba(92,67,24,.72),rgba(34,26,13,.76)) !important;
  color: #fbf7ef !important;
}
#matchCentreView :is(.mc-hub-primary-button,.mc-hub-report-link) {
  border-color: rgba(240,215,155,.52) !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  color: #fff4e3 !important;
  box-shadow: none !important;
}
#matchCentreView :is(.mc-hub-primary-button,.mc-hub-report-link) :is(span,b,svg) {
  color: #fff4e3 !important;
  filter: none !important;
  text-shadow: none !important;
}
#matchCentreView :is(.mc-player-marker.is-current,.mc-player-marker.is-receiver) .mc-player-number {
  box-shadow: 0 0 0 4px rgba(212,169,79,.24),0 0 14px rgba(212,169,79,.20) !important;
}
#matchCentreView :is(.mc-momentum-centre-line,.mc-momentum-column>i) {
  box-shadow: none !important;
}
#matchCentreView .mc-goal-overlay {
  color: #fbf7ef !important;
  text-shadow: 0 8px 28px rgba(0,0,0,.75) !important;
}

/* Match Report tabs: one warm data language. Pitch grass and semantic
   success/warning/danger/event colours are deliberately not included here. */
.centre-report-body :is(.mc-report-popup-tactic-grid div,.mc-report-tactic-grid div,.mc-report-summary-grid div) {
  border-color: rgba(212,169,79,.18) !important;
  background: linear-gradient(145deg,rgba(28,24,16,.94),rgba(13,11,8,.96)) !important;
  box-shadow: none !important;
}
.centre-report-body :is(.mc-report-popup-tactic-grid dt,.mc-report-tactic-grid dt,.mc-report-summary-grid dt) {
  color: #d9d1c2 !important;
}
.centre-report-body :is(.mc-report-popup-tactic-grid dd,.mc-report-tactic-grid dd,.mc-report-summary-grid dd) {
  border-color: rgba(212,169,79,.46) !important;
  color: #fff4e3 !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  box-shadow: none !important;
}
.centre-report-body .mc-report-stat-periods button {
  border-color: rgba(212,169,79,.22) !important;
  background: rgba(212,169,79,.06) !important;
  color: #d9d1c2 !important;
  box-shadow: none !important;
}
.centre-report-body .mc-report-stat-periods button.is-active {
  border-color: rgba(212,169,79,.52) !important;
  background: rgba(212,169,79,.17) !important;
  color: #f0d79b !important;
}
.centre-report-body .mc-report-stat-row .mc-report-stat-bar {
  background: #21190e !important;
  box-shadow: inset 0 0 0 1px rgba(212,169,79,.10) !important;
}
.centre-report-body .mc-report-stat-row .mc-report-stat-bar em.is-home {
  background: linear-gradient(90deg,#9c7128,#f0d79b) !important;
  box-shadow: none !important;
}
.centre-report-body .mc-report-stat-row .mc-report-stat-bar em.is-away {
  background: linear-gradient(90deg,#6e6045,#d9d1c2) !important;
  box-shadow: none !important;
}
.centre-report-body .mc-report-key-timeline .mc-report-event-centre > b {
  color: #fbf7ef !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  box-shadow: 0 0 0 4px #0d0c0a,0 7px 18px rgba(0,0,0,.24) !important;
}
.centre-report-body .mc-report-event-divider span,
.centre-report-body .mc-report-event-ball,
.centre-report-body .mc-report-event-save,
.centre-report-body .mc-report-event-dot,
.centre-report-body .mc-report-event-sub {
  border-color: rgba(212,169,79,.24) !important;
  background: #17150f !important;
  color: #fbf7ef !important;
}
.centre-report-body .mc-report-player-portrait[class*="rarity-"] {
  border-color: color-mix(in srgb,var(--rarity-color) 72%,#f5ead0) !important;
  background:
    radial-gradient(circle at 50% 12%,color-mix(in srgb,var(--rarity-color) 42%,transparent),transparent 58%),
    linear-gradient(145deg,color-mix(in srgb,var(--rarity-color) 24%,#241d12),#0d0c0a) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--rarity-color) 24%,transparent) !important;
}
.centre-report-body .mc-report-player-filter .goat-select {
  width: min(100%,280px) !important;
}
.centre-report-body :is(.mc-report-player-table-wrap,.mc-report-key-timeline) {
  scrollbar-color: rgba(192,143,52,.72) #080603 !important;
}

/* Club-embedded Match Centre is rendered in profile panels rather than the
   standalone #matchCentreView. Match its active controls and title marker to
   the same warm, shadow-free contract. */
:is(#profileCentrePanel,#profileHistoryPanel) .mc-hub-page-header .eyebrow i {
  background: linear-gradient(90deg,#d4a94f,transparent) !important;
  box-shadow: none !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-primary-button,.mc-hub-report-link) {
  border-color: rgba(240,215,155,.52) !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  color: #fff4e3 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-primary-button,.mc-hub-report-link) :is(span,b,svg) {
  color: #fff4e3 !important;
  filter: none !important;
  text-shadow: none !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-primary-button,.mc-hub-secondary-button,.mc-hub-report-link):hover:not(:disabled) {
  box-shadow: 0 10px 24px rgba(0,0,0,.30) !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-primary-button,.mc-hub-secondary-button,.mc-hub-match-row,.mc-hub-player-row,.mc-hub-text-button,.mc-hub-report-link):focus-visible {
  outline: 2px solid #f0d79b !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-club-logo.is-small,.mc-hub-club-logo.is-tiny) {
  border-color: rgba(212,169,79,.27) !important;
  background: linear-gradient(145deg,rgba(58,44,18,.88),rgba(13,10,7,.96)) !important;
  box-shadow: inset 0 0 14px rgba(212,169,79,.06),0 5px 14px rgba(0,0,0,.22) !important;
}
:is(#profileCentrePanel,#profileHistoryPanel) :is(.mc-hub-club-logo.is-small,.mc-hub-club-logo.is-tiny).is-fallback b {
  color: #f0d79b !important;
}

/* Remaining report readouts were cool-coloured text/badges rather than team,
   rating or event semantics. Keep real crests, ratings and rarity untouched. */
.centre-report-body .mc-report-formation-team > footer .mc-report-formation-state small,
.centre-report-body .mc-report-formation-team > footer > i,
.centre-report-body .mc-report-player-filter label > span,
.centre-report-body .mc-report-player-filter > small,
.centre-report-body .mc-report-team-stats > header > small {
  color: #e5c377 !important;
}
.centre-report-body .mc-report-formation-team > footer .mc-report-formation-state strong,
.centre-report-body .mc-report-player-filter > small b {
  color: #fbf7ef !important;
}
.centre-report-body .mc-report-change-list article > b {
  border-color: rgba(212,169,79,.22) !important;
  background: linear-gradient(145deg,#4c3915,#21180a) !important;
  color: #f0d79b !important;
  box-shadow: none !important;
}
.centre-report-body .mc-report-change-list article small,
.centre-report-body .mc-report-rating-row > span small,
.centre-report-body .mc-report-rating-row em {
  color: #d9d1c2 !important;
}
.centre-report-close:focus-visible,
.centre-report-tabs button:focus-visible,
.mc-report-pitch-player:focus-visible,
.mc-report-rating-row:focus-visible,
.mc-report-player-table button:focus-visible {
  outline-color: #f0d79b !important;
}

/* Attribute rows use the same full-width grid as their group heading so the
   left value, centred label, and right value share exact vertical axes. */
.squad-comparison-content .squad-compare-attribute-group > div {
  padding: 7px 0 !important;
}

/* The legacy agency modifier supplied a blue background-image after the
   shared warm surface. Clear that image at the real winning specificity. */
#profileContractsPanel .contract-table-panel.agency {
  background-color: #0d0c0a !important;
  background-image: linear-gradient(145deg,rgba(28,24,16,.96),rgba(11,10,8,.98)) !important;
}

/* Keep the real select as the form's source of truth without allowing its
   transparent box to sit above and intercept the custom trigger. */
.goat-select > .goat-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
}

/* ================= 3.0A.50.35.55 targeted browser-verification fixes ===== */

/* The home shell waits for its small, first-viewport card set. This is removed
   as soon as their portraits and frames have decoded, with an error escape in
   app.js so an unavailable request cannot strand the visitor. */
body.homepage-assets-pending #homeView{visibility:hidden}

/* Direct application routes are selected by the server before app.js runs.
   This prevents the homepage from entering the first render tree while the
   requested club/world/pre-season view is being initialised. */
body.goat-initial-app-route #homeView,
body.goat-initial-app-route #siteFooter{display:none!important}

/* The server has already resolved a direct Club URL. Let that authoritative
   route own the first panel as well as the background while auth/data load.
   This is a route shell, not a cover: its real headings/placeholders paint and
   are progressively replaced by the same live panel once app.js adopts it. */
html[data-goat-initial-route^="club:"] body.goat-initial-app-route #profileView.hidden{display:grid!important}
html[data-goat-initial-route^="club:"] body.goat-initial-app-route .profile-tab-panel{display:none!important}
html[data-goat-initial-route^="club:"] body.goat-initial-app-route .profile-nav-row{display:none!important}
html[data-goat-initial-route="club:hub"] body.goat-initial-app-route #profileView.hidden{display:flex!important}
html[data-goat-initial-route="club:hub"] body.goat-initial-app-route #clubNavCards.hidden{display:block!important}
html[data-goat-initial-route="club:overview"] body.goat-initial-app-route #profileOverviewPanel,
html[data-goat-initial-route="club:registration"] body.goat-initial-app-route #profileRegistrationPanel,
html[data-goat-initial-route="club:lineup"] body.goat-initial-app-route #profileLineupPanel,
html[data-goat-initial-route="club:tactics"] body.goat-initial-app-route #profileLineupPanel,
html[data-goat-initial-route="club:squad"] body.goat-initial-app-route #profileSquadPanel,
html[data-goat-initial-route="club:market"] body.goat-initial-app-route #profileMarketPanel,
html[data-goat-initial-route="club:competitions"] body.goat-initial-app-route #profileCompetitionsPanel,
html[data-goat-initial-route="club:centre"] body.goat-initial-app-route #profileCentrePanel,
html[data-goat-initial-route="club:history"] body.goat-initial-app-route #profileHistoryPanel,
html[data-goat-initial-route="club:objectives"] body.goat-initial-app-route #profileObjectivesPanel,
html[data-goat-initial-route="club:calendar"] body.goat-initial-app-route #profileCalendarPanel,
html[data-goat-initial-route="club:finances"] body.goat-initial-app-route #profileFinancesPanel,
html[data-goat-initial-route="club:sponsor"] body.goat-initial-app-route #profileSponsorPanel,
html[data-goat-initial-route="club:invest"] body.goat-initial-app-route #profileInvestPanel,
html[data-goat-initial-route="club:contracts"] body.goat-initial-app-route #profileContractsPanel,
html[data-goat-initial-route="club:infrastructure"] body.goat-initial-app-route #profileInfrastructurePanel,
html[data-goat-initial-route="club:stadium"] body.goat-initial-app-route #profileStadiumPanel,
html[data-goat-initial-route="club:inventory"] body.goat-initial-app-route #profileInventoryPanel,
html[data-goat-initial-route="club:legacy"] body.goat-initial-app-route #profileLegacyPanel,
html[data-goat-initial-route="club:settings"] body.goat-initial-app-route #profileSettingsPanel,
html[data-goat-initial-route="club:dev"] body.goat-initial-app-route #profileDevPanel{display:block!important}
html[data-goat-initial-route="club:tactics"] body.goat-initial-app-route #profileLineupPanel .lineup-builder>:not(#lineupWorkspace),
html[data-goat-initial-route="club:tactics"] body.goat-initial-app-route #lineupWorkspace>:not(#profileTacticsPanel){display:none!important}
html[data-goat-initial-route="club:tactics"] body.goat-initial-app-route #profileTacticsPanel.hidden{display:block!important}

/* Client adoption can happen before the owner lineup JSON returns. Keep the
   same Tactics panel shell during that gap; never substitute the portrait
   pitch just because its data arrived through the shared lineup endpoint. */
#profileLineupPanel .lineup-workspace.lineup-route-loading{display:block!important}
#profileLineupPanel .lineup-workspace.lineup-route-loading>.lineup-pitch-column,
#profileLineupPanel .lineup-workspace.lineup-route-loading>#lineupSquadPanel{display:none!important}
#profileLineupPanel .lineup-workspace.lineup-route-loading>#profileTacticsPanel{display:block!important;min-height:320px}
#profileLineupPanel .lineup-initial-loading{display:none;min-height:320px;align-items:center;justify-content:center}
#profileLineupPanel.lineup-data-pending>.lineup-builder{display:none!important}
#profileLineupPanel.lineup-data-pending>.lineup-initial-loading{display:flex!important}
body.dashboard-mode .profile-tab-panel.active{animation:none!important;opacity:1!important}

/* One shared environmental-art layer; section classes only assign the asset. */
/* office-v3.webp is the visually matching WebP rendition of the former
   2 MB PNG. Keeping the version in the URL gives this stable route backdrop
   an immutable cache lifetime. */
body.goat-page-bg-office2{--goat-page-background-image:url('/management-backgrounds/office-v3.webp?v=503580')}
body.goat-page-bg-club-profile{--goat-page-background-image:url('/management-backgrounds/page-bg-club-profile.webp?v=503581')}
body.goat-page-bg-club-main{--goat-page-background-image:url('/management-backgrounds/page-bg-club-main.webp?v=503582')}
body.goat-page-bg-tactics-workspace{--goat-page-background-image:url('/management-backgrounds/goat-tactics-workspace-v1.webp?v=503591')}
body.goat-page-bg-stadium{--goat-page-background-image:url('/management-backgrounds/page-bg-stadium.webp?v=503582')}
body.goat-page-bg-facilities{--goat-page-background-image:url('/management-backgrounds/facilities-approved.webp?v=503580')}
body.goat-page-bg-bank{--goat-page-background-image:url('/management-backgrounds/page-bg-bank.webp?v=503582')}
body.goat-page-bg-finances{--goat-page-background-image:url('/management-backgrounds/page-bg-finances.webp?v=503581')}
body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-tactics-workspace,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-bg{
  background:#050505!important;
}
body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-tactics-workspace,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-bg::before{
  inset:-8px!important;
  background-image:var(--goat-page-background-image)!important;
  background-position:center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:brightness(.78) saturate(.92)!important;
  transform:scale(1.008)!important;
}
body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-tactics-workspace,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-gradient{
  background:
    linear-gradient(90deg,rgba(5,4,3,.42),rgba(5,4,3,.13) 50%,rgba(5,4,3,.40)),
    linear-gradient(180deg,rgba(5,4,3,.12),rgba(5,4,3,.34) 58%,rgba(5,4,3,.70) 100%)!important;
}
body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-tactics-workspace,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-grid{opacity:.025!important}

/* Layout-only wrappers no longer read as nested dashboard windows. */
#profileInventoryPanel .inventory-chat-card,
.office-app-scroll #profileInventoryPanel .inventory-chat-card{
  padding-inline:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileInventoryPanel .inventory-chat-card::after,
.office-app-scroll #profileInventoryPanel .inventory-chat-card::after{content:none!important;display:none!important}
#profileInventoryPanel .inventory-chat-heading,
.office-app-scroll #profileInventoryPanel .inventory-chat-heading{background:transparent!important}

#profileOverviewPanel .overview-best-player .best-card-panel,
#profileOverviewPanel .club-stars-grid,
#profileOverviewPanel .best-player-showcase,
#profileOverviewPanel .club-star-empty{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
}
#profileOverviewPanel .best-player-showcase{padding-inline:0!important}
#profileOverviewPanel .best-player-showcase .footballer-card-shell{background:transparent!important;box-shadow:none!important;filter:none!important}
#profileOverviewPanel .best-player-showcase .footballer-card-glow{display:none!important;opacity:0!important}

#profileTacticsPanel .tc5-sub-plan,
#profileTacticsPanel .tc5-modal .tc5-sub-plan{
  margin-top:14px!important;
  padding:14px 0 0!important;
  border:0!important;
  border-top:1px solid rgba(212,169,79,.18)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileTacticsPanel .tc5-sub-plan>header,
#profileTacticsPanel .tc5-modal .tc5-sub-plan>header{padding:0!important;background:transparent!important}

.office-live-dashboard .office-live-upgrade-progress>b{
  color:#fff4e3!important;
  text-shadow:none!important;
}

#worldView .goat-world-header-summary{
  align-items:stretch!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#worldView .goat-world-header-summary>span,
#worldView .goat-world-header-summary>.goat-world-status-card{
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:center!important;
  justify-items:start!important;
  gap:4px!important;
  min-width:0!important;
  padding:5px 14px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#worldView .goat-world-header-summary>*+*{border-left:0!important}
#worldView .goat-world-status-card:hover,
#worldView .goat-world-status-card:focus-visible{
  color:#f0d79b!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:2px solid rgba(240,215,155,.58)!important;
  outline-offset:2px!important;
}
#worldView .goat-world-status-card{text-align:left!important}
#worldView .goat-world-summary-label{display:block!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;color:#d9d1c2!important;font-family:var(--body)!important;font-size:.58rem!important;font-weight:800!important;line-height:1.1!important;letter-spacing:.08em!important;text-transform:uppercase!important}
#worldView .goat-world-header-summary .goat-world-summary-value{min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#fbf7ef!important;font-family:var(--body)!important;font-size:.82rem!important;font-weight:700!important;line-height:1.1!important;letter-spacing:0!important;text-transform:none!important}
#worldView .goat-world-focus-stat{min-width:max-content!important}
#worldView .goat-world-focus-clock{text-align:left!important;white-space:nowrap!important;cursor:default!important}
#worldView .goat-world-focus-clock.has-active-focus{cursor:pointer!important}
#worldView .goat-world-focus-clock.has-active-focus:hover,
#worldView .goat-world-focus-clock.has-active-focus:focus-visible{color:#f0d79b!important;outline:1px solid rgba(240,215,155,.58)!important;outline-offset:3px!important}
#worldView #goatWorldOnlineCount{display:inline-flex!important;align-items:center!important;gap:5px!important}
#worldView #goatWorldOnlineCount i{width:6px!important;height:6px!important;border-radius:50%!important;background:#55c982!important;box-shadow:0 0 0 2px rgba(85,201,130,.13)!important}
#worldView #goatWorldOnlineCount b{color:inherit!important;font:inherit!important}
@media(max-width:760px){
  #worldView .goat-world-header-summary{width:100%!important;flex-wrap:nowrap!important;gap:6px!important}
  #worldView .goat-world-header-summary>.goat-world-summary-stat{flex:1 1 0!important;padding-inline:6px!important}
  #worldView .goat-world-picker-copy{max-height:none!important;overflow:visible!important}
  #worldView .goat-world-repeat-session{position:relative!important;z-index:2!important;display:flex!important;width:100%!important;min-height:44px!important;align-items:center!important;justify-content:center!important;white-space:normal!important}
}

/* The existing seven-band rating utility remains authoritative in Facilities.
   These selectors beat the later generic `strong { color: ... }` rule. */
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-grey{color:#b8bec8!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-yellow{color:#f2c94c!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-green{color:#55df91!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-blue{color:#4d9fff!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-purple{color:#aa68ff!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-orange{color:#ff873d!important}
#worldView .goat-world-player-detail-card :is(.goat-world-detail-main-stats,.goat-world-detail-group,.goat-world-detail-focus-rating) strong.score-goat{color:#ffe36e!important}

/* Match Report result and metadata sit directly in the report sheet. */
.centre-report-summary{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  filter:none!important;
}
.centre-report-summary::before,.centre-report-summary::after{content:none!important;display:none!important}
.centre-report-summary :is(.mc-report-summary-score,.mc-report-summary-score>*){
  filter:none!important;
  text-shadow:none!important;
  box-shadow:none!important;
}
.centre-report-summary>footer{
  border-top:1px solid rgba(212,169,79,.16)!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.centre-report-body .mc-report-stat-row>b.is-better{
  color:#c7f2d3!important;
  border-color:rgba(82,174,112,.42)!important;
  background:rgba(35,105,58,.38)!important;
  box-shadow:none!important;
}
.centre-report-body .mc-report-stat-row>b.is-worse{
  color:#efb5aa!important;
  border-color:rgba(180,67,47,.38)!important;
  background:rgba(99,35,28,.38)!important;
  box-shadow:none!important;
}
.centre-report-body .mc-report-stat-row>b.is-even{
  color:#d9d1c2!important;
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(212,169,79,.06)!important;
  box-shadow:none!important;
}

/* Shared missing-logo crest: real uploaded images are not selected here. */
.mc-hub-club-logo.is-fallback{
  border-color:rgba(212,169,79,.32)!important;
  background:linear-gradient(145deg,#302510,#0d0c0a)!important;
  box-shadow:inset 0 0 18px rgba(212,169,79,.07),0 7px 18px rgba(0,0,0,.28)!important;
}
.mc-hub-club-logo.is-fallback b{
  border-color:rgba(240,215,155,.52)!important;
  background:linear-gradient(145deg,#d4a94f,#76551f)!important;
  color:#fff4e3!important;
  text-shadow:0 1px 2px rgba(0,0,0,.52)!important;
  box-shadow:inset 0 0 0 4px rgba(23,16,6,.18)!important;
}
.mc-hub-club-logo:is(.is-small,.is-tiny).is-fallback b{
  border:0!important;
  background:transparent!important;
  color:#f0d79b!important;
  text-shadow:none!important;
  box-shadow:none!important;
}

/* Registration rows and portrait plates derive their accents from rarity data. */
#profileRegistrationPanel :is(.league-registration-player,.league-registration-u17-card)[class*="rarity-"]{
  border-left-color:var(--rarity-color)!important;
  background:
    radial-gradient(circle at 8% 50%,color-mix(in srgb,var(--rarity-color) 18%,transparent),transparent 34%),
    linear-gradient(90deg,color-mix(in srgb,var(--rarity-color) 7%,#17150f),#0d0c0a)!important;
}
#profileRegistrationPanel :is(.league-registration-player,.league-registration-u17-card)[class*="rarity-"] .league-registration-player-portrait{
  border:1px solid color-mix(in srgb,var(--rarity-color) 52%,#d9d1c2)!important;
  background:
    radial-gradient(circle at 50% 22%,color-mix(in srgb,var(--rarity-color) 38%,transparent),transparent 64%),
    color-mix(in srgb,var(--rarity-color) 13%,#17150f)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rarity-color) 18%,transparent)!important;
}
#profileRegistrationPanel .league-registration-u17,
#profileRegistrationPanel .league-registration-u17>header{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileRegistrationPanel .league-registration-u17>header{border-bottom:1px solid rgba(212,169,79,.16)!important}
#profileRegistrationPanel :is(.league-registration-clear-button,.league-registration-filter-toggle,.league-registration-rules-button,.league-registration-player-action.is-add,.secondary-button:not(.goat-save-action)){
  border:1px solid rgba(212,169,79,.28)!important;
  background:rgba(212,169,79,.07)!important;
  color:#f0d79b!important;
  box-shadow:none!important;
}
#profileRegistrationPanel :is(.league-registration-clear-button,.league-registration-filter-toggle,.league-registration-rules-button,.league-registration-player-action.is-add,.secondary-button:not(.goat-save-action)):hover:not(:disabled){
  border-color:rgba(240,215,155,.62)!important;
  background:rgba(212,169,79,.16)!important;
  color:#fbf7ef!important;
}
#profileRegistrationPanel :is(.league-registration-review-submit,.primary-button,.league-registration-confirm-button){
  border-color:rgba(240,215,155,.52)!important;
  background:linear-gradient(145deg,#4c3915,#21180a)!important;
  color:#fff4e3!important;
  box-shadow:none!important;
}

/* Contracts use the preview's segmented controls and readable masked icons. */
#profileContractsPanel .contract-filter-tabs{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:5px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileContractsPanel .contract-filter-tabs button{
  min-height:36px!important;
  padding:0 13px!important;
  border:1px solid rgba(212,169,79,.16)!important;
  border-radius:6px!important;
  background:rgba(13,12,10,.72)!important;
  color:#d9d1c2!important;
  box-shadow:none!important;
}
#profileContractsPanel .contract-filter-tabs button:hover,
#profileContractsPanel .contract-filter-tabs button:focus-visible{
  border-color:rgba(212,169,79,.34)!important;
  background:rgba(212,169,79,.08)!important;
  color:#fbf7ef!important;
  outline:2px solid rgba(240,215,155,.42)!important;
  outline-offset:2px!important;
}
#profileContractsPanel .contract-filter-tabs button.active{
  border-color:rgba(212,169,79,.48)!important;
  background:rgba(212,169,79,.16)!important;
  color:#f0d79b!important;
}
#profileContractsPanel .management-asset-icon{
  background:#e5c377!important;
  color:#e5c377!important;
  opacity:1!important;
  filter:none!important;
}
#profileContractsPanel :is(.contract-primary-cta,.contract-negotiation-confirm) .contract-button-icon{
  background:#1a1207!important;
  color:#1a1207!important;
  opacity:1!important;
}
#profileContractsPanel :is(.contract-player-cell .portrait,.contract-portrait-frame)[class*="rarity-"],
#profileContractsPanel tr[style*="--rarity-color"] .contract-player-cell .portrait{
  border-color:color-mix(in srgb,var(--rarity-color) 58%,#d9d1c2)!important;
  background:
    radial-gradient(circle at 50% 22%,color-mix(in srgb,var(--rarity-color) 42%,transparent),transparent 63%),
    color-mix(in srgb,var(--rarity-color) 14%,#17150f)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rarity-color) 20%,transparent)!important;
}
#profileContractsPanel :is(.contract-player-cell .portrait,.contract-portrait-frame) img{background:transparent!important}
#profileContractsPanel .contract-negotiation-box.agency.contract-negotiation-active{
  border:1px solid rgba(212,169,79,.24)!important;
  background-color:#100e0a!important;
  background-image:linear-gradient(145deg,#1c1811,#0b0907)!important;
  color:#d9d1c2!important;
  box-shadow:0 16px 34px rgba(0,0,0,.28)!important;
}
#profileContractsPanel .contract-negotiation-box .contract-negotiation-field,
#profileContractsPanel .contract-negotiation-box .contract-term-picker,
#profileContractsPanel .contract-negotiation-box .contract-term-trigger,
#profileContractsPanel .contract-negotiation-box .contract-term-single,
#profileContractsPanel .contract-negotiation-box .contract-salary-offer,
#profileContractsPanel .contract-negotiation-box .contract-salary-offer input{
  border-color:rgba(212,169,79,.18)!important;
  background:#17150f!important;
  color:#fbf7ef!important;
  box-shadow:none!important;
}
#profileContractsPanel .contract-negotiation-box :is(span,small){color:#d9d1c2!important}
#profileContractsPanel :is(.contract-homegrown-compact,.renewal-outlook-v5){
  border-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(145deg,rgba(28,24,16,.88),rgba(13,11,8,.94))!important;
  box-shadow:none!important;
}
#profileContractsPanel .contract-homegrown-compact.active{border-color:rgba(82,174,112,.34)!important}
#profileContractsPanel .contract-homegrown-compact.active span{color:#7fdaa0!important}
#profileContractsPanel .renewal-outlook-v5:is(.very-interested,.interested) .renewal-outlook-heading strong{color:#7fdaa0!important}
#profileContractsPanel .renewal-outlook-v5.cautious .renewal-outlook-heading strong{color:#e3c46d!important}
#profileContractsPanel .renewal-outlook-v5:is(.reluctant,.not-interested) .renewal-outlook-heading strong{color:#e99b8d!important}

@media(max-width:620px){
  body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-bg::before{background-position:center top!important}
  #worldView .goat-world-header-summary>*+*{border-left:0!important;border-top:0!important}
}

/* ================= 3.0A.50.35.59 targeted profile / report follow-up ==== */

/* The supplied World Big artwork is shared by Squad and the full player
   dossier. It is an environment layer only; no card, data or route changes. */
body.goat-page-bg-squad{--goat-page-background-image:url('/world-big-page.webp?v=503580')}
body.profile-background.goat-page-bg-squad .world-bg{background:#050505!important}
body.profile-background.goat-page-bg-squad .world-bg::before{
  content:""!important;
  inset:-8px!important;
  background:var(--goat-page-background-image) center / cover no-repeat!important;
  filter:brightness(.78) saturate(.92)!important;
  transform:scale(1.008)!important;
}
body.profile-background.goat-page-bg-squad .world-gradient{
  background:linear-gradient(90deg,rgba(5,4,3,.42),rgba(5,4,3,.13) 50%,rgba(5,4,3,.40)),linear-gradient(180deg,rgba(5,4,3,.12),rgba(5,4,3,.34) 58%,rgba(5,4,3,.70) 100%)!important;
}
body.profile-background.goat-page-bg-squad .world-grid{opacity:.025!important}

/* The report has its own shell, so its backdrop must supply the local stadium
   environment rather than inheriting the older blue modal fallback. */
.centre-report-modal{
  background:#050505 url('/management-backgrounds/match-report-stadium-page.png') center / cover no-repeat!important;
}
/* The pre-existing report lifecycle hides .world-bg entirely, leaving this
   body paint exposed. It was #020817 (navy), so the report still appeared to
   sit on a blue page even though its sheet was warm. */
body.centre-report-modal-open{
  background:#050505 url('/management-backgrounds/match-report-stadium-page.png') center / cover no-repeat!important;
}
.centre-report-modal::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(5,4,3,.72),rgba(5,4,3,.30) 50%,rgba(5,4,3,.68)),linear-gradient(180deg,rgba(5,4,3,.28),rgba(5,4,3,.58));
}
.centre-report-sheet{position:relative;z-index:1}
body.centre-report-modal-open .world-bg{
  background:#050505 url('/management-backgrounds/match-report-stadium-page.png') center / cover no-repeat!important;
}
body.centre-report-modal-open.profile-background .world-bg::before{background-image:none!important}
body.centre-report-modal-open .world-gradient{background:linear-gradient(90deg,rgba(5,4,3,.68),rgba(5,4,3,.28) 50%,rgba(5,4,3,.68)),linear-gradient(180deg,rgba(5,4,3,.22),rgba(5,4,3,.66))!important}
body.centre-report-modal-open .world-grid{opacity:0!important}
.centre-report-body .mc-report-stat-row .mc-report-stat-bar em.is-home{background:linear-gradient(90deg,#286743,#79bd8b)!important}
.centre-report-body .mc-report-stat-row .mc-report-stat-bar em.is-away{background:linear-gradient(90deg,#873d35,#d78276)!important}

/* The hub return uses the same warm circular language as Office controls. */
.club-hub-back{
  border-color:rgba(212,169,79,.36)!important;
  background:rgba(23,21,15,.92)!important;
  color:#e5c377!important;
  box-shadow:0 8px 20px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
}
.club-hub-back:hover,.club-hub-back:focus-visible{
  border-color:rgba(240,215,155,.72)!important;
  background:#2a2214!important;
  color:#fff4e3!important;
  outline:2px solid rgba(240,215,155,.54)!important;
}

/* Tablet Lineup deliberately inherits the main controls instead of using the
   earlier generic tablet button paint. The action semantics remain intact. */
.office-app-scroll #profileLineupPanel :is(#lineupNewPreset,#lineupRenamePreset,#lineupResetButton,#lineupVisibilityButton){
  border-color:rgba(212,169,79,.30)!important;
  background:linear-gradient(145deg,#211d14,#0d0c0a)!important;
  color:#e5c377!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.office-app-scroll #profileLineupPanel #lineupDeletePreset.lineup-delete-button{
  border-color:rgba(180,67,47,.62)!important;
  background:linear-gradient(145deg,#6e2b23,#391511)!important;
  color:#f3c1b6!important;
}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button{
  border-color:rgba(212,169,79,.52)!important;
  background:linear-gradient(145deg,#4c3915,#21180a)!important;
  color:#fff4e3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 18px rgba(0,0,0,.26)!important;
}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button :is(span,img){color:#fff4e3!important;-webkit-text-fill-color:#fff4e3!important}

/* The Tactical Centre window is an intentional part of the reactions view.
   Keep its warm, inset workspace behind both the normal plan and editor. */
#profileTacticsPanel .tactical-centre-v5{
  padding:clamp(14px,2vw,22px)!important;
  border:1px solid rgba(212,169,79,.22)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(24,20,13,.82),rgba(8,7,5,.84))!important;
  box-shadow:0 20px 52px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.045)!important;
}

/* The Level artwork itself stays untouched. These rules replace the old blue
   room fill/inner treatment with neutral depth around the image. */
#profileStadiumPanel .stadium-room-v4{background:#0d0c0a!important}
#profileStadiumPanel .stadium-level-visual{background:transparent!important;box-shadow:none!important}
#profileStadiumPanel .stadium-level-visual::before,#profileStadiumPanel .stadium-level-visual::after{content:none!important;display:none!important}
#profileStadiumPanel .stadium-room-v4 .stadium-level-visual img{filter:drop-shadow(0 20px 30px rgba(0,0,0,.34)) saturate(.92) contrast(1.04) brightness(.92)!important}

/* Full player dossier: the page below is intentionally suppressed for
   performance, so paint the same local World Big environment on its backdrop. */
body.player-profile-open .player-modal-backdrop{
  background:#050505 url('/world-big-page.webp?v=503580') center / cover no-repeat!important;
}
body.player-profile-open .player-modal-backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(5,4,3,.58),rgba(5,4,3,.24) 52%,rgba(5,4,3,.62)),linear-gradient(180deg,rgba(5,4,3,.18),rgba(5,4,3,.64));
}
.player-modal.player-dossier-shell{
  background:rgba(5,4,3,.48)!important;
}
.player-modal.player-dossier-shell .player-profile-sheet,
.player-modal.player-dossier-shell .player-modal-content{
  background:linear-gradient(145deg,rgba(27,23,15,.94),rgba(9,8,6,.96))!important;
}
.player-modal.player-dossier-shell :is(.player-dossier-hero,.player-dossier-panel,.player-dossier-facts,.player-career-v4){
  border-color:rgba(212,169,79,.20)!important;
  background:linear-gradient(145deg,rgba(28,24,16,.93),rgba(12,10,7,.95))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 12px 28px rgba(0,0,0,.18)!important;
}
.player-modal.player-dossier-shell :is(.player-dossier-panel,.player-dossier-facts) header>span,
.player-modal.player-dossier-shell :is(.player-kit-panel-v5>header>span,.player-dossier-actions>span){color:#e5c377!important}
.player-modal.player-dossier-shell :is(.player-dossier-panel,.player-dossier-facts) :is(p>span,small,em),
.player-modal.player-dossier-shell :is(.player-dossier-empty,.player-form-empty){color:#d9d1c2!important}
.player-modal.player-dossier-shell .player-attribute-group{
  border-color:rgba(212,169,79,.18)!important;
  background:linear-gradient(145deg,rgba(19,16,11,.90),rgba(9,8,6,.94))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset -14px -12px 26px rgba(0,0,0,.16)!important;
}
/* Do not touch stat-tone fills or bar colours: they carry player quality. */
.player-modal.player-dossier-shell :is(.player-modal-close,.player-modal-nav,.player-modal-previous,.player-modal-next,.player-dossier-actions button,.player-share-action,.player-kit-number-form button){
  border-color:rgba(212,169,79,.30)!important;
  background:linear-gradient(145deg,#2b2111,#151007)!important;
  color:#fff4e3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.player-modal.player-dossier-shell .player-dossier-actions .danger{border-color:rgba(180,67,47,.58)!important;background:linear-gradient(145deg,#6e2b23,#391511)!important;color:#ffe0d9!important}
.player-modal.player-dossier-shell :is(.player-modal-close,.player-modal-nav,.player-modal-previous,.player-modal-next):hover,
.player-modal.player-dossier-shell :is(.player-modal-close,.player-modal-nav,.player-modal-previous,.player-modal-next):focus-visible{border-color:rgba(240,215,155,.72)!important;background:#2a2214!important;color:#fff4e3!important;outline:2px solid rgba(240,215,155,.50)!important}
.player-modal.player-dossier-shell .player-kit-visual-v5 img{object-fit:contain!important;filter:drop-shadow(0 10px 18px rgba(0,0,0,.34))!important}

/* Correct the three last legacy paint layers that sit above the approved
   page-specific treatments. These selectors are intentionally scoped to their
   own views so the underlying game systems and semantic player data stay put. */
#profileCentrePanel .mc-hub-loading,
#profileHistoryPanel .mc-hub-loading{
  border-color:rgba(212,169,79,.22)!important;
  background:linear-gradient(145deg,rgba(24,20,13,.94),rgba(9,8,6,.96))!important;
  color:#fbf7ef!important;
  box-shadow:0 24px 60px rgba(0,0,0,.34)!important;
}
#profileCentrePanel .mc-hub-loading i,
#profileHistoryPanel .mc-hub-loading i{
  border-color:rgba(212,169,79,.20)!important;
  border-top-color:#d4a94f!important;
}
#profileCentrePanel .mc-hub-loading span,
#profileHistoryPanel .mc-hub-loading span{color:#d9d1c2!important}

/* The generic stadium room's navy pseudo-layer inherited by Level 1 was still
   painted over the approved artwork. Remove that layer, not the artwork. */
#profileStadiumPanel .stadium-room-v4::before,
#profileStadiumPanel .stadium-room-v4::after{content:none!important;display:none!important}

/* Match Report environment: the local stadium image belongs to the backdrop
   behind the report sheet. The modal itself remains a transparent container. */
.centre-report-modal{background:transparent!important}
.centre-report-modal::before{display:none!important}
.centre-report-backdrop{
  background:#050505 url('/management-backgrounds/match-report-stadium-page.png') center / cover no-repeat!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.centre-report-backdrop::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(5,4,3,.68),rgba(5,4,3,.26) 50%,rgba(5,4,3,.62)),linear-gradient(180deg,rgba(5,4,3,.20),rgba(5,4,3,.54));
}

/* Player Profile: the legacy full-screen blue profile canvas and its compact
   tiles were still above the World Big environment. Keep player quality and
   status colours semantic; only neutral chrome is warmed. */
.player-modal.player-dossier-shell .player-profile-v4{
  background:#050505 url('/world-big-page.webp?v=503580') center / cover no-repeat!important;
}
.player-modal.player-dossier-shell .player-profile-v4::before{
  background:linear-gradient(90deg,rgba(5,4,3,.50),rgba(5,4,3,.14) 52%,rgba(5,4,3,.44)),linear-gradient(180deg,rgba(5,4,3,.10),rgba(5,4,3,.42))!important;
  filter:none!important;
  opacity:1!important;
  mask-image:none!important;
}
.player-modal.player-dossier-shell .player-dossier-card-wrap,
.player-modal.player-dossier-shell .player-dossier-actions-left,
.player-modal.player-dossier-shell .player-contract-grid-v4 p,
.player-modal.player-dossier-shell .player-contract-willingness,
.player-modal.player-dossier-shell .player-position-list-v4 :is(p,button),
.player-modal.player-dossier-shell .player-performance-v4 p,
.player-modal.player-dossier-shell .player-form-v4,
.player-modal.player-dossier-shell .player-form-match{
  border-color:rgba(212,169,79,.16)!important;
  background:linear-gradient(145deg,rgba(25,21,14,.88),rgba(10,8,6,.92))!important;
}
.player-modal.player-dossier-shell .player-position-list-v4 :is(p,button).primary{
  border-color:rgba(212,169,79,.42)!important;
  background:linear-gradient(145deg,rgba(74,55,19,.64),rgba(27,19,8,.88))!important;
}
.player-modal.player-dossier-shell .player-performance-tabs button{
  border-color:rgba(212,169,79,.18)!important;
  background:rgba(13,11,8,.76)!important;
  color:#d9d1c2!important;
}
.player-modal.player-dossier-shell .player-performance-tabs button.active{
  border-color:rgba(212,169,79,.50)!important;
  background:linear-gradient(145deg,rgba(100,72,22,.66),rgba(45,31,9,.86))!important;
  color:#f0d79b!important;
}
.player-modal.player-dossier-shell .player-dossier-club-mark,
.player-modal.player-dossier-shell .player-dossier-club-mark.fallback{
  border-color:rgba(212,169,79,.20)!important;
  background:rgba(16,13,9,.72)!important;
  color:#e5c377!important;
}

/* The transient tablet shell must not introduce a cold loading flash. */
.office-app-loading{color:#d9d1c2!important;background:#0d0c0a!important}

/* 3.0A.50.35.60 — remaining warm UI and supplied submenu-asset completion.
   These are deliberately page-scoped corrections: the shared black/espresso
   loading canvas remains the fallback while each live desk keeps its own UI. */

/* The accepted player-and-trophy artwork is the full Competition environment,
   not a new route or a replacement for crest artwork. */
body.goat-page-bg-standings{--goat-page-background-image:url('/management-backgrounds/eres-jr-competitions.webp?v=4aead9831f34')}
body.goat-page-bg-standings.goat-competitions-community-eres-jr{--goat-page-background-image:url('/management-backgrounds/eres-jr-competitions.webp?v=4aead9831f34')}
body.goat-page-bg-standings.goat-domestic-cup-active{--goat-page-background-image:url('/management-backgrounds/domestic-cup-page.png?v=59b7d9623860')}
body.profile-background.goat-page-bg-standings .world-bg{background:#050505!important}
body.profile-background.goat-page-bg-standings .world-bg::before{
  content:""!important;
  inset:-8px!important;
  background:var(--goat-page-background-image) center / cover no-repeat!important;
  filter:brightness(.76) saturate(.90)!important;
  transform:scale(1.008)!important;
}
body.profile-background.goat-page-bg-standings .world-gradient{
  background:linear-gradient(90deg,rgba(5,4,3,.48),rgba(5,4,3,.15) 50%,rgba(5,4,3,.46)),linear-gradient(180deg,rgba(5,4,3,.12),rgba(5,4,3,.38) 60%,rgba(5,4,3,.72) 100%)!important;
}
body.profile-background.goat-page-bg-standings .world-grid{opacity:.025!important}

/* Standings fallbacks are heritage marks. Real club crests remain unmodified. */
#profileCompetitionsPanel .competition-club-mark.fallback{
  border-color:rgba(212,169,79,.38)!important;
  background:radial-gradient(circle at 35% 28%,#4c3915,#17120a 68%)!important;
  color:#f0d79b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10)!important;
}
#profileCompetitionsPanel .competition-premium-hero>div>span,
#profileCompetitionsPanel :is(.competition-hero-identity,.competition-hero-meta)>div>span,
#profileCompetitionsPanel .competition-hero-meta>span,
#profileCompetitionsPanel :is(.competition-context-strip,.competition-explainer)>span{color:#e5c377!important}
#profileCompetitionsPanel .competition-premium-hero>b{
  border-color:rgba(212,169,79,.34)!important;
  background:rgba(74,57,21,.48)!important;
  color:#f0d79b!important;
}

/* Legal and support headers are typography on the page canvas, never a
   floating window or a blue divider. Document cards below stay unchanged. */
.legal-page-hero{
  border:0!important;
  border-image:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
.legal-page-hero::before,.legal-page-hero::after{content:none!important;display:none!important}
.legal-page-hero :is(.legal-updated,.eyebrow){background:transparent!important;box-shadow:none!important}
.legal-page-hero .eyebrow{color:#e5c377!important}

/* Player dossier neutral chrome: retain player/card rarity semantics but remove
   the last cyan values and the empty square around the official card. */
.player-modal.player-dossier-shell .player-dossier-card-wrap{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.player-modal.player-dossier-shell .player-dossier-headline>b{color:#f0d79b!important}
.player-modal.player-dossier-shell .player-dossier-headline small{color:#e5c377!important}
.player-modal.player-dossier-shell .player-dossier-headline .player-owner-link{color:#fbf7ef!important}
.player-modal.player-dossier-shell .player-kit-number-form-v5 label>span{color:#e5c377!important}
.player-modal.player-dossier-shell .player-kit-number-form-v5 input{
  border-color:rgba(212,169,79,.42)!important;
  background:#0d0c0a!important;
  color:#fbf7ef!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.player-modal.player-dossier-shell .player-kit-number-form-v5 input:focus{
  border-color:#f0d79b!important;
  outline:2px solid rgba(240,215,155,.40)!important;
  outline-offset:1px!important;
}
.player-modal.player-dossier-shell .player-contract-willingness :is(span,strong){text-shadow:none!important}
.player-modal.player-dossier-shell .player-contract-willingness:is(.no-renewal-needed,.recently-signed,.early-extension) strong{color:#f0d79b!important}
.player-modal.player-dossier-shell .player-contract-willingness:is(.no-renewal-needed,.recently-signed,.early-extension) span{color:#d9d1c2!important}

/* Tablet actions use the same current action hierarchy as the desktop desk. */
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button{
  border-color:rgba(212,169,79,.52)!important;
  background:linear-gradient(145deg,#4c3915,#21180a)!important;
  color:#fff4e3!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 7px 18px rgba(0,0,0,.26)!important;
}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button :is(span,img){color:#fff4e3!important;-webkit-text-fill-color:#fff4e3!important;filter:brightness(0) invert(96%) sepia(13%) saturate(445%) hue-rotate(333deg) brightness(104%) contrast(98%)!important}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button:hover:not(:disabled),
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button:focus-visible:not(:disabled){border-color:rgba(240,215,155,.72)!important;background:linear-gradient(145deg,#5a4318,#2a1e0b)!important;outline:2px solid rgba(240,215,155,.50)!important;outline-offset:2px!important}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button.is-save-confirmed{border-color:rgba(111,208,142,.68)!important;background:linear-gradient(145deg,#3d7e50,#1d482e)!important;color:#fffdf6!important}
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button.is-save-confirmed:hover:not(:disabled),
.office-app-scroll #profileLineupPanel #lineupSaveButton.lineup-save-button.is-save-confirmed:focus-visible:not(:disabled){border-color:rgba(145,224,167,.72)!important;background:linear-gradient(145deg,#4b9660,#245a38)!important;outline-color:rgba(145,224,167,.68)!important}
.office-app-scroll #profileTacticsPanel .tc5-clear-reactions{
  min-height:30px!important;
  padding:0 10px!important;
  border-color:rgba(180,67,47,.42)!important;
  background:rgba(92,30,23,.30)!important;
  color:#f3c1b6!important;
  font-size:.56rem!important;
  box-shadow:none!important;
}

/* The Best Player section is one continuous group; its child cards carry the
   hierarchy, so the inherited horizontal section rule has no job here. */
#profileOverviewPanel .overview-best-player,
#profileOverviewPanel .overview-best-player .best-card-panel{border-top:0!important}
#profileOverviewPanel .overview-best-player .best-card-panel::before{content:none!important;display:none!important}
#profileOverviewPanel .overview-best-player::before,
#profileOverviewPanel .overview-best-player::after{content:none!important;display:none!important}

/* Gold upgrade button foregrounds must include image icons, not only text. */
#profileStadiumPanel .stadium-level-board-v3 button :is(span,strong,b){color:#1a1207!important;-webkit-text-fill-color:#1a1207!important}
#profileStadiumPanel .stadium-level-board-v3 button img{filter:brightness(0) saturate(100%) invert(7%) sepia(18%) saturate(3068%) hue-rotate(6deg) brightness(95%) contrast(97%)!important}
#profileStadiumPanel .stadium-level-board-v3 button:disabled img{filter:brightness(0) saturate(100%) invert(38%) sepia(10%) saturate(731%) hue-rotate(6deg) brightness(91%) contrast(90%)!important}
/* The stadium action uses a masked <i>, not an <img>; make its foreground
   follow the gold button's dark text in every interactive state. */
#profileStadiumPanel .stadium-level-board-v3 button[data-stadium-upgrade] .stadium-upgrade-icon{background:#1a1207!important;color:#1a1207!important;filter:none!important;opacity:1!important}
#profileStadiumPanel .stadium-level-board-v3 button[data-stadium-upgrade]:disabled .stadium-upgrade-icon{background:#635c50!important;color:#635c50!important}

/* A facility image sits directly in its card: no second dark square behind it. */
#profileInfrastructurePanel .facility-unified-visual{background:transparent!important}
#profileInfrastructurePanel .facility-unified-visual::before,
#profileInfrastructurePanel .facility-unified-visual::after{content:none!important;display:none!important}
#profileInfrastructurePanel .facility-project-progress>header>b{color:#fbf7ef!important}

/* The supplied local bank artwork belongs in the current-balance panel. The
   pseudo-layer is behind its existing live values and controls. */
#profileFinancesPanel .finance-balance-card.finance-balance-bank{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
}
#profileFinancesPanel .finance-balance-card.finance-balance-bank::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background:linear-gradient(90deg,rgba(12,10,7,.93),rgba(12,10,7,.65) 53%,rgba(12,10,7,.26)),url('/management-backgrounds/page-bg-bank.webp?v=503582') center / cover no-repeat!important;
}
#profileFinancesPanel .finance-balance-card.finance-balance-bank>*{position:relative!important;z-index:1!important}

/* Report labels are neutral metadata in every active tab. Ratings, club
   identity and match-event status remain outside this list deliberately. */
.centre-report-summary>footer>span,
.centre-report-body :is(.mc-report-tactics-team,.mc-report-ratings-team) header :is(small,span),
.centre-report-body :is(.mc-report-tactic-block h3,.mc-report-timeline>header>span,.mc-report-team-stats>header>small,.mc-report-potm small,.mc-report-player-filter label>span){color:#e5c377!important}
.centre-report-summary .mc-report-summary-score>small{color:#e5c377!important}
.centre-report-summary .mc-report-summary-score>span,
.centre-report-body :is(.mc-report-tactics-team,.mc-report-ratings-team) header span,
.centre-report-body :is(.mc-report-potm>div>span,.mc-report-timeline>header>small,.mc-report-stat-period-note,.mc-report-tactic-grid dt,.mc-report-summary-grid dt){color:#d9d1c2!important}
.centre-report-body :is(.mc-report-tactic-grid dd,.mc-report-summary-grid dd){color:#fbf7ef!important}

/* ========================================================================== */
/* 3.0A.50.35.45 — targeted gameplay UI polish                               */
/* ========================================================================== */

/* Attack Focus is a disclosure composite, so mirror the authoritative locked
   form state on its summary rather than leaving one apparently live control. */
#profileTacticsPanel .tactical-centre-v5.locked .tc5-multiselect[aria-disabled="true"]>summary{
  opacity:.48!important;
  cursor:not-allowed!important;
  filter:saturate(.35)!important;
}

/* Registration rule evaluation remains live; these are only presentation
   colours for the seven-rule disclosure and the position summary. */
#profileRegistrationPanel .league-registration-position-summary header strong,
#profileRegistrationPanel .league-registration-position-summary header span,
#profileRegistrationPanel .league-registration-position-counts b{
  color:#e5c377!important;
}
#profileRegistrationPanel .league-registration-position-counts strong{
  color:#fbf7ef!important;
}

/* Manager names are profile actions only when an authoritative username was
   available in the fixture context; AI/unresolved managers remain plain text. */
.centre-report-summary .mc-report-summary-club-copy{
  display:grid;
  min-width:0;
  gap:3px;
}
.centre-report-summary .is-away .mc-report-summary-club-copy{text-align:right}
.centre-report-summary .mc-report-manager-link,
.centre-report-summary .mc-report-manager-name{
  display:block;
  padding:0;
  border:0;
  background:transparent;
  color:#d9d1c2;
  font:700 .60rem/1.2 var(--body);
}
.centre-report-summary .mc-report-manager-link{cursor:pointer;text-decoration:underline;text-decoration-color:rgba(212,169,79,.38);text-underline-offset:3px}
.centre-report-summary .mc-report-manager-link:hover,
.centre-report-summary .mc-report-manager-link:focus-visible{color:#f0d79b;outline:2px solid rgba(212,169,79,.46);outline-offset:3px}

/* Blur only the Current Balance artwork layer. Live labels and amount stay in
   the separate z-index layer above it and therefore remain pin-sharp. */
#profileFinancesPanel .finance-balance-card.finance-balance-bank::after{
  inset:-3px!important;
  filter:blur(1.6px)!important;
  transform:scale(1.018)!important;
}

/* The supplied Club_profile artwork belongs only to the identity header. */
.player-modal.player-dossier-shell .player-dossier-hero .player-squad-photo::before{
  background-image:url('/management-backgrounds/player-profile-club-profile.webp?v=503572')!important;
  background-position:center 40%!important;
  background-size:cover!important;
  opacity:.58!important;
  filter:blur(.7px) saturate(.78) brightness(.72)!important;
  transform:scale(1.008)!important;
}

/* Recent Form already arrives with authoritative semantic names. Correct the
   good state to green and keep average/poor in their existing gold/red family. */
.player-modal.player-dossier-shell .form-state:is(.excellent,.good),
.player-modal.player-dossier-shell .player-status-v4 :is(.status-excellent,.status-good){color:#67dda0!important}
.player-modal.player-dossier-shell .form-state:is(.average,.neutral),
.player-modal.player-dossier-shell .player-status-v4 :is(.status-average,.status-neutral){color:#e5c377!important}
.player-modal.player-dossier-shell .form-state:is(.poor,.bad),
.player-modal.player-dossier-shell .player-status-v4 :is(.status-poor,.status-bad){color:#df6b62!important}
.player-modal.player-dossier-shell .player-form-match:is(.great,.good)>strong{color:#67dda0!important}
.player-modal.player-dossier-shell .player-form-chart circle:is(.great,.good){fill:#67dda0!important}

/* Main-attribute quality classes come from statTone(); these shadows only
   consume that existing mapping, so there is no second threshold system. */
.player-modal.player-dossier-shell .player-attribute-group.stat-low{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset 0 -18px 24px rgba(177,55,58,.20)!important;
}
.player-modal.player-dossier-shell .player-attribute-group.stat-medium{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset 0 -18px 24px rgba(212,169,79,.19)!important;
}
.player-modal.player-dossier-shell .player-attribute-group:is(.stat-high,.stat-elite){
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),inset 0 -18px 24px rgba(70,168,103,.18)!important;
}

/* Compact custom-dropdown comparison within the existing Player DNA card. */
.player-modal.player-dossier-shell .player-dna-v4{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
}
.player-modal.player-dossier-shell .player-dna-v4>header{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important}
.player-dna-compare-toggle,
.player-dna-compare-controls>button{
  min-height:25px;
  padding:0 8px;
  border:1px solid rgba(212,169,79,.30);
  border-radius:6px;
  background:rgba(212,169,79,.08);
  color:#e5c377;
  font:800 .52rem/1 var(--body);
  letter-spacing:.07em;
  cursor:pointer;
}
.player-dna-compare-toggle:hover,.player-dna-compare-toggle:focus-visible,
.player-dna-compare-controls>button:hover,.player-dna-compare-controls>button:focus-visible{border-color:rgba(240,215,155,.66);background:rgba(212,169,79,.16);color:#fbf7ef;outline:none}
.player-dna-compare-controls{display:flex;align-items:end;gap:5px;min-width:0}
.player-dna-compare-controls .goat-form-field{flex:1;min-width:0;gap:2px}
.player-dna-compare-controls .goat-form-field>span{color:#e5c377!important;font-size:.48rem!important}
.player-dna-compare-controls .goat-select-trigger{min-height:29px!important;padding-inline:8px!important;font-size:.56rem!important}
.player-dna-compare-message{display:grid;place-items:center;min-height:30px;color:#d9d1c2;font-size:.56rem}.player-dna-compare-message.is-error{color:#df6b62}
.player-dna-chart{display:grid;place-items:center;flex:1;min-height:0;overflow:hidden}
.player-dna-chart .player-radar{width:100%!important;height:100%!important;max-height:210px!important}
.player-radar .radar-comparison{fill:rgba(185,63,58,.16)!important;stroke:#c5534d!important;stroke-width:2.3!important;filter:drop-shadow(0 0 2px rgba(197,83,77,.28))}
.player-dna-legend{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;color:#d9d1c2;font-size:.49rem}
.player-dna-legend span{display:flex;align-items:center;gap:4px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.player-dna-legend span::before{content:"";flex:none;width:7px;height:2px;border-radius:99px;background:#d4a94f}
.player-dna-legend .is-compared::before{background:#c5534d}

/* Give DNA and Player Info stable desktop tracks. Compare can rearrange DNA's
   contents, but it never moves either outer panel. */
@media (min-width:1280px){
  .player-modal.player-dossier-shell .player-dossier-analytics{
    grid-template-rows:358px 149px!important;
  }
  .player-modal.player-dossier-shell .player-dna-v4 .player-radar{
    max-height:235px!important;
  }
  .player-modal.player-dossier-shell .player-status-v4{
    display:flex!important;
    flex-direction:column!important;
    gap:0!important;
    padding:7px 12px!important;
  }
  .player-modal.player-dossier-shell .player-status-v4>header{
    flex:0 0 auto!important;
    min-height:13px!important;
    margin:0 0 4px!important;
    line-height:1!important;
  }
  .player-modal.player-dossier-shell .player-status-v4>div{
    display:flex!important;
    flex:1 1 0!important;
    min-height:0!important;
    flex-direction:column!important;
    gap:0!important;
  }
  .player-modal.player-dossier-shell .player-status-v4 p{
    flex:1 1 0!important;
    display:flex!important;
    min-height:0!important;
    padding-block:0!important;
    line-height:1.1!important;
  }
  .player-modal.player-dossier-shell .player-dossier-analytics:has(.player-dna-compare-toggle[aria-expanded="true"]) .player-dna-v4{
    padding:6px 12px 12px!important;
  }
  .player-modal.player-dossier-shell .player-dossier-analytics:has(.player-dna-compare-toggle[aria-expanded="true"]) .player-dna-v4 .player-radar{
    width:auto!important;
    max-width:100%!important;
    height:200px!important;
    max-height:200px!important;
  }
}

/* The third dossier row is content-sized, not a viewport-filling spacer.
   That keeps Career Stats directly after Attributes/DNA/Info while the modal
   scrolls normally when the fixed desktop panels exceed one viewport. */
@media (min-width:1280px){
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell){
    overflow:hidden!important;
  }
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-profile-sheet{
    height:100dvh!important;
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  :is(.player-modal.developer-player-preview,.player-modal.player-dossier-shell) .player-modal-content{
    height:auto!important;
    min-height:100dvh!important;
    overflow:visible!important;
  }
  .player-modal.player-dossier-shell .player-profile-v4{
    height:auto!important;
    min-height:100dvh!important;
    overflow:visible!important;
    align-content:start!important;
    grid-template-rows:158px 196px auto minmax(150px,1fr)!important;
  }
  .player-modal.player-dossier-shell .player-dossier-analytics{
    height:516px!important;
    min-height:516px!important;
  }
  .player-modal.player-dossier-shell .player-career-v4{min-height:150px!important}
}

/* Stadium boardroom art is intentionally warm and neutral: the final artwork
   layers previously used navy overlays, which read as an inner blue glow. */
#profileStadiumPanel :is(.stadium-fan-card-v3,.stadium-readiness-card,.stadium-level-board-v3){
  background-color:#100d08!important;
  border-color:rgba(212,169,79,.24)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -22px 34px rgba(0,0,0,.34),0 12px 28px rgba(0,0,0,.18)!important;
}
#profileStadiumPanel .stadium-fan-card-v3::before{
  background-image:
    linear-gradient(180deg,rgba(10,8,5,.08),rgba(10,8,5,.50) 52%,rgba(10,8,5,.82) 100%),
    linear-gradient(90deg,rgba(10,8,5,.58),rgba(10,8,5,.18) 52%,rgba(10,8,5,.62)),
    url('/management-backgrounds/stadium-fan-demand.webp?v=503582')!important;
  filter:saturate(.82) brightness(.80)!important;
}
#profileStadiumPanel .stadium-readiness-card::before{
  background:
    linear-gradient(90deg,rgba(10,8,5,.74),rgba(10,8,5,.34) 55%,rgba(10,8,5,.60)),
    linear-gradient(180deg,rgba(10,8,5,.12),rgba(10,8,5,.50)),
    url('/management-backgrounds/stadium-financial-readiness.webp?v=503582') center 52%/cover no-repeat!important;
  filter:saturate(.82) brightness(.80)!important;
}
#profileStadiumPanel .stadium-level-board-v3::before{
  background-image:
    linear-gradient(180deg,rgba(10,8,5,.08),rgba(10,8,5,.48) 48%,rgba(10,8,5,.82) 100%),
    linear-gradient(90deg,rgba(10,8,5,.60),rgba(10,8,5,.20) 56%,rgba(10,8,5,.60)),
    url('/management-backgrounds/stadium-development.webp?v=503582')!important;
  filter:saturate(.78) brightness(.78)!important;
}
#profileStadiumPanel .stadium-readiness-ring{
  background:conic-gradient(#d4a94f 0 var(--readiness),rgba(212,169,79,.16) var(--readiness) 100%)!important;
}
#profileStadiumPanel .stadium-readiness-ring::before{background:#171109!important}

/* Final brightness pass: retain the warm treatment but reserve added darkness
   for a short, left-edge readability shadow. The remaining 75% stays clear. */
#profileStadiumPanel .stadium-fan-card-v3::before{
  background-image:
    linear-gradient(180deg,rgba(10,8,5,.02),rgba(10,8,5,.10) 52%,rgba(10,8,5,.28) 100%),
    linear-gradient(90deg,rgba(0,0,0,.94) 0%,rgba(0,0,0,.83) 7%,rgba(0,0,0,.60) 14%,rgba(0,0,0,.30) 19%,transparent 24%),
    url('/management-backgrounds/stadium-fan-demand.webp?v=503582')!important;
  filter:saturate(.94) brightness(.95) contrast(1.02)!important;
}
#profileStadiumPanel .stadium-readiness-card::before{
  background:
    linear-gradient(90deg,rgba(0,0,0,.95) 0%,rgba(0,0,0,.85) 7%,rgba(0,0,0,.62) 14%,rgba(0,0,0,.32) 19%,transparent 24%),
    linear-gradient(180deg,rgba(10,8,5,.02),rgba(10,8,5,.12) 54%,rgba(10,8,5,.30)),
    url('/management-backgrounds/stadium-financial-readiness.webp?v=503582') center 52%/cover no-repeat!important;
  filter:saturate(.94) brightness(.95) contrast(1.02)!important;
}
#profileStadiumPanel .stadium-level-board-v3::before{
  background-image:
    linear-gradient(180deg,rgba(10,8,5,.02),rgba(10,8,5,.12) 48%,rgba(10,8,5,.33) 100%),
    linear-gradient(90deg,rgba(10,8,5,.40),rgba(10,8,5,.08) 56%,rgba(10,8,5,.28)),
    url('/management-backgrounds/stadium-development.webp?v=503582')!important;
  filter:saturate(.92) brightness(.95) contrast(1.02)!important;
}

/* Restore the earlier category-light treatment: the glow originates at the
   upper-left and fades diagonally across the existing espresso panel. */
.player-modal.player-dossier-shell .player-attribute-group.stat-low{
  border-color:rgba(255,121,136,.48)!important;
  background:radial-gradient(125% 125% at 0 0,rgba(194,48,72,.34),transparent 56%),linear-gradient(145deg,rgba(92,25,40,.40),rgba(9,8,6,.95) 72%)!important;
  box-shadow:inset 20px 18px 34px rgba(194,48,72,.18),inset 0 1px 0 rgba(255,255,255,.07),0 10px 22px rgba(0,0,0,.18)!important;
}
.player-modal.player-dossier-shell .player-attribute-group.stat-medium{
  border-color:rgba(246,207,104,.46)!important;
  background:radial-gradient(125% 125% at 0 0,rgba(184,133,30,.34),transparent 56%),linear-gradient(145deg,rgba(89,65,19,.38),rgba(9,8,6,.95) 72%)!important;
  box-shadow:inset 20px 18px 34px rgba(184,133,30,.18),inset 0 1px 0 rgba(255,255,255,.07),0 10px 22px rgba(0,0,0,.18)!important;
}
.player-modal.player-dossier-shell .player-attribute-group:is(.stat-high,.stat-elite){
  border-color:rgba(105,235,178,.42)!important;
  background:radial-gradient(125% 125% at 0 0,rgba(34,150,100,.32),transparent 56%),linear-gradient(145deg,rgba(22,77,52,.38),rgba(9,8,6,.95) 72%)!important;
  box-shadow:inset 20px 18px 34px rgba(34,150,100,.18),inset 0 1px 0 rgba(255,255,255,.07),0 10px 22px rgba(0,0,0,.18)!important;
}

/* Trade pack detail keeps the artwork floating on the modal, while its rule
   card remains the only deliberate framed surface in the left column. */
.trade-pack-sidebar{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.trade-protection-note{
  color:#e5c377!important;
  border-color:rgba(212,169,79,.22)!important;
  background:rgba(212,169,79,.08)!important;
}
.trade-heading-back.club-hub-back{
  position:static!important;
  z-index:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 11px 0 8px!important;
  border-radius:999px!important;
  font:800 .66rem/1 var(--body)!important;
  letter-spacing:.03em!important;
}
.trade-heading-back.club-hub-back svg{width:17px!important;height:17px!important}
.trade-heading-back.club-hub-back span{display:block!important}

/* Global warm selection replaces the legacy cyan browser highlight. */
::selection{background:#e5c377!important;color:#1a1207!important;text-shadow:none!important}
::-moz-selection{background:#e5c377!important;color:#1a1207!important;text-shadow:none!important}

/* The competition badge is an initial-only placeholder when no supplied logo
   exists. It deliberately differs from the circular club crest fallback. */
#profileCompetitionsPanel .competition-hero-emblem{
  border:1px solid rgba(212,169,79,.46)!important;
  border-radius:12px 7px 12px 7px!important;
  background:radial-gradient(circle at 35% 26%,#5b4318,#181109 72%)!important;
  color:#f0d79b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 8px 18px rgba(0,0,0,.24)!important;
  text-shadow:none!important;
}

/* Sponsor category labels are neutral hierarchy, not performance semantics. */
#profileSponsorPanel .sponsor-offer-card.premium>span,
#profileSponsorPanel .sponsor-summary-strip span,
#profileSponsorPanel .sponsor-choice-panel>header span,
#profileSponsorPanel .sponsor-insight-panel>span,
#profileSponsorPanel .sponsor-active-premium>div>span{color:#e5c377!important}
#profileSponsorPanel :is(.sponsor-offer-card,.sponsor-choice-panel,.sponsor-active-premium,.sponsor-insight-panel) h3,
#profileSponsorPanel :is(.sponsor-offer-card,.sponsor-active-premium,.sponsor-insight-panel)>strong{color:#fbf7ef!important}

/* Targeted menu, filter and status corrections. These selectors follow the
   active renderers so legacy cool-colour rules cannot leak into product UI. */
.store-coming-soon-view.is-compact-notice{
  display:grid!important;
  min-width:min(360px,calc(100vw - 40px));
  padding:34px 42px!important;
}
.store-coming-soon-view.is-compact-notice :is(.store-modal-kicker,.store-modal-icon,.store-modal-message){display:none!important}
.store-coming-soon-view.is-compact-notice .store-modal-card h2,
.store-coming-soon-view.is-compact-notice h2{color:#fbf7ef!important;text-align:center!important;text-shadow:none!important}

/* Shared tactical controls use the warm selected-value hierarchy. Attack
   Focus is a details composite rather than a native select, so it needs the
   same value colour explicitly. The lineup copy is neutral warm metadata;
   the ready check remains semantic green. */
#profileTacticsPanel :is(.tc5-multiselect>summary,.goat-select-trigger){color:#e5c377!important}
#profileTacticsPanel .tc5-lineup-summary>b.not-ready,
#profileTacticsPanel .tc5-ready>span>b{color:#e5c377!important}
#profileTacticsPanel .tc5-ready>span>small{color:#d9d1c2!important}

/* The selector below intentionally outranks the earlier grouped legal-card
   surface rule. It strips chrome from headers only; document sections and
   support cards retain their panel treatment. */
.legal-support-view .legal-page-hero{
  background:transparent!important;
  border:0!important;
  border-image:none!important;
  box-shadow:none!important;
}
.legal-document .legal-primary-button,
.legal-document .legal-primary-button:hover,
.legal-document .legal-primary-button:focus-visible,
.legal-document .legal-primary-button:active{
  color:#1a1207!important;
  -webkit-text-fill-color:#1a1207!important;
}

/* The gallery has no return destination. The native hidden state makes that
   contract explicit; the detail renderer enables it for a concrete pack. */
#tradeStoreBack[hidden]{display:none!important}
.trade-pack-card:hover{outline:none!important}
.trade-pack-card:focus-visible{outline:none!important}
.trade-pack-card:focus-visible .trade-pack-copy strong{
  color:#f0d79b!important;
  text-decoration:underline;
  text-decoration-color:#d4a94f;
  text-decoration-thickness:2px;
  text-underline-offset:5px;
}
.trade-pack-card:focus-visible .trade-pack-art img{filter:drop-shadow(0 18px 28px rgba(0,0,0,.4)) drop-shadow(0 0 8px rgba(212,169,79,.42))!important}

/* Typed squad, lineup, registration and tactics filters use one warm field
   contract in rest and focus states. */
:is(#profileSquadPanel,#profileLineupPanel,#profileRegistrationPanel,#profileTacticsPanel) :is(input[type="text"],input[type="search"],input[type="number"]){
  background:#110e09!important;
  border-color:rgba(212,169,79,.28)!important;
  color:#fbf7ef!important;
  caret-color:#e5c377!important;
  box-shadow:none!important;
}
:is(#profileSquadPanel,#profileLineupPanel,#profileRegistrationPanel,#profileTacticsPanel) :is(input[type="text"],input[type="search"],input[type="number"])::placeholder{color:#d9d1c2!important;opacity:1!important}
:is(#profileSquadPanel,#profileLineupPanel,#profileRegistrationPanel,#profileTacticsPanel) :is(input[type="text"],input[type="search"],input[type="number"]):focus{
  border-color:rgba(229,195,119,.82)!important;
  outline:2px solid rgba(212,169,79,.20)!important;
  outline-offset:1px!important;
  box-shadow:0 0 0 3px rgba(212,169,79,.08)!important;
}
#profileSquadPanel .results-count{color:#b8aa91!important}

/* Automated-reaction OFF is a restrained danger state; CLEAR ALL remains a
   reachable utility control without competing with primary actions. */
#profileTacticsPanel .tc5-reaction-card:not(.enabled)>i{color:#d88b82!important}
#profileTacticsPanel#profileTacticsPanel .tc5-clear-reactions{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:.58rem!important;
}
.office-app-scroll #profileTacticsPanel#profileTacticsPanel .tc5-clear-reactions{
  min-height:34px!important;
  padding:0 12px!important;
  font-size:.58rem!important;
}

/* Facility search is an eyebrow label, while registration communicates real
   open/saved success states with restrained semantic green. */
#worldView .goat-world-player-search{color:#d6b66f!important}
#profileRegistrationPanel .league-registration-status.is-open{
  border-color:rgba(102,196,132,.52)!important;
  background:rgba(39,104,61,.24)!important;
  color:#a9e7bb!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(72,156,101,.08)!important;
}
#profileRegistrationPanel #leagueRegistrationWindowLabel.is-open{color:#a9e7bb!important}
#profileRegistrationPanel .league-registration-save-icon{border-color:rgba(212,169,79,.32)!important;background:#211d14!important;color:#e5c377!important}
#profileRegistrationPanel .league-registration-save-state strong{color:#f5efe5!important}
#profileRegistrationPanel .league-registration-save-state small{color:#a79d8f!important}
#profileRegistrationPanel .league-registration-save-state.is-saving .league-registration-save-icon{border-color:rgba(212,169,79,.56)!important;background:rgba(92,67,24,.34)!important;color:#f0d79b!important}
#profileRegistrationPanel .league-registration-save-state.is-error .league-registration-save-icon{border-color:rgba(192,74,63,.62)!important;background:rgba(91,31,27,.40)!important;color:#e4978f!important}
#profileRegistrationPanel .league-registration-save-state.is-error strong{color:#f1b0a9!important}
#profileRegistrationPanel .league-registration-save-state.is-saved .league-registration-save-icon{
  border-color:rgba(102,196,132,.54)!important;
  background:rgba(39,104,61,.24)!important;
  color:#a9e7bb!important;
  box-shadow:0 0 0 1px rgba(72,156,101,.08)!important;
}
#profileRegistrationPanel .league-registration-save-state.is-saved strong{color:#c8f0d2!important}

/* 3.0A.50.35.64 — targeted phone compatibility pass. These rules are
   deliberately orientation/viewport scoped so the canonical desktop desks
   and all gameplay renderers keep their existing geometry. */
body>.goat-phone-orientation-gate{display:none}
.goat-phone-orientation-card{
  width:min(420px,calc(100vw - 36px));
  padding:34px 28px 31px;
  border:1px solid rgba(212,169,79,.48);
  border-radius:24px;
  background:
    radial-gradient(circle at 50% 0,rgba(212,169,79,.13),transparent 42%),
    linear-gradient(155deg,#19150e,#090806 72%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 28px 80px rgba(0,0,0,.62);
  text-align:center;
}
.goat-phone-orientation-icon{
  width:58px;
  height:58px;
  margin-bottom:16px;
  fill:none;
  stroke:#d4a94f;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.goat-phone-orientation-card>span{display:block;color:#e5c377;font-size:.64rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.goat-phone-orientation-card h2{margin:9px 0 0;color:#fbf7ef;font-family:var(--display);font-size:clamp(2rem,10vw,3.1rem);line-height:.92;text-transform:uppercase}
.goat-phone-orientation-card p{margin:17px auto 0;color:#b8aa91;font-size:.84rem;line-height:1.55}
.goat-phone-orientation-card small{display:block;margin-top:16px;color:#746b5d;font-size:.66rem}
.goat-phone-orientation-card .gate-copy{display:none}
.goat-phone-orientation-back{
  min-height:42px;
  margin-top:21px;
  padding:0 17px;
  border:1px solid rgba(212,169,79,.52);
  border-radius:999px;
  background:linear-gradient(145deg,rgba(64,49,27,.92),rgba(25,19,11,.96));
  color:#f3e5c7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 22px rgba(0,0,0,.28);
  cursor:pointer;
  font:800 .66rem/1 var(--body);
  letter-spacing:.11em;
  text-transform:uppercase;
}
.goat-phone-orientation-back:focus-visible{outline:2px solid #e5c377;outline-offset:3px}

/* The class is granted only by the single JavaScript phone-viewport check.
   Keeping this outside a second CSS orientation condition prevents a browser
   timing mismatch from making an active gate invisible after navigation. */
body.goat-phone-orientation-gate{overflow:hidden!important;background:#050403!important}
body.goat-phone-orientation-gate>.goat-phone-orientation-gate:not([hidden]){
  position:fixed;
  z-index:110;
  inset:0;
  display:grid;
  place-items:center;
  box-sizing:border-box;
  padding:max(18px,env(safe-area-inset-top)) 18px max(18px,env(safe-area-inset-bottom));
  background:rgba(5,4,3,.96);
  pointer-events:auto;
}
body.goat-phone-orientation-gate .gate-copy{display:block}

/* The Store card is a fixed viewport shell on phones. The former mobile rule
   changed its inner grid to height:auto while the shell still clipped
   overflow; the resulting over-height grid could never hand scrolling to the
   content pane. Keep a constrained two-row grid and make that pane the sole
   scroll owner. */
@media (max-width:720px){
  .store-modal.trade-store-active .store-modal-card{box-sizing:border-box!important;padding:0!important;display:block!important}
  .store-modal.trade-store-active .trade-store-view{height:100%!important;min-height:0!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
  .store-modal.trade-store-active .trade-store-heading{flex:0 0 auto;padding:20px 50px 15px 16px!important}
  .store-modal.trade-store-active .trade-store-body,
  .store-modal.trade-store-active .trade-store-body.trade-pack-mode{
    min-height:0!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    padding:16px 14px max(32px,calc(18px + env(safe-area-inset-bottom)))!important;
  }
  .store-modal.trade-store-active .trade-pack-detail{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}

  .store-modal:not(.trade-store-active){place-items:center!important;padding:16px!important}
  .store-modal:not(.trade-store-active) .store-modal-card{box-sizing:border-box;width:min(366px,calc(100vw - 32px))!important;margin:auto!important;padding:0!important}
  .store-modal:not(.trade-store-active) .store-coming-soon-view.is-compact-notice{box-sizing:border-box;width:100%!important;min-width:0!important;min-height:min(390px,calc(100dvh - 32px));padding:54px 28px 38px!important;place-content:center}
}

@media (max-width:600px) and (orientation:portrait){
  /* Fit the real Lineup component instead of masking its oversized desktop
     column. Slot coordinates and click/drag handlers are unchanged. */
  #profileLineupPanel,#profileLineupPanel .lineup-workspace,#profileLineupPanel .lineup-pitch-column{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important}
  #profileLineupPanel .lineup-workspace{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  #profileLineupPanel .lineup-pitch-column{justify-self:stretch!important}
  #profileLineupPanel .lineup-pitch{width:100%!important;max-width:calc(100vw - 38px)!important;margin-inline:auto!important;aspect-ratio:.82!important}
  #profileLineupPanel .lineup-slot{width:clamp(52px,16.5vw,70px)!important;min-width:0!important}
  #profileLineupPanel .lineup-pitch-card{max-width:100%!important}
  #profileLineupPanel #lineupOwnerControls{box-sizing:border-box!important;width:100%!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:100%!important}
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions>button{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:5px 6px!important;gap:4px!important;font-size:clamp(.5rem,2.3vw,.62rem)!important;white-space:nowrap!important}
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions>button img{width:14px!important;height:14px!important;object-fit:contain!important}

  /* Stadium KPI cards remain a two-column summary, but their icon/value scale
     now follows the available card width and long money values can shrink. */
  #profileStadiumPanel .stadium-premium-kpis-v3{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #profileStadiumPanel .stadium-premium-kpis-v3 article{min-height:78px!important;grid-template-columns:clamp(30px,9vw,40px) minmax(0,1fr)!important;gap:8px!important;padding:10px!important}
  #profileStadiumPanel .stadium-premium-kpis-v3 .management-asset-icon{width:clamp(30px,9vw,40px)!important;height:clamp(30px,9vw,40px)!important}
  #profileStadiumPanel .stadium-premium-kpis-v3 span{font-size:clamp(.43rem,1.8vw,.55rem)!important;line-height:1.18!important;overflow-wrap:anywhere}
  #profileStadiumPanel .stadium-premium-kpis-v3 strong{font-size:clamp(.82rem,4vw,1.08rem)!important;letter-spacing:-.035em!important;white-space:nowrap!important}

  /* The island already scales responsively; match the live manager sprite and
     its nameplate to that smaller scene without changing the anchor point. */
  #worldView .goat-world-manager-sprite{width:clamp(17px,5.4vw,21px)!important}
  #worldView .goat-world-manager img{width:100%!important}
  #worldView .goat-world-manager span{max-width:92px!important;padding:2px 5px!important;font-size:clamp(.42rem,1.65vw,.50rem)!important;letter-spacing:.035em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

  /* Team-name pressure may truncate the sides; the score itself never wraps. */
  :is(#matchCentreView,#profileCentrePanel) .mc-hub-versus{grid-template-columns:minmax(0,1fr) minmax(76px,auto) minmax(0,1fr)!important;gap:5px!important}
  :is(#matchCentreView,#profileCentrePanel) .mc-hub-score-area{min-width:76px!important}
  :is(#matchCentreView,#profileCentrePanel) .mc-hub-score-area b{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:max-content!important;white-space:nowrap!important;word-break:keep-all!important;line-height:1!important}
}

/* A phone in landscape can be more than 900 CSS pixels wide. Low height plus
   orientation identifies the requested range in both a real browser and the
   Mobile Experience Lab iframe. */
@media (orientation:landscape) and (max-height:500px) and (max-width:1000px){
  .store-modal:not(.trade-store-active){place-items:center!important;padding:10px!important;overflow:auto!important}
  .store-modal:not(.trade-store-active) .store-modal-card{box-sizing:border-box!important;width:min(430px,calc(100vw - 20px))!important;max-height:calc(100dvh - 20px)!important;margin:auto!important;padding:0!important;overflow:auto!important}
  .store-modal:not(.trade-store-active) .store-coming-soon-view.is-compact-notice{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:0!important;padding:40px 28px 28px!important}
  .store-modal:not(.trade-store-active) .store-coming-soon-view.is-compact-notice h2{font-size:clamp(1.7rem,5vw,2.5rem)!important;line-height:.95!important}

  body.office-open .office-view{width:100vw!important;height:100dvh!important;background:#050403!important}
  body.office-open :is(.office-room-look-layer,.office-desk-globe,.office-desk-globe-stand,.office-desk-globe-beam,.office-desk-calendar,.office-scroll-hint){display:none!important}
  body.office-open .office-scene,body.office-open .office-device-stage{inset:0!important;width:100vw!important;height:100dvh!important;transform:none!important;scale:1!important;filter:none!important;perspective:none!important}
  body.office-open .office-device-stage{display:block!important;pointer-events:none!important}
  body.office-open .office-tablet{position:absolute!important;inset:0!important;width:100vw!important;height:100dvh!important;aspect-ratio:auto!important;transform:none!important;filter:none!important;transition:none!important}
  body.office-open .office-tablet{pointer-events:auto!important}
  body.office-open .office-tablet-frame{inset:0!important;border:0!important;border-radius:0!important;background:#050403!important;box-shadow:none!important}
  body.office-open .office-tablet-frame::before,body.office-open :is(.office-tablet-camera,.office-tablet-home){display:none!important}
  body.office-open .office-tablet .office-screen{inset:0!important;width:100%!important;height:100%!important;padding:0 2.2% 2.4%!important;border:0!important;border-radius:0!important;box-shadow:none!important}
  body.office-open .office-back{position:fixed!important;z-index:90!important;top:max(6px,env(safe-area-inset-top))!important;left:max(6px,env(safe-area-inset-left))!important;width:34px!important;height:34px!important;padding:7px!important;border-radius:50%!important}
  body.office-open .office-view.has-app-open>.office-back{display:none!important;pointer-events:none!important}
  body.office-open .office-view.has-app-open .office-app-shell{z-index:95!important;pointer-events:auto!important}
  body.office-open .office-view.has-app-open .office-app-toolbar{position:relative!important;z-index:2!important}
  body.office-open .office-view.has-app-open .office-app-toolbar button{position:relative!important;z-index:3!important;pointer-events:auto!important}

  body:is(.goat-phone-gate-finances,.goat-phone-gate-contracts) #profileView,
  body:is(.goat-phone-gate-finances,.goat-phone-gate-contracts) .profile-tab-panel.active,
  body:is(.goat-phone-gate-finances,.goat-phone-gate-contracts) :is(#profileFinancesPanel,#profileContractsPanel){box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important}
  body:is(.goat-phone-gate-finances,.goat-phone-gate-contracts) :is(.goat-management-page,.goat-management-body,.finance-bank-main-v2,.finance-bank-breakdowns,.finance-commitment-list,.contracts-main-layout,.contracts-main-layout.agency,.contract-toolbar,.contract-table-panel){box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
  body.goat-phone-gate-finances :is(.finance-bank-main-v2,.finance-bank-breakdowns,.finance-support-grid){grid-template-columns:1fr!important}
  body.goat-phone-gate-contracts :is(.contracts-main-layout,.contracts-main-layout.agency,.contract-side-stack.agency){grid-template-columns:1fr!important}
  body.goat-phone-gate-contracts .contract-filter-inputs{display:flex!important;flex-wrap:wrap!important}
  body.goat-phone-gate-contracts .contract-filter-inputs>*{min-width:0!important;max-width:100%!important}
  body.goat-phone-gate-contracts .contract-table-panel.agency{width:100%!important;min-width:0!important;overflow:hidden!important}
  body.goat-phone-gate-contracts .contract-table-panel.agency>.finance-table-wrap{box-sizing:border-box!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}

  /* Preserve the real dossier at a 1180px logical canvas and let CSS zoom
     participate in layout/click geometry. The measured scale is supplied by
     app.js, so every target landscape width exactly fits the viewport. */
  body.player-profile-open .player-modal.player-dossier-shell{display:block!important;width:100vw!important;height:100dvh!important;overflow:hidden!important}
  body.player-profile-open .player-modal.player-dossier-shell .player-profile-sheet{position:fixed!important;inset:0!important;display:block!important;width:100vw!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  body.player-profile-open .player-modal-content{
    width:var(--goat-phone-profile-logical-width)!important;
    max-width:none!important;
    height:auto!important;
    min-height:var(--goat-phone-profile-logical-height)!important;
    overflow:visible!important;
    zoom:var(--goat-phone-profile-scale);
  }
  body.player-profile-open .player-profile-v4{
    box-sizing:border-box!important;
    width:1180px!important;
    height:auto!important;
    min-height:1030px!important;
    padding:54px 18px 20px 30px!important;
    grid-template-columns:220px minmax(0,1fr)!important;
    grid-template-rows:158px 196px 516px 150px!important;
    gap:12px 14px!important;
    overflow:visible!important;
  }
  body.player-profile-open .player-dossier-left{grid-column:1!important;grid-row:1/5!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important}
  body.player-profile-open .player-dossier-card-wrap .profile-footballer-card{width:200px!important;max-width:200px!important}
  body.player-profile-open .player-dossier-facts>div{grid-template-columns:1fr 1fr!important}
  body.player-profile-open .player-dossier-hero{grid-column:2!important;grid-row:1!important;grid-template-columns:minmax(0,1fr) 200px 205px!important}
  body.player-profile-open .player-dossier-club-mark{grid-column:3!important;justify-self:end!important;align-self:center!important;margin-right:12px!important}
  body.player-profile-open .player-dossier-actions{grid-column:auto!important;display:grid!important;grid-template-columns:1fr!important;border-top:0!important;border-left:1px solid rgba(212,169,79,.16)!important}
  body.player-profile-open .player-dossier-top{grid-column:2!important;grid-row:2!important;grid-template-columns:.98fr 1.36fr 1.08fr 1.28fr!important;gap:12px!important}
  /* Phone-landscape dossier: preserve the established canvas and shrink only
     the dense top-row internals so each real data panel can breathe. */
  body.player-profile-open .player-dossier-top>.player-dossier-panel{padding:8px 9px!important;border-radius:10px!important}
  body.player-profile-open .player-dossier-top>.player-dossier-panel>header{min-height:15px!important;margin-bottom:4px!important;gap:4px!important;line-height:1!important}
  body.player-profile-open .player-dossier-top>.player-dossier-panel>header span{font-size:.48rem!important;line-height:1!important;letter-spacing:.07em!important}
  body.player-profile-open .player-dossier-top>.player-dossier-panel>header b{font-size:.47rem!important;line-height:1!important;letter-spacing:.03em!important}
  body.player-profile-open .player-contract-grid-v4{gap:4px!important;grid-auto-rows:minmax(34px,auto)!important}
  body.player-profile-open .player-contract-grid-v4 p{min-height:0!important;padding:5px 6px!important;border-radius:6px!important}
  body.player-profile-open .player-contract-grid-v4 span{font-size:.46rem!important;line-height:1.05!important}
  body.player-profile-open .player-contract-grid-v4 strong{margin-top:1px!important;font-size:.60rem!important;line-height:1.05!important}
  body.player-profile-open .player-contract-willingness{min-height:22px!important;margin-top:4px!important;padding:4px 5px!important;gap:4px!important;border-radius:6px!important}
  body.player-profile-open .player-contract-willingness span{font-size:.40rem!important;line-height:1!important;letter-spacing:.035em!important}
  body.player-profile-open .player-contract-willingness strong{font-size:.50rem!important;line-height:1!important}
  body.player-profile-open .player-positions-layout-v4{width:100%!important;min-width:0!important;height:132px!important;min-height:0!important;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;gap:6px!important}
  body.player-profile-open .player-position-pitch-v4{width:100%!important;min-width:0!important;min-height:0!important;height:100%!important}
  body.player-profile-open .player-position-list-v4{width:100%!important;min-width:0!important;height:100%!important;align-content:center!important;gap:4px!important}
  body.player-profile-open .player-position-list-v4 :is(p,button){box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:22px!important;padding:3px 4px!important;display:flex!important;align-items:center!important;gap:2px!important}
  body.player-profile-open .player-position-list-v4 strong{box-sizing:border-box!important;flex:0 0 3ch!important;width:3ch!important;min-width:3ch!important;font-size:.45rem!important;text-align:left!important;white-space:nowrap!important}
  body.player-profile-open .player-position-list-v4 span{flex:0 0 .75ch!important;min-width:.75ch!important;font-size:.44rem!important;white-space:nowrap!important}
  body.player-profile-open .player-position-list-v4 em{flex:1 1 auto!important;min-width:0!important;font-size:.44rem!important;white-space:nowrap!important}
  body.player-profile-open .player-performance-v4>header{display:grid!important;grid-template-columns:minmax(0,1fr) 80px!important;align-items:start!important}
  body.player-profile-open .player-performance-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:2px!important;width:80px!important}
  body.player-profile-open .player-performance-tabs button{box-sizing:border-box!important;min-width:0!important;height:20px!important;min-height:20px!important;padding:0 3px!important;border-radius:4px!important;font:800 .50rem/1 var(--body)!important;letter-spacing:0!important}
  body.player-profile-open .player-performance-v4>div{gap:3px!important}
  body.player-profile-open .player-performance-v4 p{min-width:0!important;padding:3px!important;border-radius:5px!important}
  body.player-profile-open .player-performance-v4 p span{font-size:.42rem!important;line-height:1.05!important}
  body.player-profile-open .player-performance-v4 p strong{margin-top:1px!important;font-size:.55rem!important;line-height:1!important}
  body.player-profile-open .player-form-v4{padding:8px 9px!important}
  body.player-profile-open .player-form-match-strip{gap:3px!important}
  body.player-profile-open .player-form-match{padding:4px!important;border-radius:5px!important}
  body.player-profile-open .player-form-match>span,body.player-profile-open .player-form-match>small{font-size:.45rem!important;line-height:1.05!important}
  body.player-profile-open .player-form-match>strong{margin:1px 0!important;font-size:.56rem!important;line-height:1!important}
  body.player-profile-open .player-form-v4 .player-form-empty{min-height:0!important;font-size:.52rem!important;line-height:1.2!important}
  body.player-profile-open .player-attribute-group li{display:flex!important;align-items:center!important;flex-wrap:wrap!important;column-gap:4px!important}
  body.player-profile-open .player-attribute-group li>span{flex:1 1 0!important;min-width:0!important}
  body.player-profile-open .player-attribute-group li b{box-sizing:border-box!important;flex:0 0 2.4ch!important;width:2.4ch!important;margin-left:auto!important;text-align:right!important;font-variant-numeric:tabular-nums!important}
  body.player-profile-open .player-attribute-group li>i{flex:0 0 100%!important;width:100%!important}
  body.player-profile-open .player-dossier-analytics{grid-column:2!important;grid-row:3!important;height:516px!important;min-height:516px!important;grid-template-columns:minmax(0,1fr) 220px!important;grid-template-rows:358px 149px!important;gap:12px!important}
  body.player-profile-open .player-attributes-v4{grid-column:1!important;grid-row:1/3!important}
  body.player-profile-open .player-dna-v4{grid-column:2!important;grid-row:1!important;height:358px!important;min-height:358px!important}
  body.player-profile-open .player-status-v4{grid-column:2!important;grid-row:2!important;height:149px!important;min-height:149px!important;display:flex!important;flex-direction:column!important;padding:7px 12px!important}
  body.player-profile-open .player-status-v4>div{display:flex!important;flex:1!important;min-height:0!important;flex-direction:column!important}
  body.player-profile-open .player-status-v4 p{display:flex!important;flex:1!important;min-height:0!important;padding-block:0!important}
  body.player-profile-open .player-attribute-grid-v4{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:auto!important;height:calc(100% - 24px)!important}
  body.player-profile-open .player-career-v4{grid-column:2!important;grid-row:4!important;height:150px!important}
  body.player-profile-open .player-career-table-v4{height:calc(100% - 28px)!important;overflow-x:auto!important}
  body.player-profile-open .player-career-table-v4 table{min-width:0!important}
}

/* 3.0A.50.35.65 — final league/UI release-floor corrections. */
/* Elite attribute semantics must win the late green high-tier compatibility
   rule. The class is supplied by the shared statTone() contract. */
.player-modal.player-dossier-shell .player-attribute-group.stat-elite{
  border-color:rgba(160,103,255,.62)!important;
  background:radial-gradient(125% 125% at 0 0,rgba(133,70,226,.36),transparent 56%),linear-gradient(145deg,rgba(82,38,142,.42),rgba(11,8,17,.92) 72%)!important;
  box-shadow:inset 20px 18px 34px rgba(133,70,226,.20),inset 0 1px 0 rgba(255,255,255,.07),0 10px 22px rgba(0,0,0,.18)!important;
}
.player-modal.player-dossier-shell .player-attribute-group.stat-elite .attribute-score{
  border-color:#ae77ff!important;background:rgba(105,52,177,.72)!important;color:#fff!important;
}
.player-modal.player-dossier-shell .player-attribute-group.stat-elite li>i em.stat-elite{
  background:#9d68f4!important;box-shadow:0 0 8px rgba(157,104,244,.25)!important;
}

/* Player Trade uses the approved walnut/espresso control family. */
.trade-confirm-card{padding:36px 34px!important;border-radius:20px!important}
.trade-confirm-card h3{margin-top:14px!important;color:#fbf7ef!important;line-height:1.02!important}
.trade-confirm-card p{margin:15px auto 22px!important;color:#b6aa95!important;line-height:1.58!important}
.trade-confirm-actions{gap:12px!important;margin-top:24px!important}
.trade-confirm-actions button{
  min-width:166px!important;min-height:46px!important;padding:0 20px!important;border-radius:10px!important;
  clip-path:none!important;font:900 .68rem/1 var(--body)!important;letter-spacing:.045em!important;text-transform:uppercase!important;
}
.trade-confirm-actions .secondary-button{
  border:1px solid rgba(212,169,79,.36)!important;background:linear-gradient(180deg,#241d12,#151009)!important;
  color:#e5c377!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
}
.trade-confirm-actions .danger-button{
  border:1px solid rgba(209,72,66,.64)!important;background:linear-gradient(180deg,#511d1b,#2b100f)!important;
  color:#ff9e98!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.trade-confirm-actions :is(.secondary-button,.danger-button):focus-visible{outline:2px solid rgba(240,215,155,.68)!important;outline-offset:2px!important}

.trade-result{border:0!important;background:transparent!important;box-shadow:none!important}
.trade-result-pack{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.trade-result-player-card{border:0!important;background:transparent!important;box-shadow:none!important}
.trade-result-actions{width:100%!important;justify-content:center!important}
.trade-result-actions .trade-submit-button{width:auto!important;min-width:230px!important}

/* Store and News share the same dark liquid-glass surface as the main menu. */
.store-modal:is(.trade-store-active,.news-notice-active) .store-modal-backdrop{
  background:rgba(4,3,2,.70)!important;
  -webkit-backdrop-filter:blur(12px) saturate(115%)!important;
  backdrop-filter:blur(12px) saturate(115%)!important;
}
.store-modal:is(.trade-store-active,.news-notice-active) .store-modal-card{
  isolation:isolate;
  border:1px solid var(--goat-glass-edge,rgba(212,169,79,.28))!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.016) 48%,rgba(212,169,79,.075)),
    rgba(8,7,6,.74)!important;
  box-shadow:
    0 32px 90px rgba(0,0,0,.58),
    inset 0 1px 0 var(--goat-glass-highlight,rgba(255,255,255,.14)),
    inset 0 -1px 0 rgba(212,169,79,.10)!important;
  -webkit-backdrop-filter:blur(20px) saturate(140%)!important;
  backdrop-filter:blur(20px) saturate(140%)!important;
}
.store-modal:is(.trade-store-active,.news-notice-active) .store-modal-card::after{
  background:linear-gradient(115deg,transparent 22%,rgba(255,255,255,.065) 47%,transparent 72%)!important;
  opacity:.82!important;
}
@media (max-width:720px){
  .trade-confirm-card{padding:28px 20px!important}
  .trade-confirm-actions{display:grid!important;grid-template-columns:1fr!important}
  .trade-confirm-actions button{width:100%!important;min-width:0!important}
  .trade-result{grid-template-columns:1fr!important;gap:22px!important;min-height:0!important}
  .trade-result-pack{width:min(230px,66vw)!important;justify-self:center!important}
  .trade-result-actions .trade-submit-button{width:100%!important;min-width:0!important}
}

/* 3.0A.50.35.148 — one calm, single-surface confirmation language. */
.goat-confirm-overlay{
  background:rgba(4,3,2,.78)!important;
  backdrop-filter:blur(8px)!important;
}
.goat-confirm-modal{
  display:grid!important;
  gap:22px!important;
  width:min(560px,calc(100vw - 32px))!important;
  padding:30px!important;
  border:1px solid rgba(212,169,79,.36)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#1b1710,#0b0907)!important;
  box-shadow:0 30px 88px rgba(0,0,0,.68)!important;
}
.goat-confirm-modal>h3{
  margin:0!important;
  color:#fbf7ef!important;
  font:900 clamp(1.2rem,2.4vw,1.65rem)/1.12 var(--body)!important;
}
.goat-confirm-copy{padding:0!important;color:#c7bfb0!important;font:.78rem/1.55 var(--body)!important}
.goat-confirm-details{padding:0!important}
.goat-confirm-modal>footer{display:flex!important;justify-content:flex-end!important;gap:12px!important;padding:0!important}
.goat-confirm-modal>footer button,.goat-confirm-action{
  min-width:142px!important;min-height:46px!important;padding:0 20px!important;border-radius:10px!important;
  font:900 .68rem/1 var(--body)!important;letter-spacing:.035em!important;text-transform:uppercase!important;cursor:pointer!important;
}
.goat-confirm-action.positive{border:1px solid #4bd580!important;background:#218c4b!important;color:#fff!important}
.goat-confirm-action.destructive{border:1px solid #cf5049!important;background:#8f2f2b!important;color:#fff!important}
.goat-confirm-action.secondary{border:1px solid rgba(212,169,79,.48)!important;background:linear-gradient(180deg,#302617,#171109)!important;color:#f0cf82!important}
.goat-confirm-action:focus-visible{outline:2px solid #f0d79b!important;outline-offset:3px!important}
/* One shared action family, including recovery/retry actions. The clipped
   legacy secondary-button shape and per-error button skins are retired. */
.goat-confirm-action{clip-path:none!important;transition:background .2s ease,border-color .2s ease,color .2s ease,transform .12s ease}
.goat-confirm-action.secondary:is(:hover,:focus-visible):not(:disabled){border-color:rgba(240,215,155,.78)!important;background:linear-gradient(180deg,#42331c,#21180f)!important;color:#fbf7ef!important}
.goat-confirm-action:active:not(:disabled){transform:translateY(1px)}
.goat-confirm-action:disabled{opacity:.45!important;cursor:not-allowed!important;transform:none!important}

.mail-counter-modal label{display:block!important}.mail-counter-modal input{width:100%!important;min-height:52px!important;padding:0 16px!important;border:1px solid rgba(212,169,79,.52)!important;border-radius:10px!important;background:#090806!important;color:#fff!important;font:800 1.05rem var(--body)!important}
.mail-counter-error:empty{display:none!important}.mail-counter-error{margin:0!important;color:#ff9c96!important}
.trade-confirm-icon{position:relative!important;color:#fff!important;background:transparent!important;line-height:1!important}
.trade-confirm-icon svg{display:block!important;width:48px!important;height:48px!important;overflow:visible!important}
.trade-confirm-card .store-modal-kicker{display:none!important}
.league-registration-modal-card{gap:24px!important}.league-registration-review-summary[hidden]{display:none!important}
.league-registration-modal-actions .danger-button{border-color:#cf5049!important;background:#8f2f2b!important;color:#fff!important}
.league-registration-modal-actions .primary-button{border-color:#4bd580!important;background:#218c4b!important;color:#fff!important}
@media(max-width:600px){
  .goat-confirm-modal{padding:24px 20px!important}
  .goat-confirm-modal>footer{display:grid!important;grid-template-columns:1fr!important}
  .goat-confirm-modal>footer button{width:100%!important}
}

/* Calendar event meaning belongs to the complete day, not only its chip. */
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-league{
  border-color:rgba(212,169,79,0.42)!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.9),rgba(13,12,10,0.97))!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-cup{
  border-color:rgba(198,132,60,.50)!important;
  background:linear-gradient(145deg,rgba(73,43,20,.90),rgba(24,15,9,.98))!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-friendly{
  border-color:rgba(212,169,79,0.46)!important;
  background:linear-gradient(145deg,rgba(54,56,59,.88),rgba(13,12,10,0.98))!important;
  box-shadow:inset 0 0 0 1px rgba(212,169,79,0.06)!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-friendly-planned{
  border-color:rgba(212,169,79,0.46)!important;
  background:linear-gradient(145deg,rgba(54,56,59,.88),rgba(13,12,10,0.98))!important;
  box-shadow:inset 0 0 0 1px rgba(212,169,79,0.06)!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell:is(.has-registration,.has-start,.has-finish,.has-event,.has-offseason){
  border-color:rgba(212,169,79,.48)!important;
  background:linear-gradient(145deg,rgba(70,52,22,.90),rgba(24,18,9,.98))!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-promotion{
  border-color:rgba(91,187,121,.52)!important;
  background:linear-gradient(145deg,rgba(25,78,47,.90),rgba(9,27,17,.98))!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.has-relegation{
  border-color:rgba(201,75,69,.54)!important;
  background:linear-gradient(145deg,rgba(82,29,26,.90),rgba(29,11,10,.98))!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell:is(.has-league,.has-cup,.has-friendly,.has-friendly-planned,.has-registration,.has-start,.has-finish,.has-event,.has-offseason,.has-promotion,.has-relegation):is(:hover,.is-selected){
  filter:brightness(1.13)!important;
  box-shadow:inset 0 0 0 1px rgba(240,215,155,.22),0 0 0 1px rgba(212,169,79,.22)!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell.is-today{
  border-color:rgba(240,215,155,.88)!important;
  box-shadow:inset 0 0 0 2px rgba(212,169,79,.42),0 0 20px rgba(212,169,79,.12)!important;
}

/* Touch hit-testing must match the visible submenu card. The desktop 3D
   projection expands a transformed visual face beyond its clickable plane;
   on coarse pointers that leaves taps landing on the rail behind the card. */
@media (pointer:coarse){
  .club-slider-track{transform-style:flat!important}
  .club-slide{
    rotate:none!important;translate:none!important;scale:1!important;
    filter:brightness(.92) saturate(.96)!important;
  }
  .club-slide.is-focus{filter:brightness(1.04) saturate(1.04)!important}
}

/* 3.0A.50.35.66 — mobile gate and scoped UI polish. */
/* A scheduled day is the semantic calendar surface. Entries remain content,
   rather than becoming a second coloured card inside that day. */
#profileCalendarPanel .goat-calendar-modern .goat-calendar-day-cell .goat-calendar-day-entry:not(.is-more){
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Calendar List rows stay neutral; match type belongs to the compact badge. */
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly{
  border-color:rgba(95,160,109,.48)!important;
  background:linear-gradient(145deg,rgba(24,72,42,.72),rgba(10,27,17,.96))!important;
  box-shadow:inset 3px 0 #5fa06d!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-league{
  border-color:rgba(212,169,79,0.44)!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.74),rgba(13,12,10,0.96))!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-cup{
  border-color:rgba(201,135,63,.48)!important;
  background:linear-gradient(145deg,rgba(70,45,22,.74),rgba(24,15,9,.96))!important;
  box-shadow:inset 3px 0 #c9873f!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item:is(.is-registration,.is-event,.is-start,.is-finish,.is-offseason){
  border-color:rgba(212,169,79,.48)!important;
  background:linear-gradient(145deg,rgba(70,52,22,.76),rgba(24,18,9,.97))!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
#profileCalendarPanel .goat-calendar-fixture-row.is-friendly .goat-calendar-md-badge{
  border-color:rgba(95,160,109,.48)!important;
  background:rgba(38,105,59,.34)!important;
  color:#c5e8cc!important;
}
#profileCalendarPanel .goat-calendar-fixture-row.is-league .goat-calendar-md-badge{
  border-color:rgba(212,169,79,0.48)!important;
  background:rgba(42,34,20,0.3)!important;
  color:#fbf7ef!important;
}
#profileCalendarPanel .goat-calendar-fixture-row.is-cup .goat-calendar-md-badge{
  border-color:rgba(201,135,63,.48)!important;
  background:rgba(105,65,28,.34)!important;
  color:#f0cb9a!important;
}

/* Calendar colour repair: legacy rules above still supplied the cool secondary
   label, cyan kickoff time, and generic weekday tint in the rendered Calendar.
   Keep semantic fixture colours intact; these are structural Calendar labels. */
#profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-datetime > strong{
  color:#fbf7ef!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-datetime > span,
#profileCalendarPanel .goat-calendar-modern .goat-calendar-month-weekdays span{
  color:var(--goat-calendar-muted)!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-datetime > small{
  color:#d4a94f!important;
}

/* Contracts-only portrait repair. The compact tile previously retained a top
   inset while anchoring its artwork to the bottom; lift the complete approved
   compact rendition slightly without changing its scale or other routes. */
#profileContractsPanel .contract-player-cell.agency .portrait img{
  padding-top:0!important;
  transform:translateY(-2px)!important;
  transform-origin:center bottom!important;
}

/* The negotiation identity uses a distinct portrait window. Keep its approved
   dimensions; only its Asian 2:3 rendition needs a local fill compensation. */
#profileContractsPanel .contract-identity-section-v5 .contract-portrait-frame{
  width:118px!important;
  height:148px!important;
  border:1px solid rgba(212,169,79,.30)!important;
  background:radial-gradient(circle at 50% 27%,rgba(240,215,155,.20),rgba(84,61,20,.48) 53%,rgba(18,13,7,.94) 100%)!important;
  box-shadow:inset 0 1px 0 rgba(255,244,227,.10)!important;
}
#profileContractsPanel .contract-identity-section-v5 .contract-portrait-frame img{
  transform:none!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
/* Every card-framed catalogue, including Australia / New Zealand, uses the
   approved fill in this Contracts window. The shared class keeps their head/shoulder framing identical while
   leaving every portrait source and assignment untouched. */
#profileContractsPanel .contract-identity-section-v5 .contract-portrait-frame.is-catalogue-fill-portrait img{
  object-fit:cover!important;
  object-position:center center!important;
  transform:none!important;
}

/* The four detail metric labels are supporting information, not disabled
   copy. Use the established brighter muted-gold token while retaining the
   cream values and existing icon treatment. */
#profileContractsPanel .contract-detail-grid-v5>p>span{color:#e5c377!important}

/* Contracts detail metrics form one horizontal information unit: a quiet
   cream/gold glyph on the left and a vertically centred label/value stack on
   the right. Loyalty keeps its semantic progress bar below that shared row. */
#profileContractsPanel .contract-detail-grid-v5>p{
  display:grid!important;
  grid-template-columns:28px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:9px!important;
  row-gap:2px!important;
  align-items:center!important;
  align-content:center!important;
  min-height:76px!important;
  padding:10px 11px!important;
}
#profileContractsPanel .contract-detail-grid-v5 .contract-detail-icon{
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:center!important;
}
#profileContractsPanel .contract-detail-grid-v5>p> :is(span,strong){grid-column:2!important}
#profileContractsPanel .contract-detail-grid-v5>p>strong{color:#fbf7ef!important}
#profileContractsPanel .contract-detail-grid-v5>p:has(.contract-loyalty-line){
  grid-template-rows:auto auto auto!important;
}
#profileContractsPanel .contract-detail-grid-v5 .contract-loyalty-line{
  grid-column:1 / -1!important;
  width:100%!important;
  margin-top:6px!important;
}

/* A published fixture has a persisted result_tone. It owns its Calendar day
   and entry colour; future fixtures continue using their competition styling. */
#profileCalendarPanel .goat-calendar-legend i.is-result-win{background:#59c982!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-legend i.is-result-loss{background:#d96a68!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-legend i.is-result-draw{background:#d4a94f!important;box-shadow:none!important}
#profileCalendarPanel .goat-calendar-day-cell.has-result-win{border-color:rgba(89,201,130,.58)!important;background:linear-gradient(145deg,rgba(26,94,58,.84),rgba(9,35,23,.96))!important}
#profileCalendarPanel .goat-calendar-day-cell.has-result-loss{border-color:rgba(217,106,104,.58)!important;background:linear-gradient(145deg,rgba(104,36,36,.84),rgba(43,12,15,.96))!important}
#profileCalendarPanel .goat-calendar-day-cell.has-result-draw{border-color:rgba(212,169,79,.62)!important;background:linear-gradient(145deg,rgba(94,68,22,.84),rgba(39,28,8,.96))!important}
#profileCalendarPanel .goat-calendar-day-entry:is(.is-result-win,.is-result-loss,.is-result-draw){color:#fbf7ef!important}
#profileCalendarPanel .goat-calendar-day-entry.is-result-win .goat-calendar-entry-icon{filter:brightness(0) saturate(100%) invert(92%) sepia(11%) saturate(397%) hue-rotate(80deg) brightness(109%) contrast(97%)!important}
#profileCalendarPanel .goat-calendar-day-entry.is-result-loss .goat-calendar-entry-icon,
#profileCalendarPanel .goat-calendar-day-entry.is-result-draw .goat-calendar-entry-icon{filter:brightness(0) saturate(100%) invert(99%) sepia(4%) saturate(1010%) hue-rotate(327deg) brightness(116%) contrast(95%)!important}
#profileCalendarPanel .goat-calendar-day-entry:is(.is-result-win,.is-result-loss,.is-result-draw) :is(b,small){color:#fbf7ef!important}

/* POT is a Contracts hierarchy indicator, not a rainbow quality tier. Keep
   every potential class inside the established warm gold/cream language. */
#profileContractsPanel .contract-potential-score{
  --contract-pot:#d4a94f!important;
  border-color:var(--contract-pot)!important;
  background:radial-gradient(circle at 34% 25%,rgba(240,215,155,.18),rgba(45,31,10,.92) 68%)!important;
  box-shadow:0 0 14px rgba(212,169,79,.14)!important;
}
#profileContractsPanel .contract-potential-score b{color:#fbf7ef!important}
#profileContractsPanel .contract-potential-score span{color:#e5c377!important}

/* Post-.99 theme closure: these remaining report/form accents were inherited
   from the retired blue Match Centre skin. */
.centre-report-summary,.centre-report-tabs{border-bottom-color:rgba(212,169,79,.16)!important}
.centre-report-body .mc-report-formation-team>header em{color:#d9d1c2!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-stats{border-top-color:rgba(212,169,79,.16)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-stats div+div{border-left-color:rgba(212,169,79,.12)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-stats dt{color:#d9d1c2!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-stats dd i{color:#d9d1c2!important}

#worldView .goat-world-picker-player.is-selected{
  border-color:#d4a94f!important;
  background:rgba(212,169,79,.18)!important;
  box-shadow:inset 3px 0 0 #d4a94f,0 0 0 1px rgba(240,215,155,.20)!important;
}

/* Centre each complete desktop showcase within its own half, not just its copy. */
@media (min-width:981px){
  #profileOverviewPanel .club-stars-grid{justify-items:center;}
  #profileOverviewPanel .best-player-showcase{
    width:min(100%,560px)!important;
    justify-self:center;
  }
}

/* Keep the pitch and its spacing; remove only the redundant dark parent pane. */
#profileOverviewPanel .profile-active-lineup-overview{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileOverviewPanel .overview-best-player .panel-heading{
  justify-content:center!important;
  text-align:center!important;
}
#profileOverviewPanel .overview-best-player .panel-heading>div{width:100%!important}

/* Leadership labels remain gold while their chosen values use readable cream. */
#profileLineupPanel #lineupRoleControls .goat-select :is(.goat-select-trigger,.goat-select-value){
  color:#fbf7ef!important;
  -webkit-text-fill-color:#fbf7ef!important;
}

/* Attribute chips retain their semantic fills but use the standard readable UI face. */
#profileSquadPanel .squad-list-stat:not(.is-empty){
  color:#fbf7ef!important;
  font-family:var(--body)!important;
  font-variant-numeric:tabular-nums!important;
  text-shadow:0 1px 1px rgba(0,0,0,.36)!important;
}

/* Facility estimates are headings, not legacy cyan data labels. */
#worldView :is(.goat-world-session-projection,.goat-world-season-usage)>h5{
  color:#e5c377!important;
  font-family:var(--body)!important;
}

/* Match Centre: preserve meaningful rows while removing nested decorative panes. */
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-players{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-form-players::after{display:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) :is(.mc-hub-panel-title,.mc-hub-match-head){
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-history-link{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row :is(.mc-hub-competition-cell,.mc-hub-row-score,.mc-hub-result,time,.mc-hub-report-link){
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row .mc-hub-report-link{color:#e5c377!important}

/* Registration ratings use the established, legible numeric/body treatment. */
#profileRegistrationPanel .league-registration-player-rating{
  font-family:var(--body)!important;
  font-variant-numeric:tabular-nums!important;
  font-weight:900!important;
}

/* Small follow-up: retain the score chips while restoring their dark text. */
#profileSquadPanel .squad-list-stat:not(.is-empty){
  color:#1a1207!important;
  text-shadow:none!important;
}

/* The outer panel already supplies the current GOAT surface; do not paint the retired image layer inside it. */
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-next::before{content:none!important}

/* ========================================================================== */
/* 3.0A.50.35.61 — requested interface and registration polish                */
/* ========================================================================== */

/* Sub-menu atmosphere lives on the dedicated image layer. Office itself is
   deliberately excluded, and the overscan prevents blurred-image edge seams. */
body.profile-background:not(.office-open):is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-bg::before{
  inset:-16px!important;
  filter:blur(5px) brightness(.78) saturate(.92)!important;
  transform:scale(1.03)!important;
}
body.profile-background:not(.office-open).goat-page-bg-squad .world-bg::before{
  inset:-16px!important;
  filter:blur(5px) brightness(.78) saturate(.92)!important;
  transform:scale(1.03)!important;
}
body.profile-background:not(.office-open).goat-page-bg-standings .world-bg::before{
  inset:-16px!important;
  filter:blur(5px) brightness(.76) saturate(.90)!important;
  transform:scale(1.03)!important;
}

/* Native and enhanced selects share one readable value/option colour. Gold is
   reserved for their frames, labels, caret and focus accent. */
select,
select option,
.goat-select .goat-select-value,
.goat-select-menu .goat-select-option{
  color:#fbf7ef!important;
  -webkit-text-fill-color:#fbf7ef!important;
}
select option{background:#17150f}
.goat-select .goat-select-caret{
  color:#e5c377!important;
  -webkit-text-fill-color:#e5c377!important;
}

/* Captions previously depended on local <small> inheritance. Keep hierarchy,
   but normalise every small-note face to the established readable body family. */
:where(small,.goat-caption){
  font-family:var(--body);
  font-kerning:normal;
  text-rendering:optimizeLegibility;
}
.trade-rule-card .goat-caption{
  color:#bdb3a2;
  font-size:.72rem;
  font-weight:650;
  line-height:1.45;
}

/* The list OVR chip now uses precisely the same numeral treatment as PAC and
   the other attribute chips; semantic chip fills remain untouched. */
#profileSquadPanel :is(.squad-list-overall,.squad-list-stat){
  align-items:center!important;
  font-family:var(--body)!important;
  font-variant-numeric:tabular-nums!important;
  font-weight:950!important;
  line-height:1!important;
}
#profileSquadPanel .pagination{
  border-top-color:rgba(212,169,79,.18)!important;
}
#profileSquadPanel .pagination button{
  border-color:rgba(212,169,79,.25)!important;
  background:rgba(212,169,79,.07)!important;
  color:#e5c377!important;
  box-shadow:none!important;
}
#profileSquadPanel .pagination button:hover:not(:disabled),
#profileSquadPanel .pagination button:focus-visible:not(:disabled){
  border-color:rgba(240,215,155,.58)!important;
  background:rgba(212,169,79,.15)!important;
  color:#fbf7ef!important;
  outline:2px solid rgba(240,215,155,.35)!important;
  outline-offset:2px!important;
}
#profileSquadPanel .pagination button:disabled{
  border-color:rgba(168,156,133,.12)!important;
  background:rgba(120,107,83,.035)!important;
  color:#716b60!important;
  opacity:.58!important;
}
#profileSquadPanel :is(.page-indicator,#pageIndicator){color:#d9d1c2!important}

/* Lazy portrait decode inside an always-transformed masked card could defer the
   first composite until hover. Resting cards now paint as ordinary layers; the
   existing tilt transform is created only while interaction is active. */
.footballer-card-shell:not(.home-featured-footballer-card):not(.is-tilting){transform:none}
.footballer-card.has-card-template .footballer-card-art,
.footballer-card.has-card-template .footballer-card-art img{
  backface-visibility:visible;
  image-rendering:auto;
  opacity:1!important;
  visibility:visible!important;
}

/* Mail's correspondent metadata and report action use the heritage control
   family, including keyboard and pressed states. */
.mail-modal .mail-detail-correspondent-copy>span{
  color:#e5c377!important;
  text-shadow:none!important;
}
.mail-modal .mail-report-actions button{
  border-color:rgba(212,169,79,.38)!important;
  background:linear-gradient(180deg,rgba(212,169,79,.18),rgba(92,67,24,.24))!important;
  color:#fbf7ef!important;
  box-shadow:none!important;
}
.mail-modal .mail-report-actions button:hover,
.mail-modal .mail-report-actions button:focus-visible{
  border-color:rgba(240,215,155,.66)!important;
  background:linear-gradient(180deg,rgba(212,169,79,.27),rgba(92,67,24,.34))!important;
  color:#fffaf0!important;
  outline:2px solid rgba(240,215,155,.42)!important;
  outline-offset:2px!important;
}
.mail-modal .mail-report-actions button:active{background:rgba(156,113,40,.32)!important}

/* Grid alignment replaces the previous stretched columns: both desktop panel
   headers begin on the same row without offsets or negative margins. */
@media(min-width:851px){
  #profileTacticsPanel .tc5-left-columns{align-items:start!important;height:auto!important}
  #profileTacticsPanel :is(.tc5-starting,.tc5-automation){align-self:start!important;height:auto!important;margin-top:0!important}
}

/* A light art-only softening separates Stadium's three illustrations from
   their foreground controls while keeping text and rings perfectly sharp. */
#profileStadiumPanel :is(.stadium-fan-card-v3,.stadium-readiness-card,.stadium-level-board-v3)::before{
  inset:-2px!important;
  transform:scale(1.012)!important;
}
#profileStadiumPanel .stadium-fan-card-v3::before,
#profileStadiumPanel .stadium-readiness-card::before{
  filter:blur(.65px) saturate(.94) brightness(.95) contrast(1.02)!important;
}
#profileStadiumPanel .stadium-level-board-v3::before{
  filter:blur(.65px) saturate(.92) brightness(.95) contrast(1.02)!important;
}

/* Match-report copy is neutral cream; only true event icons/results retain
   semantic colour. The score dash is neutral rather than blue. */
.centre-report-body .mc-report-key-timeline .mc-report-event-copy strong{color:#fbf7ef!important}
.centre-report-body .mc-report-key-timeline .mc-report-event-copy small{color:#cfc7b8!important}
.centre-report-summary .mc-report-summary-score b>i{color:#d9d1c2!important}

/* Registration's actual deadline date is primary information, not muted text. */
#profileRegistrationPanel .league-registration-deadline-copy>strong{color:#fbf7ef!important}

/* ========================================================================== */
/* 3.0A.50.35.62 — reviewed visual follow-up                                  */
/* ========================================================================== */

/* Both desktop tactics columns use content height. Normalising the header row
   keeps the first visible controls aligned and prevents the taller reactions
   column from stretching an otherwise empty dark panel below Starting Plan. */
@media(min-width:851px){
  #profileTacticsPanel .tc5-left-columns{
    align-items:start!important;
    height:auto!important;
    grid-auto-rows:min-content!important;
  }
  #profileTacticsPanel :is(.tc5-starting,.tc5-automation){
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
  }
  #profileTacticsPanel :is(.tc5-starting,.tc5-automation)>header{
    min-height:34px!important;
    margin:0 0 8px!important;
  }
  #profileTacticsPanel :is(.tc5-starting-list,.tc5-reaction-list){
    flex:none!important;
    align-content:start!important;
  }
}

/* Match statistics are explanatory copy, not a semantic purple accent. */
.centre-report-body .mc-report-stat-row small{
  color:#f0e6ce!important;
  -webkit-text-fill-color:#f0e6ce!important;
}

/* The four contract summary glyphs share the same quiet cream treatment. */
#profileContractsPanel .contract-detail-grid-v5 .contract-detail-icon{
  color:#f0e6ce!important;
  background-color:#f0e6ce!important;
  opacity:1!important;
  filter:none!important;
}

/* Keep the labels accented; only the OVR, age and position values are primary. */
.player-modal.player-dossier-shell .player-dossier-headline>b,
.player-modal.player-dossier-shell .player-dossier-headline>span:nth-child(2),
.player-modal.player-dossier-shell .player-dossier-headline>span:nth-child(3){
  color:#fbf7ef!important;
}

/* One readable support-note token is shared by captions and Facilities' compact
   status/metric notes; it does not affect heading or primary-label styling. */
:root{
  --goat-support-note-font:var(--body);
  --goat-support-note-size:.70rem;
  --goat-support-note-weight:650;
  --goat-support-note-line-height:1.32;
}
:where(.goat-caption,.goat-support-note){
  font-family:var(--goat-support-note-font)!important;
  font-size:var(--goat-support-note-size)!important;
  font-weight:var(--goat-support-note-weight)!important;
  line-height:var(--goat-support-note-line-height)!important;
}
#profileInfrastructurePanel :is(.facility-unified-metrics,.facility-unified-state,.facility-project-progress) small{
  font-family:var(--goat-support-note-font)!important;
  font-size:var(--goat-support-note-size)!important;
  font-weight:var(--goat-support-note-weight)!important;
  line-height:var(--goat-support-note-line-height)!important;
  color:#cfc7b8!important;
  letter-spacing:.01em!important;
}
#profileInfrastructurePanel .facility-unified-metrics{grid-template-rows:52px 40px!important}
@media(max-width:650px){
  :root{--goat-support-note-size:.66rem}
}

/* ========================================================================== */
/* 3.0A.50.35.63 — final screenshot correction pass                          */
/* ========================================================================== */

/* The reaction window intentionally fills the dark backdrop from its own top
   edge. The former desktop top inset reserved an empty strip above the plan. */
@media(min-width:851px){
  body:not(.office-open) #profileTacticsPanel .tc5-modal-backdrop{
    padding-top:0!important;
  }
}

/* Attack focus is a custom multi-select. Keep the label/icon and chevron in
   gold, but render every selected lane combination as primary white text. */
#profileTacticsPanel .tc5-attack-focus [data-tactic-focus-label]{
  color:#fbf7ef!important;
  -webkit-text-fill-color:#fbf7ef!important;
}

/* Value containers are white; their nested captions explicitly retain the
   same antique-gold treatment as OWNER. */
.player-modal.player-dossier-shell .player-dossier-headline> :is(b,span)>small{
  color:#e5c377!important;
  -webkit-text-fill-color:#e5c377!important;
}
.player-modal.player-dossier-shell .player-dossier-headline> :is(b,span){border-left:0!important}
.player-modal.player-dossier-shell .player-dossier-identity>p i{display:none!important}

/* Page-wide rules are decorative rather than structural. Component, form,
   button and data-table borders remain untouched. */
.site-header{border-bottom:0!important}
.site-header::after{content:none!important;display:none!important}
.site-footer,
#homeView.gd-home .gd-footer{border-top:0!important}
body.home-background .game-loop-rail{
  border-top:0!important;
  border-bottom:0!important;
}
#profileOverviewPanel .profile-header,
#profileSquadPanel .pagination{border-top:0!important;border-bottom:0!important}
#profileTacticsPanel .tc5-modal>header,
#profileTacticsPanel .tc5-branch-tabs,
#profileTacticsPanel .tc5-modal>footer{border-top:0!important;border-bottom:0!important}

/* The Reaction Plan is the editor surface. Its page-level dimmer and the
   oversized footer strip were redundant second containers around it. Keep the
   plan untouched, but let it sit directly in the tactics page with a compact
   transparent action row for Done. Tablet-office containment is separate. */
body:not(.office-open) #profileTacticsPanel .tc5-modal-backdrop{
  padding:0!important;
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body:not(.office-open) #profileTacticsPanel .tc5-modal>footer{
  width:100%!important;
  box-sizing:border-box!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:10px 14px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* ========================================================================== */
/* Tablet Mail — premium communications workspace                            */
/* ========================================================================== */

.mail-ui-icon{display:block;width:24px;height:24px;flex:0 0 auto}
.mail-nav-primary,.mail-nav-footer{display:grid;gap:8px}
.mail-nav-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mail-nav-heading>button,.mail-folder-actions>button,.mail-filter-control>summary,.mail-detail-toolbar>button{
  display:grid;place-items:center;padding:0;cursor:pointer
}
.mail-nav-user{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-width:0}
.mail-nav-user>img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.mail-nav-user>span{min-width:0;display:grid;gap:2px}
.mail-nav-user :is(strong,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mail-folder-actions{display:flex;align-items:center;gap:8px}
.mail-filter-control{position:relative}
.mail-filter-control>summary{list-style:none}
.mail-filter-control>summary::-webkit-details-marker{display:none}
.mail-filter-menu{position:absolute;z-index:30;top:calc(100% + 9px);right:0;display:grid;min-width:218px;padding:8px;border:1px solid rgba(212,169,79,.24);border-radius:12px;background:#17140f;box-shadow:0 20px 48px rgba(0,0,0,.58)}
.mail-filter-menu>strong{padding:8px 10px;color:#8f8574;font-size:12px;font-weight:700}
.mail-filter-menu>button{display:grid;grid-template-columns:22px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#c9c0b1;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.mail-filter-menu>button:hover,.mail-filter-menu>button:focus-visible,.mail-filter-menu>button.is-selected{background:rgba(212,169,79,.11);color:#fbf7ef;outline:none}
.mail-filter-menu .mail-ui-icon{width:20px;height:20px;color:#c8a24f}
.mail-filter-menu .mail-filter-check{width:17px;height:17px;color:#e5c377}
.mail-filter-menu .mail-filter-delete{margin-top:5px;color:#d6a0a0}
.mail-filter-menu .mail-filter-delete .mail-ui-icon{color:#c97878}

.mail-modal.is-office-mail{
  --mail-bg:#0b0a08;
  --mail-surface:#11100d;
  --mail-surface-raised:#191610;
  --mail-border:rgba(212,169,79,.16);
  --mail-gold:#d4a94f;
  --mail-gold-soft:#e5c377;
  --mail-text:#fbf7ef;
  --mail-muted:#a89f91;
  font-family:var(--body),ui-sans-serif,system-ui,sans-serif;
}
.mail-modal.is-office-mail .mail-modal-header{display:none!important}
.mail-modal.is-office-mail .mail-modal-card{background:var(--mail-bg)!important;color:var(--mail-text)!important}
.mail-modal.is-office-mail .mail-modal-body{
  display:grid!important;
  grid-template-columns:14% minmax(0,86%)!important;
  background:var(--mail-bg)!important;
  transition:grid-template-columns .22s ease!important;
}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed{grid-template-columns:82px minmax(0,1fr)!important}
.mail-modal.is-office-mail .mail-tabs{
  display:flex!important;
  flex-direction:column!important;
  gap:0!important;
  min-width:0;
  padding:26px 18px 20px!important;
  overflow:hidden!important;
  border:0!important;
  border-right:1px solid var(--mail-border)!important;
  background:#0c0b09!important;
}
.mail-modal.is-office-mail .mail-tabs::before{content:none!important;display:none!important}
.mail-modal.is-office-mail .mail-nav-heading{min-height:46px;margin-bottom:24px}
.mail-modal.is-office-mail .mail-nav-heading>span{color:#8f8574;font-size:13px;font-weight:700;letter-spacing:.02em}
.mail-modal.is-office-mail .mail-nav-heading>button{
  width:42px;height:42px;border:0!important;border-radius:10px!important;background:transparent!important;color:#ddd4c5!important
}
.mail-modal.is-office-mail .mail-nav-heading>button:hover,.mail-modal.is-office-mail .mail-nav-heading>button:focus-visible{background:rgba(212,169,79,.1)!important;color:#f0d79b!important;outline:2px solid rgba(212,169,79,.35);outline-offset:2px}
.mail-modal.is-office-mail .mail-nav-primary{gap:7px}
.mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button{
  display:grid!important;
  grid-template-columns:26px minmax(0,1fr) auto!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:11px!important;
  width:100%!important;
  min-height:48px!important;
  padding:10px 11px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#a89f91!important;
  font-size:15px!important;
  font-weight:650!important;
  text-align:left!important;
}
.mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button:hover,
.mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button:focus-visible{
  background:rgba(255,255,255,.035)!important;color:#fbf7ef!important;outline:none!important
}
.mail-modal.is-office-mail .mail-tabs .mail-nav-primary>button.is-active{
  background:rgba(212,169,79,.12)!important;color:#f2d894!important;box-shadow:inset 3px 0 #d4a94f
}
.mail-modal.is-office-mail .mail-tabs button .mail-ui-icon{width:24px;height:24px}
.mail-modal.is-office-mail .mail-tabs button>b{min-width:23px;height:23px;padding:0 6px;border-radius:7px;background:rgba(212,169,79,.16)!important;color:#f0d79b!important;font-size:11px;line-height:23px;text-align:center}
.mail-modal.is-office-mail .mail-nav-footer{margin-top:auto;gap:16px}
.mail-modal.is-office-mail .mail-nav-user{padding:5px 4px}
.mail-modal.is-office-mail .mail-nav-user>img{width:46px;height:46px;border:1px solid rgba(212,169,79,.36);background:#17140f}
.mail-modal.is-office-mail .mail-nav-user strong{color:#f4eee4;font-size:14px;font-weight:700}
.mail-modal.is-office-mail .mail-nav-user small{color:#81796d;font-size:12px}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-tabs{padding-inline:12px!important}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-nav-heading{justify-content:center}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-nav-heading>span,
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button>span,
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-tabs button>b,
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-nav-user>span{display:none!important}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button{grid-template-columns:1fr!important;place-items:center!important;padding:10px!important}
.mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed .mail-nav-user{grid-template-columns:1fr;justify-items:center}

.mail-modal.is-office-mail .mail-view{min-width:0;overflow:hidden!important;padding:0!important;background:var(--mail-bg)!important}
.mail-modal.is-office-mail .mail-two-pane{
  display:grid!important;
  grid-template-columns:36% minmax(0,64%)!important;
  background:var(--mail-bg)!important;
}
.mail-modal.is-office-mail .mail-conversation-pane{
  grid-template-rows:96px 72px minmax(0,1fr)!important;
  border:0!important;
  border-right:1px solid var(--mail-border)!important;
  background:#0f0e0b!important;
}
.mail-modal.is-office-mail .mail-conversation-pane .mail-folder-toolbar{
  min-height:0!important;
  margin:0!important;
  padding:24px 20px 14px!important;
  border:0!important;
  background:transparent!important;
}
.mail-modal.is-office-mail .mail-folder-toolbar>div:first-child{display:grid;gap:3px}
.mail-modal.is-office-mail .mail-folder-toolbar>div:first-child>span{color:#8b8273!important;font-size:12px!important;font-weight:650!important;letter-spacing:.03em!important;text-transform:none!important}
.mail-modal.is-office-mail .mail-conversation-pane .mail-folder-toolbar h3{margin:0;color:#fbf7ef;font-family:var(--body);font-size:26px!important;font-weight:750;letter-spacing:-.035em;line-height:1.05}
.mail-modal.is-office-mail .mail-folder-actions>button,.mail-modal.is-office-mail .mail-filter-control>summary{
  width:44px!important;height:44px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#d4cbbb!important
}
.mail-modal.is-office-mail .mail-toolbar-mark-read>span{display:none!important}
.mail-modal.is-office-mail .mail-toolbar-mark-read:disabled{opacity:.38;cursor:not-allowed}
.mail-modal.is-office-mail .mail-folder-actions>button:hover,.mail-modal.is-office-mail .mail-folder-actions>button:focus-visible,.mail-modal.is-office-mail .mail-filter-control>summary:hover,.mail-modal.is-office-mail .mail-filter-control>summary:focus-visible{background:rgba(212,169,79,.11)!important;color:#f0d79b!important;outline:2px solid rgba(212,169,79,.28);outline-offset:1px}
.mail-modal.is-office-mail .mail-folder-actions .mail-ui-icon{width:25px;height:25px}
.mail-modal.is-office-mail .mail-search{
  display:grid!important;
  grid-template-columns:24px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  height:52px!important;
  margin:8px 16px 12px!important;
  padding:0 14px!important;
  border:1px solid rgba(212,169,79,.18)!important;
  border-radius:12px!important;
  background:#17140f!important;
}
.mail-modal.is-office-mail .mail-search:focus-within{border-color:rgba(212,169,79,.52)!important;box-shadow:0 0 0 3px rgba(212,169,79,.08)!important}
.mail-modal.is-office-mail .mail-search>.mail-ui-icon{width:22px;height:22px;color:#8d8476}
.mail-modal.is-office-mail .mail-search input{height:50px!important;color:#fbf7ef!important;font-size:15px!important;font-weight:500}
.mail-modal.is-office-mail .mail-search input::placeholder{color:#71695e!important}
.mail-modal.is-office-mail .mail-search small{color:#776f64!important;font-size:11px!important;font-variant-numeric:tabular-nums}
.mail-modal.is-office-mail .mail-conversation-scroll{padding:3px 8px 18px!important;scrollbar-color:rgba(192,143,52,.66) transparent!important}
.mail-modal.is-office-mail .mail-message-list{gap:3px!important}
.mail-modal.is-office-mail .mail-thread{
  grid-template-columns:48px minmax(0,1fr)!important;
  gap:14px!important;
  min-height:108px;
  padding:15px 13px!important;
  border:0!important;
  border-radius:11px!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:background .2s ease,transform .14s ease!important;
}
.mail-modal.is-office-mail .mail-thread:hover,.mail-modal.is-office-mail .mail-thread:focus-visible{background:#1a1711!important;outline:2px solid rgba(212,169,79,.22)!important;outline-offset:-2px;transform:translateX(1px)}
.mail-modal.is-office-mail .mail-thread:active{transform:translateX(1px) scale(.992)}
.mail-modal.is-office-mail .mail-thread.is-selected{background:#211d15!important;box-shadow:inset 3px 0 #d4a94f!important}
.mail-modal.is-office-mail .mail-thread.is-unread{background:#17140e!important}
.mail-modal.is-office-mail .mail-thread.is-unread.is-selected{background:#241f16!important}
.mail-modal.is-office-mail .mail-thread .mail-avatar{width:48px!important;height:48px!important;border:1px solid rgba(212,169,79,.32)!important;background:#211d14!important;font-size:15px!important;box-shadow:0 7px 18px rgba(0,0,0,.25)!important}
.mail-modal.is-office-mail .mail-avatar>img{inset:0!important;width:100%!important;height:100%!important;background:#17140f!important}
.mail-modal.is-office-mail .mail-avatar>img{padding:0!important;object-fit:cover!important;object-position:center!important;transform:none!important}
.mail-modal.is-office-mail .mail-thread-copy{gap:4px!important}
.mail-modal.is-office-mail .mail-thread-copy header strong{color:#f8f3eb!important;font-size:20px!important;font-weight:700!important;letter-spacing:-.018em;line-height:1.16}
.mail-modal.is-office-mail .mail-thread-copy time{color:#81796e!important;font-size:12px!important;font-variant-numeric:tabular-nums}
.mail-modal.is-office-mail .mail-thread-copy>b{color:#d2c8b9!important;font-size:14px!important;font-weight:600!important;line-height:1.2}
.mail-modal.is-office-mail .mail-thread.is-unread .mail-thread-copy>b{color:#ead195!important}
.mail-modal.is-office-mail .mail-thread-copy>p{color:#9e9588!important;font-size:14px!important;line-height:1.42!important;-webkit-line-clamp:2!important}
.mail-modal.is-office-mail .mail-thread-copy footer{margin-top:2px!important}
.mail-modal.is-office-mail .mail-thread-copy footer small{color:#a98239!important;font-size:11px!important;font-weight:700!important;letter-spacing:.025em!important}
.mail-modal.is-office-mail .mail-unread-dot{top:17px!important;right:10px!important;width:7px!important;height:7px!important;background:#d4a94f!important;box-shadow:0 0 8px rgba(212,169,79,.55)!important}
.mail-modal.is-office-mail .mail-thread-mark-read{right:10px!important;bottom:10px!important;width:30px!important;height:30px!important;border-color:rgba(212,169,79,.24)!important;border-radius:8px!important;background:#211d14!important;color:#e5c377!important}
.mail-modal.is-office-mail .mail-thread-mark-read .mail-ui-icon{width:17px;height:17px}

.mail-modal.is-office-mail .mail-reading-pane{padding:0!important;overflow:hidden!important;background:#0b0a08!important}
.mail-modal.is-office-mail .mail-message-detail{
  display:grid!important;
  grid-template-rows:92px minmax(0,1fr) auto!important;
  gap:0!important;
  min-height:0!important;
  height:100%!important;
  border:0!important;
  border-radius:0!important;
  background:#0b0a08!important;
}
.mail-modal.is-office-mail .mail-detail-header{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  min-height:92px!important;
  padding:18px 24px!important;
  border:0!important;
  border-bottom:1px solid var(--mail-border)!important;
  background:#0d0c0a!important;
}
.mail-modal.is-office-mail .mail-detail-back{display:none!important}
.mail-modal.is-office-mail .mail-detail-correspondent{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:14px!important}
.mail-modal.is-office-mail .mail-detail-correspondent .mail-avatar{width:52px!important;height:52px!important;border-color:rgba(212,169,79,.35)!important}
.mail-modal.is-office-mail .mail-detail-correspondent-copy{display:grid;gap:4px!important;text-align:left}
.mail-modal.is-office-mail .mail-detail-correspondent-copy>strong{color:#fbf7ef!important;font-size:22px!important;font-weight:720!important;letter-spacing:-.02em}
.mail-modal.is-office-mail .mail-detail-correspondent-copy>small{color:#958c7f!important;font-size:14px!important;font-weight:500}
.mail-modal.is-office-mail .mail-presence,.mail-modal.is-office-mail .mail-official-identity{display:inline-flex!important;align-items:center;justify-self:start;min-height:24px;margin-top:1px;padding:4px 9px;border:1px solid rgba(255,255,255,.08);border-radius:999px;background:#17140f;color:#c7beb0;font-size:12px;font-weight:650;line-height:1}
.mail-modal.is-office-mail .mail-presence>i{position:relative;width:8px;height:8px;margin-right:7px;border-radius:50%;flex:0 0 auto}
.mail-modal.is-office-mail .mail-presence>i::before{content:"";position:absolute;inset:-3px;border:1px solid currentColor;border-radius:50%;opacity:.18}
.mail-modal.is-office-mail .mail-presence.is-online{border-color:rgba(69,161,111,.22);color:#cfdbd2}
.mail-modal.is-office-mail .mail-presence.is-online>i{background:#4fa975;color:#4fa975;box-shadow:0 0 8px rgba(79,169,117,.36)}
.mail-modal.is-office-mail .mail-presence.is-offline{border-color:rgba(174,72,61,.22);color:#d7cbc5}
.mail-modal.is-office-mail .mail-presence.is-offline>i{background:#b55347;color:#b55347}
.mail-modal.is-office-mail .mail-presence>b{font:inherit;color:inherit}
/* Presence is now a two-line block: the Online/Offline pill with the date the
   manager was last actually online directly underneath it. */
.mail-presence-block{display:inline-flex;flex-direction:column;align-items:flex-start;gap:3px;justify-self:start}
.mail-presence-last-online{color:rgba(199,190,176,.72);font-size:11px;font-weight:600;line-height:1.2;letter-spacing:.01em;white-space:nowrap}
.mail-modal.is-office-mail .mail-presence-block{justify-self:start}
.mail-modal.is-office-mail .mail-presence-last-online{color:rgba(199,190,176,.72)}
.mail-modal.is-office-mail .mail-official-identity{border-color:rgba(212,169,79,.18);color:#c9ad6d}
.mail-modal.is-office-mail .mail-detail-toolbar{display:flex;align-items:center;gap:7px}
.mail-modal.is-office-mail .mail-detail-toolbar>button{width:44px;height:44px;border:0!important;border-radius:10px!important;background:transparent!important;color:#b8afa1!important}
.mail-modal.is-office-mail .mail-detail-toolbar>button:hover,.mail-modal.is-office-mail .mail-detail-toolbar>button:focus-visible{background:rgba(212,169,79,.1)!important;color:#f0d79b!important;outline:2px solid rgba(212,169,79,.25);outline-offset:1px}
.mail-modal.is-office-mail .mail-detail-toolbar .mail-ui-icon{width:23px;height:23px}
.mail-modal.is-office-mail .mail-message-detail-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:34px clamp(28px,4vw,60px) 42px;scrollbar-color:rgba(192,143,52,.6) transparent}
.mail-modal.is-office-mail .mail-message-content{display:grid;gap:26px;width:min(100%,820px);margin:0 auto}
.mail-modal.is-office-mail .mail-detail-subject-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:start!important;gap:7px 24px!important}
.mail-modal.is-office-mail .mail-detail-subject-row>span{grid-column:1;grid-row:2;color:#c8a24f;font-size:12px;font-weight:750;letter-spacing:.09em}
.mail-modal.is-office-mail .mail-detail-subject-row h3{grid-column:1;grid-row:1;margin:0!important;color:#fbf7ef!important;font-family:var(--body)!important;font-size:28px!important;font-weight:750!important;letter-spacing:-.035em;line-height:1.16!important;text-wrap:balance}
.mail-modal.is-office-mail .mail-detail-subject-row time{grid-column:2;grid-row:1;color:#857c70!important;font-size:13px!important;line-height:1.5;text-align:right}
.mail-modal.is-office-mail .mail-message-detail-body{min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#ddd5c9!important;font-size:16px!important;font-weight:450;line-height:1.72!important;white-space:pre-wrap;max-width:68ch}
.mail-modal.is-office-mail .mail-salutation{margin-bottom:14px;color:inherit!important;font-size:16px}
.mail-modal.is-office-mail .mail-report-actions{justify-content:flex-start!important;margin:0!important}
.mail-modal.is-office-mail .mail-report-actions button{min-height:44px!important;padding:0 18px!important;border:1px solid rgba(212,169,79,.44)!important;border-radius:9px!important;background:rgba(212,169,79,.14)!important;color:#f0d79b!important;font-size:13px!important;font-weight:750!important;letter-spacing:.03em!important}
.mail-modal.is-office-mail .mail-report-actions button:hover,.mail-modal.is-office-mail .mail-report-actions button:focus-visible{background:rgba(212,169,79,.22)!important;color:#fff9ec!important;outline:2px solid rgba(212,169,79,.25);outline-offset:2px}
.mail-modal.is-office-mail .mail-quick-composer{
  position:relative;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 48px;
  align-items:center;
  gap:8px;
  min-height:74px;
  padding:10px 18px;
  border-top:1px solid var(--mail-border);
  background:#100e0b;
}
.mail-modal.is-office-mail .mail-quick-composer>textarea{width:100%;height:48px;min-height:48px;max-height:96px;padding:13px 4px;border:0!important;border-radius:0!important;outline:0!important;resize:none;background:transparent!important;color:#fbf7ef!important;font:inherit;font-size:15px!important;line-height:22px}
.mail-modal.is-office-mail .mail-quick-composer>textarea::placeholder{color:#746c61}
.mail-modal.is-office-mail .mail-composer-emoji{position:relative}
.mail-modal.is-office-mail .mail-composer-emoji>summary,.mail-modal.is-office-mail .mail-composer-send{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0!important;border-radius:10px!important;background:transparent!important;color:#b6ad9f!important;cursor:pointer;list-style:none}
.mail-modal.is-office-mail .mail-composer-emoji>summary::-webkit-details-marker{display:none}
.mail-modal.is-office-mail .mail-composer-emoji>summary:hover,.mail-modal.is-office-mail .mail-composer-emoji>summary:focus-visible,.mail-modal.is-office-mail .mail-composer-send:hover,.mail-modal.is-office-mail .mail-composer-send:focus-visible{background:rgba(212,169,79,.11)!important;color:#f0d79b!important;outline:2px solid rgba(212,169,79,.24);outline-offset:1px}
.mail-modal.is-office-mail .mail-composer-emoji .mail-ui-icon,.mail-modal.is-office-mail .mail-composer-send .mail-ui-icon{width:25px;height:25px}
.mail-modal.is-office-mail .mail-composer-emoji .mail-emoji-picker.is-compact{position:absolute;z-index:30;bottom:54px;left:0;width:244px;padding:10px!important;border:1px solid rgba(212,169,79,.25)!important;border-radius:12px!important;background:#17140f!important;box-shadow:0 18px 46px rgba(0,0,0,.62)}
.mail-modal.is-office-mail .mail-emoji-picker.is-compact>div{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
.mail-modal.is-office-mail .mail-emoji-picker.is-compact button{width:34px;height:34px;padding:0;font-size:18px}
.mail-modal.is-office-mail .mail-quick-composer>.mail-form-message{position:absolute;right:78px;bottom:4px;left:76px;overflow:hidden;margin:0!important;color:#d9b867!important;font-size:11px!important;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}
.mail-modal.is-office-mail .mail-composer-unavailable{display:flex;align-items:center;gap:12px;min-height:74px;padding:12px 24px;border-top:1px solid var(--mail-border);background:#100e0b;color:#8e8578}
.mail-modal.is-office-mail .mail-composer-unavailable>.mail-ui-icon{width:24px;height:24px;color:#b38d43}
.mail-modal.is-office-mail .mail-composer-unavailable>span{display:grid;gap:2px}
.mail-modal.is-office-mail .mail-composer-unavailable strong{color:#cfc6b7;font-size:14px}
.mail-modal.is-office-mail .mail-composer-unavailable small{font-size:12px}
.mail-modal.is-office-mail .mail-reading-empty{border:0!important;border-radius:0!important;background:#0b0a08!important}
.mail-modal.is-office-mail .mail-reading-empty strong{font-family:var(--body)!important;font-size:22px!important;font-weight:720}
.mail-modal.is-office-mail .mail-reading-empty p{font-size:14px!important}

.mail-modal.is-office-mail .mail-view-compose,.mail-modal.is-office-mail .mail-view-friendly-compose{overflow-y:auto!important;background:#0b0a08!important}
.mail-modal.is-office-mail .mail-compose{width:min(100%,900px);max-width:none!important;min-height:100%;margin:0 auto!important;padding:44px clamp(26px,5vw,72px)!important;border:0!important;border-radius:0!important;background:transparent!important}
.mail-modal.is-office-mail .mail-compose header{margin-bottom:28px!important}
.mail-modal.is-office-mail .mail-compose header>span{color:#c8a24f!important;font-size:12px!important;letter-spacing:.09em!important}
.mail-modal.is-office-mail .mail-compose h3{margin:5px 0 0!important;color:#fbf7ef!important;font-family:var(--body)!important;font-size:28px!important;font-weight:750;letter-spacing:-.035em}
.mail-modal.is-office-mail .mail-compose header p{color:#9b9285!important;font-size:14px!important;line-height:1.6!important}
.mail-modal.is-office-mail .mail-compose form{gap:18px!important}
.mail-modal.is-office-mail .mail-compose label{gap:8px!important;color:#cfc6b8!important;font-size:13px!important;font-weight:650!important}
.mail-modal.is-office-mail .mail-compose label :is(input,select,textarea){min-height:50px!important;padding:12px 14px!important;border:1px solid rgba(212,169,79,.22)!important;border-radius:10px!important;background:#15130f!important;color:#fbf7ef!important;font-size:15px!important}
.mail-modal.is-office-mail .mail-compose label textarea{min-height:190px!important;line-height:1.6}
.mail-modal.is-office-mail .mail-compose-actions button{min-height:44px!important;padding:0 18px!important;border-radius:9px!important;font-size:14px!important}

@media(max-width:980px){
  .mail-modal.is-office-mail .mail-modal-body{grid-template-columns:150px minmax(0,1fr)!important}
  .mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed{grid-template-columns:76px minmax(0,1fr)!important}
  .mail-modal.is-office-mail .mail-tabs{padding:20px 12px 16px!important}
  .mail-modal.is-office-mail .mail-two-pane{grid-template-columns:42% minmax(0,58%)!important}
  .mail-modal.is-office-mail .mail-message-detail-scroll{padding-inline:28px}
}

@media(max-width:760px){
  .mail-modal.is-office-mail .mail-modal-body{grid-template-columns:1fr!important;grid-template-rows:70px minmax(0,1fr)!important}
  .mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed{grid-template-columns:1fr!important}
  .mail-modal.is-office-mail .mail-tabs{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;padding:9px 12px!important;border-right:0!important;border-bottom:1px solid var(--mail-border)!important}
  .mail-modal.is-office-mail .mail-nav-heading{min-height:0;margin:0;justify-content:start}
  .mail-modal.is-office-mail .mail-nav-primary{display:flex;justify-content:center;gap:5px}
  .mail-modal.is-office-mail .mail-tabs .mail-nav-primary>button{width:48px!important;min-height:46px!important}
  .mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button>span,.mail-modal.is-office-mail .mail-tabs button>b{display:none!important}
  .mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button{grid-template-columns:1fr!important;place-items:center!important;padding:10px!important}
  .mail-modal.is-office-mail .mail-nav-footer{display:block;margin:0}
  .mail-modal.is-office-mail .mail-nav-footer>button{width:48px!important;min-height:46px!important}
  .mail-modal.is-office-mail .mail-nav-user{display:none}
  .mail-modal.is-office-mail .mail-two-pane{grid-template-columns:1fr!important}
  .mail-modal.is-office-mail .mail-two-pane:not(.has-selection) .mail-reading-pane{display:none!important}
  .mail-modal.is-office-mail .mail-two-pane.has-selection .mail-conversation-pane{display:none!important}
  .mail-modal.is-office-mail .mail-detail-header{grid-template-columns:42px minmax(0,1fr) auto!important;padding:14px 16px!important}
  .mail-modal.is-office-mail .mail-detail-back{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:0!important;padding:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#d7cebf!important}
  .mail-modal.is-office-mail .mail-detail-correspondent{grid-template-columns:46px minmax(0,1fr)!important;gap:10px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent .mail-avatar{width:46px!important;height:46px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent-copy>strong{font-size:19px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent-copy>small{font-size:12px!important}
  .mail-modal.is-office-mail .mail-detail-toolbar>button:first-child{display:none!important}
  .mail-modal.is-office-mail .mail-detail-subject-row{grid-template-columns:minmax(0,1fr) auto!important}
  .mail-modal.is-office-mail .mail-detail-subject-row time{grid-column:2;grid-row:1;text-align:right}
}

@media(max-width:520px){
  .mail-modal.is-office-mail .mail-conversation-pane .mail-folder-toolbar{padding-inline:15px!important}
  .mail-modal.is-office-mail .mail-search{margin-inline:12px!important}
  .mail-modal.is-office-mail .mail-thread{padding-inline:10px!important}
  .mail-modal.is-office-mail .mail-thread-copy header strong{font-size:18px!important}
  .mail-modal.is-office-mail .mail-message-detail-scroll{padding:26px 20px 34px}
  .mail-modal.is-office-mail .mail-detail-subject-row h3{font-size:24px!important}
  .mail-modal.is-office-mail .mail-message-detail-body{font-size:15px!important}
  .mail-modal.is-office-mail .mail-quick-composer{padding-inline:10px}
}

/* Mail deletion is a canonical destructive action, not a cyan primary CTA. */
.goat-confirm-submit.danger{
  border-color:rgba(192,74,63,.68)!important;
  background:linear-gradient(180deg,#8e3029,#671d1a)!important;
  color:#fff4eb!important;
  box-shadow:0 8px 22px rgba(76,16,14,.32)!important;
}
.goat-confirm-submit.danger:hover{
  border-color:rgba(222,101,87,.84)!important;
  background:linear-gradient(180deg,#a44036,#79241f)!important;
  color:#fffaf3!important;
}
.goat-confirm-submit.danger:focus-visible{outline:2px solid rgba(222,101,87,.72)!important;outline-offset:2px!important}

/* Contacts share Mail's existing presence language and navigation shell. */
.mail-modal.is-office-mail .mail-folder-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
.mail-modal.is-office-mail .mail-folder-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.mail-modal.is-office-mail .mail-folder-actions>button,
.mail-modal.is-office-mail .mail-folder-actions>.mail-filter-control{flex:0 0 44px!important;width:44px!important;height:44px!important;margin:0!important}
.mail-modal.is-office-mail .mail-folder-actions>.mail-filter-control>summary{width:44px!important;height:44px!important}
.mail-modal.is-office-mail .mail-view-contacts{min-height:0;overflow-y:auto;background:#0b0a08}
.mail-contacts-shell{min-height:100%;padding:clamp(28px,4vw,52px);color:#eee7dc}
.mail-contacts-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-bottom:25px;border-bottom:1px solid rgba(212,169,79,.16)}
.mail-contacts-header>div{display:grid;gap:4px}
.mail-contacts-header>div>span,.mail-add-friend-panel header>div>span{color:#c8a24f;font-size:11px;font-weight:800;letter-spacing:.11em}
.mail-contacts-header h3,.mail-add-friend-panel h3{margin:0;color:#fbf7ef;font-family:var(--body);font-size:29px;line-height:1.1;letter-spacing:-.035em}
.mail-contacts-header p,.mail-add-friend-panel header p{margin:0;color:#8f8679;font-size:13px}
.mail-contacts-header>button,.mail-contacts-empty>button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 17px;border:1px solid rgba(212,169,79,.46);border-radius:9px;background:rgba(212,169,79,.13);color:#ebcb81;font-size:13px;font-weight:750;cursor:pointer}
.mail-contacts-header>button:hover,.mail-contacts-empty>button:hover{background:rgba(212,169,79,.21);color:#fff5d7}
.mail-contacts-header>button .mail-ui-icon,.mail-contacts-empty>button .mail-ui-icon{width:20px;height:20px}
.mail-contacts-body{padding-top:19px}
.mail-contact-list{display:grid;gap:5px}
.mail-contact-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto auto;align-items:center;gap:14px;min-height:82px;padding:12px 14px;border:1px solid transparent;border-radius:12px;background:#11100d}
.mail-contact-row:hover{border-color:rgba(212,169,79,.18);background:#17140f}
.mail-contact-row .mail-avatar{width:52px!important;height:52px!important;border:1px solid rgba(212,169,79,.31)!important;background:#211d14!important}
.mail-contact-identity{display:grid;gap:2px;min-width:0;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.mail-contact-identity:disabled{cursor:default}
.mail-contact-identity strong{overflow:hidden;color:#f7f1e7;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.mail-contact-identity span{overflow:hidden;color:#a79d8f;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.mail-contact-identity small{color:#806f4a;font-size:10px;font-weight:700;letter-spacing:.045em}
.mail-detail-correspondent{padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.mail-detail-correspondent:disabled{cursor:default}
.mail-contact-row>.mail-presence{margin:0!important}
.mail-contacts-empty{display:grid;justify-items:center;gap:9px;padding:70px 20px;text-align:center}
.mail-contacts-empty>.mail-ui-icon{width:38px;height:38px;margin-bottom:8px;color:#9e7c39}
.mail-contacts-empty h3{margin:0;color:#f5efe5;font-size:22px}
.mail-contacts-empty p{max-width:390px;margin:0 0 13px;color:#91887b;font-size:14px;line-height:1.55}
.mail-add-friend-panel{display:grid;gap:17px;margin:20px 0 5px;padding:22px;border:1px solid rgba(212,169,79,.23);border-radius:14px;background:linear-gradient(145deg,#17140f,#100e0b);box-shadow:0 18px 42px rgba(0,0,0,.22)}
.mail-add-friend-panel>header{display:flex;justify-content:space-between;gap:20px}
.mail-add-friend-panel header>div{display:grid;gap:4px}
.mail-add-friend-panel>header>button{align-self:start;width:36px;height:36px;border:0;border-radius:8px;background:rgba(255,255,255,.04);color:#b9af9f;font-size:24px;cursor:pointer}
.mail-own-public-id{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 16px;padding:14px 16px;border:1px solid rgba(212,169,79,.18);border-radius:10px;background:#0c0b09}
.mail-own-public-id>span{grid-column:1;color:#8e8373;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}
.mail-own-public-id>strong{grid-column:1;color:#edce85;font-size:17px;letter-spacing:.08em}
.mail-own-public-id>button{grid-column:2;grid-row:1/span 2;display:flex;align-items:center;gap:7px;min-height:38px;padding:0 11px;border:1px solid rgba(212,169,79,.28);border-radius:8px;background:#17140f;color:#d8bf82;cursor:pointer}
.mail-own-public-id .mail-ui-icon{width:17px;height:17px}
.mail-friend-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}
.mail-friend-search>label{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;min-height:47px;padding:0 13px;border:1px solid rgba(212,169,79,.21);border-radius:9px;background:#0d0c09}
.mail-friend-search>label:focus-within{border-color:rgba(212,169,79,.5);box-shadow:0 0 0 3px rgba(212,169,79,.07)}
.mail-friend-search .mail-ui-icon{width:20px;height:20px;color:#887c6c}
.mail-friend-search input{min-width:0;height:45px;border:0!important;outline:0;background:transparent!important;color:#fbf7ef!important;font:inherit}
.mail-friend-search>button{min-width:92px;border:1px solid #9f7629;border-radius:9px;background:#3a2b13;color:#f3d995;font-weight:800;cursor:pointer}
.mail-friend-results{display:grid;gap:5px}
.mail-friend-results>p{margin:5px 2px;color:#8e8578;font-size:13px}
.mail-friend-results .mail-contact-row{grid-template-columns:48px minmax(0,1fr) auto auto;background:#0d0c09}
.mail-friend-results .mail-contact-row .mail-avatar{width:48px!important;height:48px!important}
.mail-contact-add-result{min-width:92px;min-height:38px;padding:0 11px;border:1px solid rgba(212,169,79,.38);border-radius:8px;background:rgba(212,169,79,.12);color:#e8c873;font-size:12px;font-weight:750;cursor:pointer}
.mail-contact-add-result:disabled{border-color:rgba(255,255,255,.08);background:#16140f;color:#70695e;cursor:default}
.mail-contacts-loading{display:grid;place-items:center;min-height:100%;color:#a98b50}
@media(max-width:700px){
  .mail-contacts-shell{padding:22px 16px}
  .mail-contacts-header{align-items:flex-start}
  .mail-contacts-header>button span{display:none}
  .mail-contact-row,.mail-friend-results .mail-contact-row{grid-template-columns:48px minmax(0,1fr) auto}
  .mail-contact-list .mail-contact-row>.mail-presence-block{grid-column:2;justify-self:start}
  .mail-contact-list .mail-contact-row>.mail-contact-remove{grid-column:3;grid-row:1/span 2;align-self:start}
  .mail-friend-results .mail-contact-add-result{grid-column:3;grid-row:1/span 2}
  .mail-own-public-id{grid-template-columns:minmax(0,1fr) auto}
}

@media(prefers-reduced-motion:reduce){
  .mail-modal.is-office-mail .mail-modal-body{transition:none!important}
}

/* ========================================================================== */
/* 3.0A.50.35.63 — sponsor advisory, forecast and signing desk                */
/* ========================================================================== */

/* Sponsor page structure uses spacing and grouped components, never decorative
   header/footer rules. Offer and control borders remain functional. */
#profileSponsorPanel :is(.finance-sponsor-page,.goat-luxury-header,.sponsor-pricing-page,.sponsor-pricing-hero){border:0!important;box-shadow:none!important}
#profileSponsorPanel :is(.finance-sponsor-page,.goat-luxury-header,.sponsor-pricing-page,.sponsor-pricing-hero)::before,
#profileSponsorPanel :is(.finance-sponsor-page,.goat-luxury-header,.sponsor-pricing-page,.sponsor-pricing-hero)::after{content:none!important;display:none!important}
#profileSponsorPanel .sponsor-pricing-page{width:min(100%,1480px);padding-bottom:34px}
#profileSponsorPanel .sponsor-plan-price,#profileSponsorPanel .sponsor-plan-card ul{border-top:0}
#profileSponsorPanel .sponsor-plan-price{padding-top:0}
#profileSponsorPanel .sponsor-pricing-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;gap:22px}
#profileSponsorPanel .sponsor-plan-card{cursor:pointer;animation:none}
#profileSponsorPanel .sponsor-plan-card.recommended{border-color:rgba(229,195,119,.48)}
#profileSponsorPanel .sponsor-plan-card.is-previewed{border-color:rgba(240,215,155,.82);background:linear-gradient(155deg,#292012,#110e09 74%);box-shadow:0 0 0 2px rgba(212,169,79,.12),0 22px 50px rgba(0,0,0,.3)}
#profileSponsorPanel .sponsor-plan-card:focus-visible{outline:2px solid rgba(240,215,155,.55);outline-offset:3px}
#profileSponsorPanel .sponsor-plan-card.recommended>button{border-color:rgba(240,215,155,.65);background:linear-gradient(180deg,#6a4d1a,#3d2b0e)}
#profileSponsorPanel .sponsor-plan-brand{display:grid;justify-items:center;min-height:138px;text-align:center}
#profileSponsorPanel .sponsor-brand-mark{width:72px;height:72px;margin:0 auto 12px;object-fit:contain;filter:drop-shadow(0 8px 13px rgba(0,0,0,.34))}
#profileSponsorPanel .sponsor-plan-type{display:block;text-align:center}
#profileSponsorPanel .sponsor-plan-card h4{width:100%;margin-inline:auto;text-align:center;text-wrap:balance}
#profileSponsorPanel .sponsor-plan-description{text-align:center;text-wrap:pretty}
#profileSponsorPanel .sponsor-plan-price{display:inline-flex;align-items:baseline;justify-content:center;gap:10px;white-space:nowrap}
#profileSponsorPanel .sponsor-plan-price>span{flex:0 0 auto;align-self:baseline;color:#ba9a5b;font-family:"Inter",ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:650;letter-spacing:0;line-height:1}
#profileSponsorPanel .sponsor-plan-price>strong{flex:0 0 auto;letter-spacing:0;line-height:1}
#profileSponsorPanel .sponsor-plan-card ul{margin-top:17px}
#profileSponsorPanel .sponsor-plan-card li{color:#d8d0c3;font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;font-weight:550;letter-spacing:0;line-height:1.42}
#profileSponsorPanel .sponsor-plan-card li .sponsor-feature-icon{display:grid;place-items:center;width:17px;height:17px;margin-top:0;border:1px solid currentColor;border-radius:50%;font-size:12px;font-style:normal;font-weight:900;line-height:1}
#profileSponsorPanel .sponsor-plan-card li.positive .sponsor-feature-icon{color:#70a97b;background:rgba(69,121,78,.12)}
#profileSponsorPanel .sponsor-plan-card li.negative .sponsor-feature-icon{color:#b9655c;background:rgba(138,55,47,.12)}
#profileSponsorPanel .sponsor-plan-card li.negative span{color:#d1b9b2}
#profileSponsorPanel .sponsor-feature-money{color:#fff2d3;font-weight:850;font-variant-numeric:tabular-nums}

#profileSponsorPanel .sponsor-flow-number{position:relative;display:inline-block;inline-size:calc(var(--sponsor-flow-chars, 10) * 1ch);min-inline-size:calc(var(--sponsor-flow-chars, 10) * 1ch);height:1em;overflow:hidden;text-align:right;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;font-kerning:none;letter-spacing:0;line-height:1;vertical-align:baseline;white-space:nowrap}
#profileSponsorPanel .sponsor-flow-number>.sponsor-flow-layer{position:absolute;inset:0;display:block;width:100%;height:1em;color:inherit;text-align:right;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;font-variant-numeric:inherit;font-feature-settings:inherit;font-kerning:inherit;letter-spacing:inherit;line-height:inherit;white-space:nowrap;will-change:transform}
#profileSponsorPanel .sponsor-plan-price>.sponsor-flow-number>.sponsor-flow-layer{color:#fffaf0;font-family:var(--display);font-size:clamp(28px,2.75vw,39px);font-style:normal;font-weight:800;letter-spacing:0;line-height:1}
#profileSponsorPanel .sponsor-flow-outgoing{opacity:1;transform:translateY(0)}
#profileSponsorPanel .sponsor-flow-incoming{opacity:1;transform:translateY(1em)}
#profileSponsorPanel .sponsor-flow-number.is-transitioning .sponsor-flow-layer{transition:transform 560ms cubic-bezier(.2,.76,.22,1)}
#profileSponsorPanel .sponsor-flow-number.is-rolling .sponsor-flow-outgoing{opacity:1;transform:translateY(-1em)}
#profileSponsorPanel .sponsor-flow-number.is-rolling .sponsor-flow-incoming{opacity:1;transform:translateY(0)}

#profileSponsorPanel .sponsor-projection-card{position:relative;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,.72fr);min-width:0;overflow:hidden;padding:30px 32px 28px;border:1px solid rgba(212,169,79,.24);border-radius:18px;background:radial-gradient(circle at 92% 8%,rgba(212,169,79,.12),transparent 34%),linear-gradient(155deg,#191610,#0c0b09 76%);box-shadow:0 22px 52px rgba(18,12,4,.3),inset 0 1px rgba(255,241,205,.025)}
#profileSponsorPanel .sponsor-projection-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#profileSponsorPanel .sponsor-projection-card>header span{color:#e5c377;font-size:10px;font-weight:900;letter-spacing:.11em}
#profileSponsorPanel .sponsor-projection-trend{display:grid;justify-items:end;gap:2px}
#profileSponsorPanel .sponsor-projection-trend b{color:#d0b16c;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums}
#profileSponsorPanel .sponsor-projection-trend.positive b{color:#82b98d}
#profileSponsorPanel .sponsor-projection-trend.negative b{color:#c7786d}
#profileSponsorPanel .sponsor-projection-trend span{color:#746c60;font-size:9px}
#profileSponsorPanel .sponsor-projection-headline{display:grid;gap:7px;margin-top:24px}
#profileSponsorPanel .sponsor-projection-headline>span{color:#aaa091;font-size:11px}
#profileSponsorPanel .sponsor-projection-headline>strong{color:#fbf7ef;font-family:var(--display);font-size:clamp(38px,4.6vw,66px);font-weight:800;letter-spacing:0;line-height:.96}
#profileSponsorPanel .sponsor-projection-headline>small{color:#756d61;font-size:10px}
#profileSponsorPanel .sponsor-chart-stage{position:relative;grid-column:1;min-width:0;margin-top:14px}
#profileSponsorPanel .sponsor-projection-chart{display:block;width:100%;height:auto;margin:0;overflow:visible;color:#78ad83}
#profileSponsorPanel .sponsor-projection-grid path{fill:none;stroke:rgba(212,169,79,.14);stroke-width:1;stroke-dasharray:1 6;stroke-linecap:round}
#profileSponsorPanel .sponsor-projection-line{fill:none;stroke:#d0b16c;stroke-width:3.25;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 4px 9px rgba(0,0,0,.46));transition:stroke .2s ease}
#profileSponsorPanel .sponsor-projection-area{fill:url(#sponsorSeasonArea)}
#profileSponsorPanel .sponsor-projection-chart circle{fill:#0e0c08;stroke:#e2c681;stroke-width:2.2;transition:r .18s ease,stroke .2s ease;cursor:crosshair}
#profileSponsorPanel .sponsor-projection-chart circle:hover{r:7}
#profileSponsorPanel .sponsor-week-bar rect{fill:#b99a55;stroke:rgba(255,236,188,.18);stroke-width:1;filter:drop-shadow(0 7px 8px rgba(0,0,0,.24));transition:fill .2s ease,opacity .2s ease;cursor:crosshair}
#profileSponsorPanel .sponsor-projection-card.positive .sponsor-week-bar rect{fill:#6f9f77}
#profileSponsorPanel .sponsor-projection-card.negative .sponsor-week-bar rect{fill:#a75e55}
#profileSponsorPanel .sponsor-week-bar:hover rect{fill:#e1c276;opacity:1}
#profileSponsorPanel .sponsor-week-bar text{fill:#746c60;font-size:9px;font-weight:800;text-anchor:middle}
#profileSponsorPanel .sponsor-projection-card.positive .sponsor-projection-line{stroke:#78ad83}
#profileSponsorPanel .sponsor-projection-card.positive .sponsor-projection-chart circle{stroke:#91c69d}
#profileSponsorPanel .sponsor-projection-card.negative .sponsor-projection-line{stroke:#b76d62}
#profileSponsorPanel .sponsor-projection-card.negative .sponsor-projection-chart circle{stroke:#d08579}
#profileSponsorPanel .sponsor-projection-card dl{grid-column:2;grid-row:1/span 3;align-self:stretch;display:grid;align-content:center;gap:8px;margin:0 0 0 28px;padding-left:28px;border-left:1px solid rgba(212,169,79,.13)}
#profileSponsorPanel .sponsor-projection-card dl div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.025)}
#profileSponsorPanel .sponsor-projection-card dt{color:rgba(245,236,220,.78);font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;font-weight:600;line-height:1.4}
#profileSponsorPanel .sponsor-projection-card dd{margin:0;color:#f3ecdf;font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px;font-weight:750;line-height:1;text-align:right;font-variant-numeric:tabular-nums}
#profileSponsorPanel .sponsor-chart-tooltip{position:absolute;z-index:3;display:grid;gap:3px;min-width:128px;padding:10px 12px;border:1px solid rgba(226,198,129,.38);border-radius:8px;background:rgba(14,12,8,.96);box-shadow:0 12px 30px rgba(0,0,0,.42);opacity:0;pointer-events:none;transform:translate(-50%,calc(-100% - 13px));transition:opacity .14s ease}
#profileSponsorPanel .sponsor-chart-tooltip.visible{opacity:1}
#profileSponsorPanel .sponsor-chart-tooltip span{color:#8f8679;font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
#profileSponsorPanel .sponsor-chart-tooltip strong{color:#fff1cf;font-size:13px;font-variant-numeric:tabular-nums}

#profileSponsorPanel .sponsor-signing-dialog{position:fixed;z-index:1600;inset:0;display:grid;place-items:center;padding:22px}
#profileSponsorPanel .sponsor-signing-filter-defs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
#profileSponsorPanel .sponsor-signing-backdrop{position:absolute;inset:0;border:0;background:rgba(2,2,2,.78);backdrop-filter:blur(8px);cursor:pointer}
#profileSponsorPanel .sponsor-signing-dialog>article{position:relative;width:min(100%,620px);max-height:min(88vh,760px);overflow:auto;padding:32px;border:1px solid rgba(229,195,119,.4);border-radius:16px;background:linear-gradient(155deg,#1b1812,#0c0b09);box-shadow:0 34px 90px rgba(0,0,0,.66);transform-origin:72% 82%}
#profileSponsorPanel .sponsor-signing-dialog>article::after{content:"";position:absolute;z-index:8;inset:0;border-radius:inherit;background:radial-gradient(circle at 72% 80%,rgba(235,203,128,.42) 0 1px,transparent 1.5px),radial-gradient(circle at 36% 28%,rgba(160,116,56,.28) 0 1px,transparent 2px);background-size:11px 13px,17px 19px;mix-blend-mode:screen;opacity:0;pointer-events:none}
#profileSponsorPanel .sponsor-signing-close{position:absolute;top:15px;right:15px;width:38px;height:38px;border:1px solid rgba(212,169,79,.2);border-radius:50%;background:#100e0a;color:#cfb36f;font-size:22px;cursor:pointer}
#profileSponsorPanel .sponsor-signing-dialog>article>span{color:#caa552;font-size:10px;font-weight:900;letter-spacing:.12em}
#profileSponsorPanel .sponsor-signing-dialog h3{margin:8px 42px 8px 0;color:#fbf7ef;font-family:var(--display);font-size:30px}
#profileSponsorPanel .sponsor-signing-dialog>article>p{margin:0 0 22px;color:#a69d8f;font-size:13px;line-height:1.55}
#profileSponsorPanel .sponsor-signing-dialog dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 22px}
#profileSponsorPanel .sponsor-signing-dialog dl div{display:grid;gap:4px;padding:11px 12px;border:1px solid rgba(212,169,79,.12);border-radius:8px;background:#0c0b09}
#profileSponsorPanel .sponsor-signing-dialog dt{color:#7e7568;font-size:9px;text-transform:uppercase;letter-spacing:.06em}
#profileSponsorPanel .sponsor-signing-dialog dd{margin:0;color:#f0e7d9;font-size:12px;font-weight:800}
#profileSponsorPanel .sponsor-signing-dialog label{display:grid;gap:7px}
#profileSponsorPanel .sponsor-signing-dialog label>span{color:#e2c477;font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
#profileSponsorPanel .sponsor-signing-dialog label small{color:#8d8375;font-size:10px}
#profileSponsorPanel .sponsor-signing-dialog label b{color:#d8bd7e}
#profileSponsorPanel .sponsor-signing-dialog input{width:100%;height:50px;padding:0 4px;border:0;border-bottom:1px solid rgba(229,195,119,.58);border-radius:0;background:transparent;color:#fff6e5;font-family:cursive;font-size:25px;outline:0}
#profileSponsorPanel .sponsor-signing-dialog input:focus{border-bottom-color:#f0d79b;box-shadow:0 5px 12px -11px #f0d79b}
#profileSponsorPanel .sponsor-signing-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:28px}
#profileSponsorPanel .sponsor-signing-actions button{min-height:44px;padding:0 17px;border:1px solid rgba(212,169,79,.3);border-radius:9px;background:#12100c;color:#bbae98;font:inherit;font-size:11px;font-weight:850;cursor:pointer}
#profileSponsorPanel .sponsor-signing-actions button:first-child{border-color:#7d302d;background:linear-gradient(180deg,#4f1f1d,#321211);color:#fff0e8}
#profileSponsorPanel .sponsor-signing-actions button:first-child:hover{border-color:#a54a43;background:linear-gradient(180deg,#642723,#411715);color:#fff8f0}
#profileSponsorPanel .sponsor-signing-actions button:last-child{border-color:#a87d2d;background:linear-gradient(180deg,#5b4318,#32230d);color:#fff1ce}
#profileSponsorPanel .sponsor-signing-actions button:disabled{opacity:.58;cursor:wait}
#profileSponsorPanel .sponsor-signing-actions button.is-snap-origin{pointer-events:none;animation:sponsor-sign-button-snap 300ms cubic-bezier(.3,.05,.4,1) forwards}
#profileSponsorPanel .sponsor-signing-dialog>article.is-snapping{filter:var(--sponsor-snap-filter);will-change:filter,transform,opacity;animation:sponsor-sign-modal-snap 780ms cubic-bezier(.32,.02,.58,1) forwards}
#profileSponsorPanel .sponsor-signing-dialog>article.is-snapping::after{animation:sponsor-sign-dust 620ms ease-out 80ms forwards}
#profileSponsorPanel .sponsor-signing-dialog.is-snapping .sponsor-signing-backdrop{pointer-events:none;animation:sponsor-sign-backdrop-fade 320ms ease 250ms forwards}
#profileSponsorPanel .sponsor-signing-dialog.is-snap-reduced>article{animation:sponsor-sign-reduced 200ms ease forwards}
#profileSponsorPanel .sponsor-signing-dialog.is-snap-reduced .sponsor-signing-backdrop{animation:sponsor-sign-backdrop-fade 180ms ease 40ms forwards}

@keyframes sponsor-sign-button-snap{0%,28%{opacity:1;transform:translate(0,0) scale(1)}60%{opacity:.72;transform:translate(2px,-2px) scale(1.025)}100%{opacity:0;transform:translate(9px,-7px) scale(1.08)}}
@keyframes sponsor-sign-modal-snap{0%,42%{opacity:1;transform:translate(0,0) scale(1)}62%{opacity:.86;transform:translate(3px,-2px) scale(1.018)}100%{opacity:0;transform:translate(17px,-11px) scale(1.075)}}
@keyframes sponsor-sign-dust{0%{opacity:0;transform:translate(0,0) scale(.98)}34%{opacity:.82}100%{opacity:0;transform:translate(24px,-18px) scale(1.1)}}
@keyframes sponsor-sign-backdrop-fade{to{opacity:0}}
@keyframes sponsor-sign-reduced{to{opacity:0;transform:scale(.99)}}

#profileSponsorPanel .sponsor-contract-document{--sponsor-contract-artwork:none;position:relative;isolation:isolate;width:min(100%,940px);aspect-ratio:1507/1044;margin:0 auto;overflow:hidden;border:0;border-radius:0;background:transparent;color:#24170b;box-shadow:none;animation:sponsor-contract-reveal 260ms ease both}
#profileSponsorPanel .sponsor-contract-artwork{position:absolute;z-index:0;inset:0;background:var(--sponsor-contract-artwork) center/100% 100% no-repeat;pointer-events:none}
#profileSponsorPanel .sponsor-contract-document::before,#profileSponsorPanel .sponsor-contract-document::after{content:none}
#profileSponsorPanel .sponsor-contract-goat-wax-seal{position:absolute;z-index:2;left:.6%;top:44%;width:24%;aspect-ratio:1;display:grid;place-items:center;pointer-events:none}
#profileSponsorPanel .sponsor-contract-goat-wax-seal img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 9px rgba(66,16,20,.18))}
#profileSponsorPanel .sponsor-contract-document-content{position:absolute;z-index:1;inset:6.5% 8.5% 8% 23%;padding:clamp(20px,3.8vw,44px);overflow:hidden;clip-path:polygon(2% 0,98% 0,100% 2.5%,100% 97.5%,98% 100%,2% 100%,0 97.5%,0 2.5%);background:linear-gradient(118deg,rgba(255,253,241,.05),rgba(130,90,37,.018));box-shadow:none;color:#24170b}
#profileSponsorPanel .sponsor-contract-brand-logo{position:absolute;z-index:2;right:clamp(18px,3vw,38px);top:clamp(18px,2.6vw,30px);display:grid;place-items:center;width:90px;height:56px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none}
#profileSponsorPanel .sponsor-contract-brand-logo-image{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;image-rendering:auto}
#profileSponsorPanel .sponsor-contract-document-content>header{position:relative;z-index:1;max-width:calc(100% - 122px);margin:0;padding:0;border:0;background:transparent}
#profileSponsorPanel .sponsor-contract-document-content>header>span{font-size:10px;font-weight:900;letter-spacing:.15em}
#profileSponsorPanel .sponsor-contract-document h3{margin:9px 0 5px;color:#23180b!important;font-family:var(--display);font-size:clamp(32px,5vw,54px);line-height:1}
#profileSponsorPanel .sponsor-contract-document-content>header>b{color:#76501b;font-size:10px;letter-spacing:.1em}
#profileSponsorPanel .sponsor-contract-document .sponsor-contract-parties{position:relative;z-index:1;margin:28px 0 20px!important;color:#302010!important;font-family:"Poppins",var(--body),sans-serif;font-size:15px!important;font-weight:500!important;letter-spacing:-.008em;line-height:1.62!important;text-wrap:pretty}
#profileSponsorPanel .sponsor-contract-document .sponsor-contract-parties strong{color:#160e07!important;font-weight:800!important}
#profileSponsorPanel .sponsor-contract-terms{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
#profileSponsorPanel .sponsor-contract-terms p{display:grid;gap:6px;margin:0!important;padding:11px 4px 10px;border:0;border-bottom:1px solid rgba(88,60,23,.24);background:transparent;box-shadow:none}
#profileSponsorPanel .sponsor-contract-terms span,#profileSponsorPanel .sponsor-contract-document footer p>span{color:#583b1c;font-family:"Poppins",var(--body),sans-serif;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.065em}
#profileSponsorPanel .sponsor-contract-terms strong{color:#170e06!important;font-family:"Poppins",var(--body),sans-serif;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
#profileSponsorPanel .sponsor-contract-document-content footer{position:relative;z-index:1;display:grid;grid-template-columns:1fr 1.5fr;align-items:end;gap:18px;margin-top:26px;padding:0;border:0;background:transparent}
#profileSponsorPanel .sponsor-contract-document footer p{display:grid;gap:7px;margin:0!important;color:#1b1108!important;font-family:"Poppins",var(--body),sans-serif}
#profileSponsorPanel .sponsor-contract-document footer p>strong{color:#160d06!important;font-weight:750!important}
#profileSponsorPanel .sponsor-contract-signature strong{display:inline-block;padding:2px 8px 5px 3px;border-bottom:1px solid rgba(55,37,15,.68);color:#1c1008!important;font-family:"Segoe Script","Snell Roundhand","Bradley Hand","Brush Script MT",cursive;font-size:clamp(28px,3vw,34px);font-style:normal;font-weight:500!important;letter-spacing:-.035em;line-height:1.18;text-transform:none;transform:rotate(-1deg);transform-origin:left bottom}

@keyframes sponsor-contract-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:980px){#profileSponsorPanel .sponsor-projection-card{grid-template-columns:1fr}#profileSponsorPanel .sponsor-projection-card dl{grid-column:1;grid-row:auto;grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 0;padding:18px 0 0;border-top:1px solid rgba(212,169,79,.13);border-left:0}}
@media(max-width:700px){#profileSponsorPanel .sponsor-contract-document-content{inset:6% 7% 7% 22%;padding:clamp(12px,3vw,22px)}#profileSponsorPanel .sponsor-contract-goat-wax-seal{left:.3%;top:43.5%;width:25%}#profileSponsorPanel .sponsor-contract-terms{gap:5px}#profileSponsorPanel .sponsor-contract-terms p{padding:8px 3px}#profileSponsorPanel .sponsor-contract-document-content footer{gap:8px;margin-top:16px}#profileSponsorPanel .sponsor-signing-dialog dl{grid-template-columns:1fr}}
@media(max-width:560px){#profileSponsorPanel .sponsor-projection-card{padding:24px 17px}#profileSponsorPanel .sponsor-projection-card dl{grid-template-columns:1fr}#profileSponsorPanel .sponsor-contract-brand-logo{width:58px;height:38px;right:12px;top:12px}#profileSponsorPanel .sponsor-contract-document-content>header{max-width:calc(100% - 68px)}#profileSponsorPanel .sponsor-contract-document h3{font-size:clamp(21px,6vw,30px)}#profileSponsorPanel .sponsor-contract-parties{margin:16px 0 12px!important;font-size:12px!important;line-height:1.42!important}#profileSponsorPanel .sponsor-contract-terms{gap:4px}#profileSponsorPanel .sponsor-contract-terms p{gap:3px;padding:6px 2px}#profileSponsorPanel .sponsor-contract-terms span,#profileSponsorPanel .sponsor-contract-document footer p>span{font-size:7px}#profileSponsorPanel .sponsor-contract-terms strong{font-size:10px}#profileSponsorPanel .sponsor-contract-document-content footer{gap:5px;margin-top:10px}#profileSponsorPanel .sponsor-contract-document footer p{gap:3px;font-size:10px}#profileSponsorPanel .sponsor-contract-signature strong{font-size:18px}#profileSponsorPanel .sponsor-contract-goat-wax-seal{left:0;top:43%;width:25.5%}}
@media(prefers-reduced-motion:reduce){
  #profileSponsorPanel .sponsor-flow-layer,#profileSponsorPanel .sponsor-projection-line,#profileSponsorPanel .sponsor-projection-chart circle{transition:none!important}
  #profileSponsorPanel .sponsor-signing-actions button.is-snap-origin{animation:none!important;opacity:.72}
  #profileSponsorPanel .sponsor-contract-document{animation:none}
}

/* ================= POST-RELEASE UI POLISH ================================ */

/* Club-logo cropping now uses the same restrained black, espresso, antique
   gold and cream language as the current Club surfaces. Interaction geometry
   and the drag/zoom canvas are intentionally unchanged. */
.logo-crop-backdrop{background:rgba(5,4,3,.88)!important;backdrop-filter:blur(6px)!important}
.logo-crop-card{
  border-color:rgba(212,169,79,.42)!important;
  background:linear-gradient(145deg,rgba(31,26,17,.99),rgba(10,9,7,.995))!important;
  box-shadow:0 30px 90px rgba(0,0,0,.66),inset 0 1px 0 rgba(255,255,255,.055)!important;
  color:#fbf7ef!important;
}
.logo-crop-card .eyebrow,.logo-crop-zoom{color:#d4a94f!important}
.logo-crop-card>p:not(.eyebrow){color:#d9d1c2!important}
.logo-crop-stage{border-color:rgba(212,169,79,.58)!important;background:#0d0c0a!important;box-shadow:inset 0 0 0 1px rgba(255,244,227,.04)!important}
.logo-crop-zoom input{accent-color:#d4a94f!important}
.logo-crop-actions button{
  min-height:46px!important;padding:0 18px!important;border:1px solid rgba(212,169,79,.34)!important;
  border-radius:9px!important;background:linear-gradient(145deg,#211d14,#0d0c0a)!important;
  color:#e5c377!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.logo-crop-actions [data-logo-crop-apply]{border-color:rgba(240,215,155,.52)!important;background:linear-gradient(145deg,#4c3915,#21180a)!important;color:#fff4e3!important}
.logo-crop-actions button:hover,.logo-crop-actions button:focus-visible{border-color:rgba(240,215,155,.72)!important;background:#2a2214!important;color:#fff4e3!important;outline:2px solid rgba(240,215,155,.42)!important;outline-offset:2px!important}

/* The template opening starts 4% in from each 512px frame edge (20.48px),
   matching the measured straight inner rail across every rarity. Only visible
   horizontal pixels are clipped; approved scale, centring and baseline stay. */
.footballer-card.has-card-template .footballer-card-art.template-single-portrait{clip-path:inset(0 4% 0 4%)!important}

/* Match History owns an approved local stadium background. */
body.goat-page-bg-history{--goat-page-background-image:url('/management-backgrounds/match-history-stadium.webp?v=de238ff2f1db')}
body.profile-background.goat-page-bg-history .world-bg{background:#050505!important}
body.profile-background.goat-page-bg-history .world-bg::before{
  inset:-8px!important;background-image:var(--goat-page-background-image)!important;background-position:center!important;
  background-size:cover!important;background-repeat:no-repeat!important;filter:brightness(.72) saturate(.92)!important;transform:scale(1.008)!important;
}
body.profile-background.goat-page-bg-history .world-gradient{background:linear-gradient(90deg,rgba(5,4,3,.40),rgba(5,4,3,.10) 50%,rgba(5,4,3,.40)),linear-gradient(180deg,rgba(5,4,3,.10),rgba(5,4,3,.36) 60%,rgba(5,4,3,.70))!important}
body.profile-background.goat-page-bg-history .world-grid{opacity:.02!important}

/* Keep the structural page wrapper but remove its obsolete square window. */
#profileHistoryPanel .mc-hub-history-page{
  min-height:0!important;padding:clamp(18px,3vw,38px) 0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}
#profileHistoryPanel .mc-hub-history-page>.mc-hub-page-header{display:none!important}
#profileHistoryPanel .mc-hub-history-page>.mc-hub-past{width:min(100%,1380px);min-height:0;margin:0 auto}

/* Competition/date metadata uses warm readable neutrals; semantic result
   green, red and yellow remain owned by their existing result classes. */
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row .mc-hub-competition-cell,
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row .mc-hub-competition-cell b,
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row time{color:#d9d1c2!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-match-row .mc-hub-competition-cell .mc-hub-icon{color:#d4a94f!important}

@media(max-width:720px){#profileHistoryPanel .mc-hub-history-page{padding:12px 0 24px!important}}

/* ================= PUBLIC CLUB PROFILE CLEANUP ========================== */

/* Public profiles use the same canonical circular return control as the Club
   hub, Office and tablet apps (see the shared ".club-hub-crumb button,
   .office-back, .office-app-toolbar button" icon rule): a real chevron SVG,
   not a custom glyph standing in for it. aria-label carries the accessible
   name; the button shows the icon only. */
body:not(.dashboard-mode) #profileView .profile-return-row .back-button{
  display:grid!important;
  place-items:center!important;
  flex:0 0 44px!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:1px solid var(--goat-control-border)!important;
  border-radius:50%!important;
  background:var(--goat-control-surface)!important;
  color:var(--goat-label-color)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
  transition:color .2s ease,border-color .2s ease,background .2s ease,scale .2s ease!important;
}
body:not(.dashboard-mode) #profileView .profile-return-row .back-button svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body:not(.dashboard-mode) #profileView .profile-return-row .back-button:hover,
body:not(.dashboard-mode) #profileView .profile-return-row .back-button:focus-visible{
  color:var(--goat-text-gold-strong)!important;
  border-color:var(--goat-control-focus)!important;
  background:var(--goat-control-surface-hover)!important;
  scale:1.06;
  outline:2px solid color-mix(in srgb,var(--goat-text-gold-strong) 54%,transparent)!important;
  outline-offset:3px!important;
}

/* Public identity and progression copy no longer inherit the legacy lilac
   global muted colour. Status hierarchy uses the shared heritage text roles. */
body:not(.dashboard-mode) #profileOverviewPanel .profile-club-meta,
body:not(.dashboard-mode) #profileOverviewPanel .profile-club-meta>span,
body:not(.dashboard-mode) #profileOverviewPanel .progression-track-heading span,
body:not(.dashboard-mode) #profileOverviewPanel .progression-track-footer,
body:not(.dashboard-mode) #profileOverviewPanel .progression-track-footer>span,
body:not(.dashboard-mode) #profileOverviewPanel :is(.progression-level-block,.next-reward-block)>small,
body:not(.dashboard-mode) #profileOverviewPanel .next-reward-block>p{
  color:var(--goat-text-muted)!important;
}
body:not(.dashboard-mode) #profileOverviewPanel .profile-club-meta span+span::before{color:var(--goat-text-muted)!important}
body:not(.dashboard-mode) #profileOverviewPanel :is(.progression-title,.progression-track-heading strong,.next-reward-block strong){color:var(--goat-text-primary)!important}
body:not(.dashboard-mode) #profileOverviewPanel :is(.progression-overline,.progression-track-heading b){color:var(--goat-label-color)!important}

/* These two short strokes are leftovers from the old neon dashboard shell. */
body:not(.dashboard-mode) #profileOverviewPanel .profile-dashboard>.rarity-panel::before,
body:not(.dashboard-mode) #profileOverviewPanel .profile-dashboard>.active-lineup-overview-panel::before{
  content:none!important;
  display:none!important;
}

/* Featured-player actions are interface actions, while the kicker and card
   face continue to own their semantic rarity and stat colours. */
body:not(.dashboard-mode) #profileOverviewPanel .best-player-meta,
body:not(.dashboard-mode) #profileOverviewPanel .best-player-meta>span:last-child,
body:not(.dashboard-mode) #profileOverviewPanel .collection-insights :is(small,.position-legend,.position-legend li){color:var(--goat-text-muted)!important}
body:not(.dashboard-mode) #profileOverviewPanel .open-player-profile{
  color:var(--goat-label-color)!important;
  transition:color .2s ease!important;
}
body:not(.dashboard-mode) #profileOverviewPanel .best-player-showcase:is(:hover,:focus-visible) .open-player-profile{color:var(--goat-text-gold-strong)!important}

/* ================= LEAGUE STANDINGS TABLE =============================== */

/* The standings table keeps the Club desk's espresso and antique-gold
   identity, while adopting a quieter football-data rhythm: compact columns,
   relaxed rows, restrained hierarchy and one continuous surface. */
#profileCompetitionsPanel .competition-table-card{
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border:1px solid rgba(255,244,227,.055)!important;
  border-radius:12px!important;
  background:#17150f!important;
  box-shadow:none!important;
  color:#eee8de!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel :is(.competition-table-head,.competition-table-row){
  display:grid;
  grid-template-columns:44px minmax(300px,1fr) repeat(4,44px) 72px 50px 50px 112px 52px;
  align-items:center;
  column-gap:0;
  width:100%;
  box-sizing:border-box;
  padding:0 12px;
}
#profileCompetitionsPanel :is(.competition-table-head,.competition-table-row)>*{
  min-width:0;
  padding:0 10px;
  text-align:center;
}
#profileCompetitionsPanel .competition-table-head{
  height:36px;
  min-height:36px;
  border-bottom:1px solid rgba(255,244,227,.045)!important;
  background:#100e0a!important;
  color:#9f978a!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:16px!important;
}
#profileCompetitionsPanel .competition-table-head abbr{
  border:0;
  color:inherit;
  font:inherit;
  text-decoration:none;
}
#profileCompetitionsPanel .competition-table-head .competition-col-club{text-align:left}
#profileCompetitionsPanel .competition-table-row{
  position:relative;
  height:60px;
  min-height:60px;
  border-bottom:1px solid rgba(255,244,227,.032)!important;
  color:#e4ded4!important;
  font-size:14px!important;
  font-weight:600;
  line-height:18px;
  transition:background-color 180ms ease,color 180ms ease;
}
#profileCompetitionsPanel .competition-table-row:last-child{border-bottom:0!important}
#profileCompetitionsPanel .competition-table-row.is-odd{background:#17150f!important}
#profileCompetitionsPanel .competition-table-row.is-even{background:#1d1b15!important}
#profileCompetitionsPanel .competition-table-row:hover{background:#242118!important;color:#f8f3ea!important}
#profileCompetitionsPanel .competition-table-row.is-user{
  background:rgba(91,70,28,.42)!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
#profileCompetitionsPanel .competition-table-row.is-user:hover{background:rgba(111,85,34,.48)!important}
#profileCompetitionsPanel .competition-table-row.is-ai{color:#d4cec4!important}
#profileCompetitionsPanel .competition-table-row>.competition-col-position{
  color:#f2ede4;
  font-size:14px;
  font-weight:600;
}
#profileCompetitionsPanel .competition-table-row>.competition-col-points{
  color:#fffaf1;
  font-size:14px;
  font-weight:700;
}
#profileCompetitionsPanel .competition-table-club{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  color:#f2ede4!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:18px;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-table-club[data-competition-club-profile]{
  cursor:pointer;
  transition:color 180ms ease;
}
#profileCompetitionsPanel .competition-table-club[data-competition-club-profile]:is(:hover,:focus-visible){
  color:#f0d79b!important;
  outline:2px solid rgba(240,215,155,.52);
  outline-offset:3px;
  border-radius:4px;
}
#profileCompetitionsPanel .competition-table-club>span:last-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-table-club small{
  display:block;
  margin-top:2px;
  color:#999184!important;
  font-size:13px!important;
  font-weight:500!important;
  letter-spacing:.01em;
  line-height:16px;
}
#profileCompetitionsPanel .competition-table-card .competition-club-mark{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  flex:0 0 28px;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  color:#e5c377;
  font-size:10px;
  font-weight:700;
}
#profileCompetitionsPanel .competition-table-card .competition-club-mark.fallback{
  border:1px solid rgba(212,169,79,.22);
  border-radius:8px;
  background:#211d14;
}
#profileCompetitionsPanel .competition-table-card .competition-club-mark img{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  object-fit:contain;
}
#profileCompetitionsPanel .competition-club-mark.is-user-avatar,
#profileCompetitionsPanel .competition-club-mark.is-user-avatar img{
  border-radius:26%;
}
#profileCompetitionsPanel .competition-club-mark.is-user-avatar img{
  object-fit:cover;
}
#profileCompetitionsPanel .competition-form{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
}
#profileCompetitionsPanel .competition-form>span{
  display:block;
  width:18px;
  height:18px;
  min-width:18px;
  padding:0;
  border-radius:5px;
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:18px;
  text-align:center;
}
#profileCompetitionsPanel .competition-form>.is-w{background:#18c879;color:#07150f}
#profileCompetitionsPanel .competition-form>.is-d{background:#d6a72d;color:#07150f}
#profileCompetitionsPanel .competition-form>.is-l{background:#e64b53;color:#07150f}
#profileCompetitionsPanel .competition-form-empty{color:#777065;font-weight:500}
#profileCompetitionsPanel .competition-next-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#777065;
}
#profileCompetitionsPanel .competition-table-card .competition-next-mark .competition-club-mark{
  width:23px;
  height:23px;
  flex-basis:23px;
}

/* The overview intentionally keeps the scan-critical columns. The dedicated
   Table and Team stats views retain every statistic at full width. */
#profileCompetitionsPanel .competition-table-card.compact :is(.competition-table-head,.competition-table-row){
  grid-template-columns:44px minmax(260px,1fr) 44px 50px 50px 112px 52px;
}
#profileCompetitionsPanel .competition-table-card.compact :is(.competition-col-wins,.competition-col-draws,.competition-col-losses,.competition-col-goals){display:none}

@media(max-width:980px){
  #profileCompetitionsPanel .competition-table-card{overflow-x:auto!important;scrollbar-color:rgba(192,143,52,.72) #080603}
  #profileCompetitionsPanel .competition-table-card:not(.compact) :is(.competition-table-head,.competition-table-row){min-width:920px}
  #profileCompetitionsPanel .competition-table-card.compact :is(.competition-table-head,.competition-table-row){min-width:700px}
}
@media(max-width:620px){
  #profileCompetitionsPanel :is(.competition-table-head,.competition-table-row){padding:0 8px}
  #profileCompetitionsPanel :is(.competition-table-head,.competition-table-row)>*{padding:0 7px}
}
@media(prefers-reduced-motion:reduce){
  #profileCompetitionsPanel :is(.competition-table-row,.competition-table-club[data-competition-club-profile]){transition:none}
}

/* ================= COMPETITION CENTRE REFINEMENT ========================== */

/* The secondary navigation uses one active marker only. The previous full-
   width border was the stray gold/blue line visible above the content. */
#profileCompetitionsPanel .competition-sub-switch{
  margin-top:0!important;
  border:0!important;
  background:transparent!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
#profileCompetitionsPanel .competition-sub-switch button{
  height:38px!important;
  padding:0 14px!important;
  border:0!important;
  border-bottom:2px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:18px!important;
}
#profileCompetitionsPanel .competition-sub-switch button.active{
  border-bottom-color:#d4a94f!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f0d79b!important;
}

/* The layout wrapper only positions the actual standings and round cards. */
#profileCompetitionsPanel .competition-overview-layout>div{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* These tones are applied only when the API supplies a rule-backed status. */
#profileCompetitionsPanel .competition-table-row:is(.status-champion,.status-direct_promotion,.status-promotion_qualifying){
  background:rgba(28,92,70,.56)!important;
}
#profileCompetitionsPanel .competition-table-row.status-relegation_playoff{
  background:rgba(132,78,25,.55)!important;
}
#profileCompetitionsPanel .competition-table-row.status-direct_relegation{
  background:rgba(106,39,49,.62)!important;
}
#profileCompetitionsPanel .competition-table-row:is(.status-champion,.status-direct_promotion,.status-promotion_qualifying):hover{
  background:rgba(36,111,84,.64)!important;
}
#profileCompetitionsPanel .competition-table-row.status-relegation_playoff:hover{
  background:rgba(153,91,30,.64)!important;
}
#profileCompetitionsPanel .competition-table-row.status-direct_relegation:hover{
  background:rgba(126,46,58,.70)!important;
}

/* Fixtures and player rankings deliberately retain the established blue data
   surface. League-zone colours never bleed into these views. */
#profileCompetitionsPanel .competition-fixtures-table .standings-result-row{
  border-color:rgba(212,169,79,0.13)!important;
  background:rgba(13,12,10,0.76)!important;
  box-shadow:none!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
#profileCompetitionsPanel .competition-fixtures-table .standings-result-row:hover{
  background:rgba(23,21,15,0.82)!important;
}
#profileCompetitionsPanel .competition-fixtures-table .standings-result-row em{
  background:rgba(42,34,20,0.24)!important;
  color:#d9d1c2!important;
}
#profileCompetitionsPanel .competition-player-table{
  border-color:rgba(212,169,79,0.15)!important;
  background:rgba(13,12,10,0.86)!important;
  box-shadow:none!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .competition-player-table>header{
  border-color:rgba(212,169,79,0.13)!important;
  background:#0d0c0a!important;
  color:#d9d1c2!important;
}
#profileCompetitionsPanel .competition-player-table>div:not(.competition-empty-state){
  border-color:rgba(212,169,79,0.1)!important;
  background:rgba(13,12,10,0.58)!important;
  color:#fbf7ef!important;
}
#profileCompetitionsPanel .competition-player-table>div:not(.competition-empty-state):nth-child(odd){
  background:rgba(23,21,15,0.68)!important;
}

#profileCompetitionsPanel .competition-empty-state{
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  min-height:138px!important;
  box-sizing:border-box!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:24px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fbf7ef!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:center!important;
}
#profileCompetitionsPanel .competition-empty-state strong{
  color:#fbf7ef!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:20px!important;
}
#profileCompetitionsPanel .competition-empty-state span{
  max-width:560px!important;
  color:#d9d1c2!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:20px!important;
  white-space:normal!important;
}
#profileCompetitionsPanel .competition-player-table>.competition-empty-state{
  grid-template-columns:1fr!important;
}

/* Team Stats follows the compact top-three card hierarchy from the supplied
   reference while retaining GOAT's charcoal and antique-gold identity. */
#profileCompetitionsPanel .competition-team-stats{
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .competition-team-stats>h3{
  margin:0 0 16px!important;
  color:#f5f1e9!important;
  font-size:16px!important;
  font-weight:700!important;
  line-height:22px!important;
}
#profileCompetitionsPanel .competition-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
#profileCompetitionsPanel .competition-stat-card{
  overflow:hidden;
  min-width:0;
  border:0!important;
  border-radius:15px;
  background:#1d1d1d!important;
  box-shadow:none!important;
}
#profileCompetitionsPanel .competition-stat-card>header{
  display:flex;
  min-height:64px;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 24px;
}
#profileCompetitionsPanel .competition-stat-card>header h4{
  margin:0;
  color:#f5f2ec;
  font-size:14px;
  font-weight:700;
  line-height:20px;
}
#profileCompetitionsPanel .competition-stat-card>header span{
  color:#9a9a9a;
  font-size:28px;
  font-weight:400;
  line-height:1;
}
#profileCompetitionsPanel .competition-stat-row{
  display:grid;
  grid-template-columns:26px 34px minmax(0,1fr) 74px;
  min-height:70px;
  align-items:center;
  gap:10px;
  margin:0 24px;
  border-bottom:1px solid rgba(255,255,255,.09);
  color:#f0ede7;
}
#profileCompetitionsPanel .competition-stat-row:last-child{border-bottom:0}
#profileCompetitionsPanel .competition-stat-row[data-competition-club-profile]{cursor:pointer}
#profileCompetitionsPanel .competition-stat-row[data-competition-club-profile]:is(:hover,:focus-visible){
  color:#f0d79b;
}
#profileCompetitionsPanel .competition-stat-row[data-competition-club-profile]:hover{background:rgba(212,169,79,.07)}
#profileCompetitionsPanel .competition-stat-row[data-competition-club-profile]:focus-visible{outline:2px solid rgba(240,215,155,.44);outline-offset:-2px}
#profileCompetitionsPanel .competition-stat-row>b{
  font-size:13px;
  font-weight:600;
  text-align:center;
}
#profileCompetitionsPanel .competition-stat-row>.competition-club-mark{
  width:34px;
  height:34px;
  flex-basis:34px;
  border:0;
  border-radius:0;
  background:transparent;
}
#profileCompetitionsPanel .competition-stat-row>.competition-club-mark.fallback{
  border:1px solid rgba(212,169,79,.25)!important;
  border-radius:9px;
}
#profileCompetitionsPanel .competition-stat-row>strong{
  min-width:0;
  overflow:hidden;
  color:inherit;
  font-size:13px;
  font-weight:600;
  line-height:18px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-stat-row>span:last-child{
  display:grid;
  justify-self:stretch;
  place-items:center;
  width:100%;
  color:#f5f1e9;
  font-size:13px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-stat-value-glyph{
  display:inline-grid;
  min-width:26px;
  place-items:center;
  color:#f5f1e9;
  font:700 13px/18px Inter,InterVariable,ui-sans-serif,system-ui,sans-serif;
}
#profileCompetitionsPanel .competition-stat-value-glyph.is-leader{
  /* The pill grows inward from the fixed-width column's own right edge, so
     rank #1's right edge stays identical to every other row's plain value --
     no per-rank margin is needed to compensate for the pill's padding. A
     full-round (999px) radius on a single short digit produced a circle
     rather than a pill, and a circle's curved right edge reads to the eye as
     sitting left of a flat digit stroke even though the bounding box is the
     same -- a modest rectangular radius keeps a real flat right edge. */
  justify-self:center;
  width:auto;
  min-width:26px;
  max-width:100%;
  padding:4px 8px;
  border-radius:6px;
  background:rgba(212,169,79,.20)!important;
  color:#f0d79b!important;
  text-align:center;
}
#profileCompetitionsPanel .competition-stat-card-empty{
  display:flex;
  min-height:210px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:6px;
  padding:22px;
  color:#8f8c86;
  text-align:center;
}
#profileCompetitionsPanel .competition-stat-card-empty strong{
  color:#d8d3ca;
  font-size:13px;
  font-weight:650;
}
#profileCompetitionsPanel .competition-stat-card-empty span{
  max-width:240px;
  font-size:12px;
  line-height:18px;
}

@media(max-width:1100px){
  #profileCompetitionsPanel .competition-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  #profileCompetitionsPanel .competition-stat-grid{grid-template-columns:1fr}
  #profileCompetitionsPanel .competition-stat-card>header{padding:0 18px}
  #profileCompetitionsPanel .competition-stat-row{margin:0 18px}
}

/* ================= COMPETITION TOOLBAR + PLAYER RANKINGS ================== */

/* The Competition Centre sits directly on its dedicated room artwork. The
   shared management-page shell otherwise paints one large navy window behind
   the standings table and Next Round card. Keep those real content surfaces,
   but remove only this obsolete outer frame. */
body.club-management-nav-v2 #profileCompetitionsPanel>.goat-luxury-page.section-frame{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
  backdrop-filter:none!important;
}

/* Sponsor offers and the signed agreement are already complete foreground
   compositions. The same legacy management-shell rule that affected
   Standings was still painting a navy window behind both sponsor states. The
   future Invest desk used that wrapper too, so keep both outer shells clear. */
body.club-management-nav-v2 :is(#profileSponsorPanel,#profileInvestPanel)>.goat-luxury-page.section-frame{
  overflow:visible!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  clip-path:none!important;
  backdrop-filter:none!important;
}
body.club-management-nav-v2 :is(#profileSponsorPanel,#profileInvestPanel)>.goat-luxury-page.section-frame::before,
body.club-management-nav-v2 :is(#profileSponsorPanel,#profileInvestPanel)>.goat-luxury-page.section-frame::after{
  content:none!important;
  display:none!important;
}

/* The fading cyan/hot stroke came from the legacy .section-frame::before rule,
   not either Competition navigation component. Both frame pseudo-elements and
   the hidden page-header border are disabled only for this page. */
#profileCompetitionsPanel>.goat-luxury-page.section-frame::before,
#profileCompetitionsPanel>.goat-luxury-page.section-frame::after{
  content:none!important;
  display:none!important;
}
#profileCompetitionsPanel .goat-luxury-header{border:0!important}

#profileCompetitionsPanel :is(.competition-primary-switch,.competition-sub-switch) button{
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:18px!important;
}
#profileCompetitionsPanel .competition-primary-switch{
  margin-bottom:12px!important;
  border:0!important;
  background:#0d0c0a!important;
}

#profileCompetitionsPanel .competition-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  width:100%;
  margin-bottom:14px;
}
#profileCompetitionsPanel .competition-toolbar .competition-sub-switch{
  flex:1 1 auto;
  width:auto!important;
  min-width:0;
  margin:0!important;
}
#profileCompetitionsPanel .competition-toolbar-controls{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
#profileCompetitionsPanel .competition-toolbar-select{
  position:relative;
  display:block;
}
#profileCompetitionsPanel .competition-toolbar-select>span{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-toolbar-select select{
  height:34px!important;
  min-height:34px!important;
  padding:0 30px 0 11px!important;
  border:1px solid rgba(212,169,79,.24)!important;
  border-radius:8px!important;
  background:#17150f!important;
  color:#e7e0d5!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:18px!important;
  cursor:pointer;
}
#profileCompetitionsPanel .competition-toolbar-select select:is(:hover,:focus-visible){
  border-color:rgba(240,215,155,.54)!important;
  outline:2px solid rgba(240,215,155,.20)!important;
  outline-offset:1px!important;
}
#profileCompetitionsPanel .competition-toolbar-select select:disabled{
  cursor:default;
  opacity:.88!important;
}
#profileCompetitionsPanel .competition-toolbar-select.streamer select{min-width:200px!important;max-width:270px!important;white-space:nowrap!important;text-overflow:ellipsis!important}
#profileCompetitionsPanel .competition-division-control{
  position:relative;
  width:78px;
  min-width:78px;
  box-sizing:border-box;
  flex:0 0 78px;
}
#profileCompetitionsPanel .competition-division-trigger{
  display:grid;
  grid-template-columns:minmax(0,1fr) 8px;
  width:78px;
  min-width:78px;
  height:34px;
  min-height:34px;
  box-sizing:border-box;
  align-items:center;
  gap:7px;
  padding:0 10px 0 12px;
  border:1px solid rgba(212,169,79,.24);
  border-radius:8px;
  background:#17150f;
  color:#e7e0d5;
  font-size:12px;
  font-weight:600;
  line-height:18px;
  text-align:left;
}
#profileCompetitionsPanel .competition-division-trigger>i{
  display:block;
  width:6px;
  height:6px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform 160ms ease;
}
#profileCompetitionsPanel .competition-division-control.is-open .competition-division-trigger>i{transform:translateY(2px) rotate(225deg)}
#profileCompetitionsPanel .competition-division-trigger:is(:hover,:focus-visible),
#profileCompetitionsPanel .competition-division-control.is-open .competition-division-trigger{
  border-color:rgba(240,215,155,.54);
  outline:2px solid rgba(240,215,155,.20);
  outline-offset:1px;
}
#profileCompetitionsPanel .competition-division-menu{
  position:absolute;
  z-index:20;
  top:calc(100% + 6px);
  right:0;
  display:none;
  width:84px;
  min-width:84px;
  box-sizing:border-box;
  overflow:hidden;
  padding:5px 0;
  border:1px solid rgba(212,169,79,.30);
  border-radius:10px;
  background:#17150f;
  box-shadow:0 12px 28px rgba(5,3,0,.42);
}
#profileCompetitionsPanel .competition-division-control.is-open .competition-division-menu{display:block}
#profileCompetitionsPanel .competition-division-menu>button{
  display:flex;
  width:100%;
  min-width:100%;
  min-height:34px;
  box-sizing:border-box;
  align-items:center;
  justify-content:flex-start;
  padding-block:0;
  padding-inline:12px;
  border:0;
  background:transparent;
  color:#d8d0c3;
  font-size:12px;
  font-weight:600;
  line-height:18px;
  text-align:left;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-division-menu>button[aria-selected="true"]{background:rgba(212,169,79,.14);color:#f0d79b}
#profileCompetitionsPanel .competition-division-menu>button:not(:disabled):is(:hover,:focus-visible){background:rgba(212,169,79,.10);color:#fff3d3;outline:0}
#profileCompetitionsPanel .competition-division-menu>button:disabled{cursor:default;color:#706a60;opacity:.7}
#profileCompetitionsPanel .competition-toolbar-icon-button,
#profileContractsPanel .competition-toolbar-icon-button{
  display:grid;
  place-items:center;
  width:34px;
  min-width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(212,169,79,.24);
  border-radius:8px;
  background:#17150f;
  color:#d8d0c3;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .15s ease;
}
#profileCompetitionsPanel .competition-toolbar-icon-button:not(:disabled):is(:hover,:focus-visible),
#profileContractsPanel .competition-toolbar-icon-button:not(:disabled):is(:hover,:focus-visible){
  border-color:rgba(240,215,155,.56);
  color:#f0d79b;
  outline:2px solid rgba(240,215,155,.22);
  outline-offset:2px;
}
#profileCompetitionsPanel .competition-toolbar-icon-button:not(:disabled):active,
#profileContractsPanel .competition-toolbar-icon-button:not(:disabled):active{transform:translateY(1px)}
#profileCompetitionsPanel .competition-toolbar-icon-button.active,
#profileContractsPanel .competition-toolbar-icon-button.active{
  border-color:rgba(240,215,155,.58);
  background:rgba(212,169,79,.18);
  color:#f0d79b;
}
#profileCompetitionsPanel .competition-toolbar-icon-button:disabled{cursor:default;opacity:.58}
#profileCompetitionsPanel .competition-prize-toggle .management-asset-icon{
  width:17px!important;
  height:17px!important;
  margin:0!important;
}
#profileCompetitionsPanel .competition-follow-icon{
  display:block;
  width:17px;
  height:17px;
  overflow:visible;
}

#profileCompetitionsPanel .competition-table-identity{
  display:block;
  width:auto;
  min-width:0;
  flex:1 1 0;
  overflow:hidden;
}
#profileCompetitionsPanel .competition-club-prize-slot{
  position:relative;
  display:block;
  width:100%;
  min-width:0;
  height:18px;
  overflow:hidden;
  line-height:18px;
  text-align:left;
}
#profileCompetitionsPanel .competition-club-prize-slot>span{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  min-width:0;
  overflow:hidden;
  line-height:18px;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
  will-change:transform,opacity;
  transition:transform 240ms cubic-bezier(.2,.76,.22,1),opacity 180ms ease;
}
#profileCompetitionsPanel .competition-club-slot-value{opacity:1;transform:translateY(0)}
#profileCompetitionsPanel .competition-prize-slot-value{
  color:#f0d79b;
  opacity:0;
  transform:translateY(6px);
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .competition-table-card.is-prize-mode .competition-club-slot-value{opacity:0;transform:translateY(-6px)}
#profileCompetitionsPanel .competition-table-card.is-prize-mode .competition-prize-slot-value{opacity:1;transform:translateY(0)}
#profileCompetitionsPanel .competition-club-secondary{
  visibility:visible;
  opacity:1;
  transition:opacity 160ms ease,visibility 0s linear 0s;
}
#profileCompetitionsPanel .competition-table-card.is-prize-mode .competition-club-secondary{
  visibility:hidden;
  opacity:0;
  transition:opacity 120ms ease,visibility 0s linear 120ms;
}

/* The two bottom positions remain semantically distinct at a glance. */
#profileCompetitionsPanel .competition-table-row:is(.status-champion,.status-direct_promotion,.status-promotion_qualifying){
  background:rgba(39,112,82,.34)!important;
}
#profileCompetitionsPanel .competition-table-row.status-relegation_playoff{
  background:rgba(173,104,30,.30)!important;
}
#profileCompetitionsPanel .competition-table-row.status-direct_relegation{
  background:rgba(134,48,60,.42)!important;
}
#profileCompetitionsPanel .competition-table-row.status-relegation_playoff:hover{background:rgba(173,104,30,.40)!important}
#profileCompetitionsPanel .competition-table-row.status-direct_relegation:hover{background:rgba(134,48,60,.52)!important}

/* Pending-round copy is a vertical hierarchy; populated rounds keep their
   compact scorecard header. No blue status text is used in either state. */
#profileCompetitionsPanel .competition-round-card>header span{
  color:#d8b760!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.05em!important;
  line-height:16px!important;
}
#profileCompetitionsPanel .competition-round-card>header strong{
  color:#fbf7ef!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:18px!important;
}
#profileCompetitionsPanel .competition-round-card>header.competition-round-navigation{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
  align-items:center!important;
  min-height:58px!important;
  padding:0 12px!important;
  border-bottom:1px solid rgba(212,169,79,.16)!important;
  background:#17130d!important;
}
#profileCompetitionsPanel .competition-round-navigation>strong{
  grid-column:2;
  justify-self:center;
  color:#fbf7ef!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:.045em!important;
  line-height:18px!important;
}
#profileCompetitionsPanel .competition-round-navigation>button{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid rgba(212,169,79,.22);
  border-radius:8px;
  background:rgba(212,169,79,.06);
  color:#d8b760;
  cursor:pointer;
  transition:background 180ms ease,border-color 180ms ease,color 180ms ease,transform 140ms ease,opacity 180ms ease;
}
#profileCompetitionsPanel .competition-round-navigation>button:first-child{grid-column:1;justify-self:end;margin-right:10px}
#profileCompetitionsPanel .competition-round-navigation>button:last-child{grid-column:3;justify-self:start;margin-left:10px}
#profileCompetitionsPanel .competition-round-navigation>button:not(:disabled):is(:hover,:focus-visible){border-color:rgba(240,215,155,.52);background:rgba(212,169,79,.14);color:#f0d79b;outline:2px solid rgba(240,215,155,.20);outline-offset:1px}
#profileCompetitionsPanel .competition-round-navigation>button:not(:disabled):active{transform:translateY(1px)}
#profileCompetitionsPanel .competition-round-navigation>button:disabled{cursor:default;opacity:.25}
#profileCompetitionsPanel .competition-round-chevron{display:block;width:7px;height:7px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}
#profileCompetitionsPanel .competition-round-chevron.is-left{transform:translateX(1px) rotate(-135deg)}
#profileCompetitionsPanel .competition-round-chevron.is-right{transform:translateX(-1px) rotate(45deg)}
#profileCompetitionsPanel .competition-round-card>section h4{
  margin:0!important;
  padding:11px 14px 10px!important;
  background:rgba(255,255,255,.025)!important;
  color:rgba(232,229,220,.72)!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
  line-height:16px!important;
  letter-spacing:0!important;
}
@media(prefers-reduced-motion:reduce){
  #profileCompetitionsPanel .competition-club-prize-slot>span,
  #profileCompetitionsPanel .competition-club-secondary,
  #profileCompetitionsPanel .competition-round-navigation>button{transition:none!important}
}
#profileCompetitionsPanel .competition-round-card>header.is-pending{
  display:grid!important;
  justify-content:start!important;
  gap:4px!important;
  min-height:62px!important;
  padding:10px 14px!important;
}
#profileCompetitionsPanel .competition-round-card>header.is-pending strong{font-size:14px!important}
#profileCompetitionsPanel .competition-round-empty{gap:5px!important;padding:15px 14px 18px!important}
#profileCompetitionsPanel .competition-round-empty b{
  color:#d9d1c2!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:19px!important;
}
#profileCompetitionsPanel .competition-round-empty small{
  color:#d9d1c2!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:18px!important;
}
#profileCompetitionsPanel .competition-round-fixture{
  min-height:48px!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:12px!important;
}
#profileCompetitionsPanel .competition-round-fixture>b{color:#ded8ce!important;font-size:11px!important;font-variant-numeric:tabular-nums}

/* Player rankings are the same cards, grid and row rhythm as Team Stats. */
#profileCompetitionsPanel .competition-stat-row.is-player{
  grid-template-columns:26px 34px minmax(0,1fr) 74px;
}
#profileCompetitionsPanel .competition-stat-row.is-player{cursor:pointer}
#profileCompetitionsPanel .competition-stat-row.is-player:is(:hover,:focus-visible){
  color:#f0d79b;
}
#profileCompetitionsPanel .competition-stat-row.is-player:hover{background:rgba(212,169,79,.07)}
#profileCompetitionsPanel .competition-stat-row.is-player:focus-visible{outline:2px solid rgba(240,215,155,.44);outline-offset:-2px}
#profileCompetitionsPanel .competition-player-portrait{
  display:block;
  width:34px;
  height:34px;
  overflow:hidden;
  border-radius:9px;
  background:#2a2824;
}
#profileCompetitionsPanel .competition-player-portrait img{display:block;width:100%;height:100%;object-fit:cover}
#profileCompetitionsPanel .competition-stat-player-copy{
  display:grid;
  min-width:0;
  gap:2px;
}
#profileCompetitionsPanel .competition-stat-player-copy>strong{
  min-width:0;
  overflow:hidden;
  color:inherit;
  font-size:13px;
  font-weight:600;
  line-height:17px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-stat-player-copy>small{
  display:flex;
  min-width:0;
  align-items:center;
  gap:5px;
  color:#d9d1c2!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:15px!important;
}
#profileCompetitionsPanel .competition-stat-player-copy>small>.competition-club-mark{
  width:14px;
  height:14px;
  flex:0 0 14px;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:7px;
}
#profileCompetitionsPanel .competition-stat-player-copy>small>span:last-child{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-stat-row>.competition-stat-value{
  display:grid;
  justify-self:stretch;
  place-items:center;
  width:100%;
  color:#f5f1e9;
  font-size:13px;
  font-weight:700;
  line-height:18px;
  text-align:center;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-stat-row>.competition-stat-value .competition-stat-value-glyph.is-leader{
  min-width:26px;
  max-width:100%;
  padding:4px 8px;
  border-radius:6px;
  background:rgba(212,169,79,.20)!important;
  color:#f0d79b!important;
  text-align:center;
}

@media(max-width:1180px){
  #profileCompetitionsPanel .competition-toolbar{align-items:flex-start;flex-direction:column;gap:9px}
  #profileCompetitionsPanel .competition-toolbar .competition-sub-switch{width:100%!important}
  #profileCompetitionsPanel .competition-toolbar-controls{width:100%;justify-content:flex-end}
}
@media(max-width:700px){
  #profileCompetitionsPanel .competition-toolbar-controls{justify-content:flex-start;flex-wrap:wrap}
  #profileCompetitionsPanel .competition-toolbar-select.streamer{flex:1 1 160px}
  #profileCompetitionsPanel .competition-toolbar-select.streamer select{width:100%!important;max-width:none!important}
}

/* Targeted contracts/registration/location confirmation release. */
#profileRegistrationPanel #leagueRegistrationStepReview strong,
#profileRegistrationPanel #leagueRegistrationReviewSubmitLabel{
  font-family:var(--body)!important;
  font-size:15px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1.25!important;
  text-transform:none!important;
}
#profileRegistrationPanel .league-registration-time-remaining[data-countdown-tone="closing"]{
  color:#f15b61!important;
}
#profileRegistrationPanel .league-registration-time-remaining[data-countdown-tone="opening"]{
  color:#2dcc82!important;
}

.location-confirm-card{
  width:min(600px,100%)!important;
  padding:34px!important;
  border:1px solid rgba(212,169,79,.32)!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,#1c1811,#0b0907)!important;
  box-shadow:0 32px 90px rgba(0,0,0,.68)!important;
}
.location-confirm-card .eyebrow{
  margin:0!important;
  color:#e5c377!important;
  font:800 11px/1.2 var(--body)!important;
  letter-spacing:.105em!important;
  text-transform:uppercase!important;
}
.location-confirm-card h2{
  margin:12px 0 14px!important;
  color:#fbf7ef!important;
  font:750 clamp(25px,4vw,30px)/1.12 var(--body)!important;
  letter-spacing:-.025em!important;
  text-transform:none!important;
}
.location-confirm-card>p:not(.eyebrow){
  margin:0!important;
  color:#c9c0b0!important;
  font:500 15px/1.6 var(--body)!important;
}
.location-confirm-card .location-confirm-detail{
  margin-top:20px!important;
  padding:14px 16px!important;
  border:1px solid rgba(212,169,79,.20)!important;
  border-radius:12px!important;
  background:rgba(212,169,79,.065)!important;
  color:#d9d1c2!important;
}
.location-confirm-card .close-account-actions{
  display:flex!important;
  justify-content:flex-end!important;
  gap:12px!important;
  margin-top:24px!important;
}
.location-confirm-card .close-account-actions button{
  min-width:166px!important;
  min-height:46px!important;
  padding:0 20px!important;
  border-radius:10px!important;
  clip-path:none!important;
  font:800 14px/1 var(--body)!important;
  letter-spacing:0!important;
  text-transform:none!important;
  transition:border-color 160ms ease,background 160ms ease,color 160ms ease,transform 160ms ease!important;
}
.location-confirm-card .secondary-button{
  border:1px solid rgba(212,169,79,.36)!important;
  background:linear-gradient(180deg,#241d12,#151009)!important;
  color:#e5c377!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
}
.location-confirm-card .primary-button{
  border:1px solid #d4a94f!important;
  background:linear-gradient(180deg,#e0bd6d,#b88a32)!important;
  color:#171108!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.30),0 8px 20px rgba(0,0,0,.24)!important;
}
.location-confirm-card .close-account-actions button:hover:not(:disabled){
  transform:translateY(-1px)!important;
  filter:brightness(1.08)!important;
}
.location-confirm-card .close-account-actions button:active:not(:disabled){transform:translateY(0)!important}
.location-confirm-card .close-account-actions button:focus-visible{
  outline:2px solid #f0d79b!important;
  outline-offset:3px!important;
}
@media(max-width:620px){
  .location-confirm-card{padding:26px 20px!important}
  .location-confirm-card .close-account-actions{flex-direction:column-reverse!important}
  .location-confirm-card .close-account-actions button{width:100%!important;min-width:0!important}
}

/* Keep the shared six-stat GOAT card face legible in the Market's dense
   eight-across desktop presentation. Focused cards retain the full scale. */
@media (min-width:1041px) and (max-width:1450px){
  .market-footballer-card.has-card-template .footballer-card.has-card-template .footballer-card-stats{
    gap:2px!important;
  }
  .market-footballer-card.has-card-template .footballer-card.has-card-template .card-main-stat{
    min-height:29px!important;
    gap:1px!important;
    padding-bottom:3px!important;
  }
  .market-footballer-card.has-card-template .footballer-card.has-card-template .card-main-stat b{
    font-size:.34rem!important;
    letter-spacing:.035em!important;
  }
  .market-footballer-card.has-card-template .footballer-card.has-card-template .card-main-stat strong{
    font-size:clamp(.58rem,.68vw,.7rem)!important;
  }
}

/* Market correction: the shop is the route environment, not an image painted
   inside a boxed content panel. This route alone uses the full available page
   width while the rest of Club Management keeps its established shell. */
body.goat-page-bg-market{--goat-page-background-image:url('/management-backgrounds/market-display-interior-v1.webp?v=market-page-v2')}
body.profile-background.goat-page-bg-market .world-bg{background:#070604!important}
body.profile-background.goat-page-bg-market .world-bg::before{
  inset:-8px!important;
  background-image:var(--goat-page-background-image)!important;
  background-position:center top!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:brightness(.72) saturate(.88)!important;
  transform:scale(1.008)!important;
}
body.profile-background.goat-page-bg-market .world-gradient{
  background:linear-gradient(180deg,rgba(4,3,2,.16),rgba(4,3,2,.28) 56%,rgba(4,3,2,.68) 100%)!important;
}
body.profile-background.goat-page-bg-market .world-grid{opacity:0!important}
@media(min-width:1041px){
  body.market-management-page .site-header{pointer-events:none}
  body.market-management-page .site-header :is(.brand,.site-menu,.header-account){pointer-events:auto}
  body.market-management-page .site-menu{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}
}
body.market-management-page .page-shell,
body.market-management-page #profileView,
body.market-management-page #profileMarketPanel{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.market-management-page #profileMarketPanel .goat-luxury-page{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  background:transparent!important;
}
body.market-management-page #profileMarketPanel .goat-luxury-body{
  padding:20px 0 36px!important;
}
body.market-management-page #marketBody{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.market-management-page #profileMarketPanel .market-vault,
body.market-management-page #profileMarketPanel .market-shelves{
  width:100%!important;
  max-width:none!important;
}

/* The Market stage follows the room itself: cards occupy the upper display
   shelf, the controls use the same measured width underneath, and pagination
   stays last. Route scoping keeps every other player-card surface unchanged. */
body.market-management-page #profileMarketPanel .market-display-stack{
  width:min(71.5vw,1540px)!important;
  max-width:1540px!important;
  margin-inline:auto!important;
}
body.market-management-page .market-toolbar label>span{font-size:.48rem!important}
body.market-management-page .market-shelf-card,
body.market-management-page .market-shelf-card-visual,
body.market-management-page .market-shelf-card .footballer-card-shell,
body.market-management-page .market-shelf-card .footballer-card,
body.market-management-page .market-shelf-card .footballer-card-template{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
body.market-management-page .market-shelf-card::before,
body.market-management-page .market-shelf-card::after,
body.market-management-page .market-shelf-card-visual::before,
body.market-management-page .market-shelf-card-visual::after,
body.market-management-page .market-shelf-card .footballer-card.has-card-template::before,
body.market-management-page .market-shelf-card .footballer-card.has-card-template::after{
  content:none!important;
  display:none!important;
  background:none!important;
  box-shadow:none!important;
  filter:none!important;
}
body.market-management-page .market-shelf-card .footballer-card-glow{
  display:none!important;
  opacity:0!important;
  background:none!important;
  box-shadow:none!important;
  filter:none!important;
}
body.market-management-page .market-shelf-card .footballer-card-art,
body.market-management-page .market-shelf-card .footballer-card-art img{
  filter:none!important;
}
body.market-management-page .market-focus-front,
body.market-management-page .market-focus-back{filter:none!important}

/* Market-card backs prioritise legibility: gold remains an accent, while
   operational labels and supporting copy use warm cream over the dark face. */
body.market-management-page .market-card-back-inner>header>span,
body.market-management-page .market-seller-panel>header span,
body.market-management-page .market-offers-drawer header span{
  color:#eee7d5!important;
}
body.market-management-page .market-card-back-facts p span,
body.market-management-page .market-card-offer-form label span{
  color:#f4f0e4!important;
}
body.market-management-page .market-card-back-facts p strong,
body.market-management-page .market-seller-panel>header strong{
  color:#fffaf0!important;
}
body.market-management-page :is(.market-card-back-inner>header small,.market-card-offer-form label small,.market-card-terms,.market-binding-copy){
  color:rgba(244,240,228,.76)!important;
}

/* Market calibration converted from the saved 2319×1137 DEV reference.
   The fixed relationships replace the editor's visual transforms: the card
   shelf owns the upper display ledge, filters sit beneath it, and pagination
   follows the filter window in normal document flow. */
@media(min-width:1041px){
  body.market-management-page{
    --market-calibrated-stage-width:min(71.5vw,1540px);
    height:100dvh;
    overflow:hidden!important;
  }
  body.market-management-page .site-footer{display:none!important}
  body.market-management-page #profileMarketPanel .goat-luxury-page{min-height:0!important}
  body.market-management-page #profileView #profileMarketPanel .market-display-stack{
    padding-top:calc(clamp(96px,14.95vh,170px) + 2px)!important;
  }
  body.market-management-page #profileMarketPanel .market-toolbar{
    min-height:196px;
    margin-top:calc(clamp(32px,4.93vh,56px) - 18px)!important;
  }
  body.market-management-page #profileMarketPanel .market-display-stack{
    container-type:inline-size;
  }
  body.market-management-page #profileMarketPanel .market-shelves.is-market-empty{
    /* First-load fallback for a genuinely empty global market. Once a real
       row has rendered, app.js replaces this with its exact measured height. */
    min-height:var(--market-shelf-reserved-height,calc(24.85cqw + 40.42px));
  }
  body.market-management-page #profileMarketPanel .market-filter-row :is(select,input){
    height:32px!important;
    min-height:32px!important;
    box-sizing:border-box!important;
  }
  body.market-management-page #profileMarketPanel .market-search :is(input,button){
    height:24px!important;
    min-height:24px!important;
    box-sizing:border-box!important;
  }
  body.market-management-page #profileMarketPanel .market-search{
    align-self:center;
    height:24px;
  }
  body.market-management-page #profileMarketPanel .market-pagination{
    position:relative;
    top:12px;
    z-index:4;
    margin-top:12px!important;
  }
  body.market-management-page>.market-utility-row{
    top:clamp(100px,11.96vh,136px)!important;
    left:max(24px,calc((100vw - var(--market-calibrated-stage-width))/2 - 49px))!important;
    right:max(24px,calc((100vw - var(--market-calibrated-stage-width))/2 - 57px))!important;
  }
  body.market-management-page .site-menu{top:calc(50% + 12px)!important}
}
@media(min-width:1041px) and (max-width:1550px){
  body.market-management-page{--market-calibrated-stage-width:calc(100vw - 128px)}
}
@media(min-width:1041px) and (max-height:880px){
  body.market-management-page{
    --market-calibrated-stage-width:min(calc(100vw - 128px),1060px);
  }
  body.market-management-page #profileView #profileMarketPanel .market-display-stack{
    width:var(--market-calibrated-stage-width)!important;
    padding-top:0!important;
  }
  body.market-management-page #profileMarketPanel .market-shelves.is-market-empty{
    min-height:var(--market-shelf-reserved-height,calc(24.85cqw + 42.43px));
  }
  body.market-management-page #profileMarketPanel .market-toolbar{margin-top:-2px!important}
  body.market-management-page #profileMarketPanel .market-pagination{margin-top:8px!important}
  body.market-management-page #profileMarketPanel .market-interaction-hint{display:none!important}
  body.market-management-page #profileMarketPanel .market-vault{padding-bottom:0!important}
}
@media(min-width:1041px) and (max-width:1550px){
  body.market-management-page #profileMarketPanel .market-display-stack{
    width:calc(100% - 128px)!important;
  }
}

@media(max-width:1040px){
  body.market-management-page #profileMarketPanel .market-display-stack{
    width:calc(100% - 18px)!important;
    padding-top:18px!important;
  }
  body.market-management-page .market-pagination{margin-top:14px}
}

/* Targeted Market focused-card refinement. The template artwork is the card
   itself: focused state adds neither a rarity halo nor a rectangular wrapper. */
body.market-management-page .market-utility-row p b{color:var(--text)!important}
body.market-management-page .market-focus-front,
body.market-management-page .market-focus-back,
body.market-management-page .market-focus-front::after{filter:none!important;box-shadow:none!important}
body.market-management-page .market-focus-front::after{content:none!important;display:none!important}
body.market-management-page .market-focus-front .footballer-card.has-card-template,
body.market-management-page .market-focus-front .footballer-card-template,
body.market-management-page .market-focus-front .footballer-card-glow{
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
body.market-management-page .market-focus-front .footballer-card-glow{display:none!important;opacity:0!important}
body.market-management-page .market-focus-front .footballer-card.has-card-template::before{content:none!important;display:none!important}

/* The identity is measured from the exact resting card that was opened and
   scaled by app.js to the focused card width. This preserves its real visual
   relationship to the template rather than relying on viewport-based guesses. */
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-name-line{gap:var(--market-focus-line-gap,8px)!important}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-name-flag{
  width:var(--market-focus-flag-width,28px)!important;
  height:var(--market-focus-flag-height,21px)!important;
  flex-basis:var(--market-focus-flag-width,28px)!important;
}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-name{
  font-size:var(--market-focus-name-size,2.12rem)!important;
}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-meta{
  gap:var(--market-focus-meta-gap,8px)!important;
  margin-top:var(--market-focus-meta-margin,7px)!important;
  min-height:0!important;
}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-position{
  font-size:var(--market-focus-position-size,.82rem)!important;
}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-age{
  font-size:var(--market-focus-age-size,.69rem)!important;
}
body.market-management-page .market-focus-front .market-focus-footballer-card .footballer-card-meta i{
  width:var(--market-focus-dot-size,4px)!important;
  height:var(--market-focus-dot-size,4px)!important;
  flex-basis:var(--market-focus-dot-size,4px)!important;
}
body.market-management-page .market-card-offer-form input[data-market-money]{font-variant-numeric:tabular-nums!important}

/* Shared owner-listing action and dialog. The two-column action grid remains
   inside the established player sidebar; the dialog is a fixed overlay and
   therefore never changes the detailed-page geometry. */
.player-dossier-actions-left>div{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%!important;
  min-width:0!important;
}
.player-dossier-actions-left>div>button{width:100%!important;min-width:0!important}
.player-dossier-actions-left .owner-contract-action{grid-column:1/-1!important}
.player-dossier-actions-left :is(.owner-list-action,.owner-external-action){grid-column:auto!important}
.player-modal.player-dossier-shell .player-dossier-actions .market-listed{
  border-color:rgba(91,196,116,.62)!important;
  background:linear-gradient(145deg,rgba(35,104,54,.94),rgba(16,62,31,.97))!important;
  color:#d9ffe2!important;
  box-shadow:inset 0 1px 0 rgba(224,255,232,.10)!important;
  font-variant-numeric:tabular-nums;
}
.player-dossier-actions-left button.is-unavailable,
#profileContractsPanel .contract-review-popover button.is-unavailable{opacity:.68}
#profileContractsPanel .contract-review-popover{
  max-height:min(280px,calc(100vh - 48px));
  overflow-y:auto;
}

.list-for-sale-modal{
  position:fixed;
  z-index:12050;
  inset:0;
  display:grid;
  place-items:center;
  padding:20px;
  box-sizing:border-box;
}
.list-for-sale-modal.hidden{display:none}
.list-for-sale-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  padding:0;
  border:0;
  border-radius:0;
  background:rgba(0,0,0,.74);
  cursor:default;
}
.list-for-sale-sheet{
  position:relative;
  z-index:1;
  width:min(520px,calc(100vw - 32px));
  max-height:calc(100dvh - 40px);
  overflow:auto;
  box-sizing:border-box;
  padding:24px;
  border:1px solid rgba(212,169,79,.38);
  border-radius:18px;
  background:linear-gradient(155deg,#201b12,#0b0a08 62%);
  color:var(--goat-text-body);
  box-shadow:0 30px 70px rgba(0,0,0,.70),inset 0 1px rgba(255,255,255,.04);
}
.list-for-sale-close{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  padding:0;
  border:1px solid rgba(212,169,79,.22);
  border-radius:50%;
  background:#11100d;
  color:var(--goat-text-body);
  font:500 1.2rem/1 var(--body);
  cursor:pointer;
}
.list-for-sale-sheet>header{padding-right:34px}
.list-for-sale-sheet>header>span,
.list-for-sale-help>strong{
  color:var(--goat-label-color);
  font:850 .61rem/1.2 var(--mono);
  letter-spacing:.12em;
}
.list-for-sale-sheet>header h2{
  margin:5px 0 6px;
  color:var(--goat-text-primary);
  font:900 1.55rem/1 var(--display);
}
.list-for-sale-sheet>header p,
.list-for-sale-help p{margin:0;color:var(--goat-text-muted);font:600 .72rem/1.5 var(--body)}
.list-for-sale-player{
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding:11px;
  border:1px solid rgba(212,169,79,.18);
  border-radius:12px;
  background:rgba(255,255,255,.025);
}
.list-for-sale-portrait{
  position:relative;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  overflow:hidden;
  border-radius:10px;
  background:#29251c;
  color:var(--goat-text-gold-strong);
  font:900 1rem/1 var(--display);
}
.list-for-sale-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top}
.list-for-sale-player>div{min-width:0}.list-for-sale-player>div>strong{display:block;overflow:hidden;color:var(--goat-text-primary);font:850 1rem/1.2 var(--body);text-overflow:ellipsis;white-space:nowrap}
.list-for-sale-player>div p{display:flex;gap:9px;margin:6px 0 0;color:var(--goat-text-muted);font:700 .67rem/1 var(--body)}
.list-for-sale-player>div p b{color:var(--goat-text-gold-strong)}
.list-for-sale-information{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:9px}
.list-for-sale-information p{display:grid;gap:5px;margin:0;padding:11px;border-radius:10px;background:#11110f}
.list-for-sale-information span{color:var(--goat-text-muted);font:700 .58rem/1 var(--body)}
.list-for-sale-information strong{color:var(--goat-text-primary);font:850 .78rem/1.1 var(--body)}
.list-for-sale-sheet form{display:grid;gap:10px;margin-top:14px}
.list-for-sale-sheet form>small{color:var(--goat-text-muted);font:600 .61rem/1.4 var(--body)}
.list-for-sale-restriction{margin:0;padding:9px 10px;border:1px solid rgba(205,96,75,.32);border-radius:8px;background:rgba(92,34,25,.22);color:#f0b6a8;font:700 .65rem/1.4 var(--body)}
.list-for-sale-restriction.hidden{display:none}
.list-for-sale-help{padding:11px;border-radius:10px;background:rgba(212,169,79,.07)}
.list-for-sale-help p{margin-top:5px}
.list-for-sale-sheet footer{display:grid;grid-template-columns:1fr 1.4fr;gap:9px;margin-top:3px;padding:0;border:0!important;background:none!important}
.list-for-sale-sheet footer button{min-height:42px;border:1px solid var(--goat-control-border);border-radius:9px;background:#171510;color:var(--goat-text-body);font:850 .65rem/1 var(--body);letter-spacing:.05em;cursor:pointer}
.list-for-sale-sheet footer button[type="submit"]{border-color:rgba(212,169,79,.62);background:#9d762d;color:#fff8e8}
.list-for-sale-sheet footer button:disabled{opacity:.52;cursor:wait}
.list-for-sale-sheet :is(button,input):focus-visible{outline:2px solid var(--goat-control-focus);outline-offset:2px}
body.market-listing-modal-open{overflow:hidden!important}
@media(max-width:440px){
  .player-dossier-actions-left :is(.owner-list-action,.owner-external-action){grid-column:1/-1!important}
  .list-for-sale-sheet{padding:20px 16px}.list-for-sale-information{grid-template-columns:1fr}
}

/* 3.0A targeted consistency pass: warm calendar, objective, match-centre,
   competition, finance and Market chrome. Semantic result colours remain. */

/* Calendar: real logos use their full circular canvas; user avatars keep the
   established cover treatment while authored crests retain their aspect. */
#goatLeagueCupLegend[hidden]{display:none!important}
#profileCalendarPanel .goat-calendar-next-match-card .goat-calendar-club-mark.has-logo{
  padding:0!important;
  background:#0d0c0a!important;
}
#profileCalendarPanel .goat-calendar-next-match-card .goat-calendar-club-mark.has-logo img{
  display:block;
  width:100%;
  height:100%;
  padding:0;
  border-radius:50%;
  object-fit:contain;
}
#profileCalendarPanel .goat-calendar-next-match-card .goat-calendar-club-mark.has-logo.is-user-avatar img{object-fit:cover}
#profileCalendarPanel .goat-calendar-matchday-row button.is-next,
#profileCalendarPanel .goat-calendar-matchday-row button.is-selected{
  border-color:rgba(212,169,79,.58)!important;
  background:linear-gradient(180deg,rgba(212,169,79,.15),rgba(57,43,19,.12))!important;
  box-shadow:inset 0 0 0 1px rgba(240,215,155,.10)!important;
  color:var(--text)!important;
}
#profileCalendarPanel .goat-calendar-matchday-row button.is-next b,
#profileCalendarPanel .goat-calendar-matchday-row button.is-selected b{color:var(--goat-text-gold-strong)!important}
#profileCalendarPanel .goat-calendar-window-break,
#profileCalendarPanel .goat-calendar-window-break:is(:hover,.is-selected){
  border:1px dashed rgba(212,169,79,.42)!important;
  background:linear-gradient(100deg,rgba(52,43,24,.72),rgba(18,15,10,.90))!important;
  color:var(--text)!important;
}
#profileCalendarPanel .goat-calendar-window-break span{color:var(--goat-label-color)!important}
#profileCalendarPanel .goat-calendar-window-break small{color:var(--muted)!important}

/* Kit Numbers view swaps the on-pitch surname for the authoritative stored
   playstyle. Two-line clamping keeps long roles within the existing marker. */
#profileLineupPanel .lineup-player-name.is-playstyle{
  box-sizing:border-box;
  height:20px;
  padding:2px 3px;
  font-size:clamp(.40rem,.52vw,.51rem);
  line-height:1.02;
  white-space:normal;
}
#profileLineupPanel .lineup-player-name.is-playstyle>span{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  text-overflow:ellipsis;
  white-space:normal;
}

/* Match Centre: scheduled is a semantic ready state; all supporting chrome
   uses the canonical warm hierarchy instead of cyan/purple dashboard tones. */
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-club.is-clickable:is(:hover,:focus-visible) strong{color:var(--goat-text-gold-strong)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-club.is-clickable:focus-visible{outline:2px solid var(--goat-control-focus)!important;outline-offset:6px}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-fixture-meta span{color:var(--goat-label-color)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-fixture-meta span b{color:var(--goat-text-primary)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-fixture-meta .mc-hub-weather,
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-fixture-meta .mc-hub-weather b{color:var(--goat-text-muted)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-countdown-units>i{color:var(--goat-text-muted)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-countdown-units small{color:var(--goat-text-muted)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-countdown-units b{color:var(--goat-text-primary)!important;text-shadow:none!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-status.is-scheduled{
  border-color:color-mix(in srgb,var(--success) 38%,transparent)!important;
  background:color-mix(in srgb,var(--success) 18%,#0d0c0a 82%)!important;
  color:var(--success)!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-competition{
  padding:4px 9px;
  border:1px solid rgba(212,169,79,.30)!important;
  border-radius:999px;
  background:rgba(13,12,10,.80)!important;
  color:var(--goat-label-color)!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-competition>span{color:var(--goat-label-color)!important}

/* Standings: Next Round identity marks are unbacked; fallback initials use a
   quiet heritage token. Fixtures become compact four-across cards. */
#profileCompetitionsPanel .competition-round-card .competition-club-mark{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--goat-label-color)!important;
}
#profileCompetitionsPanel .competition-round-card .competition-club-mark img{width:100%;height:100%;padding:0;object-fit:contain}
#profileCompetitionsPanel .competition-round-card .competition-club-mark.is-user-avatar img{object-fit:cover}
#profileCompetitionsPanel .competition-round-card .competition-club-mark.fallback{border:1px solid rgba(212,169,79,.24)!important;background:#211d14!important}
#profileCompetitionsPanel .competition-fixtures-table{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
#profileCompetitionsPanel .competition-fixture-card{
  display:grid;
  align-content:start;
  min-width:0;
  min-height:0;
  padding:11px 12px;
  border:1px solid rgba(212,169,79,.18);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.98));
  color:var(--goat-text-body);
  box-shadow:none;
}
#profileCompetitionsPanel .competition-fixture-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px}
#profileCompetitionsPanel .competition-fixture-card>header small{color:var(--goat-label-color);font-size:.56rem;font-weight:850;letter-spacing:.06em}
#profileCompetitionsPanel .competition-fixture-card>header time{color:var(--goat-text-muted);font-size:.56rem;white-space:nowrap}
#profileCompetitionsPanel .competition-fixture-clubs{display:grid;grid-template-columns:minmax(0,1fr) minmax(54px,auto) minmax(0,1fr);align-items:center;gap:7px;margin:9px 0 0}
#profileCompetitionsPanel .competition-fixture-clubs>span{display:grid;justify-items:center;gap:6px;min-width:0;text-align:center}
#profileCompetitionsPanel .competition-fixture-clubs>span b{display:-webkit-box;overflow:hidden;color:var(--goat-text-primary);font-size:.67rem;line-height:1.2;-webkit-box-orient:vertical;-webkit-line-clamp:2}
#profileCompetitionsPanel .competition-fixture-result{display:grid!important;align-self:center;justify-items:center;gap:5px!important;min-width:54px}
#profileCompetitionsPanel .competition-fixture-result strong{color:var(--goat-text-primary)!important;font-size:.82rem!important;font-variant-numeric:tabular-nums}
#profileCompetitionsPanel .competition-fixture-result em{padding:4px 7px;border-radius:6px;background:rgba(212,169,79,.10);color:var(--goat-text-muted);font-size:.52rem;font-style:normal;font-weight:850;letter-spacing:.04em}
#profileCompetitionsPanel .competition-fixture-result em.is-win{background:rgba(47,145,104,.18);color:#73e4b5}
#profileCompetitionsPanel .competition-fixture-result em.is-loss{background:rgba(153,58,72,.18);color:#ff8b98}
#profileCompetitionsPanel .competition-fixture-result em.is-draw{background:rgba(144,125,57,.18);color:#e4d48a}
#profileCompetitionsPanel .competition-fixture-card .competition-club-mark{width:32px;height:32px;flex-basis:32px;border:0;background:transparent;box-shadow:none}
#profileCompetitionsPanel .competition-fixture-card .competition-club-mark img{width:100%;height:100%;padding:0;object-fit:contain}
#profileCompetitionsPanel .competition-fixture-card .competition-club-mark.is-user-avatar img{object-fit:cover}
#profileCompetitionsPanel .competition-fixture-card .competition-club-mark.fallback{border:1px solid rgba(212,169,79,.24);border-radius:8px;background:#211d14}
@media(max-width:1180px){#profileCompetitionsPanel .competition-fixtures-table{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#profileCompetitionsPanel .competition-fixtures-table{grid-template-columns:1fr}}

/* Fixtures tab -- single-expand Round accordion. Only the open Round lays
   out fixtures at all, so the tab never renders every Matchday at once. */
#profileCompetitionsPanel .competition-fixtures-accordion{display:grid;gap:8px}
#profileCompetitionsPanel .competition-round-accordion-item{border:1px solid rgba(212,169,79,.18);border-radius:12px;background:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.98));overflow:hidden}
#profileCompetitionsPanel .competition-round-accordion-item.is-open{border-color:rgba(212,169,79,.4)}
#profileCompetitionsPanel .competition-round-accordion-header{display:flex;align-items:center;gap:10px;width:100%;padding:12px 14px;border:0;background:transparent;color:var(--goat-text-primary);font:inherit;text-align:left;cursor:pointer}
#profileCompetitionsPanel .competition-round-accordion-header:hover,
#profileCompetitionsPanel .competition-round-accordion-header:focus-visible{color:var(--goat-text-gold-strong);outline:none}
#profileCompetitionsPanel .competition-round-accordion-header strong{font-size:.74rem;letter-spacing:.03em}
#profileCompetitionsPanel .competition-round-accordion-header small{margin-left:auto;color:var(--goat-text-muted);font-size:.6rem;font-weight:800;letter-spacing:.03em}
#profileCompetitionsPanel .competition-round-accordion-header .competition-round-chevron{width:8px;height:8px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transition:transform .15s ease}
#profileCompetitionsPanel .competition-round-accordion-header .competition-round-chevron.is-right{transform:rotate(45deg)}
#profileCompetitionsPanel .competition-round-accordion-header .competition-round-chevron.is-down{transform:rotate(135deg)}
#profileCompetitionsPanel .competition-round-accordion-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px;padding:0 12px 12px}
#profileCompetitionsPanel .competition-accordion-fixture{display:grid;gap:6px;padding:9px 10px;border:1px solid rgba(212,169,79,.14);border-radius:10px;background:rgba(0,0,0,.18)}
#profileCompetitionsPanel .competition-accordion-fixture-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--goat-text-muted);font-size:.56rem;letter-spacing:.03em}
#profileCompetitionsPanel .competition-accordion-fixture-meta span.is-completed{color:#73e4b5}
#profileCompetitionsPanel .competition-accordion-fixture-clubs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px}
#profileCompetitionsPanel .competition-accordion-fixture-club{display:flex;align-items:center;gap:6px;min-width:0}
#profileCompetitionsPanel .competition-accordion-fixture-club.is-away{flex-direction:row-reverse;text-align:right}
#profileCompetitionsPanel .competition-accordion-fixture-club [data-competition-club-profile]{display:flex;align-items:center;gap:6px;min-width:0;cursor:pointer}
#profileCompetitionsPanel .competition-accordion-fixture-club.is-away [data-competition-club-profile]{flex-direction:row-reverse}
#profileCompetitionsPanel .competition-accordion-fixture-club b{overflow:hidden;color:var(--goat-text-primary);font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}
#profileCompetitionsPanel .competition-accordion-fixture-club .competition-club-mark{width:24px;height:24px;flex:0 0 24px}
@media(max-width:620px){#profileCompetitionsPanel .competition-round-accordion-body{grid-template-columns:1fr}}

/* Transfers and Injuries tabs -- compact tables consistent with the
   Standings table's own head/row visual language. */
#profileCompetitionsPanel .competition-transfers-table,
#profileCompetitionsPanel .competition-injuries-table{display:grid;border:1px solid rgba(212,169,79,.18);border-radius:12px;overflow:hidden;background:linear-gradient(145deg,rgba(27,23,15,.94),rgba(11,10,8,.98))}
#profileCompetitionsPanel .competition-transfers-table>header,
#profileCompetitionsPanel .competition-transfer-row{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 100px 90px}
#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 74px 64px 110px}
#profileCompetitionsPanel .competition-transfers-table>header,
#profileCompetitionsPanel .competition-injuries-table>header{display:grid;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid rgba(212,169,79,.16);color:var(--goat-label-color);font-family:Inter,InterVariable,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}
#profileCompetitionsPanel .competition-transfer-row,
#profileCompetitionsPanel .competition-injury-row{display:grid;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid rgba(255,255,255,.06);color:var(--goat-text-body);font-family:Inter,InterVariable,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:600}
#profileCompetitionsPanel .competition-transfer-row:last-child,
#profileCompetitionsPanel .competition-injury-row:last-child{border-bottom:0}
#profileCompetitionsPanel .competition-transfer-row strong,
#profileCompetitionsPanel .competition-injury-row strong{overflow:hidden;color:var(--goat-text-primary);text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
#profileCompetitionsPanel .competition-transfer-row strong:hover,
#profileCompetitionsPanel .competition-injury-row strong:hover{color:var(--goat-text-gold-strong)}
#profileCompetitionsPanel .competition-transfer-row span,
#profileCompetitionsPanel .competition-injury-row span{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#profileCompetitionsPanel .competition-transfer-row .competition-club-mark,
#profileCompetitionsPanel .competition-injury-row .competition-club-mark{width:20px;height:20px;flex:0 0 20px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#profileCompetitionsPanel .competition-transfer-row .competition-club-mark img,
#profileCompetitionsPanel .competition-injury-row .competition-club-mark img{width:100%;height:100%;padding:0;object-fit:contain}
#profileCompetitionsPanel .competition-transfer-row .competition-club-mark.is-user-avatar img,
#profileCompetitionsPanel .competition-injury-row .competition-club-mark.is-user-avatar img{object-fit:cover}
#profileCompetitionsPanel .competition-transfer-row .competition-club-mark.fallback,
#profileCompetitionsPanel .competition-injury-row .competition-club-mark.fallback{border:1px solid rgba(212,169,79,.24)!important;border-radius:6px!important;background:#211d14!important;color:#e5c377!important}
#profileCompetitionsPanel .competition-transfer-row [data-competition-club-profile],
#profileCompetitionsPanel .competition-injury-row [data-competition-club-profile]{cursor:pointer;min-width:0}
#profileCompetitionsPanel .competition-transfer-row [data-competition-club-profile] b,
#profileCompetitionsPanel .competition-injury-row [data-competition-club-profile] b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
#profileCompetitionsPanel .competition-transfer-row [data-competition-club-profile]:hover b,
#profileCompetitionsPanel .competition-injury-row [data-competition-club-profile]:hover b{color:var(--goat-text-gold-strong)}
#profileCompetitionsPanel .competition-transfer-row b{color:var(--goat-text-gold-strong);font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){
  #profileCompetitionsPanel .competition-transfers-table>header,
  #profileCompetitionsPanel .competition-transfer-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px}
  #profileCompetitionsPanel .competition-transfers-table>header span:nth-child(2),
  #profileCompetitionsPanel .competition-transfers-table>header span:nth-child(5),
  #profileCompetitionsPanel .competition-transfer-row>span:nth-child(3),
  #profileCompetitionsPanel .competition-transfer-row>time{display:none}
  #profileCompetitionsPanel .competition-injuries-table>header,
  #profileCompetitionsPanel .competition-injury-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 60px}
  #profileCompetitionsPanel .competition-injuries-table>header span:nth-child(3),
  #profileCompetitionsPanel .competition-injuries-table>header span:nth-child(6),
  #profileCompetitionsPanel .competition-injury-row>span:nth-child(3),
  #profileCompetitionsPanel .competition-injury-row>time{display:none}
}

/* Mail's three primary tablet actions remain one horizontal, warm-GOAT row
   whether Mail was opened from the office or another navigation entry. */
.mail-modal .mail-folder-toolbar{grid-template-columns:minmax(0,1fr) auto!important}
.mail-modal .mail-folder-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
}
.mail-modal .mail-folder-actions>button,
.mail-modal .mail-folder-actions>.mail-filter-control{
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  margin:0!important;
}
.mail-modal .mail-folder-actions>button,
.mail-modal .mail-filter-control>summary{
  width:42px!important;
  height:42px!important;
  border:1px solid rgba(212,169,79,.34)!important;
  border-radius:9px!important;
  background:#17140f!important;
  color:#e5c377!important;
  box-shadow:none!important;
}
.mail-modal .mail-toolbar-mark-read>span{display:none!important}
.mail-modal .mail-folder-actions>button>span{display:none!important}
.mail-modal .mail-selection-count{display:block;margin-top:3px;color:var(--goat-text-muted);font-size:.62rem;font-weight:700}
.mail-modal .mail-folder-actions>.mail-toolbar-delete-selected{
  border-color:rgba(192,74,63,.58)!important;
  background:#4b1c19!important;
  color:#fff1e8!important;
}
.mail-modal .mail-folder-actions>.mail-toolbar-delete-selected:is(:hover,:focus-visible){
  border-color:rgba(222,101,87,.82)!important;
  background:#66231f!important;
  color:#fffaf3!important;
}
.mail-modal .mail-folder-actions>button:disabled{opacity:.42!important;cursor:not-allowed!important}
.mail-modal .mail-thread.is-selectable{
  grid-template-columns:30px 46px minmax(0,1fr)!important;
  cursor:pointer;
}
.mail-modal .mail-thread-select{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  padding:0;
  border:1px solid rgba(212,169,79,.48);
  border-radius:6px;
  background:#0d0c0a;
  color:#f0d79b;
  cursor:pointer;
}
.mail-modal .mail-thread-select .mail-ui-icon{width:16px;height:16px}
.mail-modal .mail-thread.is-bulk-selected{
  border-color:rgba(212,169,79,.50)!important;
  background:#211d14!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
.mail-modal .mail-thread.is-selectable .mail-thread-mark-read{display:none!important}
.mail-modal .mail-folder-actions>button:is(:hover,:focus-visible),
.mail-modal .mail-filter-control>summary:is(:hover,:focus-visible){
  border-color:rgba(229,195,119,.65)!important;
  background:#211d14!important;
  color:#f0d79b!important;
  outline:2px solid rgba(212,169,79,.28)!important;
  outline-offset:1px!important;
}

/* A completed fixture's score/result opens the Match Report; a scheduled one
   stays inert. Applies wherever competitionResultMarkup renders (the Table/
   Overview round panel and the Fixtures accordion). */
#profileCompetitionsPanel .competition-result-clickable{cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px;transition:color .15s ease,text-decoration-color .15s ease}
#profileCompetitionsPanel .competition-result-clickable:hover,
#profileCompetitionsPanel .competition-result-clickable:focus-visible{color:var(--goat-text-gold-strong);text-decoration-color:currentColor;outline:none}

/* Finance and Market actions use the shared gold/cream action hierarchy. */
#profileFinancesPanel .finance-full-ledger{border:0!important;background:transparent!important;box-shadow:none!important}
#profileFinancesPanel .finance-full-ledger summary{display:inline-flex;padding:11px 14px;color:var(--goat-label-color)!important;background:transparent!important;outline:0!important}
#profileFinancesPanel .finance-full-ledger summary>span{display:inline-block;transform-origin:left center;transition:color 160ms ease,transform 160ms ease,text-decoration-color 160ms ease;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
#profileFinancesPanel .finance-full-ledger summary:hover>span{color:#fbf7ef!important;transform:scale(1.035)}
#profileFinancesPanel .finance-full-ledger summary:focus-visible>span{color:#f0d79b!important;text-decoration-color:rgba(240,215,155,.72)}
body.market-management-page .market-pagination p{gap:8px;min-width:132px;font-size:.60rem!important;color:var(--goat-text-muted)!important}
body.market-management-page .market-pagination p strong{font-size:.90rem!important;color:var(--goat-text-gold-strong)!important}
body.market-management-page .market-pagination p b{font-size:.82rem!important;color:var(--goat-text-primary)!important}
body.market-management-page .market-pagination p i{color:var(--goat-text-muted)!important}

/* Production-approved targeted UI corrections. */

/* Calendar Next Match details share one structural icon column. The larger
   animated weather artwork no longer pushes its copy to a different x-axis. */
#profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-info{
  justify-items:stretch!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-detail-line{
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  column-gap:9px!important;
  width:100%!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-detail-line> :first-child{
  grid-column:1!important;
  justify-self:center!important;
  margin:0!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-detail-line> :nth-child(2){
  grid-column:2!important;
  justify-self:start!important;
  min-width:0!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-next-venue{align-items:start!important}

/* Match report and Match Centre status treatments use the established warm
   gold/cream hierarchy; semantic success/error colours remain untouched. */
.centre-report-sheet .mc-report-popup-loading{color:var(--goat-text-primary)!important}
.centre-report-sheet .mc-report-popup-loading i{
  border-color:rgba(212,169,79,.22)!important;
  border-top-color:var(--goat-action-gold)!important;
}
.centre-report-sheet .mc-report-popup-loading strong{color:var(--goat-text-primary)!important}
.centre-report-sheet .mc-report-popup-loading span{color:var(--goat-text-muted)!important}
.centre-report-sheet .mc-report-tactics-team>header span{color:var(--goat-label-color)!important}
.centre-report-sheet .mc-report-popup-changes article{
  border-color:rgba(212,169,79,.16)!important;
  background:rgba(20,16,10,.78)!important;
}
.centre-report-sheet .mc-report-popup-changes article>b{
  background:linear-gradient(180deg,#2b2111,#17120c)!important;
  color:var(--goat-text-gold-strong)!important;
  box-shadow:inset 0 0 0 1px rgba(212,169,79,.20)!important;
}
.centre-report-sheet .mc-report-popup-changes strong{color:var(--goat-text-primary)!important}
.centre-report-sheet .mc-report-popup-changes small{color:var(--goat-text-muted)!important}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-countdown-label{
  color:var(--goat-label-color)!important;
}
:is(#profileCentrePanel,#profileHistoryPanel,#matchCentreView) .mc-hub-countdown-units b{
  color:var(--goat-text-primary)!important;
}

/* Preserve the standings' semantic promotion/relegation rows. A user's own
   neutral row is identified only by the gold left rail, not a full-row tint. */
#profileCompetitionsPanel .competition-table-row.is-user:not([data-standing-status]).is-odd{
  background:#17150f!important;
}
#profileCompetitionsPanel .competition-table-row.is-user:not([data-standing-status]).is-even{
  background:#1d1b15!important;
}
#profileCompetitionsPanel .competition-table-row.is-user:not([data-standing-status]):hover{
  background:#242118!important;
}
#profileCompetitionsPanel .competition-table-row.is-user{box-shadow:inset 3px 0 #d4a94f!important}

/* Contract artwork copy must remain readable over the parchment image. */
#profileSponsorPanel .sponsor-contract-document .sponsor-contract-parties{color:#302010!important}
#profileSponsorPanel .sponsor-contract-document .sponsor-contract-parties strong{color:#160e07!important;font-weight:800!important}

/* Contract sort controls use the same warm focus and active treatment as the
   rest of the management interface. */
#profileContractsPanel .contract-sort-header:is(:hover,:focus-visible,.active){
  color:var(--goat-text-gold-strong)!important;
  outline:0!important;
  outline-offset:0!important;
}
#profileContractsPanel .contract-sort-header i{color:var(--goat-action-gold)!important}

/* Seller offer actions are semantic: acceptance is restrained success green,
   while rejection remains the established danger red. */
.market-offer-actions{
  grid-column:2;
  grid-row:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:5px;
}
.market-top-offers article .market-offer-actions button,
.market-offers-drawer article .market-offer-actions button{
  grid-column:auto!important;
  grid-row:auto!important;
  width:auto!important;
  min-height:26px;
  margin:0!important;
  padding:0 8px;
}
.market-offer-actions button:not(.market-reject-offer){
  border-color:rgba(91,190,126,.62)!important;
  background:#244f34!important;
  color:#f2fff6!important;
}
.market-offer-actions button:not(.market-reject-offer):is(:hover,:focus-visible){
  border-color:#79d79a!important;
  background:#2d6843!important;
  outline:2px solid rgba(121,215,154,.22)!important;
  outline-offset:2px;
}
.market-offer-actions .market-reject-offer{
  border-color:rgba(204,79,73,.68)!important;
  background:#5a201e!important;
  color:#fff1ed!important;
}
.market-offer-actions .market-reject-offer:is(:hover,:focus-visible){
  border-color:#e78179!important;
  background:#762a27!important;
  outline:2px solid rgba(231,129,121,.23)!important;
  outline-offset:2px;
}
.market-offers-drawer article .market-offer-actions{grid-column:1/-1;grid-row:auto}

/* Improved hierarchy on the existing Market card back. Dimensions and front
   face are intentionally unchanged; overflow remains internally scrollable. */
.market-card-back-inner{padding:29px 26px 23px}
.market-card-back-inner>header{gap:6px;padding-bottom:17px}
.market-card-back-inner>header h3{font-size:clamp(1.35rem,3.2vw,1.82rem)}
.market-card-back-inner>header small{font-size:.74rem}
.market-card-club{gap:9px}.market-card-club i{width:25px;height:25px;font-size:.58rem}
.market-card-back-facts{gap:8px;margin-bottom:13px}
.market-card-back-facts p{gap:5px;padding:10px}
.market-card-back-facts p span{font-size:.64rem}
.market-card-back-facts p strong{font-size:.84rem;line-height:1.28}
.market-card-profile-link{min-height:45px;margin-bottom:12px;padding-inline:13px}
.market-card-profile-link span{font-size:.61rem}.market-card-profile-link strong{font-size:.73rem}
.market-card-offer-form,.market-seller-panel{gap:9px;padding:12px}
.market-card-offer-form label span{font-size:.61rem}
.market-card-offer-form label small{font-size:.58rem}
.market-card-terms,.market-binding-copy{font-size:.62rem;line-height:1.5}
.market-seller-panel>header strong{font-size:.72rem}
.market-top-offers article span{font-size:.66rem}.market-top-offers article b{font-size:.69rem}.market-top-offers article small{font-size:.57rem}

/* Authoritative unread Mail count beside the Club label. */
.site-menu #clubMenuButton{
  max-width:240px;
  overflow:visible;
  gap:7px;
}
#clubMenuLabel{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#clubUnreadBadge{
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  min-width:18px;
  height:18px;
  padding:0 5px;
  box-sizing:border-box;
  border:1px solid rgba(255,231,218,.34);
  border-radius:999px;
  background:#c92f39;
  color:#fffaf4;
  font:850 .56rem/1 var(--body);
  font-variant-numeric:tabular-nums;
  box-shadow:0 2px 7px rgba(0,0,0,.36);
}
#clubUnreadBadge[hidden]{display:none!important}

@media(max-width:430px){
  .market-card-back-inner{padding:22px 17px 18px}
  .market-card-back-facts p strong{font-size:.72rem}
  .market-offer-actions{grid-column:1/-1;grid-row:auto}
}

/* Contracts: the urgent list is a compact identity/date index. It intentionally
   omits rarity, position and relative-month metadata; the expiry date is the
   one secondary line. View All is a text action, not another framed control. */
#profileContractsPanel .contract-urgent-panel .contract-urgent-view-all{
  width:auto!important;
  min-height:0!important;
  padding:3px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--goat-label-color)!important;
  font-size:.62rem!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-view-all:is(:hover,:focus-visible){
  background:transparent!important;
  color:var(--goat-text-gold-strong)!important;
  outline:2px solid var(--goat-control-focus)!important;
  outline-offset:3px!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player{
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  width:100%!important;
  min-height:58px!important;
  padding:7px 10px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player:is(:hover,:focus-visible){
  background:rgba(212,169,79,.08)!important;
  outline:2px solid var(--goat-control-focus)!important;
  outline-offset:-2px!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player>img{
  width:44px!important;
  height:44px!important;
  border:0!important;
  border-radius:9px!important;
  background:rgba(212,169,79,.06)!important;
  object-fit:contain!important;
  object-position:center bottom!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player>span{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player strong{
  overflow:hidden!important;
  color:var(--goat-text-primary)!important;
  font-size:.78rem!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#profileContractsPanel .contract-urgent-panel .contract-urgent-player small{
  margin:0!important;
  color:var(--goat-text-muted)!important;
  font-size:.62rem!important;
  font-weight:650!important;
  line-height:1.15!important;
}

/* Player dossier: pointer dragging now remains native text selection. The
   collectible itself keeps its tilt transform and artwork, but every square
   wrapper/effect layer around it is explicitly transparent on this surface. */
.player-modal.player-dossier-shell .player-profile-v4{user-select:text!important}
.player-modal.player-dossier-shell .player-dossier-card-wrap{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.player-modal.player-dossier-shell .player-dossier-card-wrap::before,
.player-modal.player-dossier-shell .player-dossier-card-wrap::after,
.player-modal.player-dossier-shell .profile-footballer-card::before{
  content:none!important;
  display:none!important;
}
.player-modal.player-dossier-shell .profile-footballer-card,
.player-modal.player-dossier-shell .profile-footballer-card .footballer-card,
.player-modal.player-dossier-shell .profile-footballer-card .footballer-card-template{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
.player-modal.player-dossier-shell .profile-footballer-card .footballer-card::before,
.player-modal.player-dossier-shell .profile-footballer-card .footballer-card::after,
.player-modal.player-dossier-shell .profile-footballer-card .footballer-card-glow{
  content:none!important;
  display:none!important;
  opacity:0!important;
  background:none!important;
  box-shadow:none!important;
  filter:none!important;
}

/* Lineup + Tactics merge: one dense desktop workspace and one permanent pitch. */
#profileLineupPanel .lineup-builder{
  width:min(100%,1760px);
  max-width:none;
  margin-inline:auto;
  padding:clamp(18px,1.8vw,28px);
  border-color:rgba(212,169,79,.22);
  background:#0e0d0a;
  box-shadow:0 22px 54px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035);
}
#profileLineupPanel .lineup-heading{
  align-items:center;
}
#profileLineupPanel .lineup-heading::after{
  content:none;
  display:none;
}
#profileLineupPanel .lineup-heading h2{
  font-size:clamp(1.7rem,2.25vw,2.45rem);
}
#profileLineupPanel .lineup-heading>div:first-child>p:last-child{
  max-width:820px;
  color:#b8b0a3;
}
#profileLineupPanel .lineup-public-status{
  max-width:460px;
  color:#e6d8b8;
  border-color:rgba(212,169,79,.27);
  background:#18150e;
  white-space:normal;
  text-align:right;
}
#profileLineupPanel .lineup-owner-controls{
  position:relative!important;
  top:auto!important;
  grid-template-columns:minmax(190px,1fr) minmax(190px,.9fr) minmax(150px,.6fr) auto;
  padding:11px 12px;
  border-color:rgba(212,169,79,.20);
  border-radius:13px;
  background:#15130e;
  box-shadow:none;
  backdrop-filter:none;
}
#profileLineupPanel .lineup-owner-controls label>span,
#profileLineupPanel .lineup-filters label>span,
#profileLineupPanel .lineup-search>span{
  color:#d4a94f;
}
#profileLineupPanel .lineup-owner-controls input,
#profileLineupPanel .lineup-owner-controls select,
#profileLineupPanel .lineup-search input,
#profileLineupPanel .lineup-filters select{
  min-height:40px;
  border-color:rgba(212,169,79,.20);
  background:#0b0a08;
}
#profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:min(100%,600px);
  gap:5px;
  margin:2px auto 16px;
  padding:5px;
  border-color:rgba(212,169,79,.25);
  border-radius:12px;
  background:#0a0907;
  box-shadow:none;
}
#profileLineupPanel .lineup-mode-tabs button{
  width:100%;
  min-height:39px;
  padding:7px 12px;
  color:#bdb5a8;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
}
#profileLineupPanel .lineup-mode-tabs button:is(:hover,:focus-visible){
  color:#f0d79b;
  border-color:rgba(212,169,79,.30);
  outline:2px solid transparent;
}
#profileLineupPanel .lineup-mode-tabs button.active{
  color:#171006;
  border-color:#e5c377;
  background:#d4a94f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}
#profileLineupPanel .lineup-workspace{
  display:grid!important;
  grid-template-columns:minmax(530px,1.48fr) minmax(270px,.62fr) minmax(340px,.82fr)!important;
  grid-template-areas:"pitch bench registered";
  gap:clamp(13px,1.15vw,20px)!important;
  align-items:start;
}
#profileLineupPanel .lineup-pitch-column{grid-area:pitch;width:100%;min-width:0}
#profileLineupPanel .lineup-side-panel{grid-area:bench;min-width:0;max-height:none;overflow:visible;padding:0}
#profileLineupPanel .lineup-left-panel{grid-area:registered;min-width:0}
#profileLineupPanel .lineup-tactics-workspace{grid-area:tactics;min-width:0}
#profileLineupPanel .lineup-workspace.mode-tactics{
  grid-template-columns:minmax(560px,.92fr) minmax(600px,1.08fr)!important;
  grid-template-areas:"pitch tactics" "bench tactics";
}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-panel{
  align-self:start;
}
#profileLineupPanel .lineup-pitch{
  display:block;
  width:100%!important;
  max-width:720px;
  min-width:0;
  min-height:0;
  max-height:none;
  aspect-ratio:1058/1399;
  margin:0 auto;
  overflow:visible;
  border-color:rgba(229,221,194,.38);
  border-radius:20px;
  box-shadow:inset 0 0 70px rgba(0,0,0,.26),0 20px 42px rgba(0,0,0,.24);
}
#profileLineupPanel .lineup-slot{
  width:clamp(78px,5.3vw,96px);
}
#profileLineupPanel .lineup-slot.empty{
  min-height:64px;
  border-color:rgba(241,226,188,.42);
  background:rgba(6,15,10,.48);
}
#profileLineupPanel .lineup-empty-position{
  color:rgba(255,246,220,.82);
  font-size:.58rem;
  font-weight:900;
  letter-spacing:.06em;
}
#profileLineupPanel .lineup-pitch.reaction-context [data-tactics-slot]{
  outline:1px dashed rgba(240,215,155,.20);
  outline-offset:3px;
}
#profileLineupPanel .lineup-pitch.reaction-context [data-tactics-slot]:hover{
  outline-color:rgba(240,215,155,.72);
  background:rgba(212,169,79,.12);
}
#profileLineupPanel .lineup-bench-panel,
#profileLineupPanel .lineup-available-panel{
  padding:12px;
  border-color:rgba(212,169,79,.19);
  border-radius:15px;
  background:#14120d;
  box-shadow:none;
}
#profileLineupPanel .lineup-panel-summary,
#profileLineupPanel .lineup-side-heading{
  min-height:58px;
  padding:11px 12px;
}
#profileLineupPanel .lineup-panel-summary .eyebrow,
#profileLineupPanel .lineup-side-heading .eyebrow{
  color:#d4a94f;
}
#profileLineupPanel .lineup-panel-summary strong,
#profileLineupPanel .lineup-side-heading h3{
  font-size:1rem;
}
#profileLineupPanel .lineup-player-list{
  gap:7px;
  margin-top:8px;
}
#profileLineupPanel .lineup-side-panel .lineup-mini-card{
  grid-template-columns:47px minmax(0,1fr);
  gap:8px;
  padding:6px;
  border-radius:10px;
}
#profileLineupPanel .lineup-side-panel .lineup-card-visual{
  width:47px;
  height:59px;
}
#profileLineupPanel .lineup-side-panel .lineup-card-copy small{
  font-size:.57rem;
}
#profileLineupPanel .lineup-registered-content{
  max-height:720px;
  padding:0 10px 10px;
  overflow:hidden;
}
#profileLineupPanel .lineup-registered-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:3px 0 9px;
}
#profileLineupPanel .lineup-open-squad{
  flex:0 0 auto;
  padding:5px 0;
  border:0;
  background:transparent;
  color:#d4a94f;
  font:inherit;
  font-size:.61rem;
  font-weight:850;
  cursor:pointer;
}
#profileLineupPanel .lineup-open-squad:is(:hover,:focus-visible){
  color:#f0d79b;
  outline:2px solid rgba(240,215,155,.42);
  outline-offset:3px;
}
#profileLineupPanel .lineup-filters{
  grid-template-columns:minmax(0,1fr) minmax(95px,.55fr) minmax(95px,.55fr);
  gap:7px;
}
#profileLineupPanel .lineup-available-grid{
  grid-template-columns:1fr;
  gap:7px;
  max-height:570px;
  margin-top:10px;
  padding-right:4px;
  overflow-y:auto;
}
#profileLineupPanel .lineup-available-grid .lineup-mini-card{
  grid-template-columns:50px minmax(0,1fr);
  gap:8px;
  padding:6px;
  border-radius:10px;
}
#profileLineupPanel .lineup-available-grid .lineup-card-visual{
  width:50px;
  height:64px;
}
#profileLineupPanel .lineup-player-name-button{
  display:block;
  width:100%;
  padding:0;
  overflow:hidden;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:900;
  line-height:1.15;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
  cursor:pointer;
}
#profileLineupPanel .lineup-player-name-button:is(:hover,:focus-visible){
  color:#fff4d8;
  outline:2px solid rgba(240,215,155,.55);
  outline-offset:2px;
  border-radius:3px;
}
#profileLineupPanel .lineup-pitch-remove{
  position:absolute;
  z-index:15;
  top:-7px;
  right:-7px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  padding:0;
  border:1px solid rgba(255,181,188,.72);
  border-radius:50%;
  background:#541b20;
  color:#fff;
  font:800 1rem/1 var(--body);
  cursor:pointer;
}
#profileLineupPanel .lineup-pitch-remove:is(:hover,:focus-visible){
  background:#7a252d;
  outline:2px solid rgba(255,193,199,.42);
  outline-offset:2px;
}
#profileLineupPanel .lineup-player-role-button{
  display:block;
  width:calc(100% - 8px);
  min-height:22px;
  margin:3px auto;
  padding:3px 5px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.46);
  border-radius:6px;
  background:#201a0e;
  color:#f0d79b;
  font:800 .44rem/1.12 var(--body);
  text-wrap:balance;
  white-space:normal;
  cursor:pointer;
}
#profileLineupPanel .lineup-player-role-button:is(:hover,:focus-visible){
  border-color:#f0d79b;
  background:#302612;
  outline:2px solid rgba(240,215,155,.30);
  outline-offset:1px;
}
#profileLineupPanel .lineup-owner-actions{
  width:min(100%,360px)!important;
  margin-top:12px;
}
#profileLineupPanel #lineupSaveButton{
  min-height:40px;
  color:#171006!important;
  border-color:#e5c377!important;
  background:#d4a94f!important;
  box-shadow:none!important;
}

.lineup-role-dialog{position:fixed;z-index:2700;inset:0;display:grid;place-items:center;padding:22px}
.lineup-role-dialog.hidden{display:none!important}
.lineup-role-dialog-backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.76);cursor:default}
.lineup-role-dialog-card{position:relative;width:min(760px,96vw);max-height:min(720px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border:1px solid rgba(212,169,79,.38);border-radius:16px;background:#11100d;box-shadow:0 30px 90px rgba(0,0,0,.64)}
.lineup-role-dialog-card>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px}
.lineup-role-dialog-card h3{margin:3px 0 0;color:#fff;font-size:1.15rem}
.lineup-role-dialog-card>header>button{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(212,169,79,.28);border-radius:50%;background:#1a1710;color:#f0d79b;font-size:1.2rem;cursor:pointer}
.lineup-role-dialog-body{display:grid;grid-template-columns:minmax(280px,.86fr) minmax(280px,1.14fr);gap:14px;min-height:0;padding:0 18px 16px;overflow:auto}
.lineup-role-options{display:grid;align-content:start;gap:7px}
.lineup-role-options button{display:grid;gap:3px;min-height:58px;padding:9px 11px;border:1px solid rgba(212,169,79,.16);border-radius:9px;background:#191711;color:#d9d1c2;text-align:left;cursor:pointer}
.lineup-role-options button strong{color:#fff;font-size:.76rem}.lineup-role-options button span{color:#aaa294;font-size:.61rem;line-height:1.4}
.lineup-role-options button:is(:hover,:focus-visible),.lineup-role-options button.is-selected{border-color:rgba(240,215,155,.64);background:#292214;outline:2px solid transparent}
.lineup-role-options button.is-selected strong{color:#f0d79b}
.lineup-role-description{align-self:start;min-height:170px;padding:16px;border:1px solid rgba(212,169,79,.20);border-radius:11px;background:#0a0907}
.lineup-role-description small{display:block;color:#d4a94f;font-size:.56rem;font-weight:900;letter-spacing:.12em}.lineup-role-description strong{display:block;margin-top:9px;color:#fff;font-size:1rem}.lineup-role-description p{margin:8px 0 0;color:#bdb5a8;font-size:.72rem;line-height:1.55}
.lineup-role-unavailable{color:#bdb5a8;font-size:.72rem}
.lineup-role-dialog-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:0 18px 16px}
.lineup-role-dialog-card>footer button{
  min-width:112px!important;
  min-height:40px!important;
  padding:0 16px!important;
  border:1px solid rgba(212,169,79,.34)!important;
  border-radius:8px!important;
  clip-path:none!important;
  background:#1a1710!important;
  color:#f0d79b!important;
  box-shadow:none!important;
  font:850 .66rem var(--body)!important;
}
.lineup-role-dialog-card>footer #lineupRoleApply:not(:disabled){
  border-color:#e5c377!important;
  background:#d4a94f!important;
  color:#171006!important;
}
.lineup-role-dialog-card>footer button:disabled{opacity:.48}
.lineup-role-dialog-card>footer button:is(:hover,:focus-visible):not(:disabled){outline:2px solid rgba(240,215,155,.42);outline-offset:2px}

#profileLineupPanel .tactical-centre-v5{
  width:100%;
  padding:10px;
  border-color:rgba(212,169,79,.20);
  border-radius:15px;
  background:#11100d;
  box-shadow:none;
  color:#f5f1e8;
}
#profileLineupPanel .tc5-lineup-summary{
  grid-template-columns:minmax(0,1fr) minmax(90px,.45fr) auto auto;
  gap:6px;
  margin-bottom:8px;
  padding:8px 10px;
  border-color:rgba(212,169,79,.18);
  background:#18150f;
}
#profileLineupPanel .tc5-lineup-summary>div{padding:0 8px;border:0}
#profileLineupPanel .tc5-lineup-summary span,
#profileLineupPanel .tc5-starting header span,
#profileLineupPanel .tc5-automation header span,
#profileLineupPanel .tc5-reaction-editor>header span{color:#d4a94f}
#profileLineupPanel .tc5-workspace-panel{min-width:0}
#profileLineupPanel .tc5-left-columns{
  display:grid;
  grid-template-columns:minmax(255px,.82fr) minmax(300px,1.18fr);
  gap:9px;
  height:auto;
}
#profileLineupPanel .tc5-starting,
#profileLineupPanel .tc5-automation{
  height:auto;
  padding:10px;
  border-color:rgba(212,169,79,.17);
  background:#15130e;
}
#profileLineupPanel .tc5-starting-list{grid-template-rows:none;gap:6px}
#profileLineupPanel .tc5-control{
  grid-template-columns:minmax(90px,.8fr) minmax(118px,1.2fr);
  padding:7px 8px;
  border-color:rgba(212,169,79,.14);
  background:#1a1711;
}
#profileLineupPanel .tc5-control select,
#profileLineupPanel .tc5-condition-grid select,
#profileLineupPanel .tc5-condition-grid input,
#profileLineupPanel .tc5-planned-subs select,
#profileLineupPanel .tc5-planned-subs input,
#profileLineupPanel .tc5-multiselect>summary{
  border-color:rgba(212,169,79,.22)!important;
  background:#0b0a08!important;
}
#profileLineupPanel .tc5-reaction-list{grid-template-rows:none;gap:6px}
#profileLineupPanel .tc5-reaction-card{
  min-height:54px;
  border-color:rgba(212,169,79,.15);
  background:#17150f;
}
#profileLineupPanel .tc5-reaction-card.enabled{border-color:rgba(212,169,79,.46);background:#241e11}
#profileLineupPanel .tc5-reaction-card::before{background:#8f6b2a}
#profileLineupPanel .tc5-bottom-bar{
  grid-template-columns:minmax(155px,1fr) minmax(110px,.75fr) minmax(100px,.65fr) minmax(120px,.7fr);
  gap:4px;
  margin-top:8px;
  padding:8px;
  border-color:rgba(212,169,79,.20);
  background:#0a0907;
  box-shadow:none;
}
#profileLineupPanel .tc5-bottom-bar>div{border:0;padding:0 7px}
#profileLineupPanel .tc5-bottom-bar>button[type="submit"]{border-color:#e5c377;background:#d4a94f;box-shadow:none;color:#171006}
#profileLineupPanel .tc5-save-message{color:#aaa294}
#profileLineupPanel .tc5-reaction-editor{
  min-width:0;
  padding:12px;
  border:1px solid rgba(212,169,79,.20);
  border-radius:12px;
  background:#15130e;
}
#profileLineupPanel .tc5-reaction-editor>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
#profileLineupPanel .tc5-reaction-editor h2{margin:3px 0;color:#fff;font-size:1.1rem}
#profileLineupPanel .tc5-reaction-editor header p{margin:0;color:#aaa294;font-size:.64rem}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs{padding:9px 0;background:transparent;border:0;overflow:auto}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button{min-width:150px;border-color:rgba(212,169,79,.18);background:#191711}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button.active{border-color:#d4a94f;background:#292214}
#profileLineupPanel .tc5-reaction-editor .tc5-drag-help{margin:0 0 9px;padding:8px;border-radius:8px;background:#0b0a08;color:#e5c377;text-align:left;line-height:1.4}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-body{display:block;padding:0;overflow:visible}
#profileLineupPanel .tc5-reaction-editor .tc5-condition-grid{grid-template-columns:minmax(170px,1.2fr) minmax(95px,.6fr) minmax(95px,.6fr);background:#0f0e0b;border-color:rgba(212,169,79,.14)}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-plan{border-color:rgba(212,169,79,.16);background:#0f0e0b}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article{grid-template-columns:22px 1fr 15px 1fr;align-items:end;background:#17150f;border-color:rgba(212,169,79,.14)}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>label,
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>.actions{grid-column:2/-1}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-fallback{grid-column:2/-1;grid-template-columns:1fr 15px 1fr}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-fallback>strong{grid-column:1/-1}
#profileLineupPanel .tc5-reaction-editor>footer{display:flex;justify-content:flex-end;margin-top:10px}
#profileLineupPanel .tc5-reaction-editor>footer button{min-width:110px;min-height:38px;border:1px solid rgba(212,169,79,.38);border-radius:8px;background:#292214;color:#f0d79b;font:800 .68rem var(--body);cursor:pointer}

@media(max-width:1380px){
  #profileLineupPanel .lineup-workspace{grid-template-columns:minmax(500px,1.35fr) minmax(240px,.62fr) minmax(300px,.8fr)!important}
  #profileLineupPanel .lineup-workspace.mode-tactics{grid-template-columns:minmax(520px,.9fr) minmax(560px,1.1fr)!important}
  #profileLineupPanel .lineup-filters{grid-template-columns:1fr}
  #profileLineupPanel .lineup-available-grid{max-height:505px}
}
@media(max-width:1120px){
  #profileLineupPanel .lineup-workspace,
  #profileLineupPanel .lineup-workspace.mode-tactics{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"pitch" "bench" "registered" "tactics"}
  #profileLineupPanel .lineup-side-panel{width:min(100%,720px);margin-inline:auto}
  #profileLineupPanel .lineup-left-panel,
  #profileLineupPanel .lineup-tactics-workspace{width:100%}
  #profileLineupPanel .lineup-left-panel.hidden,
  #profileLineupPanel .lineup-tactics-workspace.hidden{display:none!important}
  #profileLineupPanel .lineup-filters{grid-template-columns:minmax(0,1fr) repeat(2,minmax(120px,.5fr))}
}

/* 3.0A.50.36 — Lineup scouting, comparison and compact reaction controls. */
#profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{
  grid-template-columns:repeat(5,minmax(0,1fr));
  width:min(100%,calc(var(--lineup-workspace-height,720px) * .75625));
}
#profileLineupPanel .lineup-mode-tabs .lineup-mode-action{
  color:#e5c377;
  border-color:rgba(212,169,79,.16);
  background:#17140e;
}
#profileLineupPanel .lineup-mode-tabs .lineup-mode-action:is(:hover,:focus-visible){
  color:#fff8e8;
  border-color:rgba(229,195,119,.54);
  background:#282014;
}
#profileLineupPanel #lineupBenchCount{color:#fff!important}

@media(min-width:1121px){
  #profileLineupPanel .lineup-pitch-column{place-items:center start}
  #profileLineupPanel .lineup-pitch{margin:0}
  #profileLineupPanel .lineup-workspace-toolbar .lineup-mode-tabs{justify-self:start}
  #profileLineupPanel .lineup-squad-panel{
    grid-template-columns:minmax(240px,.96fr) minmax(260px,1.04fr);
  }
}

/* The menu was opening correctly but both ancestors clipped every pixel below
   the final Starting Plan row. Let this small overlay escape those boxes. */
#profileLineupPanel .tc5-starting{overflow:visible!important}
#profileLineupPanel .tc5-workspace-panel:has(> .tc5-left-columns):has(.tc5-multiselect[open]){overflow:visible!important}
#profileLineupPanel .tc5-multiselect[open]{z-index:40}

.lineup-scouting-modal{
  position:fixed;
  inset:0;
  z-index:1600;
  display:none;
  place-items:center;
  padding:22px;
}
.lineup-scouting-modal.open{display:grid}
.lineup-scouting-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,3,2,.76);
}
.lineup-scouting-content{
  position:relative;
  z-index:1;
  width:min(1240px,95vw);
  max-height:90vh;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.38);
  border-radius:20px;
  background:#0e0c09;
  box-shadow:0 28px 78px rgba(0,0,0,.68);
  color:#fbf7ef;
}
.lineup-scouting-content :is(.eyebrow,h2,h3,strong),
.squad-comparison-content :is(.eyebrow,h2,h3){text-shadow:none!important}
.lineup-scouting-content .lineup-modal-title .eyebrow,
.squad-comparison-content .squad-compare-title .eyebrow{color:#e5c377!important}
.lineup-modal-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:78px;
  padding:14px 18px;
  background:#17140e;
}
.lineup-modal-title h2{margin:2px 0 0;font:900 1.35rem var(--display);text-transform:uppercase}
.lineup-modal-title>button,
.squad-compare-title>button{
  flex:0 0 40px;
  width:40px;
  height:40px;
  border:1px solid rgba(212,169,79,.30);
  border-radius:10px;
  background:#0b0907;
  color:#fbf7ef;
  font-size:1.35rem;
  cursor:pointer;
}
.lineup-scouting-opponent{display:flex;align-items:center;gap:13px;min-width:0}
.lineup-scouting-opponent .mc-hub-club-logo{flex:0 0 auto}
.lineup-scouting-opponent>span{display:grid;gap:2px;min-width:0}
.lineup-scouting-opponent .eyebrow{margin:0;color:#d4a94f}
.lineup-scouting-opponent small{color:#c8c0b2;font-size:.68rem}
.lineup-scouting-scroll{
  display:grid;
  gap:12px;
  max-height:calc(90vh - 78px);
  padding:14px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-color:rgba(192,143,52,.72) #080603;
}
.lineup-scouting-last,
.lineup-scouting-trends,
.lineup-scouting-card,
.lineup-scouting-h2h{
  padding:13px;
  border:1px solid rgba(212,169,79,.18);
  border-radius:13px;
  background:#15120d;
}
.lineup-scouting-last>header,
.lineup-scouting-h2h>header,
.lineup-scouting-section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.lineup-scouting-content h3{margin:0;color:#e5c377;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase}
.lineup-scouting-last>header button{
  border:1px solid rgba(212,169,79,.34);
  border-radius:8px;
  padding:7px 10px;
  background:#292113;
  color:#f0d79b;
  font-size:.58rem;
  font-weight:850;
  cursor:pointer;
}
.lineup-scouting-match{
  display:grid;
  grid-template-columns:minmax(140px,.45fr) minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:9px 10px;
  border-radius:9px;
  background:#0b0907;
}
.lineup-scouting-match>span{display:grid;gap:2px}
.lineup-scouting-match small{color:#d4a94f;font-size:.54rem;font-weight:800;text-transform:uppercase}
.lineup-scouting-match b{color:#aaa294;font-size:.6rem}
.lineup-scouting-match>strong{font-size:.72rem;text-align:right}
.lineup-scouting-match em{margin:0 8px;color:#fff;font-size:1rem;font-style:normal}
.lineup-scouting-section-title span{color:#aaa294;font-size:.58rem}
.lineup-scouting-trends>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.lineup-scouting-trend{min-width:0;padding:10px;border-radius:10px;background:#0b0907}
.lineup-scouting-trend>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.lineup-scouting-trend>header span{color:#8f8779;font-size:.5rem}
.lineup-scouting-trend>div{display:grid;gap:5px}
.lineup-scouting-bar{display:grid;grid-template-columns:minmax(90px,.55fr) minmax(80px,1fr) 40px;align-items:center;gap:7px}
.lineup-scouting-bar>span{overflow:hidden;color:#ddd5c7;font-size:.57rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-bar>i{height:7px;overflow:hidden;border-radius:999px;background:#272116}
.lineup-scouting-bar>i>b{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8f6a28,#e5c377)}
.lineup-scouting-bar>strong{color:#f3e4bd;font-size:.56rem;text-align:right}
.lineup-scouting-empty{margin:0;padding:13px;color:#8f8779;font-size:.62rem;text-align:center}
.lineup-scouting-two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lineup-scouting-availability{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.lineup-scouting-unavailable{min-width:0;padding:10px;border-radius:9px;background:#0b0907}
.lineup-scouting-unavailable>div{display:grid;gap:5px;margin-top:7px}
.lineup-scouting-unavailable article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:6px 0}
.lineup-scouting-unavailable article b{overflow:hidden;font-size:.62rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-unavailable article span{color:#e5c377;font-size:.55rem}
.lineup-scouting-unavailable article small{grid-column:1/-1;color:#aaa294;font-size:.54rem}
.lineup-scouting-unavailable p{margin:7px 0 0;color:#aaa294;font-size:.6rem}
.lineup-scouting-assessment{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.lineup-scouting-assessment article{padding:11px;border-radius:10px;background:#0b0907}
.lineup-scouting-assessment small{font-size:.54rem;font-weight:900;letter-spacing:.1em}
.lineup-scouting-assessment .strength small{color:#e5c377}
.lineup-scouting-assessment .weakness small{color:#e48b94}
.lineup-scouting-assessment h3{margin-top:7px;color:#fbf7ef;font-size:.7rem}
.lineup-scouting-assessment p{margin:6px 0 0;color:#bdb5a8;font-size:.61rem;line-height:1.45}
.lineup-scouting-record{display:flex;gap:5px}
.lineup-scouting-record b{display:grid;grid-template-columns:auto auto;gap:5px;padding:6px 9px;border-radius:7px;background:#0b0907;color:#fff;font-size:.65rem}
.lineup-scouting-record span{color:#d4a94f}
.lineup-scouting-h2h>div:last-child{display:grid;gap:6px}
.lineup-modal-loading,.lineup-modal-empty{padding:64px 28px;text-align:center;color:#bdb5a8}
.lineup-modal-empty strong{color:#fbf7ef}
.lineup-modal-empty p{margin:8px 0 0}

/* GOAT comparison hierarchy: compact identity headers, two purposeful tabs,
   and one central value table rather than the old three-column blue layout. */
.squad-comparison-modal{z-index:1600;padding:22px}
.squad-comparison-backdrop{background:rgba(4,3,2,.78)}
.squad-comparison-content{
  width:min(1180px,95vw);
  max-height:90vh;
  padding:16px;
  border-color:rgba(212,169,79,.38);
  border-radius:20px;
  background:#0e0c09;
  box-shadow:0 28px 78px rgba(0,0,0,.68);
}
.squad-comparison-content>header.squad-compare-title{align-items:center;padding:0 0 11px!important;border:0}
.squad-comparison-content>header.squad-compare-title h2{margin:2px 0 0;color:#fbf7ef;font:900 1.3rem var(--display);text-transform:uppercase}
.squad-compare-selectors{gap:10px;margin:0 0 10px}
.squad-compare-selectors>.goat-form-field{display:grid;min-width:0}
.squad-compare-selectors select{width:100%;min-height:40px;border-color:rgba(212,169,79,.24);border-radius:9px;background:#0b0907;color:#fbf7ef}
.squad-compare-selectors>span{padding-bottom:10px;color:#d4a94f;font-size:.82rem}
.squad-compare-headers{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.squad-comparison-content .squad-compare-player{min-height:82px;border:1px solid rgba(212,169,79,.20)!important;border-radius:11px;background:#17140e!important}
.squad-comparison-content .squad-compare-player.empty{display:grid;align-content:center;padding:14px;color:#8f8779}
.squad-comparison-content .squad-compare-player.empty small{color:#d4a94f;font-size:.51rem}
.squad-comparison-content .squad-compare-player.empty strong{margin-top:5px;font-size:.72rem}
.squad-comparison-content .squad-compare-player>button{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:9px;border:0;background:transparent;color:#fbf7ef;text-align:left;cursor:pointer}
.squad-comparison-content .squad-compare-player img{width:58px;height:62px;object-fit:contain;object-position:bottom;border-radius:8px;background:#0b0907}
.squad-comparison-content .squad-compare-player button>span{display:grid;gap:2px;min-width:0}
.squad-comparison-content .squad-compare-player small{overflow:hidden;color:#d4a94f;font-size:.5rem;text-overflow:ellipsis;white-space:nowrap}
.squad-comparison-content .squad-compare-player strong{overflow:hidden;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
.squad-comparison-content .squad-compare-player em{color:#aaa294;font-size:.56rem;font-style:normal}
.squad-comparison-content .squad-compare-player button>b{color:#f0d79b;font:900 1.55rem var(--display)}
.squad-compare-tabs{display:flex;gap:6px;margin:10px 0 8px;padding:4px;border-radius:10px;background:#090806}
.squad-compare-tabs button{min-width:120px;min-height:35px;border:1px solid transparent;border-radius:7px;background:transparent;color:#aaa294;font-size:.61rem;font-weight:850;cursor:pointer}
.squad-compare-tabs button.active{border-color:rgba(229,195,119,.58);background:#2a2214;color:#f5e5ba}
.squad-compare-metrics{max-height:calc(90vh - 310px);padding:0 4px 0 0}
.squad-compare-waiting{display:grid;place-items:center;min-height:290px;padding:24px;border-radius:12px;background:#11100c;text-align:center}
.squad-compare-waiting strong{color:#fbf7ef}
.squad-compare-waiting p{max-width:480px;margin:7px 0 0;color:#aaa294;font-size:.65rem;line-height:1.45}
.squad-compare-facts{display:grid;gap:5px}
.squad-comparison-content .squad-compare-row{grid-template-columns:minmax(0,.8fr) minmax(120px,1fr) minmax(0,.8fr)!important;min-height:34px;border-color:rgba(212,169,79,.14)!important;border-radius:8px;background:#15130e!important}
.squad-comparison-content .squad-compare-facts .squad-compare-row{grid-template-columns:minmax(180px,.8fr) minmax(120px,1fr) minmax(180px,.8fr)!important}
.squad-comparison-content .squad-compare-row span{min-width:0;color:#c8c0b2;text-align:center;text-transform:none}
.squad-comparison-content .squad-compare-row strong{box-sizing:border-box;width:100%;min-width:0;justify-self:stretch!important;padding:4px 7px;overflow:hidden;border-radius:6px;background:transparent!important;color:#ddd5c7!important;text-overflow:ellipsis;white-space:nowrap}
.squad-comparison-content .squad-compare-row strong:first-child{text-align:left}
.squad-comparison-content .squad-compare-row strong:last-child{text-align:right}
.squad-comparison-content :is(.squad-compare-row,.squad-compare-attribute-group>header)>strong.is-better{
  background:rgba(212,169,79,.18)!important;
  color:#f6e4ae!important;
  box-shadow:none!important;
}
.squad-comparison-content :is(.squad-compare-row,.squad-compare-attribute-group>header)>strong.is-lower{
  background:transparent!important;
  color:#a69e91!important;
  box-shadow:none!important;
}
.squad-comparison-content :is(.squad-compare-row,.squad-compare-attribute-group>header)>strong.is-equal{
  background:rgba(212,169,79,.08)!important;
  color:#d6cdbd!important;
  box-shadow:none!important;
}
.squad-compare-section-label{position:static;margin-top:7px;border-color:rgba(212,169,79,.22);background:#211b10;color:#e5c377}
.squad-compare-attribute-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.squad-comparison-content .squad-compare-attribute-group{margin:0!important;border-color:rgba(212,169,79,.16)!important;border-radius:10px;background:#11100c!important}
.squad-comparison-content .squad-compare-attribute-group>header{min-height:39px;border:0!important;background:#211b10!important}
.squad-comparison-content .squad-compare-attribute-group>header b{color:#e5c377}
.squad-comparison-content .squad-compare-attribute-group>div{display:grid;gap:4px;padding:5px!important}
.squad-compare-statistics>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;padding:9px 11px;border-radius:9px;background:#211b10}
.squad-compare-statistics>header span{color:#d4a94f;font-size:.52rem;font-weight:900}
.squad-compare-statistics>header strong{font-size:.62rem}
.squad-compare-statistics>div{display:grid;gap:5px}
.squad-comparison-loading{color:#bdb5a8}

/* Compact automated reaction editor. */
#profileLineupPanel .tc5-reaction-editor{position:relative;padding:9px}
#profileLineupPanel .tc5-reaction-editor>.tc5-modal-close{position:absolute;z-index:3;top:8px;right:8px}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs{display:flex;align-items:center;gap:5px;min-height:38px;padding:0 48px 6px 0;overflow:visible}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button{display:flex;align-items:center;gap:7px;width:auto;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:6px!important;font-size:.65rem!important;letter-spacing:0!important;text-transform:none!important}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button:not(.add){justify-content:center;width:32px!important;min-width:32px!important;padding:0!important}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button b{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#0b0907;color:#f0d79b;font-size:.65rem}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button span{color:#bdb5a8;font-size:.52rem}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs button.add{justify-content:center;min-width:32px!important;width:32px!important;padding:0!important;color:#f0d79b;font-size:1rem!important}
#profileLineupPanel .tc5-reaction-editor .tc5-editor-status{margin:0 0 6px;padding:6px 8px;border-radius:7px;background:#0b0907;color:#e5c377;font-size:.56rem}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-heading{min-height:32px;margin:0 0 6px}
#profileLineupPanel .tc5-reaction-editor .tc5-condition-grid{grid-template-columns:minmax(180px,1fr);gap:5px;padding:6px}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:6px}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics .tc5-control{padding:5px 6px}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-plan{margin-top:6px;padding:7px}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-plan>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;padding:0;background:transparent!important}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-plan>header h3{margin:0;font-size:.68rem}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs{display:grid;gap:5px}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article{grid-template-columns:22px minmax(0,1fr) 15px minmax(0,1fr) 32px;gap:5px;padding:6px}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>.tc5-sub-remove{grid-column:5;grid-row:1;box-sizing:border-box!important;width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;align-self:center;border:1px solid rgba(255,92,108,.58)!important;border-radius:7px!important;background:rgba(125,20,35,.46)!important;color:#ff9da8!important;font-size:1rem!important;font-weight:900!important;letter-spacing:0!important;text-transform:none!important;cursor:pointer}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>label{grid-column:2/-1}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-fallback{grid-column:2/-1;gap:5px}
#profileLineupPanel .tc5-reaction-editor>footer{margin-top:6px}
#profileLineupPanel .tc5-legacy-condition-block>div[role="alert"]{margin:8px 44px 8px 0;padding:12px;border:1px solid rgba(228,139,148,.36);border-radius:9px;background:#211012}
#profileLineupPanel .tc5-legacy-condition-block>div[role="alert"] strong{color:#ffb5bd;font-size:.72rem}
#profileLineupPanel .tc5-legacy-condition-block>div[role="alert"] p{margin:5px 0 0;color:#d4c5c2;font-size:.61rem;line-height:1.45}

@media(max-width:1120px){
  #profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{width:min(100%,760px)}
}
@media(max-width:760px){
  #profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  #profileLineupPanel .lineup-mode-tabs .lineup-mode-action{grid-column:span 1}
  .lineup-scouting-trends>div:last-child,.lineup-scouting-two-col,.lineup-scouting-availability,.lineup-scouting-assessment,.squad-compare-headers,.squad-compare-attribute-grid{grid-template-columns:1fr}
  .lineup-scouting-match{grid-template-columns:1fr}
  .lineup-scouting-match>strong{text-align:left}
  .squad-compare-tabs button{flex:1;min-width:0}
  #profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{grid-template-columns:1fr}
}
@media(max-width:600px){
  .squad-comparison-content .squad-compare-facts .squad-compare-row{grid-template-columns:minmax(0,.9fr) minmax(80px,.8fr) minmax(0,.9fr)!important}
}
@media(max-width:760px){
  #profileLineupPanel .lineup-heading{display:grid;align-items:start}
  #profileLineupPanel .lineup-public-status{justify-self:start;text-align:left}
  #profileLineupPanel .lineup-owner-controls{grid-template-columns:1fr}
  #profileLineupPanel .lineup-mode-tabs button{font-size:.59rem;padding-inline:5px}
  #profileLineupPanel .lineup-slot{width:clamp(64px,18vw,80px)}
  #profileLineupPanel .tc5-left-columns{grid-template-columns:1fr}
  #profileLineupPanel .tc5-bottom-bar{grid-template-columns:1fr 1fr}
  #profileLineupPanel .tc5-bottom-bar>button[type="submit"]{grid-column:1/-1}
  #profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics,
  #profileLineupPanel .tc5-reaction-editor .tc5-condition-grid{grid-template-columns:1fr}
  #profileLineupPanel .tc5-reaction-editor .tc5-sub-plan>header{display:grid}
  .lineup-role-dialog-body{grid-template-columns:1fr}
}
@media(max-width:520px){
  #profileLineupPanel .lineup-builder{padding:14px 9px}
  #profileLineupPanel .lineup-filters{grid-template-columns:1fr}
  #profileLineupPanel .lineup-registered-toolbar{align-items:flex-start;flex-direction:column}
  .lineup-role-dialog{padding:8px}
  .lineup-role-dialog-card{max-height:96vh}
}

/* 3.0A.50.35.90 — viewport-fitted Lineup + Tactics refinement. The remaining
   desktop viewport, rather than available width, now controls workspace size. */
body:has(#profileLineupPanel.active) #siteFooter{display:none}
#profileView:has(> #profileLineupPanel.active){padding-bottom:0!important}
#profileLineupPanel .lineup-builder.section-frame{margin-bottom:0}
@media(min-width:1121px){
  #profileLineupPanel .lineup-builder{
    --lineup-workspace-height:clamp(610px,calc(100dvh - 372px),900px);
  }
  #profileLineupPanel .lineup-owner-controls{
    grid-template-columns:minmax(180px,1fr) minmax(180px,.9fr) minmax(135px,.55fr) auto;
  }
  #profileLineupPanel .lineup-control-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(96px,1fr));
    gap:6px;
  }
  #profileLineupPanel .lineup-control-actions>button{
    width:100%;
    min-width:0;
  }
  #profileLineupPanel .lineup-workspace{
    height:var(--lineup-workspace-height);
    min-height:0;
    grid-template-columns:minmax(440px,.91fr) minmax(0,1.09fr)!important;
    grid-template-rows:minmax(0,1fr);
    grid-template-areas:"pitch squad";
    align-items:stretch;
  }
  #profileLineupPanel .lineup-pitch-column{
    display:grid;
    place-items:center;
    height:100%;
    min-height:0;
  }
  #profileLineupPanel .lineup-pitch{
    width:auto!important;
    height:100%!important;
    max-width:100%;
    max-height:100%;
    aspect-ratio:1058/1399;
  }
  #profileLineupPanel .lineup-squad-panel{
    grid-area:squad;
    display:grid;
    grid-template-columns:minmax(230px,.72fr) minmax(350px,1.28fr);
    height:100%;
    min-width:0;
    min-height:0;
    overflow:hidden;
    border:1px solid rgba(212,169,79,.22);
    border-radius:15px;
    background:#14120d;
  }
  #profileLineupPanel .lineup-side-panel,
  #profileLineupPanel .lineup-left-panel{
    grid-area:auto;
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
  }
  #profileLineupPanel .lineup-left-panel{
    border-left:1px solid #d4a94f!important;
  }
  #profileLineupPanel .lineup-bench-panel,
  #profileLineupPanel .lineup-available-panel{
    box-sizing:border-box;
    width:100%;
    height:100%;
    min-height:0;
    margin:0;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  #profileLineupPanel .lineup-bench-panel,
  #profileLineupPanel .lineup-available-panel[open]{
    display:flex;
    flex-direction:column;
  }
  #profileLineupPanel .lineup-bench-panel>.lineup-side-heading,
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary{
    flex:0 0 auto;
    min-height:58px!important;
    padding:11px 13px!important;
    border-radius:0!important;
    background:rgba(23,20,13,.82)!important;
  }
  #profileLineupPanel .lineup-bench-panel>#lineupBench{
    flex:1 1 auto;
    min-height:0;
    margin:0!important;
    padding:10px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  #profileLineupPanel .lineup-registered-content{
    display:flex;
    flex:1 1 auto;
    flex-direction:column;
    min-height:0;
    max-height:none;
    padding:9px 10px 10px;
    overflow:hidden;
  }
  #profileLineupPanel .lineup-registered-toolbar{
    flex:0 0 auto;
    justify-content:flex-end;
    margin:0 0 7px;
  }
  #profileLineupPanel .lineup-filters{
    flex:0 0 auto;
    grid-template-columns:minmax(140px,1fr) minmax(90px,.55fr) minmax(90px,.55fr);
  }
  #profileLineupPanel .lineup-available-grid{
    flex:1 1 auto;
    min-height:0;
    max-height:none;
    margin-top:8px;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics{
    grid-template-columns:minmax(440px,.78fr) minmax(570px,1.22fr)!important;
    grid-template-rows:minmax(0,1fr) auto;
    grid-template-areas:"pitch tactics" "squad tactics";
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
    align-self:end;
    display:block;
    width:min(100%,690px);
    height:auto;
    justify-self:center;
    padding:8px 10px 10px;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-panel,
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel{
    height:auto;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading{
    min-height:30px!important;
    padding:0 2px 7px!important;
    background:transparent!important;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading h3{font-size:.72rem}
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading .eyebrow{display:none}
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    min-height:0;
    padding:0!important;
    overflow:visible!important;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
    display:flex;
    flex:1 1 75px;
    align-items:center;
    gap:5px;
    min-width:70px;
    max-width:none;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:3px 5px!important;
    border:1px solid rgba(212,169,79,.18);
    border-radius:8px;
    background:#0b0a08;
  }
  #profileLineupPanel .lineup-tactics-kit{
    display:grid;
    flex:0 0 24px;
    place-items:center;
    width:24px;
    height:24px;
    border:1px solid rgba(240,215,155,.58);
    border-radius:50%;
    background:#241d10;
    color:#f5e5ba;
    font-size:.62rem;
    font-weight:900;
    font-variant-numeric:tabular-nums;
  }
  #profileLineupPanel .lineup-tactics-substitute>button{
    min-width:0;
    padding:0;
    overflow:hidden;
    border:0;
    background:transparent;
    color:#fbf7ef;
    font:700 .56rem/1.2 var(--body);
    text-align:left;
    text-overflow:ellipsis;
    white-space:nowrap;
    cursor:pointer;
  }
  #profileLineupPanel .lineup-tactics-substitute>button:is(:hover,:focus-visible){color:#f0d79b;outline:0}
  #profileLineupPanel .lineup-tactics-workspace,
  #profileLineupPanel .tactical-centre-v5{
    height:100%;
    min-height:0;
  }
  #profileLineupPanel .tactical-centre-v5{
    box-sizing:border-box;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    overflow:hidden;
  }
  #profileLineupPanel .tc5-form{
    display:grid;
    grid-template-rows:minmax(0,1fr) auto;
    min-height:0;
  }
  #profileLineupPanel .tc5-workspace-panel{
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
  }
  #profileLineupPanel .tc5-left-columns{
    height:100%;
    min-height:0;
  }
  #profileLineupPanel .tc5-starting,
  #profileLineupPanel .tc5-automation{
    box-sizing:border-box;
    height:100%;
    min-height:0;
    overflow:hidden;
  }
  #profileLineupPanel .tc5-starting-list,
  #profileLineupPanel .tc5-reaction-list{
    max-height:calc(100% - 37px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  #profileLineupPanel .tc5-reaction-editor{
    box-sizing:border-box;
    height:100%;
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
  }
}

/* Follow-up reaction-editor refinement: headings describe the same hierarchy,
   and supporting dropdowns stay compact beside the player names. */
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-settings>label:first-child>span{
  color:#e5c377!important;
  font-size:.60rem!important;
  font-weight:900!important;
  letter-spacing:.07em!important;
  line-height:1.25!important;
  text-transform:uppercase!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-settings :is(select,input,.goat-select-trigger){
  min-height:34px!important;
  padding:5px 9px!important;
  font-size:.70rem!important;
  font-weight:800!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-condition-grid{
  grid-template-columns:minmax(0,1fr)!important;
  gap:4px!important;
  margin:0 0 6px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-condition-grid::before,
#profileLineupPanel .tc5-reaction-editor .tc5-condition-grid::after{content:none!important}
#profileLineupPanel .tc5-reaction-editor>.tc5-modal-close{
  width:30px!important;
  min-width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  border:1px solid rgba(224,96,88,.78)!important;
  border-radius:8px!important;
  background:#672421!important;
  box-shadow:none!important;
  color:#fff!important;
  font-size:1rem!important;
  line-height:1!important;
}
#profileLineupPanel .tc5-reaction-editor>.tc5-modal-close:hover{
  border-color:#ef8d84!important;
  background:#842e29!important;
  color:#fff!important;
}
#profileLineupPanel .tc5-reaction-editor>.tc5-modal-close:focus-visible{
  border-color:#ef8d84!important;
  background:#842e29!important;
  color:#fff!important;
  outline:2px solid rgba(239,141,132,.35)!important;
  outline-offset:2px!important;
}

/* Opening the squad is a text action: hovering never restores a button frame. */
#profileLineupPanel .lineup-open-squad:hover{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f0d79b!important;
  outline:0!important;
  text-shadow:0 0 8px rgba(240,215,155,.22);
}
#profileLineupPanel .lineup-open-squad:focus{
  border-color:transparent!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f0d79b!important;
  outline:0!important;
  text-decoration:underline!important;
  text-decoration-color:rgba(240,215,155,.85)!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:3px!important;
}

/* 3.0A.50.36.2 — focused Lineup workspace hierarchy and shared squad rows. */
#profileLineupPanel .lineup-leadership-panel{
  background:rgba(20,18,13,.25);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

#profileLineupPanel .lineup-side-heading,
#profileLineupPanel .lineup-panel-summary{
  align-items:center;
}
#profileLineupPanel .lineup-side-heading>.eyebrow,
#profileLineupPanel .lineup-panel-summary>.eyebrow{
  margin:0;
}
#profileLineupPanel .lineup-registered-content{
  padding-top:8px;
}
#profileLineupPanel .lineup-available-grid{
  margin-top:0;
}

#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card{
  box-sizing:border-box;
  grid-template-columns:42px minmax(0,1fr)!important;
  width:100%;
  height:68px!important;
  min-height:66px!important;
  max-height:78px!important;
  padding:4px 5px!important;
  gap:6px!important;
  border-radius:10px;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-visual{
  width:42px!important;
  height:58px!important;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-copy{
  align-content:center;
  gap:1px!important;
  padding:6px 8px!important;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-name-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:6px;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-name-row b{
  overflow:hidden;
  font-size:.72rem;
  font-weight:900;
  line-height:1.12;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-meta-row{
  font-size:.55rem;
  font-weight:700;
  line-height:1.14;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-row-flag.player-country-flag-wrap{
  width:18px;
  min-width:18px;
  height:13px;
  flex-basis:18px;
  margin:0;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-row-flag .player-country-flag-fallback{
  line-height:13px;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-registration-badge{
  min-height:15px;
  padding:1px 4px;
  font-size:.43rem;
  line-height:1;
}

.squad-compare-overview>.squad-compare-attribute-grid{
  margin-top:7px;
}
.squad-comparison-content .squad-compare-attribute-group>header{
  min-height:34px;
  padding-block:4px;
}
.squad-comparison-content .squad-compare-attribute-group>header>b{
  align-self:center;
  justify-self:center;
  line-height:1;
}

@media(min-width:1121px){
  #profileLineupPanel .lineup-builder{
    --lineup-primary-width:min(calc(var(--lineup-workspace-height,720px) * .75625),720px);
    --lineup-workspace-gutter:clamp(8px,.62vw,11px);
  }
  #profileLineupPanel .lineup-workspace-toolbar:not(.mode-tactics),
  #profileLineupPanel .lineup-workspace:not(.mode-tactics){
    grid-template-columns:var(--lineup-primary-width) minmax(0,1fr)!important;
    column-gap:var(--lineup-workspace-gutter)!important;
  }
  #profileLineupPanel .lineup-workspace-toolbar:not(.mode-tactics) .lineup-mode-tabs{
    width:var(--lineup-primary-width);
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-pitch-column{
    width:var(--lineup-primary-width);
  }
}

#profileLineupPanel .lineup-role-pitch-card{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:minmax(44px,1fr) auto auto;
  gap:4px;
  min-height:94px;
  padding:5px;
  overflow:visible;
  border-color:var(--rarity-color);
  background:linear-gradient(165deg,color-mix(in srgb,var(--rarity-color) 30%,#17130c),#080706 72%);
  box-shadow:0 8px 18px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.10);
}
#profileLineupPanel .lineup-role-kit-number{
  display:grid;
  place-items:center;
  width:100%;
  min-height:44px;
  padding:0;
  border:0;
  border-radius:7px;
  background:linear-gradient(180deg,rgba(12,12,18,.68),rgba(3,4,8,.92));
  color:#fbf7ef;
  font:500 clamp(1.7rem,2.4vw,2.35rem)/1 var(--body);
  font-variant-numeric:tabular-nums;
  text-shadow:0 2px 8px rgba(0,0,0,.48);
  cursor:pointer;
}
#profileLineupPanel .lineup-role-kit-number:is(:hover,:focus-visible){outline:2px solid rgba(240,215,155,.68);outline-offset:1px}
#profileLineupPanel .lineup-role-pitch-card .lineup-captain-badge{top:6px;left:6px;right:auto;bottom:auto;width:17px;height:17px;font-size:.55rem}
#profileLineupPanel .lineup-role-pitch-card .lineup-player-role-button{
  display:grid;
  place-items:center;
  width:100%;
  min-height:24px;
  margin:0;
  padding:3px 4px;
  border-color:rgba(240,215,155,.54);
  background:#f0d79b;
  color:#171006;
  font-size:.48rem;
  line-height:1.08;
}
#profileLineupPanel .lineup-role-pitch-card .lineup-player-role-button:is(:hover,:focus-visible){background:#fff0c5;color:#090704}
#profileLineupPanel .lineup-role-energy{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:4px;
  color:#fbf7ef;
  font-size:.5rem;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
#profileLineupPanel .lineup-role-energy>span{height:5px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.16)}
#profileLineupPanel .lineup-role-energy i{display:block;height:100%;border-radius:inherit}
#profileLineupPanel .lineup-pitch-remove{
  top:-6px;
  right:-6px;
  width:28px;
  height:28px;
  font-size:.68rem;
}
#profileLineupPanel .lineup-pitch-remove>span{display:block;transform:translateY(-.5px)}

#profileLineupPanel .tc5-next-match-summary{
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:6px;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta{
  display:grid;
  align-content:center;
  gap:3px;
  min-width:0;
  padding:6px 9px;
  border:0;
  background:transparent;
  color:#fbf7ef;
  text-align:left;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>span{display:flex;align-items:center;gap:5px;color:#d4a94f;font-size:.54rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>b{overflow:hidden;color:#fbf7ef;font-size:.7rem;text-overflow:ellipsis;white-space:nowrap}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta{cursor:pointer}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta:is(:hover,:focus-visible){background:rgba(212,169,79,.08);outline:2px solid rgba(240,215,155,.48);outline-offset:-2px}
#profileLineupPanel .tc5-bottom-bar{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
#profileLineupPanel .tc5-bottom-bar .tc5-save-message{margin:0;padding:0 7px;text-align:left}
#profileLineupPanel .tc5-bottom-bar>button[type="submit"]{min-width:132px}
#profileLineupPanel .tc5-switch-control .tc5-tactic-switch{justify-self:end;cursor:pointer}
#profileLineupPanel .tc5-switch-control .tc5-tactic-switch b{min-width:20px;color:#f0d79b;text-transform:uppercase}
#profileLineupPanel .tc5-planned-subs>p{color:#e5c377!important}

@media(min-width:1121px) and (max-height:950px){
  #profileLineupPanel .lineup-slot{width:60px}
  #profileLineupPanel .lineup-slot .lineup-card-visual{height:46px}
  #profileLineupPanel .lineup-slot .lineup-card-visual img{inset:6px -3px 0;width:calc(100% + 6px);height:calc(100% - 6px)}
  #profileLineupPanel .lineup-player-name{margin-top:2px;padding:2px;font-size:.5rem}
  #profileLineupPanel .lineup-energy{margin-top:2px}
  #profileLineupPanel .lineup-role-pitch-card{grid-template-rows:minmax(34px,1fr) auto auto;min-height:72px;padding:4px}
  #profileLineupPanel .lineup-role-kit-number{min-height:34px;font-size:1.55rem}
  #profileLineupPanel .lineup-role-pitch-card .lineup-player-role-button{min-height:19px;padding:2px;font-size:.4rem}
  #profileLineupPanel .lineup-pitch-remove{top:-5px;right:-5px;width:24px;height:24px;font-size:.6rem}
  #profileLineupPanel .lineup-side-panel .lineup-mini-card,
  #profileLineupPanel .lineup-available-grid .lineup-mini-card{padding:4px}
  #profileLineupPanel .lineup-side-panel .lineup-card-visual,
  #profileLineupPanel .lineup-available-grid .lineup-card-visual{width:40px;height:48px}
}

@media(max-width:1120px){
  #profileLineupPanel .lineup-squad-panel{display:grid;grid-template-columns:1fr;gap:12px}
  #profileLineupPanel .lineup-workspace,
  #profileLineupPanel .lineup-workspace.mode-tactics{grid-template-areas:"pitch" "squad" "tactics"}
  #profileLineupPanel .lineup-left-panel{border-left:0!important}
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench{display:flex;flex-wrap:wrap;gap:7px}
  #profileLineupPanel .lineup-tactics-substitute{display:flex;align-items:center;gap:7px;padding:6px 8px;border:1px solid rgba(212,169,79,.18);border-radius:8px;background:#0b0a08}
  #profileLineupPanel .lineup-tactics-kit{display:grid;place-items:center;width:28px;height:28px;border:1px solid rgba(240,215,155,.58);border-radius:50%;color:#f5e5ba;font-size:.62rem;font-weight:900}
  #profileLineupPanel .lineup-tactics-substitute>button{padding:0;border:0;background:transparent;color:#fbf7ef;font:700 .66rem var(--body)}
}

/* 3.0A.50.35.91 — leadership and compact tactics refinement. */
#profileLineupPanel .lineup-workspace-toolbar{
  display:grid;
  grid-template-columns:minmax(440px,.91fr) minmax(0,1.09fr);
  gap:clamp(13px,1.15vw,20px);
  align-items:stretch;
  margin:2px 0 8px;
}
#profileLineupPanel .lineup-workspace-toolbar.hidden{display:none!important}
#profileLineupPanel .lineup-workspace-toolbar.mode-tactics{
  grid-template-columns:minmax(440px,.78fr) minmax(570px,1.22fr);
}
#profileLineupPanel .lineup-workspace-toolbar .lineup-mode-tabs{
  align-self:stretch;
  justify-self:center;
  width:min(100%,calc(var(--lineup-workspace-height,720px) * .75625));
  min-height:58px;
  margin:0;
}
#profileLineupPanel .lineup-leadership-panel{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  min-width:0;
  padding:6px 8px;
  overflow:visible;
  border:1px solid rgba(212,169,79,.22);
  border-radius:12px;
  background:#14120d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
#profileLineupPanel .lineup-leadership-panel.hidden{display:none!important}
#profileLineupPanel .lineup-leadership-panel label{display:grid;gap:3px;min-width:0}
#profileLineupPanel .lineup-leadership-panel label>span{
  color:#d4a94f;
  font-size:.5rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
#profileLineupPanel .lineup-leadership-panel select{
  width:100%;
  min-height:36px;
  border-color:rgba(212,169,79,.22);
  background:#0b0a08;
  color:#fbf7ef;
  font-size:.62rem;
}

@media(min-width:1121px){
  #profileLineupPanel .lineup-squad-panel{
    grid-template-columns:minmax(350px,1.28fr) minmax(230px,.72fr);
  }
  #profileLineupPanel .lineup-available-panel{
    display:flex;
    flex-direction:column;
  }
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
  }
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary>span{min-width:0}
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary .lineup-open-squad{
    max-width:92px;
    padding:5px 2px;
    line-height:1.15;
    text-align:right;
    white-space:normal;
  }
  #profileLineupPanel .lineup-filters{
    grid-template-columns:minmax(0,1.15fr) repeat(2,minmax(0,.85fr));
    gap:5px;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
    border:1px solid rgba(212,169,79,.22);
    background:#14120d;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
}
@media(min-width:1121px) and (max-width:1380px){
  #profileLineupPanel .lineup-filters{grid-template-columns:1fr 1fr}
  #profileLineupPanel .lineup-filters .lineup-search{grid-column:1/-1}
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary{padding-inline:9px!important}
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary .lineup-open-squad{max-width:76px;font-size:.54rem}
}

#profileLineupPanel .lineup-pitch-remove{
  width:24px;
  height:24px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:.48rem;
}
#profileLineupPanel .lineup-pitch-remove::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:14px;
  border:1px solid rgba(255,181,188,.72);
  border-radius:50%;
  background:#541b20;
  translate:-50% -50%;
}
#profileLineupPanel .lineup-pitch-remove>span{position:relative;z-index:1;transform:translateY(-.25px)}
#profileLineupPanel .lineup-pitch-remove:is(:hover,:focus-visible){background:transparent}
#profileLineupPanel .lineup-pitch-remove:is(:hover,:focus-visible)::before{background:#7a252d}

#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot{
  width:clamp(58px,4.4vw,84px);
}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot .lineup-pitch-card{padding:3px}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot .lineup-card-visual{height:42px}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot .lineup-card-visual img{
  inset:5px -3px 0;
  width:calc(100% + 6px);
  height:calc(100% - 5px);
}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot .lineup-player-name{margin-top:1px;padding:2px;font-size:.5rem}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-slot .lineup-energy{margin-top:1px}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading h3{
  font-size:.86rem;
}
#profileLineupPanel .lineup-workspace.mode-tactics #lineupBenchCount{
  color:#fff!important;
  font-size:.66rem;
}
#profileLineupPanel .lineup-tactics-position{
  display:grid;
  flex:0 0 27px;
  place-items:center;
  width:27px;
  height:27px;
  border:1px solid rgba(240,215,155,.58);
  border-radius:50%;
  background:#241d10;
  color:#f5e5ba;
  font-size:.54rem;
  font-weight:900;
  letter-spacing:-.02em;
}
#profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
  gap:6px;
  padding:2px 3px!important;
}

#profileLineupPanel .tc5-switch-control .tc5-tactic-switch{
  justify-self:start;
}
#profileLineupPanel .tc5-switch i::after{background:#d8c8a6!important}
#profileLineupPanel .tc5-switch input:checked+i{background:#896723!important}
#profileLineupPanel .tc5-switch input:checked+i::after{background:#f2dda7!important}
#profileLineupPanel .tc5-workspace-panel:has(> .tc5-left-columns){overflow:hidden}
#profileLineupPanel .tc5-left-columns{align-items:stretch}
#profileLineupPanel .tc5-starting,
#profileLineupPanel .tc5-automation{display:flex;flex-direction:column}
#profileLineupPanel .tc5-starting-list,
#profileLineupPanel .tc5-reaction-list{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
}
#profileLineupPanel .tc5-starting-list{
  grid-template-rows:repeat(8,minmax(0,1fr));
  gap:3px;
  overflow:visible;
}
#profileLineupPanel .tc5-starting-list .tc5-control{
  min-height:0;
  height:auto;
  padding:3px 7px;
}
#profileLineupPanel .tc5-starting-list .tc5-control select,
#profileLineupPanel .tc5-starting-list .tc5-control .goat-select-trigger,
#profileLineupPanel .tc5-starting-list .tc5-multiselect>summary{
  min-height:36px!important;
  padding-block:6px!important;
}
#profileLineupPanel .tc5-reaction-list{
  grid-template-rows:repeat(9,minmax(0,1fr));
  gap:3px;
  overflow:visible;
}
#profileLineupPanel .tc5-reaction-card{
  grid-template-columns:29px minmax(0,1fr) auto;
  min-height:0;
  height:auto;
  gap:7px;
  padding:3px 7px 3px 9px;
}
#profileLineupPanel .tc5-reaction-card .tc5-reaction-icon-wrap{
  width:26px;
  height:26px;
  border-radius:7px;
}
#profileLineupPanel .tc5-reaction-card .tc5-reaction-icon{width:20px;height:20px}
#profileLineupPanel .tc5-reaction-card .tc5-reaction-copy strong{font-size:.72rem;line-height:1.08}
#profileLineupPanel .tc5-reaction-card .tc5-reaction-copy span{margin-top:1px;font-size:.5rem;line-height:1.1}
#profileLineupPanel .tc5-reaction-card .tc5-reaction-copy small{margin-top:1px;font-size:.46rem;line-height:1.05}
#profileLineupPanel .tc5-reaction-card>i{padding-top:1px;font-size:.48rem}
#profileLineupPanel .tc5-automation>header{padding-right:4px}
#profileLineupPanel .tc5-clear-reactions{margin-right:3px}

#profileLineupPanel .tc5-bottom-bar{
  display:flex;
  justify-content:flex-end;
  margin-top:5px;
  padding:5px 8px 0;
}
#profileLineupPanel .tc5-save-cluster{
  display:grid;
  grid-template-columns:132px;
  justify-items:stretch;
  gap:4px;
  padding:0;
  text-align:center;
}
#profileLineupPanel .tc5-save-cluster>button{
  min-width:132px;
  min-height:40px;
  border:1px solid #e5c377;
  border-radius:8px;
  background:#d4a94f;
  color:#171006;
  font:900 .68rem var(--body);
  cursor:pointer;
}
#profileLineupPanel .tc5-save-cluster>button:disabled{opacity:.5;cursor:not-allowed}
#profileLineupPanel .tc5-save-cluster .tc5-save-message{
  width:100%;
  margin:0;
  padding:0;
  color:#aaa294;
  font-size:.52rem;
  line-height:1.25;
  text-align:center;
}

@media(max-width:1120px){
  #profileLineupPanel .lineup-workspace-toolbar{grid-template-columns:1fr}
  #profileLineupPanel .lineup-workspace-toolbar.mode-tactics{grid-template-columns:1fr}
  #profileLineupPanel .lineup-workspace-toolbar .lineup-mode-tabs{width:min(100%,600px)}
  #profileLineupPanel .lineup-leadership-panel{grid-template-columns:1fr}
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel,
  #profileLineupPanel .lineup-tactics-substitute{border:0!important;background:transparent!important;box-shadow:none!important}
}

/* Final cascade ownership for the 3.0A.50.36 desktop grid. */
@media(min-width:1121px){
  #profileLineupPanel .lineup-pitch-column{place-items:center start}
  #profileLineupPanel .lineup-pitch{margin:0}
  #profileLineupPanel .lineup-workspace-toolbar .lineup-mode-tabs{justify-self:start;padding-inline:5px!important}
  #profileLineupPanel .lineup-squad-panel{grid-template-columns:minmax(240px,.96fr) minmax(260px,1.04fr)}
}
@media(min-width:1121px) and (max-width:1380px){
  #profileLineupPanel .lineup-workspace-toolbar .lineup-mode-tabs{gap:2px;padding:4px!important}
  #profileLineupPanel .lineup-mode-tabs button{
    min-width:0;
    padding:5px 2px;
    font-size:.59rem;
    line-height:1.15;
    letter-spacing:.035em;
    white-space:normal;
  }
}

/* 3.0A.50.36.1 — final review geometry and translucent mode rail. */
#profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{
  background:rgba(10,9,7,.25)!important;
  backdrop-filter:none!important;
}
@media(min-width:1121px){
  #profileLineupPanel .lineup-builder{
    --lineup-tactics-left-width:clamp(340px,calc((var(--lineup-workspace-height,720px) - 80px) * .75625),690px);
  }
  #profileLineupPanel .lineup-workspace-toolbar.mode-tactics,
  #profileLineupPanel .lineup-workspace.mode-tactics{
    grid-template-columns:var(--lineup-tactics-left-width) minmax(570px,1fr)!important;
  }
  #profileLineupPanel .lineup-workspace-toolbar.mode-tactics .lineup-mode-tabs{
    width:var(--lineup-tactics-left-width)!important;
    justify-self:start;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics{
    grid-template-rows:minmax(0,1fr) auto;
    row-gap:4px!important;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-pitch-column{
    align-self:start;
    display:block;
    width:var(--lineup-tactics-left-width);
    height:auto;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-pitch{
    width:100%!important;
    height:auto!important;
    max-width:none;
    max-height:none;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
    box-sizing:border-box;
    width:var(--lineup-tactics-left-width);
    justify-self:start;
    padding:4px 6px 6px;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading{
    min-height:23px!important;
    padding:0 2px 3px!important;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
    flex:1 1 54px;
    min-width:50px;
    height:34px!important;
    min-height:34px!important;
    max-height:34px!important;
  }
}

/* Final cascade lock for the deliberately translucent leadership surface. */
#profileLineupPanel .lineup-leadership-panel{
  background:rgba(20,18,13,.25)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-heading>.eyebrow{
  display:block;
  font-size:.54rem;
}

/* 3.0A.50.36.3 — targeted visual-review refinements. */
#profileLineupPanel .lineup-open-squad{
  max-width:none;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.015em;
  line-height:1.15;
  text-decoration:none;
  white-space:nowrap;
}
#profileLineupPanel .lineup-open-squad:is(:hover,:focus-visible){color:#f0d79b}
#profileLineupPanel .lineup-available-panel>.lineup-panel-summary .lineup-open-squad{
  max-width:none;
  white-space:nowrap;
}
@media(min-width:1121px) and (max-width:1380px){
  #profileLineupPanel .lineup-available-panel>.lineup-panel-summary .lineup-open-squad{max-width:none;font-size:.78rem}
}

#profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-squad-panel{
  gap:0;
  overflow:hidden;
  border:0;
  background:transparent;
}
#profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(.lineup-bench-panel,.lineup-available-panel){
  overflow:hidden;
  border:1px solid rgba(212,169,79,.22)!important;
  border-radius:14px;
  background:rgba(20,18,13,.78)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
#profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-bench-panel{border-right:0!important;border-radius:14px 0 0 14px}
#profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-available-panel{border-radius:0 14px 14px 0}
#profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(.lineup-bench-panel>.lineup-side-heading,.lineup-available-panel>.lineup-panel-summary){
  border-radius:0!important;
  background:rgba(212,169,79,.035)!important;
}

.lineup-scouting-content{
  width:min(1280px,96vw);
  border-color:rgba(212,169,79,.42);
  border-radius:16px;
  background:#0c0b08;
}
.lineup-scouting-title{
  display:grid;
  grid-template-columns:minmax(300px,1fr) minmax(440px,1.25fr) 40px;
  min-height:94px;
  padding:14px 16px;
  background:linear-gradient(110deg,#1b170f,#100e0a 64%,#18130b);
}
.lineup-scouting-opponent .mc-hub-club-logo{width:62px;height:62px}
.lineup-scouting-opponent h2{font-size:1.5rem}
.lineup-scouting-opponent small{color:#9f978a;font-size:.61rem}
.lineup-scouting-fixture-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  min-width:0;
}
.lineup-scouting-fixture-facts article{
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
  min-height:54px;
  padding:8px 10px;
  border:1px solid rgba(212,169,79,.16);
  border-radius:9px;
  background:rgba(8,7,5,.62);
}
.lineup-scouting-fixture-facts small{color:#b58a38;font-size:.5rem;font-weight:900;letter-spacing:.09em}
.lineup-scouting-fixture-facts strong{overflow:hidden;color:#eee8dd;font-size:.64rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-scroll{gap:9px;max-height:calc(90vh - 94px);padding:10px 12px 12px}
.lineup-scouting-opening{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(420px,1.28fr);gap:9px}
.lineup-scouting-brief,
.lineup-scouting-last,
.lineup-scouting-trends,
.lineup-scouting-card,
.lineup-scouting-h2h{
  border-color:rgba(212,169,79,.16);
  border-radius:11px;
  background:#15130e;
}
.lineup-scouting-brief{display:grid;align-content:center;gap:7px;padding:12px 14px}
.lineup-scouting-brief>small{color:#d4a94f;font-size:.54rem;font-weight:900;letter-spacing:.1em}
.lineup-scouting-brief>p{margin:0;color:#d6cec1;font-size:.66rem;line-height:1.48}
.lineup-scouting-last{padding:10px 12px}
.lineup-scouting-last>header{margin-bottom:7px}
.lineup-scouting-last>header button{padding:6px 9px;background:#241e12}
.lineup-scouting-match{min-height:45px;padding:7px 9px;background:#0d0c09}
.lineup-scouting-match em{color:#f2d895;font-size:1.05rem}
.lineup-scouting-trends{padding:11px 12px}
.lineup-scouting-trends>div:last-child{gap:7px}
.lineup-scouting-trend{padding:8px 9px;border:1px solid rgba(212,169,79,.10);background:#0d0c09}
.lineup-scouting-trend>header{margin-bottom:6px}
.lineup-scouting-bar>i{height:6px;background:#2a2419}
.lineup-scouting-bar>i>b{background:linear-gradient(90deg,#876522,#e3c371)}
.lineup-scouting-two-col{gap:9px}
.lineup-scouting-card,.lineup-scouting-h2h{padding:11px 12px}
.lineup-scouting-unavailable,.lineup-scouting-assessment article{background:#0d0c09}
.lineup-scouting-record b{background:#241e12}
.lineup-scouting-record b:last-child span{color:#e48b94}

#profileLineupPanel .lineup-tactics-workspace>.tc5-screen,
#profileLineupPanel .tc5-screen{
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:7px;
  width:100%;
  height:100%;
  min-height:0;
}
#profileLineupPanel .tc5-match-context{
  display:grid;
  grid-template-columns:minmax(150px,.34fr) minmax(0,1fr);
  align-items:center;
  gap:8px;
  min-width:0;
  padding:0 4px;
}
#profileLineupPanel .tc5-context-heading{display:grid;gap:2px;min-width:0;padding:4px}
#profileLineupPanel .tc5-context-heading>span{color:#d4a94f;font-size:.52rem;font-weight:950;letter-spacing:.11em}
#profileLineupPanel .tc5-context-heading>strong{overflow:hidden;color:#a8a094;font-size:.55rem;text-overflow:ellipsis;white-space:nowrap}
#profileLineupPanel .tc5-match-context .tc5-next-match-summary{
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:4px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
#profileLineupPanel .tc5-match-context .tc5-meta{
  min-height:44px;
  padding:5px 8px;
  border:1px solid rgba(212,169,79,.15);
  border-radius:8px;
  background:rgba(14,12,8,.66);
}
#profileLineupPanel .tc5-match-context .tc5-meta>span{font-size:.49rem}
#profileLineupPanel .tc5-match-context .tc5-meta>b{font-size:.62rem}
#profileLineupPanel .tc5-screen>.tactical-centre-v5{
  display:grid;
  grid-template-rows:minmax(0,1fr);
  height:auto;
  min-height:0;
  padding:7px;
  border:1px solid rgba(212,169,79,.22);
  border-radius:13px;
  background:rgba(15,13,9,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
#profileLineupPanel .tc5-screen .tc5-form{height:100%;min-height:0}
#profileLineupPanel .tc5-screen .tc5-workspace-panel{border-radius:9px;background:#0b0a07}
#profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-columns:minmax(245px,.78fr) minmax(330px,1.22fr);gap:7px;padding:7px}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){padding:8px;border-color:rgba(212,169,79,.14);border-radius:10px;background:#15130e}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{min-height:25px;margin-bottom:5px;padding:0 2px;background:transparent!important}
#profileLineupPanel .tc5-screen .tc5-starting-list{gap:3px}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
  min-height:40px;
  padding:3px 6px;
  border-color:rgba(212,169,79,.10);
  border-radius:7px;
  background:#100f0c;
}
#profileLineupPanel .tc5-screen .tc5-control-label{gap:7px}
#profileLineupPanel .tc5-screen .tc5-field-icon{width:18px;height:18px;filter:saturate(.72) sepia(.12)}
#profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){min-height:32px!important;border-radius:6px!important}
#profileLineupPanel .tc5-screen .tc5-reaction-list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(5,minmax(64px,1fr));
  gap:4px;
  height:calc(100% - 30px);
  align-content:stretch;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card{
  grid-template-columns:26px minmax(0,1fr) auto;
  min-height:64px;
  padding:4px 6px 4px 8px;
  border-color:rgba(212,169,79,.13);
  border-radius:7px;
  background:#100f0c;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card:hover,
#profileLineupPanel .tc5-screen .tc5-reaction-card:focus-visible{border-color:rgba(229,195,119,.45);background:#1d190f}
#profileLineupPanel .tc5-screen .tc5-reaction-card.enabled{border-color:rgba(212,169,79,.48);background:#211b10}
#profileLineupPanel .tc5-screen .tc5-reaction-card::before,
#profileLineupPanel .tc5-screen .tc5-reaction-card.timed-blue::before,
#profileLineupPanel .tc5-screen .tc5-reaction-card.timed-yellow::before{width:2px;background:#a98233}
#profileLineupPanel .tc5-screen .tc5-reaction-card.danger::before{background:#b64f59}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{width:23px;height:23px;border-radius:6px;background:#211b10}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:18px;height:18px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.64rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{font-size:.46rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{font-size:.43rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i{font-size:.44rem}
#profileLineupPanel .tc5-screen .tc5-bottom-bar{margin-top:4px;padding:5px 2px 0;border:0;background:transparent}

@media(max-width:900px){
  .lineup-scouting-title{grid-template-columns:minmax(0,1fr) 40px}
  .lineup-scouting-fixture-facts{grid-column:1/-1;grid-row:2}
  .lineup-scouting-opening{grid-template-columns:1fr}
  #profileLineupPanel .tc5-match-context{grid-template-columns:1fr}
}
@media(max-width:760px){
  .lineup-scouting-fixture-facts{grid-template-columns:1fr}
  .lineup-scouting-content{max-height:94vh}
  .lineup-scouting-scroll{max-height:calc(94vh - 255px)}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-columns:1fr;grid-template-rows:none}
}

/* 3.0A.50.37 — scouting dossier, tactical command board, and matched squad surfaces. */
@media(min-width:1121px){
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupSidePanel,#lineupAvailablePanel){
    position:relative;
    box-sizing:border-box;
    height:100%;
    min-height:0;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupSidePanel>.lineup-bench-panel,#lineupAvailablePanel>.lineup-available-panel){
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    box-sizing:border-box;
    width:auto;
    height:auto;
    min-height:0;
    max-height:none;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(.lineup-bench-panel>.lineup-side-heading,.lineup-available-panel>.lineup-panel-summary){
    flex:0 0 64px;
    box-sizing:border-box;
    min-height:64px!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-bench-panel>#lineupBench,
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-registered-content{
    flex:1 1 0;
    box-sizing:border-box;
    min-height:0;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-registered-content{display:flex;flex-direction:column}
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-registered-content>.lineup-available-grid{flex:1 1 0;min-height:0}
}

.lineup-scouting-content{
  width:min(1360px,96vw);
  border:1px solid rgba(212,169,79,.52);
  border-radius:18px;
  background:#090806;
  box-shadow:0 28px 90px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,243,207,.05);
}
.lineup-scouting-title{
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(290px,1.08fr) minmax(450px,1.2fr) 104px 42px;
  gap:16px;
  min-height:118px;
  overflow:hidden;
  padding:18px 20px;
  background:#17130c url('/management-backgrounds/page-tactics.webp') center 43%/cover no-repeat;
}
.lineup-scouting-title::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:rgba(8,7,5,.86);
}
.lineup-scouting-title::after{
  content:"SCOUTING DEPARTMENT";
  position:absolute;
  z-index:-1;
  right:178px;
  bottom:-8px;
  color:rgba(229,195,119,.055);
  font:950 2.35rem var(--display);
  letter-spacing:.04em;
  white-space:nowrap;
}
.lineup-scouting-opponent{gap:16px}
.lineup-scouting-opponent .mc-hub-club-logo{
  width:74px;
  height:74px;
  filter:drop-shadow(0 8px 14px rgba(0,0,0,.5));
}
.lineup-scouting-opponent .eyebrow{font-size:.58rem;letter-spacing:.14em}
.lineup-scouting-opponent h2{margin-top:4px;font-size:1.78rem;line-height:.95;letter-spacing:.01em}
.lineup-scouting-opponent small{margin-top:3px;color:#bdb4a4;font-size:.62rem}
.lineup-scouting-fixture-facts{gap:8px}
.lineup-scouting-fixture-facts article{
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  min-height:64px;
  padding:9px 11px;
  border-color:rgba(212,169,79,.24);
  border-radius:8px;
  background:rgba(8,7,5,.78);
}
.lineup-scouting-fixture-facts article>img{width:23px;height:23px;object-fit:contain;filter:grayscale(1) sepia(1) saturate(3.2) brightness(.92)}
.lineup-scouting-fixture-facts article>span{display:grid;gap:4px;min-width:0}
.lineup-scouting-fixture-facts small{font-size:.49rem;letter-spacing:.12em}
.lineup-scouting-fixture-facts strong{font-size:.66rem}
.lineup-scouting-evidence-seal{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:64px;
  border:1px solid rgba(229,195,119,.42);
  border-radius:50%;
  background:#241c0d;
  color:#f0d79b;
  transform:rotate(-3deg);
}
.lineup-scouting-evidence-seal strong{font:950 1.45rem var(--display)}
.lineup-scouting-evidence-seal span{font-size:.46rem;font-weight:950;letter-spacing:.08em;line-height:1.2}
.lineup-scouting-title>button{align-self:start}
.lineup-scouting-scroll{gap:10px;max-height:calc(92vh - 118px);padding:12px 14px 14px;background:#090806}
.lineup-scouting-opening{grid-template-columns:minmax(330px,1.14fr) minmax(290px,.86fr);gap:10px}
.lineup-scouting-brief,
.lineup-scouting-shape,
.lineup-scouting-last,
.lineup-scouting-trends,
.lineup-scouting-card,
.lineup-scouting-h2h{
  border:1px solid rgba(212,169,79,.2);
  border-radius:10px;
  background:#15120c;
  box-shadow:inset 0 1px 0 rgba(255,243,207,.025);
}
.lineup-scouting-brief{align-content:start;gap:7px;padding:16px 18px}
.lineup-scouting-brief .lineup-scouting-kicker{color:#a77f32;font-size:.5rem;font-weight:950;letter-spacing:.15em}
.lineup-scouting-brief>h3{color:#f1e0b5;font:900 1rem var(--display);letter-spacing:.025em}
.lineup-scouting-brief>p{max-width:70ch;color:#d8d0c2;font-size:.69rem;line-height:1.58}
.lineup-scouting-brief-facts{display:flex;flex-wrap:wrap;gap:14px;margin-top:5px}
.lineup-scouting-brief-facts b{color:#9f978a;font-size:.53rem;font-weight:750}
.lineup-scouting-brief-facts b span{margin-right:4px;color:#e5c377;font-size:.78rem;font-weight:950}
.lineup-scouting-shape{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(150px,1fr);align-items:center;gap:12px;padding:12px}
.lineup-scouting-shape-copy{display:grid;gap:5px}
.lineup-scouting-shape-copy small{color:#a77f32;font-size:.48rem;font-weight:950;letter-spacing:.13em}
.lineup-scouting-shape-copy strong{color:#fff5db;font:950 1.7rem var(--display)}
.lineup-scouting-shape-copy p{margin:0;color:#a9a093;font-size:.55rem;line-height:1.42}
.lineup-scouting-shape-board{position:relative;justify-self:end;width:min(100%,190px);aspect-ratio:1.42;overflow:hidden;border:1px solid rgba(229,221,194,.28);border-radius:7px;background:#16351d}
.lineup-scouting-shape-board>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.58;filter:saturate(.65) brightness(.62)}
.lineup-scouting-shape-board>i{position:absolute;left:var(--shape-x);top:var(--shape-y);width:8px;height:8px;border:2px solid #f3dfaa;border-radius:50%;background:#9c7428;box-shadow:0 2px 5px rgba(0,0,0,.7);transform:translate(-50%,-50%)}
.lineup-scouting-shape-board>i.keeper{background:#6d2630;border-color:#f1bcc1}
.lineup-scouting-last{grid-column:1/-1;padding:9px 12px}
.lineup-scouting-last>header{margin-bottom:6px}
.lineup-scouting-last>header button{background:#2a2112}
.lineup-scouting-match{min-height:43px;background:#0b0906}
.lineup-scouting-trends{padding:13px 14px}
.lineup-scouting-section-title>span{display:grid;gap:3px}
.lineup-scouting-section-title small{color:#8f6b2a;font-size:.46rem;font-weight:950;letter-spacing:.14em}
.lineup-scouting-section-title>b{color:#8f8779;font-size:.52rem;font-weight:700}
.lineup-scouting-trends>div:last-child{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.lineup-scouting-trend{padding:10px;border:1px solid rgba(212,169,79,.12);border-radius:8px;background:#0c0a07}
.lineup-scouting-trend>header h3{color:#f0d79b}
.lineup-scouting-bar{grid-template-columns:20px minmax(68px,.58fr) minmax(50px,1fr) 36px;gap:6px}
.lineup-scouting-rank{color:#5f5543;font-size:.47rem;font-weight:900}
.lineup-scouting-bar>i{height:5px;background:#2b2418}
.lineup-scouting-bar>i>b{background:#b98b35}
.lineup-scouting-two-col{gap:10px}
.lineup-scouting-card,.lineup-scouting-h2h{padding:12px 14px}
.lineup-scouting-unavailable,.lineup-scouting-assessment article{border-radius:7px;background:#0c0a07}
.lineup-scouting-assessment .strength{box-shadow:inset 3px 0 #9b7734}
.lineup-scouting-assessment .weakness{box-shadow:inset 3px 0 #853740}
.lineup-scouting-record b{border-radius:5px;background:#282012}

#profileLineupPanel .tc5-screen{gap:8px}
#profileLineupPanel .tc5-match-context{
  grid-template-columns:minmax(175px,.34fr) minmax(0,1fr);
  gap:9px;
  padding:5px 7px;
  border:1px solid rgba(212,169,79,.19);
  border-radius:10px;
  background:#100e0a;
}
#profileLineupPanel .tc5-context-heading{gap:1px;padding:3px 7px}
#profileLineupPanel .tc5-context-heading>small{color:#7f6940;font-size:.45rem;font-weight:950;letter-spacing:.16em}
#profileLineupPanel .tc5-context-heading>span{font:950 .75rem var(--display);letter-spacing:.055em}
#profileLineupPanel .tc5-context-heading>strong{font-size:.5rem;font-weight:650}
#profileLineupPanel .tc5-match-context .tc5-meta{min-height:42px;border-radius:6px;background:#17130c}
#profileLineupPanel .tc5-screen>.tactical-centre-v5{
  position:relative;
  isolation:isolate;
  padding:8px;
  overflow:hidden;
  border-color:rgba(212,169,79,.28);
  background:#0d0b08;
}
#profileLineupPanel .tc5-screen>.tactical-centre-v5::before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0;
  background:#0d0b08 url('/management-backgrounds/page-tactics.webp') center/cover no-repeat;
  opacity:.16;
}
#profileLineupPanel .tc5-screen>.tactical-centre-v5::after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:rgba(7,6,4,.82);
}
#profileLineupPanel .tc5-screen .tc5-workspace-panel{overflow:hidden;border:1px solid rgba(212,169,79,.14);border-radius:9px;background:rgba(8,7,5,.82)}
#profileLineupPanel .tc5-screen .tc5-left-columns{
  grid-template-columns:1fr;
  grid-template-rows:minmax(188px,.9fr) minmax(220px,1.1fr);
  gap:7px;
  box-sizing:border-box;
  height:100%;
  min-height:0;
  padding:7px;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){
  height:100%;
  min-height:0;
  padding:9px 10px;
  overflow:visible;
  border-color:rgba(212,169,79,.19);
  border-radius:8px;
  background:rgba(20,17,11,.94);
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
  min-height:42px;
  margin:0 0 7px;
  padding:0 3px!important;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:3px 8px;min-width:0}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>small{color:#8f6b2a;font-size:.43rem;font-weight:950;letter-spacing:.14em}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>span{font:950 .78rem var(--display);letter-spacing:.05em}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p{grid-column:1/-1;margin:0;color:#8f8779;font-size:.48rem}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>b{color:#9d8f73;font-size:.47rem;letter-spacing:.08em}
#profileLineupPanel .tc5-screen .tc5-starting-list{
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(62px,1fr));
  gap:6px;
  height:calc(100% - 49px);
  max-height:none;
  overflow:visible;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
  grid-template-columns:1fr;
  grid-template-rows:auto minmax(31px,1fr);
  align-items:center;
  gap:4px;
  min-height:62px;
  padding:6px 7px;
  border-color:rgba(212,169,79,.14);
  border-radius:6px;
  background:#0e0c08;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control:is(:hover,:focus-within){border-color:rgba(229,195,119,.42);background:#17130c}
#profileLineupPanel .tc5-screen .tc5-control-label{gap:6px}
#profileLineupPanel .tc5-screen .tc5-control-label>span{color:#d4c8b3;font-size:.53rem;font-weight:850}
#profileLineupPanel .tc5-screen .tc5-field-icon{width:16px;height:16px}
#profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){min-height:31px!important;padding:5px 7px!important;border-radius:5px!important;font-size:.59rem!important}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:auto 31px}
#profileLineupPanel .tc5-screen .tc5-switch-control .tc5-tactic-switch{align-self:center;justify-self:start}
#profileLineupPanel .tc5-screen .tc5-reaction-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(51px,1fr));
  gap:5px;
  height:calc(100% - 49px);
  max-height:none;
  overflow:visible;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card{
  grid-template-columns:30px minmax(0,1fr) auto;
  min-height:51px;
  padding:5px 7px 5px 9px;
  border-color:rgba(212,169,79,.14);
  border-radius:6px;
  background:#0e0c08;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card::before{width:3px;background:#8c6928}
#profileLineupPanel .tc5-screen .tc5-reaction-card.danger::before{background:#87343e}
#profileLineupPanel .tc5-screen .tc5-reaction-card:is(:hover,:focus-visible){border-color:rgba(229,195,119,.48);background:#1b160d;outline:none}
#profileLineupPanel .tc5-screen .tc5-reaction-card.enabled{border-color:rgba(212,169,79,.52);background:#20190d}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{width:27px;height:27px;border-radius:50%;background:#251d0f}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:20px;height:20px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.6rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{font-size:.44rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{font-size:.41rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i{display:grid;gap:2px;padding:0;color:#a89c86;font-style:normal;text-align:right}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i>b{color:#e5c377;font-size:.43rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i>small{color:#756b5b;font-size:.36rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
#profileLineupPanel .tc5-screen .tc5-clear-reactions{box-sizing:border-box;margin:0 5px 0 0;padding:6px 8px;border-radius:5px;background:#281012;font-size:.46rem}
#profileLineupPanel .tc5-screen .tc5-bottom-bar{display:block;margin-top:5px;padding:0;border:0;background:transparent}
#profileLineupPanel .tc5-screen .tc5-save-cluster{
  display:grid;
  grid-template-columns:minmax(0,1fr) 134px;
  align-items:center;
  gap:10px;
  width:100%;
  padding:0;
  text-align:left;
}
#profileLineupPanel .tc5-screen .tc5-save-cluster>button{grid-column:2;grid-row:1;min-height:38px;border-radius:6px}
#profileLineupPanel .tc5-screen .tc5-save-cluster .tc5-save-message{grid-column:1;grid-row:1;width:auto;padding:0 8px;text-align:left}
#profileLineupPanel .tc5-screen .tc5-save-cluster .tc5-save-message::before{content:"PLAN STATUS · ";color:#8f6b2a;font-weight:950;letter-spacing:.08em}

@media(max-width:1100px){
  .lineup-scouting-title{grid-template-columns:minmax(260px,1fr) minmax(360px,1.2fr) 42px}
  .lineup-scouting-evidence-seal{display:none}
  .lineup-scouting-trends>div:last-child{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1121px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:minmax(128px,.82fr) minmax(176px,1.18fr)}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){padding:6px 7px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{min-height:32px;margin-bottom:4px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p{display:none}
  #profileLineupPanel .tc5-screen .tc5-starting-list,
  #profileLineupPanel .tc5-screen .tc5-reaction-list{flex:1 1 0;height:auto;min-height:0}
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-rows:repeat(2,minmax(35px,1fr))}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-rows:repeat(3,minmax(37px,1fr))}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
    grid-template-columns:minmax(64px,.72fr) minmax(88px,1.28fr);
    grid-template-rows:1fr;
    min-height:35px;
    padding:2px 5px;
  }
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:1fr}
  #profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){min-height:29px!important;padding-block:3px!important}
  #profileLineupPanel .tc5-screen .tc5-reaction-card{min-height:37px;padding-block:2px}
  #profileLineupPanel .tc5-screen .tc5-bottom-bar{
    box-sizing:border-box;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    margin-top:5px!important;
    padding:3px!important;
  }
  #profileLineupPanel .tc5-screen .tc5-save-cluster>button{min-height:35px}
}
@media(max-width:760px){
  .lineup-scouting-title{grid-template-columns:minmax(0,1fr) 42px}
  .lineup-scouting-title::after{display:none}
  .lineup-scouting-fixture-facts{grid-column:1/-1;grid-template-columns:1fr}
  .lineup-scouting-opening,.lineup-scouting-shape,.lineup-scouting-two-col,.lineup-scouting-trends>div:last-child{grid-template-columns:1fr}
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-columns:1fr 1fr;grid-template-rows:none;height:auto}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-columns:1fr;grid-template-rows:none;height:auto}
}

/* 3.0A.50.38 — authored scouting instruments and a cleaner tactical studio. */
#profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupBench,#lineupAvailable){
  align-content:start;
  grid-auto-rows:68px;
  gap:7px;
}

/* Tactics context: three deliberate windows, without an enclosing title card. */
#profileLineupPanel .tc5-screen{
  grid-template-rows:72px minmax(0,1fr);
  gap:10px;
}
#profileLineupPanel .tc5-next-match-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  align-items:stretch;
  gap:10px;
  box-sizing:border-box;
  width:100%;
  min-height:72px;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta{
  display:grid;
  align-content:center;
  gap:7px;
  min-width:0;
  min-height:72px;
  padding:10px 14px;
  border:1px solid rgba(212,169,79,.28);
  border-radius:10px;
  background:linear-gradient(110deg,rgba(31,25,15,.96),rgba(14,12,8,.98));
  box-shadow:inset 0 1px 0 rgba(255,243,207,.045);
  color:#fbf7ef;
  text-align:left;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#d4a94f;
  font-size:.6rem;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>b{
  overflow:hidden;
  color:#fff7e7;
  font-size:.82rem;
  font-weight:850;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta-icon{
  width:25px;
  height:25px;
  filter:none!important;
}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta{cursor:pointer;transition:border-color .2s ease,background .2s ease,transform .16s ease}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta:is(:hover,:focus-visible){border-color:rgba(240,215,155,.68);background:#272011;outline:2px solid rgba(240,215,155,.3);outline-offset:2px}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta:active{transform:translateY(1px)}
#profileLineupPanel .tc5-next-match-summary>em{align-self:center;padding:7px 9px;border-radius:6px;background:#281012;color:#f0a0aa;font-size:.6rem;font-style:normal;font-weight:850}
#profileLineupPanel .tc5-next-match-summary>em.is-takeover-lock{background:rgba(116,82,24,.34);color:#f0d79b;line-height:1.35;text-align:center}

#profileLineupPanel .tc5-screen>.tactical-centre-v5{padding:9px;border-radius:13px}
#profileLineupPanel .tc5-screen .tc5-form{
  display:grid;
  grid-template-rows:minmax(0,1fr) 64px;
  height:100%;
  min-height:0;
}
#profileLineupPanel .tc5-screen .tc5-workspace-panel{
  overflow:hidden;
  border-color:rgba(212,169,79,.18);
  border-radius:10px;
  background:rgba(7,6,4,.78);
}
#profileLineupPanel .tc5-screen .tc5-left-columns{
  display:grid;
  grid-template-columns:1fr;
  grid-template-rows:minmax(150px,.82fr) minmax(210px,1.18fr);
  align-items:stretch;
  gap:10px;
  box-sizing:border-box;
  height:100%;
  min-height:0;
  padding:10px;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){
  box-sizing:border-box;
  height:auto;
  min-height:0;
  padding:6px 8px;
  overflow:visible;
  border:1px solid rgba(212,169,79,.21)!important;
  border-radius:9px;
  background:rgba(19,16,10,.96)!important;
  box-shadow:inset 0 1px 0 rgba(255,243,207,.025)!important;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:30px;
  margin:0 0 4px;
  padding:0 3px!important;
  border:0!important;
  background:transparent!important;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>span{
  color:#edcf83!important;
  font:950 1rem/1 var(--display);
  letter-spacing:.045em;
}
#profileLineupPanel .tc5-screen .tc5-starting-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(48px,1fr));
  gap:5px;
  flex:1 1 auto;
  height:auto;
  min-height:0;
  overflow:visible;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
  display:grid;
  grid-template-columns:minmax(80px,.85fr) minmax(95px,1.15fr);
  grid-template-rows:1fr;
  align-items:center;
  gap:6px;
  min-height:48px;
  padding:4px 6px;
  border:1px solid rgba(212,169,79,.16);
  border-radius:7px;
  background:#0d0b07;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control:is(:hover,:focus-within){border-color:rgba(229,195,119,.5);background:#17130c}
#profileLineupPanel .tc5-screen .tc5-control-label{gap:8px}
#profileLineupPanel .tc5-screen .tc5-control-label>span{
  color:#eee5d4;
  font-size:.67rem;
  font-weight:850;
  line-height:1.15;
}
#profileLineupPanel .tc5-screen .tc5-field-icon{width:23px;height:23px}
#profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){
  min-height:34px!important;
  padding:6px 9px!important;
  border-radius:6px!important;
  font-size:.69rem!important;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:1fr}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control .tc5-tactic-switch{align-self:center;justify-self:start}

#profileLineupPanel .tc5-screen .tc5-automation{
  width:min(88%,900px);
  margin-left:auto;
}
#profileLineupPanel .tc5-screen .tc5-clear-reactions{
  box-sizing:border-box;
  min-height:30px;
  margin:0;
  padding:6px 10px;
  border-radius:6px;
  background:#281012;
  font-size:.53rem;
}
#profileLineupPanel .tc5-screen .tc5-reaction-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(60px,1fr));
  gap:5px;
  flex:1 1 auto;
  height:auto;
  min-height:0;
  max-height:none;
  overflow:visible;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card{
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:9px;
  min-height:60px;
  padding:7px 8px 7px 10px;
  border-color:rgba(212,169,79,.18);
  border-radius:7px;
  background:#0d0b07;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{width:34px;height:34px;border-radius:8px;background:#251d0f}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:25px;height:25px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.72rem;line-height:1.12}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{margin-top:2px;font-size:.53rem;line-height:1.2}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{margin-top:2px;font-size:.49rem;line-height:1.15}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i{align-self:start;gap:3px;padding-top:1px}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i>b{font-size:.49rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card>i>small{font-size:.4rem}

#profileLineupPanel .tc5-screen .tc5-bottom-bar{
  box-sizing:border-box;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
  height:64px;
  min-height:64px;
  margin:0;
  padding:7px 10px 0;
  border:0;
  background:transparent;
}
#profileLineupPanel .tc5-screen .tc5-save-cluster{
  display:grid;
  grid-template-columns:minmax(160px,190px);
  grid-template-rows:39px auto;
  justify-items:stretch;
  gap:4px;
  width:190px;
  padding:0;
  text-align:center;
}
#profileLineupPanel .tc5-screen .tc5-save-cluster>button{
  grid-column:1;
  grid-row:1;
  min-height:39px;
  border-radius:7px;
}
#profileLineupPanel .tc5-screen .tc5-save-cluster .tc5-save-message{
  grid-column:1;
  grid-row:2;
  width:100%;
  margin:0;
  padding:0;
  font-size:.48rem;
  line-height:1.15;
  text-align:center;
}
#profileLineupPanel .tc5-screen .tc5-save-cluster .tc5-save-message::before{content:""}

/* Scouting dossier: authored badge, natural formation spacing and editorial type. */
.lineup-scouting-content{width:min(1420px,96vw)}
.lineup-scouting-title{
  grid-template-columns:minmax(300px,.95fr) minmax(520px,1.35fr) 164px 42px;
  gap:16px;
  min-height:130px;
  padding:20px 22px;
}
.lineup-scouting-opponent .mc-hub-club-logo{width:78px;height:78px}
.lineup-scouting-opponent .eyebrow{font-size:.63rem}
.lineup-scouting-opponent h2{font-size:1.95rem}
.lineup-scouting-opponent small{font-size:.72rem}
.lineup-scouting-fixture-facts{gap:10px}
.lineup-scouting-fixture-facts article{
  grid-template-columns:31px minmax(0,1fr);
  min-height:72px;
  padding:10px 12px;
  border-color:rgba(212,169,79,.3);
  background:rgba(8,7,5,.84);
}
.lineup-scouting-fixture-facts article>img{width:28px;height:28px;filter:none}
.lineup-scouting-fixture-facts article>span{gap:5px}
.lineup-scouting-fixture-facts small{font-size:.56rem}
.lineup-scouting-fixture-facts strong{font-size:.76rem}
.lineup-scouting-evidence-seal{
  position:relative;
  display:grid;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:8px;
  box-sizing:border-box;
  min-height:76px;
  padding:7px 11px 7px 8px;
  border:1px solid rgba(229,195,119,.5);
  border-radius:11px 18px 11px 18px;
  background:linear-gradient(125deg,#251b0c,#120e08);
  color:#f0d79b;
  box-shadow:inset 0 1px 0 rgba(255,243,207,.07);
  transform:none;
}
.lineup-scouting-evidence-seal::after{
  content:"VERIFIED SAMPLE";
  position:absolute;
  right:10px;
  bottom:5px;
  color:#78633a;
  font-size:.34rem;
  font-weight:900;
  letter-spacing:.09em;
}
.lineup-scouting-evidence-seal>img{width:58px;height:58px}
.lineup-scouting-evidence-seal>span{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:6px;min-width:0}
.lineup-scouting-evidence-seal>span>strong{font:950 1.65rem/1 var(--display)}
.lineup-scouting-evidence-seal>span>small{font-size:.5rem;font-weight:950;letter-spacing:.08em;line-height:1.15}
.lineup-scouting-scroll{gap:11px;max-height:calc(92vh - 130px);padding:13px 15px 15px}
.lineup-scouting-opening{grid-template-columns:minmax(390px,1.15fr) minmax(350px,.85fr);gap:11px}
.lineup-scouting-brief{gap:9px;padding:18px 20px}
.lineup-scouting-brief .lineup-scouting-kicker{font-size:.57rem}
.lineup-scouting-brief>h3{font-size:1.08rem}
.lineup-scouting-brief>p{font-size:.79rem;line-height:1.58}
.lineup-scouting-brief-facts{gap:18px;margin-top:7px}
.lineup-scouting-brief-facts b{font-size:.61rem}
.lineup-scouting-brief-facts b span{font-size:.9rem}
.lineup-scouting-shape{grid-template-columns:minmax(150px,.68fr) minmax(220px,1fr);gap:16px;padding:14px 16px}
.lineup-scouting-shape-copy{gap:7px}
.lineup-scouting-shape-copy small{font-size:.55rem}
.lineup-scouting-shape-copy strong{font-size:1.95rem}
.lineup-scouting-shape-copy p{font-size:.64rem;line-height:1.48}
.lineup-scouting-shape-board{width:min(100%,250px);aspect-ratio:240/164;border-color:rgba(229,221,194,.38);border-radius:9px;background:#102b18}
.lineup-scouting-shape-board>img{opacity:1;filter:none}
.lineup-scouting-shape-board>i{width:9px;height:9px;border-width:2px;background:#9c7428;box-shadow:0 0 0 2px rgba(18,13,7,.68),0 3px 6px rgba(0,0,0,.7)}
.lineup-scouting-shape-board>i.keeper{background:#792b36;border-color:#f1bcc1}
.lineup-scouting-trends{padding:15px 16px}
.lineup-scouting-section-title small{font-size:.54rem}
.lineup-scouting-section-title>span h3{font-size:.84rem}
.lineup-scouting-section-title>b{font-size:.6rem}
.lineup-scouting-trends>div:last-child{gap:10px;margin-top:10px}
.lineup-scouting-trend{padding:11px 12px}
.lineup-scouting-trend>header h3{font-size:.68rem}
.lineup-scouting-trend>header span{font-size:.55rem}
.lineup-scouting-bar{grid-template-columns:22px minmax(78px,.58fr) minmax(58px,1fr) 40px;gap:7px}
.lineup-scouting-bar>span{font-size:.64rem}
.lineup-scouting-bar>strong{font-size:.62rem}
.lineup-scouting-rank{font-size:.52rem}
.lineup-scouting-bar>i{height:7px}
.lineup-scouting-results-row{display:grid;grid-template-columns:minmax(360px,.75fr) minmax(520px,1.25fr);gap:11px}
.lineup-scouting-last{grid-column:auto;padding:12px 14px}
.lineup-scouting-last>header{margin-bottom:8px}
.lineup-scouting-last>header button{padding:7px 10px;font-size:.59rem}
.lineup-scouting-h2h{padding:12px 14px}
.lineup-scouting-content h3{font-size:.72rem}
.lineup-scouting-match{min-height:50px;padding:8px 10px}
.lineup-scouting-match small{font-size:.59rem}
.lineup-scouting-match b{font-size:.67rem}
.lineup-scouting-match>strong{font-size:.78rem}
.lineup-scouting-match em{font-size:1.12rem}
.lineup-scouting-two-col{gap:11px}
.lineup-scouting-card{padding:14px 16px}
.lineup-scouting-availability{gap:10px;margin-top:10px}
.lineup-scouting-unavailable{padding:12px}
.lineup-scouting-unavailable article b{font-size:.69rem}
.lineup-scouting-unavailable article span{font-size:.61rem}
.lineup-scouting-unavailable article small{font-size:.6rem}
.lineup-scouting-assessment{gap:10px}
.lineup-scouting-assessment article{display:grid;align-content:center;min-height:96px;padding:13px 14px}
.lineup-scouting-assessment small{font-size:.58rem}
.lineup-scouting-assessment h3{font-size:.82rem}
.lineup-scouting-assessment p{font-size:.69rem;line-height:1.48}
.lineup-scouting-record b{font-size:.7rem}

@media(max-width:1100px){
  .lineup-scouting-title{grid-template-columns:minmax(260px,1fr) minmax(390px,1.25fr) 42px}
  .lineup-scouting-evidence-seal{display:none}
  .lineup-scouting-results-row{grid-template-columns:1fr}
}
@media(min-width:1121px) and (max-height:950px){
  #profileLineupPanel .tc5-screen{grid-template-rows:62px minmax(0,1fr);gap:8px}
  #profileLineupPanel .tc5-next-match-summary{min-height:62px;gap:7px}
  #profileLineupPanel .tc5-next-match-summary .tc5-meta{min-height:62px;padding:7px 10px;gap:4px}
  #profileLineupPanel .tc5-next-match-summary .tc5-meta>span{font-size:.52rem}
  #profileLineupPanel .tc5-next-match-summary .tc5-meta>b{font-size:.7rem}
  #profileLineupPanel .tc5-next-match-summary .tc5-meta-icon{width:21px;height:21px}
  #profileLineupPanel .tc5-screen .tc5-form{grid-template-rows:minmax(0,1fr) 44px!important}
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:minmax(128px,.76fr) minmax(190px,1.24fr);gap:7px;padding:7px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){padding:3px 6px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{min-height:24px;margin-bottom:2px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>span{font-size:.86rem}
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-rows:repeat(2,minmax(44px,1fr));gap:5px;height:auto}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{grid-template-columns:minmax(72px,.85fr) minmax(82px,1.15fr);grid-template-rows:1fr;gap:5px;min-height:44px;padding:4px 6px}
  #profileLineupPanel .tc5-screen .tc5-control-label{gap:5px}
  #profileLineupPanel .tc5-screen .tc5-control-label>span{font-size:.59rem}
  #profileLineupPanel .tc5-screen .tc5-field-icon{width:20px;height:20px}
  #profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){min-height:31px!important;padding:4px 6px!important;font-size:.61rem!important}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:1fr}
  #profileLineupPanel .tc5-screen .tc5-automation{width:min(90%,820px)}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-rows:repeat(3,minmax(50px,1fr));gap:3px;height:auto}
  #profileLineupPanel .tc5-screen .tc5-reaction-card{grid-template-columns:30px minmax(0,1fr) auto;gap:6px;min-height:50px;padding:4px 6px 4px 8px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{width:28px;height:28px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:21px;height:21px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.64rem}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{font-size:.48rem}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{font-size:.44rem}
  #profileLineupPanel .tc5-screen .tc5-bottom-bar{height:44px!important;min-height:44px!important;max-height:44px!important;margin-top:0!important;padding-top:2px}
  #profileLineupPanel .tc5-screen .tc5-save-cluster{grid-template-rows:36px auto}
  #profileLineupPanel .tc5-screen .tc5-save-cluster>button{min-height:36px}
}
@media(max-width:760px){
  #profileLineupPanel .tc5-screen{grid-template-rows:auto auto}
  #profileLineupPanel .tc5-next-match-summary{grid-template-columns:1fr;min-height:0}
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:auto auto;height:auto}
  #profileLineupPanel .tc5-screen .tc5-automation{width:100%}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-columns:1fr;grid-template-rows:none;height:auto}
  .lineup-scouting-opening,.lineup-scouting-shape,.lineup-scouting-results-row{grid-template-columns:1fr}
}

/* Premium football decision surfaces — Tactics, Player Compare and Next Match. */

/* Tactics: a tactical instrument panel, not a settings form. */
#profileLineupPanel .tc5-screen .tc5-left-columns{
  grid-template-rows:minmax(230px,1.08fr) minmax(212px,.92fr);
  gap:10px;
  padding:10px;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){
  padding:11px 13px;
  border-color:rgba(212,169,79,.27);
  border-radius:12px;
  background:linear-gradient(145deg,rgba(25,21,13,.97),rgba(11,9,6,.97));
  box-shadow:inset 0 1px 0 rgba(255,244,211,.045),0 14px 34px rgba(0,0,0,.18);
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{
  min-height:48px;
  margin-bottom:9px;
  padding:0 2px!important;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>small{
  color:#b48a3b;
  font-size:.5rem;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>span{
  color:#f3dfaa;
  font-size:.94rem;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p{
  color:#aaa08e;
  font-size:.58rem;
  line-height:1.35;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>b{
  color:#d6c6a1;
  font-size:.54rem;
}
#profileLineupPanel .tc5-starting>header>img{
  width:92px;
  height:36px;
  object-fit:contain;
  opacity:.94;
}
#profileLineupPanel .tc5-screen .tc5-starting-list{
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(72px,1fr));
  gap:8px;
  height:calc(100% - 57px);
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
  grid-template-columns:minmax(72px,.72fr) minmax(84px,1fr);
  grid-template-rows:auto 34px;
  column-gap:9px;
  row-gap:4px;
  min-height:76px;
  padding:8px 9px;
  overflow:visible;
  border-color:rgba(212,169,79,.22);
  border-radius:9px;
  background:linear-gradient(135deg,#0d0b07,#151108);
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control:is(:hover,:focus-within){
  border-color:rgba(229,195,119,.58);
  background:#19140b;
  box-shadow:inset 3px 0 #b98a35;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control-label{
  grid-column:1;
  grid-row:1;
  gap:7px;
}
#profileLineupPanel .tc5-screen .tc5-control-label>span{
  color:#e5dbc6;
  font-size:.66rem;
}
#profileLineupPanel .tc5-screen .tc5-field-icon{
  width:24px;
  height:24px;
  flex-basis:24px;
}
#profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){
  grid-column:1/-1;
  grid-row:2;
  min-height:34px!important;
  padding:5px 9px!important;
  border-color:rgba(212,169,79,.3)!important;
  border-radius:6px!important;
  background:#080705!important;
  color:#f5ead0!important;
  font-size:.66rem!important;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{
  grid-template-rows:auto 34px;
}
#profileLineupPanel .tc5-screen .tc5-switch-control .tc5-tactic-switch{
  grid-column:1/-1;
  grid-row:2;
  justify-self:stretch;
  justify-content:space-between;
  min-height:34px;
  padding:0 9px;
  border:1px solid rgba(212,169,79,.3);
  border-radius:6px;
  background:#080705;
}

/* Reactions use an event rail, match timeline, and discipline rail. */
#profileLineupPanel .tc5-screen .tc5-automation{width:100%}
#profileLineupPanel .tc5-screen .tc5-reaction-list{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);
  grid-template-rows:1fr;
  gap:10px;
  height:calc(100% - 57px);
}
#profileLineupPanel .tc5-reaction-list>section{
  position:relative;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  gap:6px;
  min-width:0;
  padding:8px;
  border:1px solid rgba(212,169,79,.14);
  border-radius:9px;
  background:rgba(7,6,4,.62);
}
#profileLineupPanel .tc5-reaction-list>section>small{
  color:#8f7950;
  font-size:.47rem;
  font-weight:950;
  letter-spacing:.12em;
}
#profileLineupPanel :is(.tc5-reaction-events,.tc5-reaction-discipline)>div{
  display:grid;
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:6px;
}
#profileLineupPanel .tc5-reaction-timeline>div{
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:5px;
  align-items:stretch;
}
#profileLineupPanel .tc5-reaction-timeline>div::before{
  content:"";
  position:absolute;
  z-index:0;
  left:8%;
  right:8%;
  top:31px;
  height:2px;
  background:linear-gradient(90deg,#866526,#e5c377,#866526);
  opacity:.55;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card{
  position:relative;
  z-index:1;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:7px;
  min-height:64px;
  padding:7px 8px 7px 10px;
  border-color:rgba(212,169,79,.2);
  border-radius:8px;
  background:#100d08;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card::before{width:3px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{
  width:31px;
  height:31px;
  border:1px solid rgba(212,169,79,.22);
  background:#261e0f;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:24px;height:24px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.67rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{font-size:.5rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{
  display:block;
  margin-top:3px;
  color:#8f8779;
  font-size:.46rem;
  line-height:1.22;
}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{
  grid-template-columns:1fr;
  grid-template-rows:35px auto auto;
  align-content:start;
  justify-items:center;
  gap:3px;
  padding:5px 4px 6px;
  text-align:center;
}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card::before{inset:auto 15% 0;width:auto;height:3px}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-icon-wrap{grid-row:1;width:33px;height:33px;background:#171108}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy{grid-row:2}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy strong{font-size:.57rem}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy span{font-size:.42rem}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy small{display:none}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card>i{grid-row:3;text-align:center}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card>i>small{display:none}
#profileLineupPanel .tc5-screen .tc5-clear-reactions{margin:0;padding:7px 9px;font-size:.51rem}

/* Compare: mirrored football decision board with a shared profile radar. */
.squad-comparison-content{
  width:min(1320px,96vw);
  max-height:94vh;
  padding:20px;
  border-color:rgba(212,169,79,.5);
  background:radial-gradient(circle at 50% 0,rgba(118,87,33,.13),transparent 35%),#090806;
}
.squad-comparison-content>header.squad-compare-title h2{font-size:1.75rem}
.squad-comparison-content>header.squad-compare-title small{display:block;margin-top:4px;color:#9f9687;font-size:.67rem}
.squad-compare-selectors{margin:9px 0 11px}
.squad-compare-selectors>span{align-self:center;padding:0;color:#e5c377;font-size:1rem}
.squad-comparison-content .squad-compare-player{
  min-height:96px;
  border-color:rgba(212,169,79,.3)!important;
  border-radius:13px;
  background:linear-gradient(135deg,#18140d,#0c0a07)!important;
}
.squad-comparison-content .squad-compare-player>button{
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:13px;
  padding:11px 13px;
}
.squad-comparison-content .squad-compare-player img{width:72px;height:72px;border-radius:10px}
.squad-comparison-content .squad-compare-player small{font-size:.57rem}
.squad-comparison-content .squad-compare-player strong{font-size:.9rem}
.squad-comparison-content .squad-compare-player em{font-size:.64rem}
.squad-comparison-content .squad-compare-player button>b{font-size:2rem}
.squad-compare-command{
  display:grid;
  grid-template-columns:minmax(130px,.55fr) minmax(270px,1.3fr) minmax(130px,.55fr);
  align-items:center;
  gap:18px;
  min-height:190px;
  margin:12px 0;
  padding:12px 20px;
  border:1px solid rgba(212,169,79,.22);
  border-radius:14px;
  background:linear-gradient(90deg,rgba(37,25,11,.78),rgba(8,7,5,.62) 35%,rgba(8,7,5,.62) 65%,rgba(56,18,24,.42));
}
.squad-compare-command>article{display:grid;justify-items:center;gap:3px;text-align:center}
.squad-compare-command>article small{color:#9b8250;font-size:.52rem;font-weight:950;letter-spacing:.12em}
.squad-compare-command>article strong{color:#f4dda2;font:950 3.2rem/1 var(--display)}
.squad-compare-command>article.is-right strong{color:#e38a96}
.squad-compare-command>article span{max-width:180px;overflow:hidden;color:#d9d0c0;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
.squad-compare-radar{position:relative;justify-self:center;width:210px;height:184px}
.squad-compare-radar>img,.squad-compare-radar>svg{position:absolute;inset:0;margin:auto;width:184px;height:184px}
.squad-compare-radar>svg polygon{fill:rgba(220,176,76,.18);stroke:#f0c96c;stroke-width:2}
.squad-compare-radar>svg polygon.right{fill:rgba(170,54,67,.17);stroke:#cc5866}
.squad-compare-radar>svg text{fill:#b9ac92;font:900 8px var(--body);text-anchor:middle;dominant-baseline:middle}
.squad-compare-radar>span{
  position:absolute;
  right:-118px;
  bottom:7px;
  left:-118px;
  display:grid;
  justify-items:center;
  gap:1px;
  pointer-events:none;
}
.squad-compare-radar>span>b{color:#f1d48f;font-size:.58rem;letter-spacing:.1em}
.squad-compare-radar>span>small{color:#8f8779;font-size:.5rem}
.squad-compare-tabs{margin:12px 0 9px;padding:5px;background:#070604}
.squad-compare-tabs button{min-height:40px;font-size:.67rem}
.squad-compare-metrics{max-height:calc(94vh - 535px)}
.squad-compare-facts{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.squad-comparison-content .squad-compare-facts .squad-compare-row{
  grid-template-columns:1fr!important;
  grid-template-rows:26px auto 26px;
  gap:4px;
  min-height:94px;
  padding:7px;
}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong{grid-column:1;min-height:26px;padding:4px 7px}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong:first-child{grid-row:1}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong:last-child{grid-row:3}
.squad-comparison-content .squad-compare-facts .squad-compare-row>span{grid-row:2;font-size:.56rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.squad-comparison-content .squad-compare-facts .squad-compare-bar{display:none}
.squad-compare-attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px!important}
.squad-comparison-content .squad-compare-attribute-group{
  margin:0!important;
  border-color:rgba(212,169,79,.24);
  border-radius:11px;
  background:#0d0b07;
}
.squad-comparison-content .squad-compare-attribute-group>header{
  grid-template-columns:50px minmax(0,1fr) 50px;
  min-height:52px;
  padding:7px 9px;
  border:0;
  background:linear-gradient(90deg,#211a0d,#17130b 50%,#241014);
}
.squad-comparison-content .squad-compare-attribute-group>header>span{display:grid;justify-items:center;gap:2px}
.squad-comparison-content .squad-compare-attribute-group>header b{color:#e5c377;font-size:.7rem;letter-spacing:.14em}
.squad-comparison-content .squad-compare-attribute-group>header em{color:#918775;font-size:.5rem}
.squad-comparison-content .squad-compare-attribute-group>div{gap:4px;padding:7px}
.squad-comparison-content .squad-compare-row:not(.is-fact){
  grid-template-columns:38px minmax(28px,1fr) minmax(88px,.9fr) minmax(28px,1fr) 38px!important;
  gap:6px;
  min-height:36px;
}
.squad-compare-bar{display:block;height:4px;overflow:hidden;border-radius:4px;background:#282116}
.squad-compare-bar>b{display:block;height:100%;border-radius:inherit;background:#c79b43}
.squad-compare-bar.is-left>b{margin-left:auto}
.squad-compare-bar.is-right>b{background:#9b3e49}
.squad-comparison-content .squad-compare-row>strong.is-better,
.squad-comparison-content .squad-compare-attribute-group>header>strong.is-better{color:#f6e4ae!important;background:#493a19!important}
.squad-comparison-content .squad-compare-row>strong.is-lower,
.squad-comparison-content .squad-compare-attribute-group>header>strong.is-lower{color:#eca3ab!important;background:#451d23!important}
.squad-compare-statistics>header{min-height:42px;padding:10px 13px;background:#1a150c}
.squad-compare-stat-groups{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.squad-compare-stat-groups>section{min-width:0;padding:9px;border:1px solid rgba(212,169,79,.2);border-radius:10px;background:#0d0b07}
.squad-compare-stat-groups>section>h3{margin:0 0 7px;color:#d6b96f;font-size:.58rem;letter-spacing:.11em}
.squad-compare-stat-groups>section>div{display:grid;gap:5px}

/* Next Match: analyst narrative plus formation and pattern intelligence. */
.lineup-scouting-content{
  width:min(1440px,97vw);
  border-color:rgba(212,169,79,.58);
  background:#080705;
}
.lineup-scouting-title{grid-template-columns:minmax(310px,1.05fr) minmax(500px,1.18fr) 168px 42px}
.lineup-scouting-title::after{right:220px;color:rgba(229,195,119,.075);font-size:2.7rem}
.lineup-scouting-evidence-seal{border-radius:12px;background:linear-gradient(125deg,#2d210e,#100c07)}
.lineup-scouting-opening{grid-template-columns:minmax(330px,.78fr) minmax(680px,1.55fr);gap:12px}
.lineup-scouting-brief{
  position:relative;
  align-content:center;
  min-height:262px;
  padding:24px;
  overflow:hidden;
  background:linear-gradient(145deg,#1c160c,#0e0c08);
}
.lineup-scouting-brief::after{
  content:"MATCH READ";
  position:absolute;
  right:-8px;
  bottom:-9px;
  color:rgba(229,195,119,.055);
  font:950 2.3rem var(--display);
}
.lineup-scouting-brief>h3{font-size:1.25rem}
.lineup-scouting-brief>p{color:#e0d7c7;font-size:.8rem;line-height:1.62}
.lineup-scouting-brief-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}
.lineup-scouting-brief-facts b{display:grid;gap:2px;padding:10px;border-radius:7px;background:#080705;font-size:.57rem;text-align:center}
.lineup-scouting-brief-facts b span{margin:0;font-size:1.15rem}
.lineup-scouting-visuals{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:12px}
.lineup-scouting-visuals .lineup-scouting-shape{
  grid-template-columns:1fr;
  grid-template-rows:auto 1fr;
  align-content:start;
  padding:16px;
}
.lineup-scouting-visuals .lineup-scouting-shape-board{align-self:end;justify-self:stretch;width:100%;max-width:none}
.lineup-scouting-signature{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto 150px auto;
  gap:7px;
  min-width:0;
  padding:16px;
  border:1px solid rgba(212,169,79,.2);
  border-radius:10px;
  background:#121009;
}
.lineup-scouting-signature-copy{display:grid;gap:4px}
.lineup-scouting-signature-copy>small{color:#a77f32;font-size:.54rem;font-weight:950;letter-spacing:.13em}
.lineup-scouting-signature-copy>h3{color:#f1e0b5;font-size:.84rem}
.lineup-scouting-signature-copy>p{margin:0;color:#a9a093;font-size:.59rem;line-height:1.42}
.lineup-scouting-signature-radar{position:relative;justify-self:center;width:150px;height:150px}
.lineup-scouting-signature-radar img{position:absolute;inset:0;width:100%;height:100%}
.lineup-scouting-signature-legend{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.lineup-scouting-signature-legend>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 5px;padding:6px;border-radius:6px;background:#090705}
.lineup-scouting-signature-legend small{grid-column:1/-1;color:#8f6b2a;font-size:.43rem;font-weight:950;letter-spacing:.1em}
.lineup-scouting-signature-legend b{overflow:hidden;color:#d9d0bf;font-size:.55rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-signature-legend em{color:#e5c377;font-size:.55rem;font-style:normal;font-weight:900}
.lineup-scouting-trends{
  background:linear-gradient(145deg,#16130d,#0d0b08);
}
.lineup-scouting-trend{border-color:rgba(212,169,79,.2);background:#080705}
.lineup-scouting-bar>i{height:8px}
.lineup-scouting-bar>i>b{background:linear-gradient(90deg,#8e6924,#e3c273);box-shadow:0 0 8px rgba(213,168,79,.18)}

@media(max-width:1180px){
  .squad-compare-command{grid-template-columns:110px minmax(230px,1fr) 110px}
  .squad-compare-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lineup-scouting-opening{grid-template-columns:1fr}
  .lineup-scouting-brief{min-height:0}
}
@media(max-width:900px){
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;height:auto}
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:auto auto;height:auto}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-columns:1fr;height:auto}
  #profileLineupPanel .tc5-reaction-timeline>div{grid-template-columns:repeat(5,minmax(80px,1fr));overflow-x:auto}
  .squad-compare-command{grid-template-columns:1fr 1.5fr 1fr}
  .squad-compare-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .squad-compare-stat-groups{grid-template-columns:1fr}
  .lineup-scouting-visuals{grid-template-columns:1fr}
}
@media(max-width:640px){
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-columns:1fr}
  #profileLineupPanel .tc5-starting>header>img{display:none}
  .squad-compare-command{grid-template-columns:1fr 1fr;padding:10px}
  .squad-compare-radar{grid-column:1/-1;grid-row:1}
  .squad-compare-command>article{grid-row:2}
  .squad-compare-attribute-grid,.squad-compare-facts{grid-template-columns:1fr}
  .lineup-scouting-fixture-facts,.lineup-scouting-visuals{grid-template-columns:1fr}
}

/* Short desktop viewports retain the decision model without vertical clipping. */
@media(min-width:901px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{
    grid-template-rows:138px 180px;
    gap:8px;
    height:100%;
    padding:8px;
  }
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){height:auto;padding:5px 7px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{min-height:26px;margin-bottom:3px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p,
  #profileLineupPanel .tc5-starting>header>img{display:none}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>span{font-size:.78rem}
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-rows:repeat(2,45px);gap:4px;height:auto}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
    grid-template-columns:minmax(72px,.8fr) minmax(92px,1.2fr);
    grid-template-rows:1fr;
    gap:5px;
    min-height:45px;
    padding:4px 6px;
  }
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control-label{grid-column:1;grid-row:1}
  #profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){grid-column:2;grid-row:1;min-height:32px!important}
  #profileLineupPanel .tc5-screen .tc5-switch-control .tc5-tactic-switch{grid-column:2;grid-row:1;min-height:32px;padding-inline:7px}
  #profileLineupPanel .tc5-reaction-list>section{gap:3px;padding:4px}
  #profileLineupPanel :is(.tc5-reaction-events,.tc5-reaction-discipline)>div{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:1fr;gap:4px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card,
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{height:100%;min-height:0;padding:4px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card{grid-template-columns:27px minmax(0,1fr);gap:4px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy :is(span,small),
  #profileLineupPanel .tc5-screen .tc5-reaction-card>i{display:none}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.53rem}
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{grid-template-columns:1fr;grid-template-rows:31px auto}
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-icon-wrap{width:29px;height:29px}
  #profileLineupPanel .tc5-reaction-timeline>div::before{top:28px}
}

/* Evidence-led refinement pass: resolve chart collisions and use dense space deliberately. */
@media(min-width:901px) and (min-height:951px){
  #profileLineupPanel .tc5-reaction-timeline>div::before{top:calc(50% - 20px)}
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{align-content:center}
}

.squad-compare-radar{width:220px;height:190px}
.squad-compare-radar>img,
.squad-compare-radar>svg{
  top:0;
  bottom:auto;
  width:164px;
  height:164px;
}
.squad-compare-radar>span{bottom:0}

.lineup-scouting-priorities{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:5px;
}
.lineup-scouting-priorities>article{
  display:grid;
  align-content:center;
  gap:4px;
  min-height:54px;
  padding:9px 10px;
  border-radius:7px;
  background:#090705;
}
.lineup-scouting-priorities>article.risk{box-shadow:inset 3px 0 #9b7734}
.lineup-scouting-priorities>article.opportunity{box-shadow:inset 3px 0 #853740}
.lineup-scouting-priorities small{
  color:#998358;
  font-size:.48rem;
  font-weight:950;
  letter-spacing:.12em;
}
.lineup-scouting-priorities strong{
  color:#efe0ba;
  font-size:.63rem;
  line-height:1.25;
  text-transform:uppercase;
}
.lineup-scouting-signature-legend b,
.lineup-scouting-signature-legend em{font-size:.59rem}

@media(max-width:640px){
  .lineup-scouting-priorities{grid-template-columns:1fr}
}

#profileLineupPanel .tc5-reaction-editor{
  background:radial-gradient(circle at 0 0,rgba(131,92,25,.13),transparent 32%),#100e09;
}
#profileLineupPanel .tc5-reaction-editor>.tc5-reaction-hero{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:58px;
  padding:7px 48px 7px 9px;
  border:1px solid rgba(212,169,79,.24);
  border-radius:9px;
  background:linear-gradient(90deg,#241b0d,#0b0906 54%,#17100b);
}
#profileLineupPanel .tc5-reaction-hero>span{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid rgba(212,169,79,.31);
  border-radius:9px;
  background:#0a0805;
}
#profileLineupPanel .tc5-reaction-hero>span img{
  width:31px;
  height:31px;
  object-fit:contain;
  filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%);
}
#profileLineupPanel .tc5-reaction-hero>div{display:grid;gap:2px;min-width:0}
#profileLineupPanel .tc5-reaction-hero>div>small{
  color:#9f7a35;
  font-size:.47rem;
  font-weight:950;
  letter-spacing:.14em;
}
#profileLineupPanel .tc5-reaction-editor .tc5-reaction-hero h2{margin:0;color:#f4e5bc;font:.98rem var(--display)}
#profileLineupPanel .tc5-reaction-editor .tc5-reaction-hero p{margin:0;color:#9f9789;font-size:.54rem}
#profileLineupPanel .tc5-reaction-hero>b{
  color:#d8bd78;
  font-size:.48rem;
  letter-spacing:.1em;
  white-space:nowrap;
}
#profileLineupPanel .tc5-reaction-editor .tc5-branch-tabs{min-height:32px;padding-block:5px}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics::before{
  content:"TACTICAL RESPONSE";
  grid-column:1/-1;
  color:#92743c;
  font-size:.47rem;
  font-weight:950;
  letter-spacing:.13em;
}

@media(min-width:901px) and (max-height:950px){
  #profileLineupPanel .tc5-reaction-hero{min-height:42px;padding-block:4px}
  #profileLineupPanel .tc5-reaction-hero>span{width:34px;height:34px}
  #profileLineupPanel .tc5-reaction-hero>span img{width:25px;height:25px}
  #profileLineupPanel .tc5-reaction-editor .tc5-reaction-hero p{display:none}
}

@media(min-width:1500px){
  #profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}

/* 3.0A.50.39 — football-first visual canvases for tactics, scouting and compare. */
body.modal-open{overflow:hidden!important}

/* Tactics uses the workspace as its canvas. */
#profileLineupPanel .tc5-screen{
  grid-template-rows:62px minmax(0,1fr);
  gap:8px;
  min-height:0;
}
#profileLineupPanel .tc5-next-match-summary{
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:0;
  min-height:62px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.2);
  border-radius:10px;
  background:rgba(12,10,7,.72);
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta{
  min-height:60px;
  padding:8px 16px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc5-next-match-summary .tc5-meta+.tc5-meta{border-left:1px solid rgba(212,169,79,.16)}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>span{font-size:.57rem}
#profileLineupPanel .tc5-next-match-summary .tc5-meta>b{font-size:.8rem}
#profileLineupPanel .tc5-next-match-summary button.tc5-meta:is(:hover,:focus-visible){background:rgba(212,169,79,.08)}
#profileLineupPanel .tc5-screen>.tactical-centre-v5{
  min-height:0;
  padding:0;
  overflow:hidden;
  border:0!important;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc5-form{grid-template-rows:minmax(0,1fr) 54px;min-height:0}
#profileLineupPanel .tc5-screen .tc5-workspace-panel{
  min-height:0;
  overflow:hidden;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
#profileLineupPanel .tc5-screen .tc5-left-columns{
  grid-template-rows:minmax(220px,1.06fr) minmax(198px,.94fr);
  gap:8px;
  height:100%;
  min-height:0;
  max-height:100%;
  padding:0;
  overflow:hidden;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  min-height:0;
  padding:12px 15px;
  overflow:hidden;
  border:0!important;
  border-radius:12px;
  background:#0c0a07!important;
  box-shadow:none!important;
  height:auto;
}
#profileLineupPanel .tc5-screen .tc5-starting{
  background-image:linear-gradient(90deg,rgba(8,7,5,.72),rgba(8,7,5,.35) 50%,rgba(8,7,5,.74)),linear-gradient(180deg,rgba(8,7,5,.25),rgba(8,7,5,.72)),url('/management-backgrounds/goat-tactics-command.webp')!important;
  background-position:center 46%;
  background-size:cover;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{
  position:relative;
  z-index:2;
  min-height:43px;
  margin:0 0 7px;
  padding:0!important;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>small{
  color:#c3943d;
  font-size:.54rem;
  letter-spacing:.16em;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>span{
  color:#f5e3b5;
  font-size:1.08rem;
  letter-spacing:.035em;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p{
  margin-top:3px;
  color:#c2b9a9;
  font-size:.63rem;
}
#profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>b{font-size:.55rem;letter-spacing:.11em}
#profileLineupPanel .tc5-screen .tc5-starting-list{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,.68fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr);
  gap:0;
  height:calc(100% - 50px);
  overflow:visible;
}
#profileLineupPanel .tc5-starting-list>section{
  display:grid;
  align-content:start;
  min-width:0;
  padding:4px 14px 0;
  background:rgba(7,6,4,.62);
}
#profileLineupPanel .tc5-starting-list>section:first-child{padding-left:2px;background:linear-gradient(90deg,rgba(7,6,4,.82),rgba(7,6,4,.54))}
#profileLineupPanel .tc5-starting-list>section:last-child{padding-right:2px;background:linear-gradient(90deg,rgba(7,6,4,.54),rgba(7,6,4,.82))}
#profileLineupPanel .tc5-starting-list>section+section{border-left:1px solid rgba(229,195,119,.18)}
#profileLineupPanel .tc5-starting-list>section>header{display:grid;gap:1px;min-height:29px;margin:0 0 2px}
#profileLineupPanel .tc5-starting-list>section>header small{color:#a7813b;font-size:.46rem;font-weight:900;letter-spacing:.14em}
#profileLineupPanel .tc5-starting-list>section>header strong{color:#f4e5bf;font-size:.65rem;letter-spacing:.04em}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{
  display:grid;
  grid-template-columns:minmax(92px,.9fr) minmax(62px,.64fr) minmax(102px,1fr);
  grid-template-rows:42px;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:0 3px;
  overflow:visible;
  border:0;
  border-bottom:1px solid rgba(229,195,119,.13);
  border-radius:0;
  background:transparent;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control:is(:hover,:focus-within){
  border-color:rgba(229,195,119,.4);
  background:rgba(229,195,119,.065);
  box-shadow:none;
}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control-label{grid-column:1;grid-row:1;gap:7px}
#profileLineupPanel .tc5-screen .tc5-control-label>span{font-size:.66rem;line-height:1.15}
#profileLineupPanel .tc5-screen .tc5-field-icon{width:22px;height:22px;flex-basis:22px}
#profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary){
  grid-column:3;
  grid-row:1;
  min-height:32px!important;
  padding:5px 8px!important;
  overflow:hidden;
  border-color:rgba(212,169,79,.32)!important;
  border-radius:5px!important;
  background:rgba(7,6,4,.9)!important;
  font-size:.65rem!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel .tc5-starting-list .tc6-identity{align-content:center;padding-inline:14px;background:rgba(8,7,5,.28)}
#profileLineupPanel .tc5-starting-list .tc6-identity>header{text-align:center}
#profileLineupPanel .tc5-starting-list .tc6-identity .tc5-control{
  grid-template-columns:1fr;
  grid-template-rows:auto 64px 38px;
  gap:6px;
  padding:8px 12px 10px;
  border:0;
  background:rgba(9,7,4,.66);
}
#profileLineupPanel .tc5-starting-list .tc6-identity .tc5-control-label{grid-column:1;grid-row:1;justify-content:center}
#profileLineupPanel .tc5-starting-list .tc6-identity .tc5-control-label .tc5-field-icon{width:28px;height:28px;flex-basis:28px}
#profileLineupPanel .tc5-starting-list .tc6-identity .tc5-control-label>span{display:none}
#profileLineupPanel .tc5-starting-list .tc6-identity :is(select,.goat-select-trigger){grid-column:1;grid-row:3;font-size:.72rem!important;text-align:center}
#profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:42px}
#profileLineupPanel .tc5-screen .tc5-switch-control .tc5-tactic-switch{
  grid-column:3;
  grid-row:1;
  min-height:32px;
  padding:0 8px;
  border-color:rgba(212,169,79,.32);
  border-radius:5px;
  background:rgba(7,6,4,.9);
}

/* Automated reactions are one match trigger rail, not a card gallery. */
#profileLineupPanel .tc5-screen .tc5-automation{padding-bottom:10px;background:linear-gradient(90deg,#0e0b07,#090806 54%,#110a08)!important}
#profileLineupPanel .tc5-screen .tc5-automation>header{margin-bottom:2px}
#profileLineupPanel .tc5-screen .tc5-clear-reactions{min-height:31px;border-radius:5px;font-size:.52rem}
#profileLineupPanel .tc5-screen .tc5-reaction-list{
  grid-template-columns:minmax(190px,.82fr) minmax(390px,1.7fr) minmax(190px,.82fr);
  grid-template-rows:minmax(0,1fr);
  gap:0;
  height:calc(100% - 45px);
}
#profileLineupPanel .tc5-reaction-list>section{
  grid-template-rows:22px minmax(0,1fr);
  gap:0;
  padding:5px 13px 0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
}
#profileLineupPanel .tc5-reaction-list>section+section{border-left:1px solid rgba(229,195,119,.16)}
#profileLineupPanel .tc5-reaction-list>section>small{font-size:.49rem;letter-spacing:.15em}
#profileLineupPanel :is(.tc5-reaction-events,.tc5-reaction-discipline)>div{gap:0}
#profileLineupPanel .tc5-screen .tc5-reaction-card{
  position:relative;
  grid-template-columns:38px minmax(0,1fr) auto;
  gap:9px;
  min-height:54px;
  padding:6px 3px;
  border:0;
  border-bottom:1px solid rgba(229,195,119,.13);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc5-screen .tc5-reaction-card::before{display:none}
#profileLineupPanel .tc5-screen .tc5-reaction-card:is(:hover,:focus-visible){background:rgba(229,195,119,.07);outline:1px solid rgba(229,195,119,.32);outline-offset:-1px}
#profileLineupPanel .tc5-screen .tc5-reaction-card.enabled{background:rgba(201,151,55,.1);box-shadow:inset 3px 0 #c99937}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon-wrap{width:34px;height:34px;border:0;background:rgba(212,169,79,.12)}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-icon{width:25px;height:25px}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy strong{font-size:.75rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy span{font-size:.56rem}
#profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{font-size:.5rem}
#profileLineupPanel .tc5-reaction-timeline>div{gap:0;padding-top:7px}
#profileLineupPanel .tc5-reaction-timeline>div::before{left:8%;right:8%;top:31px;height:1px;opacity:.72}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{
  grid-template-columns:1fr;
  grid-template-rows:38px auto auto;
  min-height:86px;
  padding:1px 4px 5px;
  border:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card.enabled{background:transparent;box-shadow:inset 0 -3px #c99937}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-icon-wrap{width:37px;height:37px;border:1px solid rgba(212,169,79,.32);background:#161108}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy strong{font-size:.61rem}
#profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-copy span{font-size:.45rem}
#profileLineupPanel .tc5-screen .tc5-bottom-bar{display:flex;justify-content:flex-end;align-items:start;height:54px;min-height:54px;padding:4px 2px 0}
#profileLineupPanel .tc5-screen .tc5-save-cluster{grid-template-columns:190px;grid-template-rows:37px auto;justify-content:end;width:190px;text-align:center}
#profileLineupPanel .tc5-screen .tc5-save-cluster>button{grid-column:1;grid-row:1;min-height:37px}
#profileLineupPanel .tc5-screen .tc5-save-cluster .tc5-save-message{grid-column:1;grid-row:2;align-self:start;width:100%;padding:2px 0 0;text-align:center}

/* Opposition dossier: hero, football answer, compact context. */
.lineup-scouting-modal{padding:14px;overflow:hidden}
.lineup-scouting-content{
  display:grid;
  grid-template-rows:154px minmax(0,1fr);
  width:min(1560px,97vw);
  height:min(960px,95vh);
  max-height:95vh;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.5);
  border-radius:17px;
  background:#090806;
  box-shadow:0 28px 80px rgba(0,0,0,.64);
}
.lineup-scouting-title{
  position:relative;
  isolation:isolate;
  grid-template-columns:minmax(360px,1.05fr) minmax(600px,1.45fr) 42px;
  gap:20px;
  min-height:154px;
  padding:20px 24px;
  overflow:hidden;
  border:0;
  background-image:linear-gradient(90deg,rgba(5,4,3,.56),rgba(5,4,3,.2) 56%,rgba(5,4,3,.58)),linear-gradient(180deg,rgba(5,4,3,.08),rgba(5,4,3,.62)),url('/management-backgrounds/goat-opposition-dossier.webp');
  background-position:center 56%;
  background-size:cover;
}
.lineup-scouting-title::after{display:none}
.lineup-scouting-title>*{position:relative;z-index:1}
.lineup-scouting-opponent{gap:18px}
.lineup-scouting-opponent .mc-hub-club-logo{width:86px;height:86px}
.lineup-scouting-opponent .eyebrow{font-size:.68rem}
.lineup-scouting-opponent h2{margin-top:5px;font-size:2.35rem;line-height:.94}
.lineup-scouting-opponent small{margin-top:7px;color:#d2c7b5;font-size:.76rem}
.lineup-scouting-fixture-facts{align-self:center;gap:0}
.lineup-scouting-fixture-facts article{
  grid-template-columns:33px minmax(0,1fr);
  min-height:66px;
  padding:8px 18px;
  border:0;
  border-left:1px solid rgba(229,195,119,.22);
  border-radius:0;
  background:rgba(7,6,4,.38);
}
.lineup-scouting-fixture-facts article>img{width:28px;height:28px}
.lineup-scouting-fixture-facts small{font-size:.56rem}
.lineup-scouting-fixture-facts strong{font-size:.84rem}
.lineup-scouting-title>[data-close-lineup-scouting]{align-self:start;background:rgba(7,6,4,.64)}
.lineup-scouting-body{
  display:grid;
  grid-template-rows:minmax(0,1fr) 190px;
  min-height:0;
  overflow:hidden;
  background:linear-gradient(120deg,#0d0b07,#080705 62%,#0f0b08);
}
.lineup-scouting-decision{
  display:grid;
  grid-template-columns:minmax(330px,1.02fr) minmax(300px,.82fr) minmax(360px,1.16fr);
  min-height:0;
  padding:18px 20px 16px;
}
.lineup-scouting-decision>section{min-width:0;padding:4px 20px;border:0;border-radius:0;background:transparent}
.lineup-scouting-decision>section+section{border-left:1px solid rgba(229,195,119,.17)}
.lineup-scouting-shape{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);align-items:start;gap:10px}
.lineup-scouting-shape-copy{grid-template-columns:auto minmax(0,1fr);align-items:end;align-content:start;gap:3px 14px}
.lineup-scouting-shape-copy small,.lineup-scouting-signature-copy small,.lineup-scouting-verdict header small{color:#c3933a;font-size:.58rem;font-weight:950;letter-spacing:.16em}
.lineup-scouting-shape-copy strong{font-size:2.9rem;line-height:.92}
.lineup-scouting-shape-copy p{grid-column:1/-1;margin:0;color:#b1a695;font-size:.72rem;line-height:1.35}
.lineup-scouting-shape-board{align-self:center;justify-self:center;width:100%;max-width:430px;aspect-ratio:240/164;border-color:rgba(232,218,179,.34);border-radius:8px;background:#102b18;box-shadow:0 14px 28px rgba(0,0,0,.28)}
.lineup-scouting-signature{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(200px,1fr) auto;align-content:start;gap:8px}
.lineup-scouting-signature-copy{display:grid;gap:4px}
.lineup-scouting-signature-copy h3,.lineup-scouting-verdict header h3{font-size:1rem}
.lineup-scouting-signature-radar{align-self:center;justify-self:center;width:220px;height:220px}
.lineup-scouting-signature-legend{grid-template-columns:1fr 1fr;gap:0}
.lineup-scouting-signature-legend>span{grid-template-columns:minmax(0,1fr) auto;padding:8px 9px;border:0;border-radius:0;background:transparent}
.lineup-scouting-signature-legend>span:nth-child(odd){border-right:1px solid rgba(229,195,119,.13)}
.lineup-scouting-signature-legend>span:nth-child(-n+2){border-bottom:1px solid rgba(229,195,119,.13)}
.lineup-scouting-signature-legend small{font-size:.45rem}
.lineup-scouting-signature-legend b,.lineup-scouting-signature-legend em{font-size:.62rem}
.lineup-scouting-verdict{display:grid;grid-template-rows:auto repeat(2,minmax(150px,auto));align-content:start;gap:0}
.lineup-scouting-verdict>header{display:grid;align-content:start;gap:5px;padding-bottom:8px}
.lineup-scouting-verdict>article{display:grid;align-content:center;gap:7px;padding:18px 8px 18px 20px;border:0;border-left:3px solid #aa8034;background:linear-gradient(90deg,rgba(170,128,52,.08),rgba(7,6,4,.18) 58%,transparent)}
.lineup-scouting-verdict>article+article{border-top:1px solid rgba(229,195,119,.12)}
.lineup-scouting-verdict>article.weakness{border-left-color:#8f3d48;background:linear-gradient(90deg,rgba(143,61,72,.09),rgba(7,6,4,.18) 58%,transparent)}
.lineup-scouting-verdict>article small{color:#ba9044;font-size:.52rem;font-weight:950;letter-spacing:.13em}
.lineup-scouting-verdict>article.weakness small{color:#c96c77}
.lineup-scouting-verdict>article strong{color:#f5e7c4;font-size:1.08rem;line-height:1.15;text-transform:uppercase}
.lineup-scouting-verdict>article p{max-width:46ch;margin:0;color:#bcb1a0;font-size:.74rem;line-height:1.42}
.lineup-scouting-context{
  display:grid;
  grid-template-columns:minmax(270px,1.02fr) minmax(120px,.42fr) minmax(260px,.9fr) minmax(340px,1.28fr);
  min-height:0;
  padding:14px 20px;
  border-top:1px solid rgba(229,195,119,.18);
  background:rgba(6,5,3,.62);
}
.lineup-scouting-context>section{min-width:0;padding:3px 18px;border:0;border-radius:0;background:transparent}
.lineup-scouting-context>section:first-child{padding-left:3px}
.lineup-scouting-context>section+section{border-left:1px solid rgba(229,195,119,.15)}
.lineup-scouting-context :is(header>small,section>small){color:#c2933e;font-size:.59rem;font-weight:950;letter-spacing:.14em}
.lineup-scouting-last>header{margin:0 0 8px}
.lineup-scouting-last>header button{padding:6px 8px;border-radius:5px;font-size:.52rem}
.lineup-scouting-context .lineup-scouting-match{grid-template-columns:minmax(90px,.6fr) minmax(0,1fr);min-height:54px;padding:7px 0;border:0;border-radius:0;background:transparent}
.lineup-scouting-context .lineup-scouting-match>strong{font-size:.77rem}
.lineup-scouting-context .lineup-scouting-match em{font-size:1rem}
.lineup-scouting-form>div{display:flex;align-items:center;gap:7px;margin-top:20px}
.lineup-scouting-form :is(b,i){display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:.7rem;font-style:normal}
.lineup-scouting-form b{background:#315d3d;color:#eaffef}
.lineup-scouting-form b.d{background:#61552f}.lineup-scouting-form b.l{background:#6c2832}
.lineup-scouting-form i{color:#6f675b;background:#15120d}
.lineup-scouting-missing>div{display:grid;gap:7px;margin-top:12px}
.lineup-scouting-missing span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 7px;min-width:0}
.lineup-scouting-missing span b{overflow:hidden;color:#f0e4c8;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-missing span em{color:#d4ad59;font-size:.61rem;font-style:normal}
.lineup-scouting-missing span small{grid-column:1/-1;overflow:hidden;color:#9f9688;font-size:.59rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-h2h>header{margin:0 0 5px}
.lineup-scouting-record b{font-size:.68rem}
.lineup-scouting-context .lineup-scouting-h2h>div:last-child{gap:0}
.lineup-scouting-context .lineup-scouting-h2h .lineup-scouting-match{min-height:38px;padding:3px 0}
.lineup-scouting-context .lineup-scouting-h2h .lineup-scouting-match b{font-size:.55rem}

/* Player Compare: one scroll authority and one open evidence canvas. */
.squad-comparison-modal{padding:14px;overflow:hidden}
.squad-comparison-content{
  box-sizing:border-box;
  width:min(1540px,97vw);
  height:auto;
  max-height:96vh;
  padding:18px 22px 24px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid rgba(212,169,79,.48);
  border-radius:17px;
  background:linear-gradient(135deg,#0e0c08,#080705 58%,#11090a);
  box-shadow:0 28px 80px rgba(0,0,0,.68);
  scrollbar-color:rgba(192,143,52,.72) #080603;
}
.squad-comparison-content>header.squad-compare-title{min-height:54px;padding:0!important}
.squad-comparison-content>header.squad-compare-title h2{font-size:2rem;line-height:.95}
.squad-comparison-content>header.squad-compare-title small{font-size:.7rem}
.squad-compare-selectors{grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr);gap:10px;margin:9px 0 10px}
.squad-compare-selectors>span{align-self:center;padding:0;font:950 1.05rem var(--display);text-align:center}
.squad-compare-selectors :is(select,.goat-select-trigger){min-height:42px!important;border-radius:6px!important;background:#0b0907!important;font-size:.72rem!important}
.squad-compare-hero{
  position:relative;
  min-height:178px;
  overflow:hidden;
  border-radius:10px;
  background-image:linear-gradient(90deg,rgba(6,5,4,.22),rgba(6,5,4,.46) 50%,rgba(6,5,4,.2)),linear-gradient(180deg,rgba(6,5,4,.06),rgba(6,5,4,.54)),url('/management-backgrounds/goat-player-compare.webp');
  background-position:center 47%;
  background-size:cover;
}
.squad-compare-headers{grid-template-columns:minmax(0,1fr) 72px minmax(0,1fr);align-items:stretch;gap:0;min-height:178px;padding:16px 20px}
.squad-compare-hero-vs{align-self:center;justify-self:center;color:#f0d58f;font:950 1.5rem var(--display);text-shadow:0 3px 10px #000}
.squad-comparison-content .squad-compare-player{
  align-self:center;
  min-height:118px;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
.squad-comparison-content .squad-compare-player>button{grid-template-columns:94px minmax(0,1fr) auto;gap:16px;padding:8px 4px}
.squad-comparison-content .squad-compare-player img{width:94px;height:108px;border:0;border-radius:8px;background:rgba(7,6,4,.56)}
.squad-comparison-content .squad-compare-player button>span{gap:5px}
.squad-comparison-content .squad-compare-player small.squad-compare-side-label{color:#d7ac55;font-size:.56rem;letter-spacing:.15em}
.squad-comparison-content .squad-compare-player strong{font-size:1.15rem}
.squad-comparison-content .squad-compare-player em{color:#c6bcad;font-size:.68rem}
.squad-comparison-content .squad-compare-player button>b{display:grid;justify-items:end;color:#f3dda7;font-size:2.7rem;line-height:.9}
.squad-comparison-content .squad-compare-player button>b>small{color:#a8884e;font:900 .42rem var(--body);letter-spacing:.11em}
.squad-comparison-content .squad-compare-player:nth-child(3)>button{grid-template-columns:auto minmax(0,1fr) 94px;text-align:right}
.squad-comparison-content .squad-compare-player:nth-child(3) img{grid-column:3;grid-row:1}
.squad-comparison-content .squad-compare-player:nth-child(3) button>span{grid-column:2;grid-row:1}
.squad-comparison-content .squad-compare-player:nth-child(3) button>b{grid-column:1;grid-row:1;justify-items:start;color:#e49aa3}
.squad-compare-tabs{margin:10px 0 0;padding:0;border-radius:0;background:transparent;border-bottom:1px solid rgba(229,195,119,.16)}
.squad-compare-tabs button{min-width:150px;min-height:43px;border:0;border-radius:0;background:transparent;font-size:.68rem}
.squad-compare-tabs button.active{border:0;border-bottom:3px solid #d0a148;background:rgba(212,169,79,.07);color:#f6e6ba}
.squad-compare-metrics{max-height:none!important;padding:0;overflow:visible!important}
.squad-compare-overview{display:block!important}
.squad-compare-facts{display:grid;grid-template-columns:1fr;grid-auto-rows:38px!important;align-content:start!important;gap:0;height:auto!important;margin-top:4px}
.squad-comparison-content .squad-compare-facts .squad-compare-row{
  grid-template-columns:minmax(180px,1fr) minmax(150px,.68fr) minmax(180px,1fr)!important;
  grid-template-rows:38px!important;
  gap:16px;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  padding:0 16px;
  border:0!important;
  border-bottom:1px solid rgba(229,195,119,.12)!important;
  border-radius:0;
  background:transparent!important;
}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong{grid-row:1;min-height:0;padding:0!important;background:transparent!important;font-size:.78rem}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong:first-child{grid-column:1;text-align:left}
.squad-comparison-content .squad-compare-facts .squad-compare-row>span{grid-column:2;grid-row:1;color:#a89e8e;font-size:.58rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.squad-comparison-content .squad-compare-facts .squad-compare-row>strong:last-child{grid-column:3;grid-row:1!important;text-align:right}
.squad-comparison-content .squad-compare-facts .squad-compare-bar{display:none}
#squadComparisonModal .squad-comparison-content .squad-compare-facts .squad-compare-row>strong{color:#e6dcc8!important;background:transparent!important;box-shadow:none!important}
.squad-compare-attribute-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:8px!important;background:rgba(7,6,4,.24)}
.squad-comparison-content .squad-compare-attribute-group{
  margin:0!important;
  padding:12px 14px 15px;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
.squad-comparison-content .squad-compare-attribute-group:not(:nth-child(3n+1)){border-left:1px solid rgba(229,195,119,.14)!important}
.squad-comparison-content .squad-compare-attribute-group:nth-child(n+4){border-top:1px solid rgba(229,195,119,.14)!important}
.squad-comparison-content .squad-compare-attribute-group>header{
  grid-template-columns:52px minmax(0,1fr) 52px;
  min-height:46px;
  padding:0 4px;
  border:0!important;
  border-bottom:1px solid rgba(229,195,119,.16)!important;
  background:transparent!important;
}
.squad-comparison-content .squad-compare-attribute-group>header b{font-size:.8rem}
.squad-comparison-content .squad-compare-attribute-group>header em{font-size:.57rem}
.squad-comparison-content .squad-compare-attribute-group>div{gap:0;padding:5px 0 0!important}
.squad-comparison-content .squad-compare-row:not(.is-fact){
  grid-template-columns:38px minmax(38px,1fr) minmax(104px,.9fr) minmax(38px,1fr) 38px!important;
  gap:8px;
  min-height:39px;
  padding:0 4px;
  border:0!important;
  border-bottom:1px solid rgba(229,195,119,.07)!important;
  border-radius:0;
  background:transparent!important;
}
.squad-comparison-content .squad-compare-row>strong{padding:0!important;background:transparent!important;font-size:.73rem}
.squad-comparison-content .squad-compare-row>strong.is-better,.squad-comparison-content .squad-compare-attribute-group>header>strong.is-better{color:#f6e4ae!important;background:transparent!important}
.squad-comparison-content .squad-compare-row>strong.is-lower,.squad-comparison-content .squad-compare-attribute-group>header>strong.is-lower{color:#a99f91!important;background:transparent!important}
.squad-comparison-content .squad-compare-row>strong.is-equal,.squad-comparison-content .squad-compare-attribute-group>header>strong.is-equal{color:#d9d0c1!important;background:transparent!important}
.squad-compare-bar{height:5px;background:#261f15}
.squad-compare-statistics>header{margin:0;padding:14px 4px 10px;border-radius:0;background:transparent;border-bottom:1px solid rgba(229,195,119,.16)}
.squad-compare-stat-groups{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:rgba(7,6,4,.24)}
.squad-compare-stat-groups>section{padding:18px 16px 20px;border:0;border-radius:0;background:transparent}
.squad-compare-stat-groups>section+section{border-left:1px solid rgba(229,195,119,.14)}
.squad-compare-stat-groups>section>h3{font-size:.72rem}

@media(min-width:1121px){
  #profileLineupPanel .lineup-builder:has(.lineup-workspace.mode-tactics){--lineup-workspace-height:clamp(610px,calc(100dvh - 282px),990px)}
}

@media(min-width:901px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{align-items:stretch!important;height:100%!important;grid-auto-rows:unset!important}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){align-self:stretch!important;height:auto!important}
  #profileLineupPanel .tc5-screen :is(.tc5-starting-list,.tc5-reaction-list){flex:1 1 auto!important;align-content:stretch!important}
}

@media(min-width:1121px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:minmax(0,1.24fr) minmax(0,.76fr);gap:7px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation){padding:8px 10px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header{min-height:34px;margin-bottom:3px}
  #profileLineupPanel .tc5-screen :is(.tc5-starting,.tc5-automation)>header>div>p{display:none}
  #profileLineupPanel .tc5-starting-list>section>header{min-height:23px}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{grid-template-rows:34px;min-height:34px}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-switch-control{grid-template-rows:34px}
  #profileLineupPanel .tc5-starting-list .tc6-identity .tc5-control{grid-template-rows:auto 45px 32px;padding-block:5px}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{height:calc(100% - 37px)}
  #profileLineupPanel .tc5-reaction-list>section{grid-template-rows:18px minmax(0,1fr);padding-top:2px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card{min-height:44px;padding-block:3px}
  #profileLineupPanel .tc5-screen .tc5-reaction-card .tc5-reaction-copy small{display:none}
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card{min-height:60px;grid-template-rows:31px auto auto}
  #profileLineupPanel .tc5-reaction-timeline .tc5-reaction-card .tc5-reaction-icon-wrap{width:32px;height:32px}
  #profileLineupPanel .tc5-reaction-timeline>div::before{top:27px}
  .lineup-scouting-content{grid-template-rows:132px minmax(0,1fr)}
  .lineup-scouting-title{min-height:132px;padding-block:14px}
  .lineup-scouting-body{grid-template-rows:minmax(0,1fr) 154px}
  .lineup-scouting-decision{padding-block:12px}
  .lineup-scouting-shape-copy strong{font-size:2.45rem}
  .lineup-scouting-signature-radar{width:150px;height:150px}
  .lineup-scouting-context{padding-block:10px}
}

@media(max-width:1180px){
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-columns:1fr 170px 1fr}
  #profileLineupPanel .tc5-screen .tc5-starting-list .tc5-control{grid-template-columns:minmax(82px,.9fr) minmax(92px,1fr)}
  #profileLineupPanel .tc5-screen .tc5-starting-list :is(select,.goat-select-trigger,.tc5-multiselect>summary),#profileLineupPanel .tc5-screen .tc5-switch-control .tc5-tactic-switch{grid-column:2}
  .lineup-scouting-title{grid-template-columns:minmax(300px,.9fr) minmax(520px,1.4fr) 42px}
  .lineup-scouting-decision{grid-template-columns:minmax(280px,.95fr) minmax(250px,.82fr) minmax(310px,1.1fr);padding-inline:12px}
  .lineup-scouting-decision>section{padding-inline:12px}
  .lineup-scouting-shape{grid-template-columns:1fr;grid-template-rows:auto 1fr;gap:8px}
  .lineup-scouting-shape-copy{grid-template-columns:1fr auto;align-items:end}
  .lineup-scouting-shape-copy p{grid-column:1/-1}
  .lineup-scouting-shape-board{align-self:end;max-width:none}
  .lineup-scouting-context{grid-template-columns:1fr .45fr 1fr 1.25fr;padding-inline:12px}
  .squad-compare-attribute-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .squad-comparison-content .squad-compare-attribute-group:not(:nth-child(3n+1)){border-left:0!important}
  .squad-comparison-content .squad-compare-attribute-group:nth-child(even){border-left:1px solid rgba(229,195,119,.14)!important}
  .squad-comparison-content .squad-compare-attribute-group:nth-child(n+3){border-top:1px solid rgba(229,195,119,.14)!important}
}

@media(max-width:900px){
  #profileLineupPanel .tc5-screen{grid-template-rows:auto auto}
  #profileLineupPanel .tc5-next-match-summary{grid-template-columns:1fr}
  #profileLineupPanel .tc5-next-match-summary .tc5-meta+.tc5-meta{border-left:0;border-top:1px solid rgba(212,169,79,.16)}
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:auto auto;height:auto}
  #profileLineupPanel .tc5-screen .tc5-starting-list{grid-template-columns:1fr;height:auto}
  #profileLineupPanel .tc5-starting-list>section+section{border-left:0;border-top:1px solid rgba(229,195,119,.18)}
  #profileLineupPanel .tc5-screen .tc5-reaction-list{grid-template-columns:1fr;height:auto}
  #profileLineupPanel .tc5-reaction-list>section+section{border-left:0;border-top:1px solid rgba(229,195,119,.16)}
  .lineup-scouting-content{display:block;height:95vh;overflow-y:auto}
  .lineup-scouting-title{grid-template-columns:1fr 42px;min-height:0}
  .lineup-scouting-fixture-facts{grid-column:1/-1}
  .lineup-scouting-body{display:block;overflow:visible}
  .lineup-scouting-decision,.lineup-scouting-context{grid-template-columns:1fr}
  .lineup-scouting-decision>section+section,.lineup-scouting-context>section+section{border-left:0;border-top:1px solid rgba(229,195,119,.16)}
  .squad-compare-headers{grid-template-columns:1fr 50px 1fr;padding-inline:8px}
  .squad-comparison-content .squad-compare-player>button{grid-template-columns:70px minmax(0,1fr)}
  .squad-comparison-content .squad-compare-player img{width:70px;height:88px}
  .squad-comparison-content .squad-compare-player button>b{grid-column:2;font-size:1.8rem;justify-items:start}
  .squad-comparison-content .squad-compare-player:nth-child(3)>button{grid-template-columns:minmax(0,1fr) 70px}
  .squad-comparison-content .squad-compare-player:nth-child(3) img{grid-column:2}
  .squad-comparison-content .squad-compare-player:nth-child(3) button>span{grid-column:1}
  .squad-comparison-content .squad-compare-player:nth-child(3) button>b{grid-column:1;grid-row:2;justify-items:end}
  .squad-compare-stat-groups{grid-template-columns:1fr}
  .squad-compare-stat-groups>section+section{border-left:0;border-top:1px solid rgba(229,195,119,.14)}
}

@media(max-width:640px){
  .squad-comparison-content{padding-inline:12px}
  .squad-compare-hero{min-height:300px}
  .squad-compare-headers{grid-template-columns:1fr;gap:2px;min-height:300px}
  .squad-compare-hero-vs{font-size:1rem}
  .squad-comparison-content .squad-compare-player:nth-child(3)>button{grid-template-columns:70px minmax(0,1fr);text-align:left}
  .squad-comparison-content .squad-compare-player:nth-child(3) img{grid-column:1}
  .squad-comparison-content .squad-compare-player:nth-child(3) button>span{grid-column:2}
  .squad-comparison-content .squad-compare-player:nth-child(3) button>b{grid-column:2;justify-items:start}
  .squad-comparison-content .squad-compare-facts .squad-compare-row{grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr)!important;padding-inline:4px}
  .squad-compare-attribute-grid{grid-template-columns:1fr}
  .squad-comparison-content .squad-compare-attribute-group:nth-child(even){border-left:0!important}
  .squad-comparison-content .squad-compare-attribute-group:nth-child(n+2){border-top:1px solid rgba(229,195,119,.14)!important}
}

/* 3.0A.50.40 — second-pass presentation rebuild: fewer surfaces, stronger football imagery. */

/* Tactics: one open plan canvas followed by one continuous match timeline. */
#profileLineupPanel .tc5-screen>.tactical-centre-v5,
#profileLineupPanel .tc5-screen .tc5-workspace-panel{overflow:visible}
#profileLineupPanel .tc5-screen .tc5-left-columns{
  grid-template-rows:minmax(320px,1.34fr) minmax(232px,.86fr);
  gap:12px;
}
#profileLineupPanel .tc5-screen :is(.tc7-starting,.tc7-automation){
  padding:0;
  overflow:visible;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
#profileLineupPanel .tc5-screen :is(.tc7-starting,.tc7-automation)>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:34px;
  margin:0 0 7px;
  padding:0 2px!important;
}
#profileLineupPanel .tc5-screen :is(.tc7-starting,.tc7-automation)>header h2{
  margin:0;
  color:#f1d78f;
  font:950 1rem var(--display);
  letter-spacing:.055em;
}
#profileLineupPanel .tc7-plan-canvas{
  display:grid;
  grid-template-columns:minmax(300px,38%) minmax(0,1fr);
  gap:12px;
  height:calc(100% - 41px);
  min-height:0;
}
#profileLineupPanel .tc7-plan-canvas>figure{
  position:relative;
  min-width:0;
  min-height:0;
  margin:0;
  overflow:hidden;
  border-radius:11px;
  background:#100d09;
  box-shadow:0 16px 34px rgba(0,0,0,.3),inset 0 0 0 1px rgba(229,195,119,.2);
}
#profileLineupPanel .tc7-plan-canvas>figure::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 52%,rgba(5,4,3,.72));
  pointer-events:none;
}
#profileLineupPanel .tc7-plan-canvas>figure>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 64%;
  filter:saturate(.92) contrast(1.04);
  transform:scale(1.16);
}
#profileLineupPanel .tc7-plan-canvas>figure>figcaption{
  position:absolute;
  z-index:1;
  right:16px;
  bottom:13px;
  display:grid;
  justify-items:end;
  gap:1px;
  text-shadow:0 2px 8px #000;
}
#profileLineupPanel .tc7-plan-canvas>figure>figcaption small{color:#c69a49;font-size:.5rem;font-weight:950;letter-spacing:.16em}
#profileLineupPanel .tc7-plan-canvas>figure>figcaption strong{color:#f8e8bd;font:950 1.35rem var(--display)}
#profileLineupPanel .tc5-screen .tc7-control-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:0 16px;
  box-sizing:border-box;
  height:100%;
  padding:2px 14px;
  overflow:visible;
  border-radius:10px;
  background:rgba(14,12,8,.72);
  box-shadow:inset 0 0 0 1px rgba(229,195,119,.1);
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  display:grid;
  grid-template-columns:minmax(102px,.72fr) minmax(130px,1.28fr);
  grid-template-rows:1fr;
  align-items:center;
  gap:12px;
  min-height:0;
  padding:5px 2px;
  overflow:visible;
  border:0;
  border-bottom:1px solid rgba(229,195,119,.12);
  border-radius:0;
  background:transparent;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:nth-last-child(-n+2){border-bottom:0}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:is(:hover,:focus-within){background:rgba(229,195,119,.055)}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{grid-column:1;grid-row:1;gap:10px}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{color:#e4d3ab;font-size:.74rem;font-weight:850;line-height:1.1}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-field-icon{width:27px;height:27px;flex-basis:27px}
#profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger,.tc5-multiselect>summary),
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{
  grid-column:2;
  grid-row:1;
  min-height:40px!important;
  padding-inline:11px!important;
  border-color:rgba(212,169,79,.3)!important;
  border-radius:6px!important;
  background:#090805!important;
  color:#f2eadb!important;
  font-size:.68rem!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{display:flex;justify-content:flex-start;gap:9px}

#profileLineupPanel .tc7-automation .tc5-clear-reactions{
  min-height:30px;
  padding:0 13px;
  border-radius:5px;
  background:rgba(100,24,31,.38);
  font-size:.5rem;
}
#profileLineupPanel .tc7-reaction-canvas{
  position:relative;
  height:calc(100% - 41px);
  min-height:190px;
  overflow:hidden;
  border-radius:11px;
  background:#0b0906;
  box-shadow:inset 0 0 0 1px rgba(229,195,119,.2);
}
#profileLineupPanel .tc7-reaction-canvas>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 58%;
  opacity:.78;
  filter:saturate(.84) contrast(1.03);
  transform:scale(1.08);
}
#profileLineupPanel .tc7-reaction-canvas::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,4,3,.04) 12%,rgba(5,4,3,.22) 45%,rgba(5,4,3,.88) 100%);
  pointer-events:none;
}
#profileLineupPanel .tc7-reaction-track{
  position:absolute;
  z-index:1;
  right:15px;
  bottom:17px;
  left:15px;
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  align-items:end;
  min-height:96px;
}
#profileLineupPanel .tc7-reaction-track::before{
  content:"";
  position:absolute;
  top:24px;
  right:5%;
  left:5%;
  height:2px;
  background:linear-gradient(90deg,#b45861,#d1a655 23%,#d1a655 77%,#b45861);
  opacity:.62;
}
#profileLineupPanel .tc7-reaction-node{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:50px auto 15px;
  justify-items:center;
  gap:1px;
  min-width:0;
  min-height:94px;
  padding:0 3px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#e9dfcf;
  box-shadow:none;
}
#profileLineupPanel .tc7-reaction-node:hover,
#profileLineupPanel .tc7-reaction-node:focus-visible{background:linear-gradient(180deg,transparent,rgba(229,195,119,.11));outline:1px solid rgba(229,195,119,.35);outline-offset:-1px}
#profileLineupPanel .tc7-reaction-node>img{
  align-self:start;
  width:46px;
  height:46px;
  padding:7px;
  border:1px solid rgba(229,195,119,.35);
  border-radius:50%;
  background:#120e08;
  box-shadow:0 5px 14px rgba(0,0,0,.46);
}
#profileLineupPanel .tc7-reaction-node.enabled>img{border-color:#e0bd68;background:#2a1e0c;box-shadow:0 0 0 3px rgba(208,161,72,.12),0 5px 14px #000}
#profileLineupPanel .tc7-reaction-node.danger>img{border-color:rgba(200,88,99,.64)}
#profileLineupPanel .tc7-reaction-node>span{display:grid;justify-items:center;min-width:0}
#profileLineupPanel .tc7-reaction-node>span strong{max-width:100%;overflow:hidden;color:#f0e5d1;font-size:.64rem;line-height:1.15;text-align:center;text-overflow:ellipsis;white-space:nowrap}
#profileLineupPanel .tc7-reaction-node>span small{color:#b7aa95;font-size:.47rem;font-weight:850;letter-spacing:.08em}
#profileLineupPanel .tc7-reaction-node>i{color:#d17580;font-size:.47rem;font-style:normal;font-weight:950;letter-spacing:.1em}
#profileLineupPanel .tc7-reaction-node.enabled>i{color:#e3bf69}
#profileLineupPanel .tc5-screen .tc5-bottom-bar{height:49px;min-height:49px;padding:5px 0 0;border:0;background:transparent}

/* Next Match: a single no-scroll scouting answer, without abstract charts. */
.lineup-scouting-content{
  grid-template-rows:170px minmax(0,1fr);
  width:min(1500px,97vw);
  height:min(850px,94vh);
  max-height:94vh;
}
.lineup-scouting-title{
  grid-template-columns:minmax(350px,1fr) minmax(580px,1.36fr) 42px;
  min-height:170px;
  padding:22px 26px;
  background-image:linear-gradient(90deg,rgba(5,4,3,.19),rgba(5,4,3,.02) 54%,rgba(5,4,3,.24)),linear-gradient(180deg,rgba(5,4,3,.01),rgba(5,4,3,.3)),url('/management-backgrounds/goat-opposition-dossier.webp');
  background-position:center 54%;
}
.lineup-scouting-opponent h2{font-size:2.55rem;text-shadow:0 3px 12px #000}
.lineup-scouting-opponent .eyebrow{text-shadow:0 2px 8px #000}
.lineup-scouting-fixture-facts article{background:rgba(7,6,4,.5);backdrop-filter:blur(2px)}
.lineup-scouting-body{grid-template-rows:minmax(0,1fr) 205px;overflow:hidden}
.lineup-scouting-decision{
  grid-template-columns:minmax(330px,1.08fr) minmax(310px,.92fr) minmax(380px,1.08fr);
  gap:0;
  padding:18px 22px;
}
.lineup-scouting-decision>section{padding:2px 22px}
.lineup-scouting-shape-copy{grid-template-columns:auto 1fr auto;align-items:end;gap:4px 12px}
.lineup-scouting-shape-copy small{grid-column:1/-1}
.lineup-scouting-shape-copy strong{font-size:3rem}
.lineup-scouting-shape-copy>b{align-self:center;color:#d8b35e;font-size:.8rem}
.lineup-scouting-shape-board{max-width:470px}
.lineup-scouting-signature{display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;align-content:start}
.lineup-scouting-signature>h3{margin:0;color:#c3933a;font:950 .68rem var(--body);letter-spacing:.16em}
.lineup-scouting-style-rows{display:grid;align-content:center;gap:20px;height:100%}
.lineup-scouting-style-row{
  display:grid;
  grid-template-columns:72px minmax(94px,.65fr) minmax(85px,1fr) 34px;
  align-items:center;
  gap:10px;
}
.lineup-scouting-style-row small{color:#b99a5d;font-size:.55rem;font-weight:950;letter-spacing:.1em}
.lineup-scouting-style-row>b{overflow:hidden;color:#f2e6ca;font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-style-row>i{height:8px;overflow:hidden;border-radius:20px;background:#2a2317}
.lineup-scouting-style-row>i>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#9a7127,#e3c577)}
.lineup-scouting-style-row>em{color:#d4b05e;font-size:.68rem;font-style:normal;font-weight:900;text-align:right}
.lineup-scouting-verdict{grid-template-rows:1fr 1fr;align-content:stretch}
.lineup-scouting-verdict>article{align-content:center;min-height:0;padding:16px 10px 16px 22px}
.lineup-scouting-verdict>article strong{font-size:1.22rem}
.lineup-scouting-verdict>article p{font-size:.82rem;line-height:1.48}
.lineup-scouting-context{
  grid-template-columns:minmax(320px,1.1fr) minmax(390px,1.35fr) minmax(290px,1fr);
  gap:18px;
  padding:14px 24px 17px;
  border-top:0;
  background:rgba(6,5,3,.72);
}
.lineup-scouting-context>section{padding:5px 18px;background:rgba(22,18,11,.55);border-radius:8px}
.lineup-scouting-context>section:first-child{padding-left:18px}
.lineup-scouting-context>section+section{border-left:0}
.lineup-scouting-context .lineup-scouting-match{min-height:46px;padding:4px 0}
.lineup-scouting-context .lineup-scouting-match>strong{font-size:.81rem}
.lineup-scouting-context .lineup-scouting-match b{font-size:.58rem}
.lineup-scouting-last .lineup-scouting-form{display:flex;align-items:center;gap:14px;margin-top:7px}
.lineup-scouting-last .lineup-scouting-form>small{color:#c2933e;font-size:.55rem;font-weight:950;letter-spacing:.12em}
.lineup-scouting-form>div{gap:6px;margin-top:0}
.lineup-scouting-form b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#315d3d;color:#eaffef;font-size:.65rem}
.lineup-scouting-form b.d{background:#61552f}.lineup-scouting-form b.l{background:#6c2832}.lineup-scouting-form b.empty{background:#17140e;color:#6f675b}
.lineup-scouting-missing>div{gap:9px;margin-top:13px}
.lineup-scouting-context .lineup-scouting-missing span b{font-size:.79rem}
.lineup-scouting-context .lineup-scouting-missing span small{font-size:.62rem}
.lineup-scouting-h2h>header{margin-bottom:7px}

/* Compare: title, selectors, portraits and score live in one uninterrupted hero. */
.squad-comparison-content{
  width:min(1540px,97vw);
  padding:0 20px 22px;
  background:linear-gradient(135deg,#0d0b08,#070604 62%,#10090a);
}
.squad-compare-hero{
  display:grid;
  grid-template-rows:42px 44px minmax(116px,1fr);
  gap:7px;
  min-height:244px;
  margin:0 -20px;
  padding:13px 26px 14px;
  border-radius:16px 16px 0 0;
  background-image:linear-gradient(90deg,rgba(6,5,4,.16),rgba(6,5,4,.34) 50%,rgba(6,5,4,.16)),linear-gradient(180deg,rgba(6,5,4,.04),rgba(6,5,4,.54)),url('/management-backgrounds/goat-player-compare.webp');
  background-position:center 48%;
  background-size:cover;
}
.squad-compare-hero>.squad-compare-title{
  display:flex;
  align-items:start;
  justify-content:space-between;
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
}
.squad-compare-hero>.squad-compare-title h2{margin:0;color:#f4e1ad;font:950 2rem/.95 var(--display);text-shadow:0 3px 10px #000}
.squad-compare-hero>.squad-compare-title button{background:rgba(7,6,4,.56)}
.squad-compare-hero>.squad-compare-selectors{grid-template-columns:repeat(2,minmax(0,1fr));align-self:stretch;gap:74px;margin:0}
.squad-compare-hero .squad-compare-selectors :is(select,.goat-select-trigger){min-height:44px!important;background:rgba(7,6,4,.78)!important;backdrop-filter:blur(3px)}
.squad-compare-headers{min-height:116px;padding:0 8px}
.squad-comparison-content .squad-compare-player{min-height:110px;background:transparent!important}
.squad-comparison-content .squad-compare-player>button{min-height:110px;padding:3px 4px;background:transparent!important}
.squad-comparison-content .squad-compare-player img{width:88px;height:104px}
.squad-comparison-content .squad-compare-player strong{font-size:1.25rem;text-shadow:0 2px 8px #000}
.squad-comparison-content .squad-compare-player em{font-size:.72rem;text-shadow:0 2px 7px #000}
.squad-comparison-content .squad-compare-player button>b{font-size:3rem;text-shadow:0 3px 10px #000}
.squad-compare-tabs{margin-top:0}
.squad-compare-metrics{overflow:visible!important}
.squad-compare-facts{margin-top:0}
.squad-compare-attribute-grid,.squad-compare-stat-groups{background:transparent}
.squad-comparison-content .squad-compare-attribute-group,
.squad-compare-stat-groups>section{background:transparent!important}
.squad-comparison-content .squad-compare-row:not(.is-fact)>span{font-size:.61rem}

/* The opened reaction keeps the same data and actions, but uses a legible 3×3 control matrix. */
#profileLineupPanel .tc5-reaction-editor .tc5-reaction-hero p{display:none}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px 10px;
}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics::before{content:none}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control{
  display:grid;
  grid-template-columns:minmax(88px,.8fr) minmax(118px,1.2fr);
  grid-template-rows:46px;
  align-items:center;
  gap:8px;
  min-width:0;
  min-height:46px;
  padding:3px 7px;
}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control>.tc5-control-label,
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control>span:first-child{grid-column:1;grid-row:1;margin:0}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control :is(select,.goat-select-trigger,.tc5-multiselect),
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control>.tc5-switch{grid-column:2;grid-row:1;min-width:0}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics .tc5-control-label>span,
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control>span:first-child{font-size:.61rem;line-height:1.12}

@media(max-width:1180px){
  #profileLineupPanel .tc7-plan-canvas{grid-template-columns:minmax(250px,38%) minmax(0,1fr)}
  #profileLineupPanel .tc5-screen .tc7-control-grid{grid-template-columns:1fr;grid-template-rows:repeat(8,minmax(0,1fr));gap:0}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:nth-last-child(-n+2){border-bottom:1px solid rgba(229,195,119,.12)}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:last-child{border-bottom:0}
  #profileLineupPanel .tc7-reaction-track{grid-template-columns:repeat(5,minmax(0,1fr));row-gap:5px}
  #profileLineupPanel .tc7-reaction-track::before{display:none}
  .lineup-scouting-title{grid-template-columns:minmax(300px,.85fr) minmax(530px,1.35fr) 42px}
  .lineup-scouting-decision{grid-template-columns:minmax(290px,1fr) minmax(270px,.9fr) minmax(320px,1fr);padding-inline:12px}
  .lineup-scouting-decision>section{padding-inline:13px}
  .lineup-scouting-context{grid-template-columns:1fr 1.2fr 1fr;padding-inline:12px}
}

@media(max-width:900px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:auto auto}
  #profileLineupPanel .tc7-plan-canvas{grid-template-columns:1fr;height:auto}
  #profileLineupPanel .tc7-plan-canvas>figure{min-height:300px}
  #profileLineupPanel .tc5-screen .tc7-control-grid{height:auto;grid-auto-rows:62px}
  #profileLineupPanel .tc7-reaction-canvas{min-height:420px}
  #profileLineupPanel .tc7-reaction-track{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lineup-scouting-content{display:block;height:95vh;overflow-y:auto}
  .lineup-scouting-body{display:block;overflow:visible}
  .lineup-scouting-decision,.lineup-scouting-context{grid-template-columns:1fr}
  .lineup-scouting-decision>section+section{border-left:0}
  .squad-compare-hero{grid-template-rows:auto auto auto;min-height:360px}
  .squad-compare-headers{min-height:230px}
}

@media(min-width:1121px) and (max-width:1400px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:minmax(0,259px) minmax(165px,1fr)}
  #profileLineupPanel .tc7-reaction-canvas{min-height:0}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{grid-template-columns:minmax(78px,.72fr) minmax(96px,1.28fr);gap:6px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{gap:6px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{font-size:.66rem}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-field-icon{width:24px;height:24px;flex-basis:24px}
}

/* 3.0A.50.41 — one tactical room, state-led controls, and open review states. */

/* The mode rail and match context are one deliberate top row. */
#profileLineupPanel .lineup-workspace-toolbar.mode-tactics{
  grid-template-columns:var(--lineup-tactics-left-width,minmax(440px,.78fr)) minmax(570px,1fr)!important;
  gap:clamp(13px,1.15vw,20px);
  align-items:stretch;
}
#profileLineupPanel .lineup-tactics-context{display:block;min-width:0}
#profileLineupPanel .lineup-tactics-context.hidden{display:none!important}
#profileLineupPanel .lineup-tactics-context .tc5-next-match-summary{
  display:grid;
  grid-template-columns:1.18fr .82fr .9fr auto;
  gap:0;
  box-sizing:border-box;
  height:100%;
  min-height:58px;
  margin:0;
  padding:0 5px;
  overflow:hidden;
  border:0;
  border-radius:11px;
  background:rgba(10,9,7,.28);
}
#profileLineupPanel .lineup-tactics-context .tc5-meta{
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
  min-height:58px;
  padding:6px 15px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#f6ecda;
  text-align:left;
}
#profileLineupPanel .lineup-tactics-context .tc5-meta+.tc5-meta{border-left:1px solid rgba(212,169,79,.17)}
#profileLineupPanel .lineup-tactics-context .tc5-meta>span{display:flex;align-items:center;gap:7px;color:#d4a94f;font-size:.52rem;font-weight:950;letter-spacing:.11em;text-transform:uppercase}
#profileLineupPanel .lineup-tactics-context .tc5-meta-icon{width:18px;height:18px;object-fit:contain}
#profileLineupPanel .lineup-tactics-context .tc5-meta>b{overflow:hidden;color:#f7efe1;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}
#profileLineupPanel .lineup-tactics-context button.tc5-meta{cursor:pointer}
#profileLineupPanel .lineup-tactics-context button.tc5-meta:is(:hover,:focus-visible){background:rgba(212,169,79,.08);outline:1px solid rgba(229,195,119,.4);outline-offset:-1px}

/* The Tactics panel has no summary row of its own. */
#profileLineupPanel .lineup-tactics-workspace>.tc5-screen,
#profileLineupPanel .tc5-screen{
  display:block;
  height:100%;
}
#profileLineupPanel .tc5-screen>.tactical-centre-v5{height:100%;overflow:hidden}
#profileLineupPanel .tc5-screen .tc5-form{grid-template-rows:minmax(0,1fr) 50px;height:100%}
#profileLineupPanel .tc5-screen .tc5-left-columns{
  grid-template-rows:minmax(382px,1.42fr) minmax(205px,.78fr);
  gap:9px;
  height:100%;
}

/* Starting Plan is the generated room itself, with one non-blurred reading veil. */
#profileLineupPanel .tc5-screen .tc7-starting{
  padding:0;
  overflow:hidden;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
#profileLineupPanel .tc5-screen .tc7-starting>header{
  position:absolute;
  z-index:4;
  top:12px;
  left:18px;
  min-height:0;
  margin:0;
  pointer-events:none;
}
#profileLineupPanel .tc5-screen .tc7-starting>header h2{color:#f4dda0;text-shadow:0 3px 12px #000}
#profileLineupPanel .tc7-plan-canvas{
  position:absolute;
  inset:0;
  display:block;
  width:auto;
  height:auto;
}
#profileLineupPanel .tc7-plan-canvas>figure{
  position:absolute;
  inset:0;
  min-width:0;
  min-height:0;
  margin:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:#0b0805;
  box-shadow:none;
}
#profileLineupPanel .tc7-plan-canvas>figure::after{
  background:linear-gradient(180deg,rgba(4,3,2,.22),rgba(4,3,2,.03) 35%,rgba(4,3,2,.14) 72%,rgba(4,3,2,.68));
}
#profileLineupPanel .tc7-plan-canvas>figure>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 57%;
  opacity:1;
  filter:saturate(.96) contrast(1.04);
  transform:scale(1.035);
}
#profileLineupPanel .tc7-plan-canvas>figure>figcaption{right:18px;bottom:12px}
#profileLineupPanel .tc5-screen .tc7-control-grid{
  position:absolute;
  z-index:3;
  inset:45px 18px 26px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:0 8%;
  box-sizing:border-box;
  height:auto;
  padding:10px 18px;
  overflow:visible;
  border:0;
  border-radius:8px;
  background:linear-gradient(90deg,rgba(7,6,4,.88) 0%,rgba(7,6,4,.84) 39%,rgba(7,6,4,.38) 48%,rgba(7,6,4,.38) 52%,rgba(7,6,4,.84) 61%,rgba(7,6,4,.88) 100%);
  box-shadow:none;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  display:grid;
  grid-template-columns:minmax(92px,.7fr) minmax(94px,.82fr) minmax(130px,1fr);
  grid-template-rows:1fr;
  align-items:center;
  gap:9px;
  min-height:0;
  padding:4px 2px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:is(:hover,:focus-within){background:rgba(229,195,119,.065);box-shadow:none}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{grid-column:1;grid-row:1;gap:7px}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{color:#eee2c8;font-size:.67rem;font-weight:900;line-height:1.12;text-shadow:0 2px 5px #000}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-field-icon{width:23px;height:23px;flex-basis:23px}
#profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger,.tc5-multiselect>summary),
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{
  grid-column:3;
  grid-row:1;
  min-height:34px!important;
  padding:5px 8px!important;
  border:1px solid rgba(212,169,79,.31)!important;
  border-radius:5px!important;
  background:rgba(6,5,3,.92)!important;
  color:#f4ecdc!important;
  font-size:.62rem!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{display:flex;justify-content:flex-start;gap:7px}


/* Automated Reactions is part of the same command workspace, not a window. */
#profileLineupPanel .tc5-screen .tc7-automation{
  padding:0;
  overflow:hidden;
  border:0!important;
  border-radius:0;
  background:transparent!important;
}
#profileLineupPanel .tc5-screen .tc7-automation>header{z-index:3;min-height:34px;margin:0;padding:0 2px!important}
#profileLineupPanel .tc7-reaction-canvas{
  position:absolute;
  inset:34px 0 0;
  height:auto;
  min-height:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc7-reaction-canvas>img{object-position:center 54%;opacity:.9;filter:saturate(.9) contrast(1.05);transform:scale(1.025)}
#profileLineupPanel .tc7-reaction-canvas::after{background:linear-gradient(180deg,rgba(5,4,3,.12),rgba(5,4,3,.4) 54%,rgba(5,4,3,.82))}
#profileLineupPanel .tc7-reaction-track{right:11px;bottom:8px;left:11px;min-height:92px}
#profileLineupPanel .tc7-reaction-track::before{top:23px}
#profileLineupPanel .tc7-reaction-node{grid-template-rows:48px auto 14px;height:90px;min-height:90px}
#profileLineupPanel .tc7-reaction-node>img{width:43px;height:43px}
#profileLineupPanel .tc7-reaction-node>span strong{font-size:.58rem}
#profileLineupPanel .tc7-reaction-node>span small,#profileLineupPanel .tc7-reaction-node>i{font-size:.43rem}

/* Next Match: exposed stadium header, a 2×2 visual style read, one lower strip. */
.lineup-scouting-title{background-position:center 54%}
.lineup-scouting-fixture-facts article{
  border-radius:0;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.lineup-scouting-signature{grid-template-rows:auto minmax(0,1fr);gap:9px}
.lineup-scouting-style-rows{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  align-content:stretch;
  gap:8px 10px;
  height:100%;
}
.lineup-scouting-style-sector{
  display:grid;
  grid-template-columns:minmax(78px,.78fr) minmax(64px,.62fr);
  align-items:center;
  gap:7px;
  min-width:0;
  padding:7px 4px;
  border:0;
  border-radius:0;
  background:transparent;
}
.lineup-scouting-style-sector>span{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:3px 5px;min-width:0}
.lineup-scouting-style-sector small{grid-column:1/-1;color:#bb9450;font-size:.47rem;font-weight:950;letter-spacing:.1em}
.lineup-scouting-style-sector b{overflow:hidden;color:#f1e3c7;font-size:.66rem;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-style-sector em{color:#dbb65e;font-size:.58rem;font-style:normal;font-weight:950;text-align:right}
.lineup-scouting-context{gap:0;background:rgba(6,5,3,.58)}
.lineup-scouting-context>section,
.lineup-scouting-context>section:first-child{
  padding:5px 18px;
  border:0;
  border-radius:0;
  background:transparent;
}
.lineup-scouting-context>section+section{border-left:1px solid rgba(229,195,119,.15)}

/* Compare waits inside the artwork, not in an extra placeholder surface. */
.squad-comparison-content.is-empty{
  width:min(1380px,94vw);
  height:min(430px,72vh);
  min-height:340px;
  padding:0;
  overflow:hidden;
}
.squad-comparison-content.is-empty .squad-compare-hero{
  grid-template-rows:54px 48px minmax(0,1fr);
  width:100%;
  height:100%;
  min-height:100%;
  margin:0;
  padding:20px 28px;
  background-image:linear-gradient(90deg,rgba(6,5,4,.24),rgba(6,5,4,.12) 48%,rgba(6,5,4,.2)),linear-gradient(180deg,rgba(6,5,4,.04),rgba(6,5,4,.42)),url('/management-backgrounds/goat-player-compare.webp');
}
.squad-comparison-content.is-empty .squad-compare-selectors{align-self:start}
.squad-comparison-content.is-partial .squad-compare-hero{grid-template-rows:42px 44px minmax(116px,1fr)}
.squad-comparison-content:is(.is-empty,.is-partial) .squad-compare-tabs,
.squad-comparison-content:is(.is-empty,.is-partial) .squad-compare-metrics{display:none}
.squad-compare-waiting{display:none!important}

@media(max-width:1180px){
  #profileLineupPanel .tc5-screen .tc7-control-grid{gap:0 3%;padding-inline:10px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{grid-template-columns:minmax(78px,.72fr) minmax(78px,.7fr) minmax(100px,1fr);gap:5px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{font-size:.59rem}
}
@media(max-width:900px){
  #profileLineupPanel .lineup-workspace-toolbar.mode-tactics{grid-template-columns:1fr!important}
  #profileLineupPanel .lineup-tactics-context .tc5-next-match-summary{grid-template-columns:1fr 1fr 1fr}
  #profileLineupPanel .tc5-screen .tc7-starting{min-height:620px}
  #profileLineupPanel .tc5-screen .tc7-control-grid{grid-template-columns:1fr;grid-template-rows:repeat(8,minmax(58px,1fr));gap:0;overflow:auto}
  #profileLineupPanel .tc7-reaction-canvas{min-height:420px}
  .lineup-scouting-style-rows{grid-template-columns:1fr}
  .lineup-scouting-context>section+section{border-left:0}
  .squad-comparison-content.is-empty{height:min(520px,90vh)}
}
@media(min-width:901px) and (max-width:1400px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc5-left-columns{grid-template-rows:minmax(0,1.56fr) minmax(0,.74fr)}
}

/* 3.0A.50.42 — generated state photography and one-surface review windows. */

/* Tactics is one room. Sections remain semantic only; they do not draw panels. */
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  position:relative;
  isolation:isolate;
  grid-template-rows:minmax(385px,1.42fr) minmax(205px,.78fr);
  gap:0;
  overflow:hidden;
  background-image:
    radial-gradient(ellipse at 50% 35%,rgba(7,5,3,.16),rgba(7,5,3,.52) 78%,rgba(7,5,3,.9)),
    linear-gradient(180deg,rgba(4,3,2,.12),rgba(4,3,2,.38)),
    url('/management-backgrounds/goat-tactics-workspace-v1.webp');
  background-position:center 55%;
  background-size:cover;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene::after{
  content:"";
  position:absolute;
  z-index:0;
  inset:23px 15px 200px;
  pointer-events:none;
  background:radial-gradient(ellipse at center,rgba(5,4,3,.78) 0%,rgba(5,4,3,.68) 48%,rgba(5,4,3,.16) 78%,transparent 100%);
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene>:is(.tc7-starting,.tc7-automation){
  position:relative;
  z-index:1;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-starting>header{
  position:absolute;
  z-index:4;
  top:10px;
  right:20px;
  left:20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:30px;
  margin:0;
  pointer-events:none;
}
#profileLineupPanel .tc7-formation-readout{display:flex;align-items:baseline;gap:9px;text-shadow:0 2px 8px #000}
#profileLineupPanel .tc7-formation-readout small{color:#bc9346;font-size:.48rem;font-weight:950;letter-spacing:.15em}
#profileLineupPanel .tc7-formation-readout strong{color:#f4e2b2;font:950 1.14rem var(--display)}
#profileLineupPanel .tc7-plan-canvas{position:absolute;inset:0;display:block}
#profileLineupPanel .tc5-screen .tc7-control-grid{
  position:absolute;
  z-index:3;
  inset:43px 22px 15px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:0 5%;
  height:auto;
  padding:5px 10px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  display:grid;
  grid-template-columns:minmax(82px,.68fr) minmax(108px,.84fr) minmax(126px,1fr);
  align-items:center;
  gap:8px;
  min-height:0;
  padding:3px 2px;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{grid-column:1;grid-row:1}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{color:#f0e4cd;font-size:.66rem;font-weight:950;line-height:1.1;text-shadow:0 2px 7px #000}
.tc5-state-image{
  position:relative;
  min-width:0;
  overflow:hidden;
  background:transparent;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 55%,rgba(0,0,0,.82) 72%,transparent 100%);
  mask-image:radial-gradient(ellipse at center,#000 55%,rgba(0,0,0,.82) 72%,transparent 100%);
}
.tc5-state-image>img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.92) contrast(1.05)}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{grid-column:2;grid-row:1;width:100%;height:62px}
#profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger,.tc5-multiselect>summary),
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{grid-column:3;grid-row:1}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-field-icon{display:none!important}
#profileLineupPanel .tc5-screen .tc7-automation{
  border-top:1px solid rgba(216,174,82,.2)!important;
}
#profileLineupPanel .tc5-screen .tc7-automation>header{z-index:4;padding:7px 20px 0!important}
#profileLineupPanel .tc7-reaction-canvas{inset:35px 6px 3px}
#profileLineupPanel .tc7-reaction-canvas>img{
  opacity:.72;
  transform:scale(1.06);
  -webkit-mask-image:radial-gradient(ellipse at center,#000 50%,rgba(0,0,0,.7) 72%,transparent 100%);
  mask-image:radial-gradient(ellipse at center,#000 50%,rgba(0,0,0,.7) 72%,transparent 100%);
}
#profileLineupPanel .tc7-reaction-canvas::after{background:linear-gradient(180deg,transparent,rgba(5,4,3,.22) 48%,rgba(5,4,3,.64))}
#profileLineupPanel .tc7-reaction-track{right:14px;bottom:5px;left:14px}

/* Reaction editor tactical values use the same generated raster vocabulary. */
#profileLineupPanel .tc5-modal-tactics .tc5-control{grid-template-columns:minmax(92px,.7fr) minmax(105px,.86fr) minmax(130px,1fr);gap:8px}
#profileLineupPanel .tc5-modal-tactics .tc5-state-image{grid-column:2;grid-row:1;width:100%;height:58px}
#profileLineupPanel .tc5-modal-tactics .tc5-control-label{grid-column:1;grid-row:1}
#profileLineupPanel .tc5-modal-tactics .tc5-control>:is(select,.goat-select-trigger,.tc5-multiselect),
#profileLineupPanel .tc5-modal-tactics .tc5-switch-control .tc5-tactic-switch{grid-column:3;grid-row:1}

/* Next Match is one stadium dossier. Only the outer window owns a surface. */
.lineup-scouting-content{
  position:relative;
  isolation:isolate;
  background-image:
    linear-gradient(180deg,rgba(5,4,3,.5),rgba(7,6,4,.78) 38%,rgba(7,6,4,.9)),
    linear-gradient(90deg,rgba(5,4,3,.58),rgba(5,4,3,.18) 48%,rgba(5,4,3,.58)),
    url('/management-backgrounds/goat-opposition-dossier.webp');
  background-position:center 50%;
  background-size:cover;
}
.lineup-scouting-content>:is(.lineup-scouting-title,.lineup-scouting-body){position:relative;z-index:1}
.lineup-scouting-title,
.lineup-scouting-body,
.lineup-scouting-decision,
.lineup-scouting-context,
.lineup-scouting-content :is(.lineup-scouting-shape,.lineup-scouting-signature,.lineup-scouting-verdict,.lineup-scouting-last,.lineup-scouting-h2h,.lineup-scouting-missing){background:transparent!important;box-shadow:none!important}
.lineup-scouting-title{background-image:none!important}
.lineup-scouting-fixture-facts article{background:transparent!important;box-shadow:none!important}
.lineup-scouting-decision>section,
.lineup-scouting-context>section{border-radius:0!important;background:transparent!important;box-shadow:none!important}
.lineup-scouting-shape-board{
  overflow:hidden;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 58%,rgba(0,0,0,.76) 76%,transparent 100%);
  mask-image:radial-gradient(ellipse at center,#000 58%,rgba(0,0,0,.76) 76%,transparent 100%);
}
.lineup-scouting-shape-board>img{width:100%;height:100%;object-fit:cover;filter:saturate(.9) contrast(1.08)}
.lineup-scouting-shape-board>i{display:none!important}
.lineup-scouting-style-sector .tc5-state-image{width:100%;height:64px}
.lineup-scouting-style-sector .tc5-state-image>img{object-position:center}
.lineup-scouting-verdict>article,
.lineup-scouting-verdict>article.weakness{border-radius:0!important;background:transparent!important;box-shadow:none!important}
.lineup-scouting-context{border-top:1px solid rgba(229,195,119,.16);background:transparent!important}
.lineup-scouting-context>section+section{border-left:1px solid rgba(229,195,119,.15)}
.lineup-scouting-content .lineup-scouting-match{background:transparent!important;box-shadow:none!important}

/* Compare players share one uninterrupted hero surface. */
.squad-compare-hero{border-radius:0;background-position:center 48%}
.squad-comparison-content .squad-compare-player,
.squad-comparison-content .squad-compare-player>button,
.squad-comparison-content .squad-compare-player.empty{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.squad-comparison-content .squad-compare-player.empty{display:grid;place-items:center;padding:0 22px;color:#d1c6b4;text-align:center;text-shadow:0 2px 8px #000}
.squad-comparison-content .squad-compare-player img{background:transparent}
.squad-compare-headers{position:relative}

@media(max-width:1180px){
  #profileLineupPanel .tc5-screen .tc7-control-grid{gap:0 2%;padding-inline:4px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{grid-template-columns:minmax(70px,.65fr) minmax(86px,.7fr) minmax(106px,1fr);gap:5px}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{height:52px}
}
@media(max-width:900px){
  #profileLineupPanel .tc5-screen .tc8-tactical-scene{grid-template-rows:minmax(650px,1fr) minmax(380px,.7fr)}
  #profileLineupPanel .tc5-screen .tc7-control-grid{grid-template-columns:1fr;grid-template-rows:repeat(8,minmax(68px,1fr));overflow:auto}
  .lineup-scouting-style-sector .tc5-state-image{height:78px}
}

/* Second visual pass: closer imagery, stronger reading sizes, resilient compact view. */
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  background-image:
    radial-gradient(ellipse at 50% 35%,rgba(7,5,3,.09),rgba(7,5,3,.4) 80%,rgba(7,5,3,.78)),
    linear-gradient(180deg,rgba(4,3,2,.06),rgba(4,3,2,.25)),
    url('/management-backgrounds/goat-tactics-workspace-v1.webp');
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene::after{
  inset:24px 12px 196px;
  background:radial-gradient(ellipse at center,rgba(5,4,3,.7) 0%,rgba(5,4,3,.57) 50%,rgba(5,4,3,.12) 80%,transparent 100%);
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{font-size:.73rem;letter-spacing:.01em}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{height:68px}
#profileLineupPanel .tc7-reaction-node>span strong{font-size:.64rem}
#profileLineupPanel .tc7-reaction-node>span small,#profileLineupPanel .tc7-reaction-node>i{font-size:.47rem}

#profileLineupPanel .tc5-modal-tactics .tc5-control{
  display:grid!important;
  grid-template-columns:minmax(86px,.7fr) minmax(112px,.94fr) minmax(118px,1fr)!important;
  grid-template-rows:64px!important;
  align-items:center!important;
  gap:8px!important;
  min-height:70px!important;
}
#profileLineupPanel .tc5-modal-tactics .tc5-control-label{grid-column:1!important;grid-row:1!important}
#profileLineupPanel .tc5-modal-tactics .tc5-state-image{grid-column:2!important;grid-row:1!important;height:64px}
#profileLineupPanel .tc5-modal-tactics .tc5-control>:is(select,.goat-select-trigger,.tc5-multiselect),
#profileLineupPanel .tc5-modal-tactics .tc5-switch-control .tc5-tactic-switch{grid-column:3!important;grid-row:1!important;align-self:center!important}

.lineup-scouting-content{
  background-image:
    linear-gradient(180deg,rgba(5,4,3,.34),rgba(7,6,4,.65) 40%,rgba(7,6,4,.8)),
    linear-gradient(90deg,rgba(5,4,3,.44),rgba(5,4,3,.08) 48%,rgba(5,4,3,.45)),
    url('/management-backgrounds/goat-opposition-dossier.webp');
}
.lineup-scouting-style-sector .tc5-state-image{height:76px}
.lineup-scouting-style-sector small{font-size:.52rem}
.lineup-scouting-style-sector b{font-size:.72rem}
.lineup-scouting-style-sector em{font-size:.64rem}
.lineup-scouting-verdict>article p{font-size:.86rem}
.lineup-scouting-context :is(header>small,section>small){font-size:.63rem}
.lineup-scouting-context .lineup-scouting-match>strong{font-size:.86rem}

.squad-comparison-content.is-partial{width:min(1540px,92vw);height:min(410px,70vh);padding:0;overflow:hidden}
.squad-comparison-content.is-partial .squad-compare-hero{grid-template-rows:58px 52px minmax(170px,1fr);height:100%;min-height:100%;padding:20px 28px}
.squad-comparison-content .squad-compare-player img{
  width:94px;
  height:94px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(215,174,86,.18),rgba(6,5,4,.2) 68%,transparent);
  -webkit-mask-image:radial-gradient(circle,#000 64%,rgba(0,0,0,.78) 76%,transparent 100%);
  mask-image:radial-gradient(circle,#000 64%,rgba(0,0,0,.78) 76%,transparent 100%);
}

@media(min-width:901px) and (max-width:1400px) and (max-height:950px){
  #profileLineupPanel .tc5-screen .tc8-tactical-scene{grid-template-rows:minmax(0,1.56fr) minmax(0,.74fr)!important}
  #profileLineupPanel .tc7-reaction-canvas{inset:32px 4px 0}
  #profileLineupPanel .tc7-reaction-track{bottom:1px;min-height:82px}
  #profileLineupPanel .tc7-reaction-node{grid-template-rows:42px auto 12px;height:80px;min-height:80px}
  #profileLineupPanel .tc7-reaction-node>img{width:39px;height:39px}
}

/* 3.0A.50.43 — focused one-surface correction.
   The room artwork is the Tactics surface; semantic sections do not draw a
   second frame or reading panel over it. */
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  border:0!important;
  border-radius:0!important;
  background-color:transparent!important;
  background-image:
    radial-gradient(ellipse at 50% 42%,rgba(5,4,3,.08) 0%,rgba(5,4,3,.27) 58%,rgba(5,4,3,.74) 100%),
    linear-gradient(180deg,rgba(4,3,2,.05),rgba(4,3,2,.2) 48%,rgba(4,3,2,.5)),
    url('/management-backgrounds/goat-tactics-workspace-v1.webp')!important;
  background-position:center 54%!important;
  background-size:cover!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene::after{display:none!important;content:none!important}
#profileLineupPanel .tc5-screen .tc8-tactical-scene>:is(.tc7-starting,.tc7-automation){
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding:6px 16px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  grid-template-columns:62px minmax(92px,.72fr) minmax(126px,1fr)!important;
  gap:8px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:center;
  width:58px!important;
  height:58px!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{
  grid-column:2!important;
  grid-row:1!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger,.tc5-multiselect>summary),
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{
  grid-column:3!important;
  grid-row:1!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-multiselect{grid-column:3!important;grid-row:1!important}
.tc5-state-image{
  overflow:visible;
  background:transparent!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
.tc5-state-image>img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  filter:none!important;
}

/* The reaction artwork is content, not a framed panel. Its own alpha-like
   fade supplies the transition into the room while the live HTML rail stays
   above it. */
#profileLineupPanel .tc5-screen .tc7-automation{border:0!important}
#profileLineupPanel .tc7-reaction-canvas{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc7-reaction-canvas::after{display:none!important;content:none!important}
#profileLineupPanel .tc7-reaction-canvas>img{
  object-position:center 50%!important;
  opacity:.72!important;
  filter:saturate(.88) contrast(1.04)!important;
  transform:scale(1.04)!important;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 48%,rgba(0,0,0,.82) 68%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse at center,#000 48%,rgba(0,0,0,.82) 68%,transparent 100%)!important;
}

/* The reaction editor uses the same compact symbol / label / value order. */
#profileLineupPanel .tc5-modal-tactics .tc5-control{
  grid-template-columns:60px minmax(88px,.72fr) minmax(124px,1fr)!important;
}
#profileLineupPanel .tc5-modal-tactics .tc5-state-image{
  grid-column:1!important;
  grid-row:1!important;
  justify-self:center;
  width:56px!important;
  height:56px!important;
}
#profileLineupPanel .tc5-modal-tactics .tc5-control-label{grid-column:2!important;grid-row:1!important}
#profileLineupPanel .tc5-modal-tactics .tc5-control>:is(select,.goat-select-trigger,.tc5-multiselect),
#profileLineupPanel .tc5-modal-tactics .tc5-switch-control .tc5-tactic-switch{grid-column:3!important;grid-row:1!important}

/* Expected formation remains precise data: a clean pitch plus deterministic
   markers. The four Style reads use the generated state-symbol family. */
.lineup-scouting-decision,
.lineup-scouting-context,
.lineup-scouting-decision>section,
.lineup-scouting-context>section,
.lineup-scouting-decision>section+section,
.lineup-scouting-context>section+section{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lineup-scouting-shape-board{
  overflow:hidden;
  border:0!important;
  border-radius:7px!important;
  background:#102b18!important;
  box-shadow:none!important;
  -webkit-mask-image:none!important;
  mask-image:none!important;
}
.lineup-scouting-shape-board>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  opacity:1!important;
  filter:none!important;
}
.lineup-scouting-shape-board>i{
  display:block!important;
  width:9px!important;
  height:9px!important;
  border:2px solid #f3dfaa!important;
  background:#9c7428!important;
  box-shadow:0 0 0 2px rgba(18,13,7,.68),0 3px 6px rgba(0,0,0,.7)!important;
}
.lineup-scouting-shape-board>i.keeper{border-color:#f1bcc1!important;background:#792b36!important}
.lineup-scouting-style-sector{
  grid-template-columns:64px minmax(0,1fr)!important;
  gap:10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lineup-scouting-style-sector::before,
.lineup-scouting-style-sector::after{display:none!important;content:none!important}
.lineup-scouting-style-sector .tc5-state-image{width:60px!important;height:60px!important}
.lineup-scouting-verdict>article{
  border:0!important;
  border-radius:0!important;
  background:radial-gradient(ellipse at 12% 50%,rgba(196,148,58,.16),rgba(126,91,31,.055) 45%,transparent 76%)!important;
  box-shadow:none!important;
}
.lineup-scouting-verdict>article.weakness{
  border:0!important;
  background:radial-gradient(ellipse at 12% 50%,rgba(151,57,69,.18),rgba(102,37,46,.055) 45%,transparent 76%)!important;
  box-shadow:none!important;
}

/* Both selected identities sit directly on the single compare hero image.
   This specificity deliberately beats the earlier right-player card rule. */
.squad-comparison-content .squad-compare-headers>.squad-compare-player,
.squad-comparison-content .squad-compare-headers>.squad-compare-player:nth-child(3),
.squad-comparison-content .squad-compare-headers>.squad-compare-player>button,
.squad-comparison-content .squad-compare-headers>.squad-compare-player:nth-child(3)>button{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.squad-comparison-content .squad-compare-headers>.squad-compare-player::before,
.squad-comparison-content .squad-compare-headers>.squad-compare-player::after,
.squad-comparison-content .squad-compare-headers>.squad-compare-player>button::before,
.squad-comparison-content .squad-compare-headers>.squad-compare-player>button::after{display:none!important;content:none!important}

@media(max-width:900px){
  #profileLineupPanel .tc5-screen .tc7-control-grid{grid-template-columns:1fr!important}
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{grid-template-columns:58px minmax(84px,.72fr) minmax(112px,1fr)!important}
}

/* 3.0A.50.44 — remove the remaining artwork-window edges, centre the live
   reaction rail, and make Attack Focus a direct authoritative selection. */
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  position:relative;
  isolation:isolate;
  overflow:visible!important;
  background-image:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene::before{
  content:none!important;
  display:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene>:is(.tc7-starting,.tc7-automation){
  overflow:visible!important;
}
#profileLineupPanel .tc7-starting-art{
  position:absolute;
  z-index:0;
  inset:-8% -6% -7%;
  width:112%;
  height:115%;
  max-width:none;
  object-fit:cover;
  object-position:center 54%;
  opacity:1;
  filter:brightness(1.22) saturate(1.02) contrast(1.06);
  transform:scale(1.015);
  transform-origin:center;
  pointer-events:none;
  -webkit-mask-image:radial-gradient(ellipse 87% 86% at 50% 50%,#000 48%,rgba(0,0,0,.9) 65%,rgba(0,0,0,.42) 82%,transparent 100%);
  mask-image:radial-gradient(ellipse 87% 86% at 50% 50%,#000 48%,rgba(0,0,0,.9) 65%,rgba(0,0,0,.42) 82%,transparent 100%);
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  position:relative;
  isolation:isolate;
  padding:5px 8px!important;
  border:0!important;
  border-radius:10px!important;
  background:rgba(25,17,10,.25)!important;
  box-shadow:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:is(:hover,:focus-within){
  z-index:50;
  background:rgba(31,22,13,.34)!important;
}
#profileLineupPanel .tc5-state-image,
#profileLineupPanel .tc5-state-image>img,
#profileLineupPanel .tc7-reaction-canvas>img,
#profileLineupPanel .tc7-reaction-track::before{
  pointer-events:none;
}
#profileLineupPanel .tc7-reaction-canvas{
  inset:24px -20px -16px!important;
  overflow:visible!important;
}
#profileLineupPanel .tc7-reaction-canvas>img{
  position:absolute;
  inset:-18% -7% -16%;
  width:114%!important;
  height:134%!important;
  max-width:none;
  object-fit:cover!important;
  object-position:center 52%!important;
  opacity:1!important;
  filter:brightness(1.22) saturate(1.02) contrast(1.06)!important;
  transform:scale(1.02)!important;
  -webkit-mask-image:radial-gradient(ellipse 86% 84% at 50% 50%,#000 48%,rgba(0,0,0,.9) 64%,rgba(0,0,0,.42) 82%,transparent 100%)!important;
  mask-image:radial-gradient(ellipse 86% 84% at 50% 50%,#000 48%,rgba(0,0,0,.9) 64%,rgba(0,0,0,.42) 82%,transparent 100%)!important;
}
#profileLineupPanel .tc7-reaction-track{
  top:50%!important;
  right:34px!important;
  bottom:auto!important;
  left:34px!important;
  transform:translateY(-23px);
}
#profileLineupPanel .tc5-multiselect[open]{z-index:80}
#profileLineupPanel .tc5-screen .tc7-starting:has(.tc5-multiselect[open]){z-index:70!important}
#profileLineupPanel .tc5-multiselect .tc5-attack-options{
  position:absolute;
  z-index:100;
  top:calc(100% + 5px);
  right:0;
  left:0;
  display:grid;
  gap:3px;
  min-width:170px;
  padding:6px;
  border:1px solid rgba(212,169,79,.32);
  border-radius:9px;
  background:#0d0a06;
  box-shadow:0 15px 30px rgba(0,0,0,.48);
}
#profileLineupPanel .tc5-multiselect .tc5-attack-options>button{
  min-height:31px;
  padding:6px 9px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#d9d1c2;
  font:800 .61rem var(--body);
  text-align:left;
  cursor:pointer;
}
#profileLineupPanel .tc5-multiselect .tc5-attack-options>button:is(:hover,:focus-visible){
  outline:none;
  background:rgba(212,169,79,.12);
  color:#fff8e8;
}
#profileLineupPanel .tc5-multiselect .tc5-attack-options>button[aria-selected="true"]{
  background:rgba(212,169,79,.2);
  color:#f4dda0;
}

/* Preserve every section above the context rail at its existing height while
   giving the lower match evidence 40% more room at the review viewport. */
@media(min-width:901px) and (min-height:951px){
  .lineup-scouting-content{height:min(932px,94vh)}
  .lineup-scouting-body{grid-template-rows:minmax(0,1fr) 287px}
  .lineup-scouting-context{align-items:stretch;padding:22px 24px 25px}
  .lineup-scouting-context>section{display:grid;align-content:center;padding:10px 22px!important}
  .lineup-scouting-context .lineup-scouting-match{min-height:55px;padding:8px 0}
  .lineup-scouting-context .lineup-scouting-h2h .lineup-scouting-match{min-height:48px;padding:6px 0}
  .lineup-scouting-last .lineup-scouting-form{margin-top:14px}
  .lineup-scouting-missing>div{gap:13px;margin-top:18px}
}

/* 3.0A.50.45 — final Tactics / Next Match composition pass. */

/* One shared readability wash spans the complete Starting Plan. Individual
   controls stay transparent so the tactical room remains one composition. */
#profileLineupPanel .tc5-screen .tc7-control-grid{
  padding:12px 18px!important;
  border:0!important;
  border-radius:18px!important;
  background:rgba(12,9,6,.64)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control,
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control:is(:hover,:focus-within){
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Attack Focus is three independent channels. The stored seven-state model
   remains authoritative; these checks are its direct, channel-first UI. */
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-attack-lanes,
#profileLineupPanel .tc5-modal-tactics .tc5-attack-lanes{
  position:relative;
  z-index:2;
  grid-column:3!important;
  grid-row:1!important;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  min-width:0;
}
#profileLineupPanel .tc5-attack-lanes label{position:relative;display:block;min-width:0;cursor:pointer}
#profileLineupPanel .tc5-attack-lanes input{position:absolute;inset:0;opacity:0;pointer-events:none}
#profileLineupPanel .tc5-attack-lanes span{
  display:grid;
  place-items:center;
  min-height:36px;
  padding:5px 3px;
  border:1px solid rgba(212,169,79,.18)!important;
  border-radius:6px;
  background:rgba(9,7,5,.7)!important;
  color:#a99c86!important;
  font:900 .5rem var(--body);
  letter-spacing:.04em;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .12s ease;
}
#profileLineupPanel .tc5-attack-lanes input:checked+span{
  border-color:rgba(229,195,119,.68)!important;
  background:rgba(184,137,52,.24)!important;
  color:#fff0c5!important;
  box-shadow:inset 0 0 0 1px rgba(255,238,190,.05)!important;
}
#profileLineupPanel .tc5-attack-lanes label:active span{transform:translateY(1px)}
#profileLineupPanel .tc5-attack-lanes input:focus-visible+span{outline:2px solid #e5c377!important;outline-offset:2px}
#profileLineupPanel .tc5-attack-focus-value{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Style is a true 2×2 field: generous raster symbols and restrained centre
   rules, with no card surfaces around the four readings. */
.lineup-scouting-style-rows{gap:0!important}
.lineup-scouting-style-sector{
  grid-template-columns:96px minmax(0,1fr)!important;
  align-content:center;
  gap:10px!important;
  padding:14px 8px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lineup-scouting-style-sector:nth-child(even),
.lineup-scouting-style-sector:nth-child(n+3){border:0!important}
.lineup-scouting-style-sector .tc5-state-image{width:96px!important;height:96px!important}
.lineup-scouting-style-sector .tc5-state-image.is-unavailable{display:grid;place-items:center}
.lineup-scouting-style-sector .tc5-state-image.is-unavailable>span{color:#8f826c;font:900 2rem var(--display)}
.lineup-scouting-style-sector>span{
  grid-template-columns:minmax(0,1fr)!important;
  gap:5px!important;
}
.lineup-scouting-style-sector small{font-size:.59rem!important;letter-spacing:.13em!important}
.lineup-scouting-style-sector b{
  grid-column:1!important;
  overflow:visible!important;
  font-size:.9rem!important;
  line-height:1.2;
  text-overflow:clip!important;
  white-space:normal!important;
}
.lineup-scouting-style-sector em{grid-column:1!important;font-size:.78rem!important;text-align:left!important}
.lineup-scouting-style-sector.is-unavailable b{color:#c5b9a5}

/* The evidence rail is one uninterrupted surface. Its extra height carries
   larger scores and player facts rather than empty padding. */
.lineup-scouting-context{gap:0!important;background:transparent!important}
.lineup-scouting-context>section,
.lineup-scouting-context>section:first-child{
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.lineup-scouting-context>section+section{border-left:1px solid rgba(229,195,119,.17)!important}
.lineup-scouting-context :is(header>small,section>small){font-size:.69rem!important}
.lineup-scouting-context .lineup-scouting-match small{font-size:.65rem}
.lineup-scouting-context .lineup-scouting-match b{font-size:.72rem}
.lineup-scouting-context .lineup-scouting-match>strong{font-size:1rem!important;line-height:1.2}
.lineup-scouting-context .lineup-scouting-match em{font-size:1.35rem!important}
.lineup-scouting-context .lineup-scouting-h2h .lineup-scouting-match b{font-size:.64rem}
.lineup-scouting-form>div{gap:9px}
.lineup-scouting-form b{width:31px;height:31px;font-size:.74rem}
.lineup-scouting-missing>div{display:grid;gap:12px}
.lineup-scouting-unavailable-player{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:4px 10px;
  width:100%;
  min-width:0;
  padding:8px 10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background-color .18s ease,transform .12s ease;
}
.lineup-scouting-unavailable-player b{overflow:hidden;color:#f2e6cc;font-size:.91rem!important;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-unavailable-player em{color:#dfb65c;font-size:.72rem!important;font-style:normal}
.lineup-scouting-unavailable-player small{grid-column:1/-1;overflow:hidden;color:#b4aa9a;font-size:.68rem!important;text-overflow:ellipsis;white-space:nowrap}
.lineup-scouting-unavailable-player:is(:hover,:focus-visible){outline:none;background:rgba(212,169,79,.09)}
.lineup-scouting-unavailable-player:is(:hover,:focus-visible) b{color:#ffeab4}
.lineup-scouting-unavailable-player:focus-visible{box-shadow:inset 0 0 0 1px rgba(229,195,119,.48)}
.lineup-scouting-unavailable-player:active{transform:translateY(1px)}

@media(min-width:901px) and (min-height:951px){
  .lineup-scouting-content{height:min(970px,94vh)}
  .lineup-scouting-body{grid-template-rows:minmax(0,1fr) 422px}
  .lineup-scouting-decision{padding-block:10px}
  .lineup-scouting-context{align-items:stretch;padding:24px 26px 28px}
  .lineup-scouting-context>section{display:grid;align-content:center;padding:14px 26px!important}
  .lineup-scouting-context .lineup-scouting-match{min-height:72px;padding:10px 0}
  .lineup-scouting-context .lineup-scouting-h2h .lineup-scouting-match{min-height:64px;padding:9px 0}
  .lineup-scouting-last .lineup-scouting-form{margin-top:20px}
  .lineup-scouting-missing>div{margin-top:20px}
}

@media(max-width:1180px){
  #profileLineupPanel .tc5-screen .tc7-control-grid{padding-inline:10px!important}
  #profileLineupPanel .tc5-attack-lanes span{font-size:.45rem}
  .lineup-scouting-style-sector{grid-template-columns:74px minmax(0,1fr)!important;gap:8px!important;padding-inline:8px!important}
  .lineup-scouting-style-sector .tc5-state-image{width:72px!important;height:72px!important}
}

/* Unified Tactics workspace artwork. Starting Plan and Automated Reactions
   now sit in one continuous coaching environment instead of owning images. */
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  background-color:transparent!important;
  background-image:none!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid{
  background:linear-gradient(90deg,rgba(8,6,4,.7),rgba(8,6,4,.42) 48%,rgba(8,6,4,.7))!important;
  border-radius:14px!important;
  -webkit-backdrop-filter:blur(1.5px);
  backdrop-filter:blur(1.5px);
}
#profileLineupPanel .tc7-reaction-canvas{
  background:linear-gradient(180deg,rgba(8,6,4,.08),rgba(8,6,4,.54))!important;
}

/* Public-history expected XI cards replace anonymous formation markers. */
.lineup-scouting-shape-board>.lineup-scouting-expected-player{
  position:absolute;
  z-index:2;
  left:var(--shape-x);
  top:var(--shape-y);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-items:center;
  gap:1px 3px;
  width:clamp(46px,19%,82px);
  min-width:0;
  min-height:30px;
  padding:3px 5px;
  overflow:hidden;
  border:1px solid rgba(246,220,153,.78);
  border-radius:6px;
  background:linear-gradient(145deg,rgba(255,242,201,.96),rgba(204,160,72,.94));
  color:#171109;
  box-shadow:0 3px 8px rgba(0,0,0,.7),inset 0 1px rgba(255,255,255,.42);
  font-family:var(--body);
  text-align:left;
  cursor:pointer;
  transform:translate(-50%,-50%);
  transition:filter .16s ease,transform .12s ease,box-shadow .16s ease;
}
.lineup-scouting-shape-board>.lineup-scouting-expected-player.keeper{
  border-color:rgba(241,188,193,.82);
  background:linear-gradient(145deg,rgba(119,51,61,.97),rgba(75,29,37,.97));
  color:#fff1e5;
}
.lineup-scouting-expected-player>span{
  grid-column:1;
  grid-row:1;
  color:inherit;
  font-size:clamp(.36rem,.48vw,.48rem);
  font-weight:950;
  opacity:.76;
}
.lineup-scouting-expected-player>strong{
  grid-column:1/-1;
  grid-row:2;
  overflow:hidden;
  color:inherit;
  font-size:clamp(.4rem,.55vw,.57rem);
  font-weight:950;
  line-height:1;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lineup-scouting-expected-player>b{
  grid-column:2;
  grid-row:1;
  display:grid;
  place-items:center;
  min-width:15px;
  min-height:15px;
  border-radius:50%;
  background:rgba(17,13,8,.84);
  color:#fff0c5;
  font-size:clamp(.34rem,.45vw,.44rem);
}
.lineup-scouting-expected-player:is(:hover,:focus-visible){
  z-index:4;
  outline:none;
  filter:brightness(1.12);
  box-shadow:0 5px 13px rgba(0,0,0,.78),0 0 0 2px rgba(255,238,190,.78);
  transform:translate(-50%,-53%) scale(1.05);
}
.lineup-scouting-expected-player:active{transform:translate(-50%,-50%) scale(.98)}
.lineup-scouting-shape-empty{
  position:absolute;
  z-index:2;
  inset:0;
  display:grid;
  place-items:center;
  margin:0;
  padding:24px;
  color:#e2d4b7;
  font-size:.65rem;
  line-height:1.4;
  text-align:center;
  text-shadow:0 2px 6px #000;
}

@media(max-width:900px){
  .lineup-scouting-shape-board>.lineup-scouting-expected-player{width:clamp(40px,17%,62px);padding-inline:4px}
  .lineup-scouting-expected-player>b{display:none}
}

/* 3.0A.50.35.91 weekly objectives / tactics / mail acceptance fixes. */
.mail-modal.is-office-mail .mail-message-detail-body:has(.mail-finance-summary),
.mail-modal.is-office-mail .mail-message-detail-body:has(.mail-match-summary){
  max-width:760px;
  white-space:normal;
}
.mail-finance-summary{display:grid;gap:22px;width:min(100%,560px)}
.mail-finance-transactions{display:grid;gap:8px}
.mail-finance-summary p{display:flex;align-items:baseline;justify-content:space-between;gap:24px;margin:0}
.mail-finance-summary p span{min-width:0;color:#d7d0c5}
.mail-finance-summary p b{flex:0 0 auto;font-variant-numeric:tabular-nums}
.mail-finance-summary .is-income b{color:#72d69b}
.mail-finance-summary .is-expense b{color:#ef7770}
.mail-finance-balance{padding:17px 19px;border-radius:10px;background:rgba(255,255,255,.055)}
.mail-finance-summary .mail-finance-balance span,
.mail-finance-summary .mail-finance-balance b{color:#fff;font-weight:850}
.mail-finance-summary>small{color:#c7a761;line-height:1.55}
.mail-match-summary{display:grid;gap:15px;width:min(100%,720px)}
.mail-match-summary>strong{display:block;color:#fbf7ef;white-space:nowrap}
.mail-match-summary>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(10px,2vw,24px);text-align:center}
.mail-match-summary>div span{min-width:0;overflow-wrap:anywhere;color:#eee7dc;font-weight:750;line-height:1.3}
.mail-match-summary>div b{color:#f2d895;font-size:1.18em;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Structured official mail: one match result, factual highlights, and live
   Transfer Market actions without changing the surrounding tablet shell. */
.mail-modal.is-office-mail .mail-message-detail-body:has(.mail-market-message),
.mail-modal.is-office-mail .mail-message-detail-body:has(.mail-market-copy){max-width:760px;white-space:normal}
.mail-match-summary{gap:22px}
.mail-match-summary>.mail-match-result{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:clamp(10px,2vw,24px);text-align:center}
.mail-match-summary>.mail-match-result span{min-width:0;overflow-wrap:anywhere;color:#eee7dc;font-size:1.06em;font-weight:800;line-height:1.3}
.mail-match-summary>.mail-match-result b{color:#f2d895;font-size:1.42em;font-variant-numeric:tabular-nums;white-space:nowrap}
.mail-match-summary>.mail-report-actions{display:flex!important;justify-content:center!important;margin:0!important}
.mail-match-highlights{display:grid;gap:11px;margin-top:4px}
.mail-match-highlights>strong{color:#c8a24f;font-size:12px;letter-spacing:.09em}
.mail-match-highlights ul{display:grid;gap:8px;margin:0;padding-left:21px;color:#ddd5c9}
.mail-match-highlights li{padding-left:3px;line-height:1.5}
.mail-finance-intro{display:block!important;color:#ddd5c9!important;line-height:1.55}
.mail-market-message{display:grid;gap:24px}
.mail-market-copy{margin:0;color:#ddd5c9;line-height:1.72}
.mail-market-copy>strong{color:#f2d895;font-variant-numeric:tabular-nums}
.mail-offer-summary{display:grid;gap:8px;padding:14px 16px;border:1px solid rgba(212,169,79,.18);border-radius:14px;background:rgba(212,169,79,.055)}
.mail-offer-summary p{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:0;color:#aaa096}
.mail-offer-summary strong{color:#f3eadc;font-variant-numeric:tabular-nums;text-align:right}
.mail-player-link{display:inline;padding:0;border:0;background:transparent;color:#f2d895;font:inherit;font-weight:800;text-decoration:underline;text-decoration-color:rgba(212,169,79,.48);text-underline-offset:3px;cursor:pointer}
.mail-player-link:is(:hover,:focus-visible){color:#fff3cd;outline:2px solid rgba(212,169,79,.34);outline-offset:3px;border-radius:3px}
.mail-transfer-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap}
.mail-transfer-actions button{min-width:116px;min-height:43px;padding:0 17px;border:1px solid rgba(212,169,79,.42);border-radius:9px;background:linear-gradient(180deg,rgba(109,78,28,.78),rgba(69,47,16,.88));color:#fff4d5;font-size:12px;font-weight:900;letter-spacing:.05em;cursor:pointer}
.mail-transfer-actions button:is(:hover,:focus-visible){filter:brightness(1.16);outline:2px solid rgba(240,215,155,.32);outline-offset:2px}
.mail-transfer-actions button.danger{border-color:rgba(200,74,67,.48);background:rgba(107,31,28,.66);color:#ffaaa3}
.mail-transfer-actions button:disabled{opacity:.45;cursor:not-allowed;filter:none}
.mail-offer-status{display:inline-grid;justify-self:start;gap:3px;padding:10px 14px;border:1px solid rgba(212,169,79,.28);border-radius:8px;background:rgba(212,169,79,.08)}
.mail-offer-status strong{color:#f0d79b;font-size:12px;letter-spacing:.07em}
.mail-offer-status span{color:#bdb3a5;font-size:13px}
.mail-offer-status.is-accepted strong{color:#72d69b}.mail-offer-status.is-rejected strong,.mail-offer-status.is-expired strong,.mail-offer-status.is-withdrawn strong{color:#ef7770}
.mail-counter-modal label{display:grid;gap:8px;color:#d9c486;font-weight:750}
.mail-counter-modal label input{min-height:48px;padding:0 14px;border:1px solid rgba(212,169,79,.42);border-radius:8px;background:#0c0a07;color:#fff;font:800 18px/1 var(--body);font-variant-numeric:tabular-nums}
.mail-counter-modal label input:focus{outline:2px solid rgba(240,215,155,.35);outline-offset:2px}
.mail-counter-error{min-height:20px;margin:0;color:#ef7770;font-size:13px}
@media(max-width:720px){.mail-transfer-actions{align-items:stretch;flex-direction:column}.mail-transfer-actions button{width:100%}.mail-match-summary>.mail-match-result{gap:7px;font-size:.86rem}}

.trade-result-player-card .footballer-card{
  box-shadow:0 26px 58px rgba(0,0,0,.46)!important;
}

#profileLineupPanel .lineup-role-control-row{display:flex;align-items:stretch;width:100%;height:24px;min-width:0;min-height:24px}
#profileLineupPanel .lineup-role-control-row .lineup-captain-badge{
  position:static!important;
  inset:auto!important;
  flex:0 0 17px;
  width:17px;
  height:17px;
  min-height:17px;
  border-radius:4px;
  font-size:.55rem;
}
#profileLineupPanel .lineup-role-control-row .lineup-player-role-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  flex:1 1 auto;
  width:100%;
  height:24px;
  min-width:0;
  min-height:24px;
  max-height:24px;
}
#profileLineupPanel .lineup-player-role-label{
  display:-webkit-box;
  min-width:0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  text-align:center;
}

#profileLineupPanel .tc5-screen .tc5-workspace-panel{
  border:1px solid rgba(212,169,79,.16)!important;
  border-radius:16px!important;
  background:rgba(8,6,4,.5)!important;
  background-image:none!important;
  box-shadow:0 18px 48px rgba(0,0,0,.24)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene>:is(.tc7-starting,.tc7-automation){
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#profileLineupPanel .tc5-screen .tc8-tactical-scene{gap:12px!important}
#profileLineupPanel .tc5-screen .tc7-control-grid,
#profileLineupPanel .tc7-reaction-canvas{
  background:transparent!important;
  background-image:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
#profileLineupPanel .tc7-reaction-node:hover,
#profileLineupPanel .tc7-reaction-node:focus-visible{
  background:transparent!important;
  outline:0!important;
}
#profileLineupPanel .tc7-reaction-node:hover>img{filter:brightness(1.22) saturate(1.1);border-color:#f0d79b;box-shadow:0 5px 14px rgba(0,0,0,.52),0 0 12px rgba(229,195,119,.22)}
#profileLineupPanel .tc7-reaction-node:focus-visible>img{outline:2px solid #fff0c5;outline-offset:3px;filter:brightness(1.18)}

#profileLineupPanel .lineup-workspace .lineup-pitch{
  aspect-ratio:1058/1399!important;
  background:#0c552c url('/ui-icons/tactics-pitch-2026.webp') center/100% 100% no-repeat!important;
}

.lineup-scouting-shape-board{
  position:relative;
  width:min(100%,280px)!important;
  max-width:280px!important;
  aspect-ratio:1058/1399!important;
  justify-self:center!important;
}
.lineup-scouting-shape-board>img{object-fit:contain!important}
.lineup-scouting-match.is-stacked-result{align-items:center}
.lineup-scouting-result-column{
  display:grid;
  justify-items:center;
  justify-self:stretch;
  width:100%;
  min-width:0;
  text-align:center;
}
.lineup-scouting-context :is(.lineup-scouting-last,.lineup-scouting-h2h)>header{
  display:grid;
  grid-template-columns:minmax(92px,.72fr) minmax(165px,1.28fr);
  align-items:center;
  column-gap:18px;
}
.lineup-scouting-last>header>[data-lineup-scouting-report]{
  grid-column:2;
  justify-self:center;
  min-height:27px;
  padding:6px 9px;
  border-radius:5px;
  background:#2a2112;
  font-size:.52rem;
}
.lineup-scouting-h2h>header>.lineup-scouting-record{
  grid-column:2;
  justify-self:center;
}
.lineup-scouting-last .lineup-scouting-form{
  display:grid;
  grid-template-columns:minmax(92px,.72fr) minmax(165px,1.28fr);
  align-items:center;
  column-gap:18px;
}
.lineup-scouting-last .lineup-scouting-form>small{
  grid-column:1;
  justify-self:start;
}
.lineup-scouting-last .lineup-scouting-form>div{
  grid-column:2;
  justify-self:center;
}
.lineup-scouting-match .lineup-scouting-result-stack{
  display:grid;
  justify-items:center;
  gap:4px;
  min-width:0;
  text-align:center!important;
}
.lineup-scouting-match .lineup-scouting-result-stack span{max-width:100%;overflow-wrap:anywhere;line-height:1.2}
.lineup-scouting-match .lineup-scouting-result-stack em{margin:0!important;line-height:1.05}
.lineup-scouting-context .lineup-scouting-match{
  grid-template-columns:minmax(92px,.72fr) minmax(165px,1.28fr)!important;
  column-gap:18px;
}
@media(min-width:1181px){
  .lineup-scouting-decision{
    grid-template-columns:minmax(320px,.98fr) minmax(390px,1.18fr) minmax(340px,1fr);
  }
  .lineup-scouting-decision>section{padding-inline:14px}
  .lineup-scouting-style-sector{gap:14px!important;padding-inline:10px!important}
}
.lineup-scouting-signature{
  align-self:stretch;
  align-content:stretch;
  grid-template-rows:minmax(0,1fr);
}
.lineup-scouting-signature .lineup-scouting-style-rows{
  align-self:center;
  align-content:center;
  grid-template-rows:repeat(2,auto);
  height:auto;
}
.lineup-scouting-verdict{
  align-self:stretch;
  align-content:center;
  grid-template-rows:auto auto;
  gap:clamp(54px,7vh,92px);
}

#profileContractsPanel .contract-registration-toggle{align-self:end!important}

@media(max-width:720px){
  .mail-match-summary>div{gap:8px;font-size:.88rem}
  .lineup-scouting-shape-board{width:min(100%,250px)!important}
}

@media(min-width:901px) and (min-height:951px){
  .lineup-scouting-body{grid-template-rows:minmax(0,1fr) 330px}
}

/* Post-.93 coherence pass: preserve full-opacity content while the coaching
   subnav uses the requested half-dark glass, and keep the inline reaction
   editor inside its real available column at every desktop width. */
#profileLineupPanel .lineup-view-toggle.lineup-mode-tabs{
  background:rgba(10,9,7,.50)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-body,
#profileLineupPanel .tc5-reaction-editor .tc5-modal-body>main{min-width:0;width:100%}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%;
  min-width:0;
}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control{min-width:0}
#profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics>.tc5-control:first-child :is(select,.goat-select-trigger){
  min-width:8.5rem!important;
  white-space:nowrap!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>div span{
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1.2!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>div small{
  margin-top:3px;
  font-size:.60rem!important;
  line-height:1.25!important;
}

/* Contracts semantics are deliberately muted rather than neon. */
#profileContractsPanel .contract-registration-toggle.is-registered{
  border-color:rgba(91,190,126,.72)!important;
  background:#244f34!important;
  color:#fff!important;
}
#profileContractsPanel .contract-registration-toggle.is-unregistered{
  border-color:rgba(204,79,73,.76)!important;
  background:#5a201e!important;
  color:#fff!important;
}
#profileContractsPanel .contract-registration-toggle:is(.is-registered,.is-unregistered) .contract-filter-icon{
  stroke-width:3!important;
}
#profileContractsPanel .contract-registration-toggle.is-registered:is(:hover,:focus-visible,.active){background:#2d6843!important;border-color:#79d79a!important}
#profileContractsPanel .contract-registration-toggle.is-unregistered:is(:hover,:focus-visible,.active){background:#762a27!important;border-color:#e78179!important}

/* Post-.99 registration and contract-filter correctness. Draft actions use the
   same premium panel radius and destructive controls already established in
   the management UI; inactive contract filters remain visually neutral. */
#profileRegistrationPanel .league-registration-validation{
  border-radius:17px!important;
  overflow:hidden!important;
}
#profileRegistrationPanel .league-registration-validation>header{
  border-radius:inherit!important;
}
#profileRegistrationPanel .league-registration-validation:has(.league-registration-validation-grid:not(.hidden),.league-registration-rules:not(.hidden))>header{
  border-bottom-left-radius:0!important;
  border-bottom-right-radius:0!important;
}
#profileRegistrationPanel .league-registration-player-action.is-remove{
  border-color:rgba(214,91,79,.82)!important;
  background:linear-gradient(180deg,#a43c34,#762620)!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13)!important;
}
#profileRegistrationPanel .league-registration-player-action.is-remove:hover:not(:disabled),
#profileRegistrationPanel .league-registration-player-action.is-remove:focus-visible:not(:disabled){
  border-color:#f09a90!important;
  background:linear-gradient(180deg,#be4b41,#8d2d26)!important;
  color:#fff!important;
}
#profileRegistrationPanel .league-registration-player-action.is-remove:focus-visible{
  outline:2px solid rgba(240,154,144,.72)!important;
  outline-offset:2px!important;
}
#profileRegistrationPanel .league-registration-player-action.is-remove:disabled{
  border-color:rgba(130,119,111,.30)!important;
  background:#302b27!important;
  color:#8e8780!important;
  box-shadow:none!important;
}
#profileContractsPanel .contract-registration-toggle:is(.is-registered,.is-unregistered){
  border-color:#554d41!important;
  background:#28251f!important;
  color:#aaa398!important;
  box-shadow:none!important;
  opacity:.72;
}
#profileContractsPanel .contract-registration-toggle:is(.is-registered,.is-unregistered):hover:not(.active),
#profileContractsPanel .contract-registration-toggle:is(.is-registered,.is-unregistered):focus-visible:not(.active){
  border-color:#807666!important;
  background:#373229!important;
  color:#e3ddd3!important;
  opacity:1;
}
#profileContractsPanel .contract-registration-toggle.is-registered.active{
  border-color:#79d79a!important;
  background:#2d6843!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(121,215,154,.14)!important;
  opacity:1;
}
#profileContractsPanel .contract-registration-toggle.is-unregistered.active{
  border-color:#e78179!important;
  background:#762a27!important;
  color:#fff!important;
  box-shadow:0 0 0 2px rgba(231,129,121,.14)!important;
  opacity:1;
}
.contract-negotiation-notice-x{
  border-color:rgba(224,96,88,.78)!important;
  background:#672421!important;
  color:#fff!important;
}
.contract-negotiation-notice-x:is(:hover,:focus-visible){
  border-color:#ef8d84!important;
  background:#842e29!important;
  outline:2px solid rgba(239,141,132,.28)!important;
  outline-offset:2px!important;
}

/* All three evidence sections start at the same top grid line. */
.lineup-scouting-context{align-items:start!important}
.lineup-scouting-context>section{align-self:start!important;align-content:start!important}
@media(max-width:760px){
  #profileLineupPanel .tc5-reaction-editor .tc5-modal-tactics{grid-template-columns:1fr!important}
}

/* Planned substitutions are one coherent rule: the pair is its header and
   Trigger/Player Role are consecutive fields inside the same rule window. */
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article{
  grid-template-columns:22px minmax(0,1fr) 32px!important;
  align-items:start!important;
  gap:8px!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-pair{
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;
  align-items:end!important;
  gap:8px!important;
  min-width:0;
}
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-pair>i{
  grid-column:2!important;
  align-self:end;
  margin:0 0 1px!important;
  color:#e5c377!important;
  font-size:.9rem!important;
  font-style:normal;
  text-align:center;
}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-player{
  display:grid!important;
  gap:3px;
  min-width:0;
}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-player-label{
  display:block;
  margin:0!important;
  color:#e5c377!important;
  font-size:.55rem!important;
  font-weight:900!important;
  letter-spacing:.07em;
  line-height:1.2!important;
  text-transform:uppercase;
}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-player p{
  display:flex;
  align-items:baseline;
  gap:7px;
  min-width:0;
  margin:0;
}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-player p span{
  min-width:0;
  overflow:hidden;
  color:#fbf7ef!important;
  font-size:.78rem!important;
  font-weight:900!important;
  line-height:1.2!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel .tc5-reaction-editor .tc5-sub-player p em{
  flex:0 0 auto;
  color:#d9d1c2;
  font-size:.63rem;
  font-style:normal;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}
#profileLineupPanel .tc5-reaction-editor .tc5-planned-subs>article>.tc5-sub-remove{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
}
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-settings{
  grid-column:2/-1!important;
  display:grid!important;
  gap:8px;
  min-width:0;
}
#profileLineupPanel .tc5-reaction-editor .tc5-substitution-settings>label{grid-column:auto!important}
.tc5-mobile-sub-pickers,.tc5-mobile-sub-empty,.tc5-sub-plan-actions>button{display:none}
.tc5-sub-plan-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
@media(max-width:600px){
  #profileLineupPanel .tc5-reaction-editor .tc5-sub-plan>header{align-items:stretch!important}
  #profileLineupPanel .tc5-reaction-editor .tc5-sub-plan-actions{display:grid;justify-items:stretch}
  #profileLineupPanel .tc5-reaction-editor .tc5-sub-plan-actions>button{display:block;min-height:40px;border:1px solid rgba(212,169,79,.42);border-radius:9px;background:rgba(212,169,79,.10);color:#f3d98f;font:850 .66rem/1 var(--body);letter-spacing:.05em;text-transform:uppercase}
  #profileLineupPanel .tc5-reaction-editor .tc5-sub-plan-actions .tc5-switch{justify-content:flex-start}
  #profileLineupPanel .tc5-reaction-editor .tc5-mobile-sub-empty{display:block;margin:7px 2px;color:#d9d1c2;font-size:.66rem;line-height:1.45}
  #profileLineupPanel .tc5-reaction-editor .tc5-substitution-pair{
    display:none!important;
  }
  #profileLineupPanel .tc5-reaction-editor .tc5-mobile-sub-pickers{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    gap:7px;
    min-width:0;
  }
  #profileLineupPanel .tc5-reaction-editor .tc5-mobile-sub-pickers label{
    display:grid;
    gap:4px;
  }
  #profileLineupPanel .tc5-reaction-editor .tc5-mobile-sub-pickers label>span{
    color:#e5c377!important;
    font-size:.55rem!important;
    font-weight:900!important;
    letter-spacing:.07em;
    text-transform:uppercase;
  }
  #profileLineupPanel .tc5-reaction-editor .tc5-mobile-sub-pickers select{
    width:100%;
    min-height:42px;
    border:1px solid rgba(212,169,79,.28);
    border-radius:8px;
    background:#17130d;
    color:#fbf7ef;
    padding:8px 9px;
    font:800 .72rem/1 var(--body);
  }
}

/* Tactical symbol hierarchy: Starting Plan remains a compact control surface,
   while Next Match presents the same visual language as a larger scouting read. */
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  grid-template-columns:74px minmax(100px,.72fr) minmax(126px,1fr)!important;
  gap:9px!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{
  width:70px!important;
  height:70px!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{
  font-size:.82rem!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger,.tc5-multiselect>summary),
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch{
  min-height:34px!important;
  font-size:.72rem!important;
}
#profileLineupPanel .tc5-screen .tc7-control-grid .tc5-attack-lanes span{
  min-height:34px;
  font-size:.58rem;
}

/* Keep the three Attack Focus channels equal while reserving enough intrinsic
   width for CENTRE, the longest translated label in this control. */
#profileLineupPanel .tc5-screen .tc5-attack-lanes,
#profileLineupPanel .tc5-modal-tactics .tc5-attack-lanes{
  grid-template-columns:repeat(3,minmax(42px,1fr))!important;
  min-width:134px!important;
}
#profileLineupPanel .tc5-attack-lanes span{
  box-sizing:border-box;
  width:100%;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
  letter-spacing:.02em;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  grid-template-columns:54px minmax(134px,1fr)!important;
}

/* Player-polish: preserve every card detail while communicating suspension. */
.lineup-mini-card.is-unavailable.is-suspended{
  opacity:1!important;
  filter:none!important;
  border-color:rgba(198,66,75,.88)!important;
  background:linear-gradient(145deg,rgba(75,18,24,.92),rgba(20,15,12,.98))!important;
}
.lineup-mini-card.is-unavailable.is-suspended .lineup-card-visual{
  filter:none!important;
}
.lineup-mini-card.is-suspended :is(.lineup-card-copy,.lineup-card-copy b,.lineup-card-meta-row){
  opacity:1!important;
  color:#f3eee4!important;
}
.lineup-mini-card.is-suspended .lineup-eligibility{
  color:#ffadb3!important;
  font-weight:850!important;
}

/* Position chips size to their content inside the existing portrait frame.
   The previous fixed width left only 17px after padding/borders, clipping CDM,
   CAM, LWB and RWB against the card's overflow boundary. */
.lineup-pitch-card .lineup-card-position,
.lineup-mini-card:not(.lineup-pitch-card) .lineup-card-position{
  box-sizing:border-box!important;
  width:max-content!important;
  min-width:31px!important;
  max-width:calc(100% - 8px)!important;
  padding-inline:5px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
}

/* One historical second-yellow dismissal is rendered as one paired icon. */
.mc-report-event-card-pair{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
}

/* Profile lower region: preserve the exact .97 DNA (358px) and Player Info
   (149px) component geometry. Training is an additional content-sized row;
   it never participates in distributing or shrinking those original tracks. */
.player-modal.player-dossier-shell .player-dossier-analytics{
  grid-row:3 / 5!important;
  grid-template-columns:minmax(0,1fr) clamp(220px,18vw,318px)!important;
  grid-template-rows:516px 150px!important;
  height:678px!important;
  min-height:678px!important;
}
.player-modal.player-dossier-shell .player-attributes-v4{
  grid-column:1!important;
  grid-row:1!important;
}
.player-modal.player-dossier-shell .player-career-v4{
  grid-column:1!important;
  grid-row:2!important;
  width:auto!important;
  height:auto!important;
  min-height:150px!important;
}
.player-modal.player-dossier-shell .player-dossier-info-rail{
  grid-column:2!important;
  grid-row:1 / 3!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:358px 149px minmax(104px,auto)!important;
  align-content:start!important;
  gap:12px!important;
  min-width:0!important;
}
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-dna-v4,
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-status-v4,
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-training-v4{
  grid-column:1!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-dna-v4{
  grid-row:1!important;
  height:358px!important;
  min-height:358px!important;
  max-height:358px!important;
}
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-status-v4{
  grid-row:2!important;
  height:149px!important;
  min-height:149px!important;
  max-height:149px!important;
}
.player-modal.player-dossier-shell .player-dossier-info-rail>.player-training-v4{grid-row:3!important}
.player-training-v4>div{display:grid;gap:0}
.player-training-v4 p{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:8px 2px;color:#d9d1c2;font-size:.64rem}
.player-training-v4 p+p{border-top:1px solid rgba(229,195,119,.10)}
.player-training-v4 p span{color:#a69b88}
.player-training-v4 p strong{color:#f0d58f;font-variant-numeric:tabular-nums}
.player-training-v4 .player-training-empty{justify-content:center;min-height:58px;text-align:center;line-height:1.4}

/* Detailed comparison rows: this selector intentionally outranks the legacy
   five-column .squad-compare-row rule. Each attribute owns one full-width row. */
.squad-comparison-content .squad-compare-row.squad-compare-attribute-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto 9px!important;
  gap:6px!important;
  width:100%!important;
  min-height:70px!important;
  padding:9px 10px 11px!important;
}
.squad-comparison-content .squad-compare-row.squad-compare-attribute-row>span{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  color:#cfc4b1!important;
  font-size:.68rem!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-align:center!important;
  white-space:normal!important;
}
.squad-comparison-content .squad-compare-attribute-values{
  grid-column:1!important;
  grid-row:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-width:0!important;
}
.squad-comparison-content .squad-compare-attribute-values>strong{
  box-sizing:border-box!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:3ch!important;
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  font-size:.80rem!important;
  font-variant-numeric:tabular-nums!important;
  line-height:1.2!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
}
.squad-comparison-content .squad-compare-attribute-values>strong:first-child,
.squad-comparison-content .squad-compare-attribute-group>header>strong:first-child{color:#f0c85f!important}
.squad-comparison-content .squad-compare-attribute-values>strong:last-child,
.squad-comparison-content .squad-compare-attribute-group>header>strong:last-child{color:#d8616d!important}
.squad-comparison-content .squad-compare-attribute-values>strong.is-better{
  display:grid!important;
  place-items:center!important;
  width:2.25rem!important;
  min-width:2.25rem!important;
  height:2.25rem!important;
  border:2px solid currentColor!important;
  border-radius:50%!important;
}
.squad-comparison-content .squad-compare-attribute-values>strong.is-left-player.is-better{
  background:rgba(212,169,79,.12)!important;
  box-shadow:0 0 0 2px rgba(212,169,79,.08)!important;
}
.squad-comparison-content .squad-compare-attribute-values>strong.is-right-player.is-better{
  background:rgba(197,83,77,.12)!important;
  box-shadow:0 0 0 2px rgba(197,83,77,.08)!important;
}
.squad-comparison-content .squad-compare-dual-bar{
  grid-column:1!important;
  grid-row:3!important;
  display:flex!important;
  width:100%!important;
  min-width:0!important;
  height:8px!important;
  overflow:hidden!important;
  border-radius:999px!important;
  background:#251f15!important;
}
.squad-compare-dual-bar b,.squad-compare-dual-bar em{display:block;height:100%;min-width:0}
.squad-compare-dual-bar b{background:linear-gradient(90deg,#a87929,#e1b44f)}
.squad-compare-dual-bar em{background:linear-gradient(90deg,#a9434e,#7e2934)}
.player-radar.is-comparison .radar-value{
  fill:rgba(212,169,79,.22)!important;
  stroke:#d4a94f!important;
  stroke-width:2.3!important;
  filter:drop-shadow(0 0 2px rgba(212,169,79,.30))!important;
}
.squad-comparison-content .squad-compare-player strong{font-size:1.38rem!important}
.squad-comparison-content .squad-compare-player em{font-size:.82rem!important;line-height:1.35!important}
.squad-comparison-content .squad-compare-player .squad-compare-name{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
}
.squad-comparison-content .squad-compare-player:nth-child(3) .squad-compare-name{justify-content:flex-end!important}
.squad-comparison-content .squad-compare-player .squad-compare-name>strong{min-width:0!important}
.squad-comparison-content .squad-compare-player .squad-compare-name-flag.player-country-flag-wrap{
  flex:0 0 24px!important;
  width:24px!important;
  height:18px!important;
  border-radius:2px!important;
}
.squad-comparison-content .squad-compare-player .squad-compare-name-flag :is(.player-country-flag,.player-country-flag-fallback){
  width:100%!important;
  height:100%!important;
  border-radius:inherit!important;
}
.squad-comparison-content .squad-compare-player .squad-compare-name-flag .player-country-flag{object-fit:cover!important}
.squad-comparison-content .squad-compare-player .squad-compare-name-flag .player-country-flag-fallback{font-size:12px!important;line-height:18px!important}

@media(max-width:1279px){
  .player-modal.player-dossier-shell .player-dossier-analytics{
    grid-row:auto!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto!important;
    height:auto!important;
    min-height:0!important;
  }
  .player-modal.player-dossier-shell .player-attributes-v4,
  .player-modal.player-dossier-shell .player-dossier-info-rail,
  .player-modal.player-dossier-shell .player-career-v4{
    grid-column:1!important;
    grid-row:auto!important;
  }
  .player-modal.player-dossier-shell .player-dossier-info-rail{
    grid-template-rows:358px 149px minmax(104px,auto)!important;
  }
  .player-modal.player-dossier-shell .player-dossier-info-rail>*{grid-row:auto!important}
}

@media(min-width:1181px){
  .lineup-scouting-decision{
    grid-template-columns:minmax(300px,.9fr) minmax(500px,1.42fr) minmax(340px,1fr);
    grid-template-rows:auto auto;
    align-content:center;
  }
  .lineup-scouting-shape{
    grid-row:1/3;
    grid-template-rows:subgrid;
    row-gap:10px;
    padding-block:0!important;
  }
  .lineup-scouting-shape-copy{grid-row:1}
  .lineup-scouting-shape-board{grid-row:2}
  .lineup-scouting-signature,
  .lineup-scouting-verdict{
    grid-row:2;
    align-self:stretch;
    height:100%;
    padding-block:0!important;
  }
  .lineup-scouting-style-sector{
    grid-template-columns:clamp(148px,9vw,168px) minmax(0,1fr)!important;
    gap:clamp(10px,1vw,16px)!important;
    padding:8px 7px!important;
  }
  .lineup-scouting-style-sector .tc5-state-image{
    width:clamp(148px,9vw,168px)!important;
    height:clamp(148px,9vw,168px)!important;
  }
  .lineup-scouting-style-sector>span{gap:7px!important}
  .lineup-scouting-style-sector small{
    font-size:.7rem!important;
    letter-spacing:.12em!important;
  }
  .lineup-scouting-style-sector b{font-size:1.08rem!important}
  .lineup-scouting-style-sector em{font-size:.94rem!important}
  .lineup-scouting-signature .lineup-scouting-style-rows{
    align-self:stretch;
    align-content:stretch;
    grid-template-rows:repeat(2,minmax(0,1fr));
    height:100%;
  }
  .lineup-scouting-verdict{
    align-content:stretch;
    grid-template-rows:repeat(2,minmax(0,1fr));
    gap:0;
  }
}

/* .99 — fixed-height Bench/Squad rows reserve one status line. */
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-copy{
  grid-template-rows:minmax(0,auto) minmax(0,auto) minmax(0,auto);
  overflow:hidden;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-identity-row>span:first-child,
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-status-row>.lineup-eligibility{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-identity-row>span:last-child,
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-status-row>.lineup-card-energy{
  flex:0 1 44%;
  min-width:0;
  overflow:hidden;
  text-align:right;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card .lineup-card-status-row>.lineup-eligibility:not(.is-empty){
  color:#b00020!important;
  font-size:.53rem!important;
  font-weight:950!important;
  letter-spacing:.01em;
}
#profileLineupPanel :is(#lineupBench,#lineupAvailable) .lineup-squad-card.is-suspended .lineup-card-status-row>.lineup-eligibility:not(.is-empty){
  color:#ff7b86!important;
}

/* ========================================================================== */
/* Club Overview — supplied trophy-room background + foreground template      */
/* ========================================================================== */
body.goat-page-bg-club-overview{--goat-page-background-image:url('/management-backgrounds/club-overview-background.webp?v=club-overview-v1')}
body.profile-background.goat-page-bg-club-overview .world-bg{background:#030201!important}
body.profile-background.goat-page-bg-club-overview .world-bg::before{
  inset:-24px!important;
  background-image:var(--goat-page-background-image)!important;
  background-position:center top!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:blur(.7px) brightness(.53) saturate(.84)!important;
  transform:scale(1.02)!important;
}
body.profile-background.goat-page-bg-club-overview .world-gradient{
  background:linear-gradient(180deg,rgba(2,1,0,.22),rgba(2,1,0,.48) 62%,rgba(2,1,0,.80))!important;
}
body.profile-background.goat-page-bg-club-overview .world-grid{opacity:0!important}

#profileOverviewPanel{
  width:min(100%,1080px);
  margin-inline:auto;
  color:#f4ead7;
}
#profileOverviewPanel .club-overview-scene{
  position:relative;
  width:100%;
  aspect-ratio:1538 / 2732;
  overflow:hidden;
  border-radius:clamp(16px,2.1vw,28px);
  background:#050403;
  box-shadow:0 34px 90px rgba(0,0,0,.64),0 0 0 1px rgba(222,174,77,.18);
  container-type:inline-size;
  isolation:isolate;
}
#profileOverviewPanel .club-overview-template{
  position:absolute;
  z-index:0;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
  user-select:none;
}
#profileOverviewPanel .club-overview-content{position:absolute;z-index:1;inset:0}
#profileOverviewPanel .club-overview-identity,
#profileOverviewPanel .club-overview-strength,
#profileOverviewPanel .club-overview-trophies,
#profileOverviewPanel .club-overview-venues,
#profileOverviewPanel .club-overview-showcase{position:absolute;box-sizing:border-box}

#profileOverviewPanel .club-overview-identity{
  top:2.1%;
  left:4.2%;
  width:91.6%;
  height:14.1%;
  display:grid;
  grid-template-columns:31% minmax(0,1fr);
  align-items:center;
  gap:4%;
  padding:1% 3.2% 1% 2.2%;
}
#profileOverviewPanel .club-overview-logo{
  display:grid;
  width:88%;
  aspect-ratio:1;
  place-items:center;
  justify-self:center;
  overflow:hidden;
  border-radius:50%;
  background:radial-gradient(circle at 42% 34%,#2e2518,#080705 68%);
  box-shadow:inset 0 0 0 2px rgba(249,220,153,.74),inset 0 0 0 7px rgba(128,85,23,.56),0 14px 34px rgba(0,0,0,.46);
}
#profileOverviewPanel .club-overview-logo img{display:block;width:100%;height:100%;object-fit:cover}
#profileOverviewPanel .club-overview-logo>span{color:#e8c477;font:900 11cqw/1 Georgia,serif}
#profileOverviewPanel .club-overview-identity-copy{min-width:0;align-self:center}
#profileOverviewPanel .club-overview-identity h1{
  max-width:100%;
  margin:0 0 1.35cqw;
  overflow:hidden;
  color:#fffaf0!important;
  font:900 clamp(23px,4.25cqw,51px)/.94 var(--display)!important;
  letter-spacing:.015em!important;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
  text-shadow:0 5px 18px rgba(0,0,0,.75)!important;
}
#profileOverviewPanel .club-overview-details{display:grid;gap:.55cqw}
#profileOverviewPanel .club-overview-details p{
  display:flex;
  min-width:0;
  align-items:center;
  gap:.9cqw;
  margin:0;
  color:#e7dfd1;
  font:650 clamp(9px,1.46cqw,17px)/1.25 var(--body);
  letter-spacing:.06em;
}
#profileOverviewPanel .club-overview-details svg{
  flex:0 0 auto;
  width:1.85cqw;
  min-width:14px;
  color:#d9aa52;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#profileOverviewPanel .club-overview-manager{
  margin:1cqw 0 0;
  color:#b6aa96;
  font:600 clamp(8px,1.08cqw,13px)/1.2 var(--body);
}
#profileOverviewPanel .club-overview-identity-actions{display:flex;gap:.65cqw;margin-top:.9cqw}
#profileOverviewPanel .club-overview-identity-actions button{
  min-height:0;
  padding:.55cqw .9cqw;
  border:1px solid rgba(218,171,82,.30);
  border-radius:999px;
  background:rgba(8,6,3,.58);
  color:#ddbd7b;
  font:750 clamp(7px,.88cqw,11px)/1 var(--body);
  letter-spacing:.04em;
}
#profileOverviewPanel .club-overview-identity-actions button:is(:hover,:focus-visible){border-color:#e1bb70;background:rgba(111,76,22,.40);color:#fff5df;outline:2px solid rgba(225,187,112,.22);outline-offset:2px}
#profileOverviewPanel .club-overview-public-actions{display:flex;gap:.55cqw}

#profileOverviewPanel .club-overview-strength{
  top:18.2%;
  left:3.2%;
  width:93.6%;
  height:13.1%;
  padding:2.5% 4.2%;
}
#profileOverviewPanel .club-overview-section-heading p,
#profileOverviewPanel .club-overview-venue-copy p{
  margin:0 0 .45cqw;
  color:#aa8546;
  font:800 clamp(7px,.88cqw,11px)/1 var(--body);
  letter-spacing:.22em;
}
#profileOverviewPanel .club-overview-section-heading h2,
#profileOverviewPanel .club-overview-venue-copy h2,
#profileOverviewPanel .club-overview-showcase-window>h2{
  margin:0;
  color:#f4d28a;
  font:850 clamp(12px,1.8cqw,22px)/1.05 var(--display);
  letter-spacing:.07em;
  text-transform:uppercase;
  text-shadow:0 3px 12px rgba(0,0,0,.75);
}
#profileOverviewPanel .club-overview-strength-body{
  display:grid;
  grid-template-columns:23% minmax(0,1fr);
  align-items:center;
  gap:5%;
  height:calc(100% - 3.2cqw);
}
#profileOverviewPanel .club-overview-average{
  display:grid;
  align-content:center;
  justify-items:center;
  min-width:0;
  height:100%;
}
#profileOverviewPanel .club-overview-average>strong{
  color:#f4cf7e;
  font:900 clamp(32px,7.5cqw,88px)/.8 var(--display);
  letter-spacing:-.055em;
  text-shadow:0 4px 22px rgba(189,128,27,.34);
}
#profileOverviewPanel .club-overview-average>span{margin-top:.9cqw;color:#f4ead7;font:800 clamp(8px,1.12cqw,14px)/1 var(--body);letter-spacing:.18em}
#profileOverviewPanel .club-overview-average>small{margin-top:.65cqw;color:#9e927e;font:650 clamp(7px,.86cqw,11px)/1.1 var(--body)}
#profileOverviewPanel .club-overview-strength-groups{display:grid;gap:1cqw}
#profileOverviewPanel .club-overview-strength-row{display:grid;grid-template-columns:4.4cqw minmax(0,1fr) 4cqw;align-items:center;gap:1cqw}
#profileOverviewPanel .club-overview-strength-row>span,
#profileOverviewPanel .club-overview-strength-row>strong{color:#eadfc9;font:800 clamp(9px,1.2cqw,15px)/1 var(--body);letter-spacing:.06em}
#profileOverviewPanel .club-overview-strength-row>strong{text-align:right}
#profileOverviewPanel .club-overview-strength-row>div{height:.72cqw;min-height:5px;overflow:hidden;border-radius:999px;background:rgba(98,75,36,.34);box-shadow:inset 0 0 0 1px rgba(224,180,91,.24)}
#profileOverviewPanel .club-overview-strength-row i{display:block;width:var(--strength);height:100%;border-radius:inherit;background:linear-gradient(90deg,#8f6425,#f0ce82);box-shadow:0 0 12px rgba(223,171,68,.32)}

#profileOverviewPanel .club-overview-trophies{
  top:33.25%;
  left:3.2%;
  width:93.6%;
  height:15.9%;
  padding:2.3% 4.1%;
}
#profileOverviewPanel .club-overview-trophy-empty{display:grid;height:calc(100% - 3.4cqw);place-content:center;justify-items:center;padding-bottom:1.2cqw;text-align:center}
#profileOverviewPanel .club-overview-trophy-empty>span{color:rgba(226,181,92,.62);font:400 clamp(25px,4cqw,48px)/1 Georgia,serif;text-shadow:0 0 18px rgba(226,181,92,.24)}
#profileOverviewPanel .club-overview-trophy-empty>strong{margin-top:.5cqw;color:#e5d6b8;font:750 clamp(10px,1.4cqw,17px)/1.1 var(--body)}
#profileOverviewPanel .club-overview-trophy-empty>small{max-width:44cqw;margin-top:.6cqw;color:#948773;font:550 clamp(7px,.94cqw,12px)/1.4 var(--body)}

#profileOverviewPanel .club-overview-venues{top:51%;left:3.2%;width:93.6%;height:23.7%;display:grid;grid-template-columns:1fr 1fr;gap:4.3%}
#profileOverviewPanel .club-overview-venue{position:relative;min-width:0;overflow:hidden;padding:4.1%}
#profileOverviewPanel .club-overview-venue>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:1.1cqw;filter:saturate(.84) contrast(1.04) brightness(.78)}
#profileOverviewPanel .club-overview-venue>img.is-missing{visibility:hidden}
#profileOverviewPanel .club-overview-venue::after{content:"";position:absolute;inset:4.1%;border-radius:1.1cqw;background:linear-gradient(180deg,transparent 45%,rgba(3,2,1,.92));pointer-events:none}
#profileOverviewPanel .club-overview-venue-copy{position:absolute;z-index:2;left:9%;right:9%;bottom:9.5%}
#profileOverviewPanel .club-overview-venue-copy h2{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#profileOverviewPanel .club-overview-venue-copy>span{display:block;margin-top:.8cqw;color:#d9cfbd;font:650 clamp(8px,1.06cqw,13px)/1.2 var(--body);letter-spacing:.05em}
#profileOverviewPanel .club-overview-venue-copy>span strong{color:#f2d48f}

#profileOverviewPanel .club-overview-showcase{top:77.65%;left:3.2%;width:93.6%;height:20%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.65%}
#profileOverviewPanel .club-overview-showcase-window{position:relative;display:grid;min-width:0;grid-template-rows:auto minmax(0,1fr);place-items:center;padding:5.7% 6% 3.5%;overflow:hidden}
#profileOverviewPanel .club-overview-showcase-window>h2{justify-self:start;margin-bottom:.8cqw;font-size:clamp(10px,1.42cqw,17px)}
#profileOverviewPanel .club-overview-kit-window>img{display:block;width:94%;height:92%;object-fit:contain;filter:drop-shadow(0 18px 22px rgba(0,0,0,.60))}
#profileOverviewPanel .club-overview-player-card{display:grid;width:100%;height:100%;place-items:center;min-width:0}
#profileOverviewPanel .club-overview-player-card>button{display:block;width:min(82%,240px);padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
#profileOverviewPanel .club-overview-player-card>button:is(:hover,:focus-visible){outline:2px solid rgba(239,202,124,.72);outline-offset:4px;border-radius:12px;transform:translateY(-2px)}
#profileOverviewPanel .club-overview-player-card .footballer-card-shell{width:100%;filter:drop-shadow(0 16px 18px rgba(0,0,0,.52))}
#profileOverviewPanel .club-overview-player-empty{display:grid;place-items:center;gap:.75cqw;color:#9e927e;text-align:center}
#profileOverviewPanel .club-overview-player-empty>span{color:rgba(220,174,82,.52);font:400 clamp(24px,3.2cqw,40px)/1 Georgia,serif}
#profileOverviewPanel .club-overview-player-empty>strong{font:700 clamp(8px,1cqw,12px)/1.2 var(--body)}

/* 3.0A.50.35.125 — focused manual-review correction pass. */
#homeView.gd-home .gd-showcase-body{
  font-size:clamp(21px,1.42vw,28px)!important;
  line-height:1.45!important;
  text-wrap:pretty;
}

#profileObjectivesPanel .objective-summary-card.is-monthly-bonus.is-claimed>.objective-complete-indicator{display:grid!important}
#profileObjectivesPanel .objective-summary-card.is-monthly-bonus.is-claimed>.monthly-bonus-indicator{visibility:hidden!important}

#profileSettingsPanel #settingsAccount{
  grid-auto-flow:row dense!important;
  grid-auto-rows:minmax(160px,auto)!important;
  gap:16px!important;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
#profileSettingsPanel #settingsAccount>article{
  min-height:160px!important;
  align-content:start!important;
  gap:10px!important;
  padding:20px!important;
}
#profileSettingsPanel #settingsAccount>article>span{font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:.04em!important}
#profileSettingsPanel #settingsAccount>article>strong{font:700 16px/22px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#profileSettingsPanel #settingsAccount>article>small{font:500 13px/19px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#profileSettingsPanel #settingsAccount>.home-location-setting,
#profileSettingsPanel #settingsAccount>.settings-discord-card{grid-column:1/-1!important}
#profileSettingsPanel #settingsAccount>.settings-danger-zone{grid-column:auto!important}
#profileSettingsPanel #settingsAccount.settings-layout-user>.settings-danger-zone:last-child:nth-child(7){grid-column:1/-1!important}
#profileSettingsPanel #settingsAccount.settings-layout-owner>.settings-danger-zone{grid-column:1/-1!important}
#profileSettingsPanel #settingsAccount form{align-self:start}
@media(max-width:800px){#profileSettingsPanel #settingsAccount{grid-auto-rows:auto!important}#profileSettingsPanel #settingsAccount>article{min-height:0!important}}

body.goat-world-background .site-footer{display:none!important}
body.goat-world-background:not(.world-interior-open){overflow-y:hidden}
#worldView .goat-world-title-row :is(#goatWorldInteriorTitle,#goatWorldInteriorEyebrow){
  width:auto!important;
  margin:0!important;
  color:#e5c377!important;
  font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
#worldView .goat-world-session-projection>p{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:baseline!important;
  margin:5px 0!important;
  color:#d9d1c2!important;
  font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
#worldView .goat-world-session-projection>p>b{color:#d9d1c2!important;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-session-projection>p>span{color:#f0d79b!important;font-weight:700!important;text-align:right}
#worldView .goat-world-season-usage>p{display:flex!important;flex-wrap:wrap!important;gap:4px 8px!important;margin:5px 0!important;color:#d9d1c2!important;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-season-usage>p>b{color:#f0d79b!important;font:700 inherit!important}
#worldView .goat-world-season-usage>p>span{color:#d9d1c2!important}
#worldView .goat-world-picker-player.world-squad-player{
  grid-template-columns:44px minmax(0,1fr) 56px!important;
  grid-template-areas:"image identity energy"!important;
  gap:10px!important;
  align-items:center!important;
  min-height:72px!important;
}
#worldView .goat-world-picker-player.world-squad-player>img{grid-area:image}
#worldView .world-squad-player-identity{grid-area:identity;display:grid!important;justify-items:start!important;text-align:left!important}
#worldView .world-squad-player-identity>strong{width:100%!important;text-align:left!important}
#worldView .world-squad-player-identity>small{display:grid!important;gap:1px!important;justify-items:start!important;color:#d9d1c2!important;text-align:left!important;white-space:normal!important}
#worldView .world-squad-player-identity>small>b{color:inherit!important;font:600 11px/15px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .world-squad-player-energy{grid-area:energy;display:grid!important;gap:5px!important;align-content:center!important;justify-items:end!important}
#worldView .world-squad-player-energy>b{color:#f3ead9!important;font:700 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-variant-numeric:tabular-nums}
#worldView .world-squad-player-energy>i{display:block!important;width:52px!important;height:6px!important;overflow:hidden!important;border-radius:999px!important;background:rgba(255,255,255,.10)!important}
#worldView .world-squad-player-energy>i>em{display:block!important;height:100%!important;border-radius:inherit!important;background:#43b96b!important}
#worldView .world-squad-player-energy.is-medium>i>em{background:#d6a744!important}
#worldView .world-squad-player-energy.is-low>i>em{background:#c75045!important}
#worldView .goat-world-picker-pagination{grid-template-columns:92px minmax(90px,1fr) 92px!important;justify-content:center!important}
#worldView .goat-world-picker-pagination button{box-sizing:border-box!important;width:92px!important;height:36px!important;min-width:92px!important;min-height:36px!important;padding:6px 10px!important}
#worldView .goat-world-picker-pagination button:first-child{justify-self:start!important}
#worldView .goat-world-picker-pagination button:last-child{justify-self:end!important}
#worldView .goat-world-picker-pagination span{justify-self:center!important;text-align:center!important}

#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait,
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait::before,
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait::after,
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait img{border:0!important;background:transparent!important;box-shadow:none!important;filter:none!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait::before,
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait::after{content:none!important;display:none!important}
.centre-report-body .mc-report-stat-row{grid-template-columns:56px minmax(0,1fr) 56px!important;min-height:58px!important}
.centre-report-body .mc-report-stat-row>b{width:50px!important;height:50px!important;font-size:12px!important;line-height:1!important}

#profileRegistrationPanel .league-registration-workspace{
  grid-template-columns:minmax(310px,.9fr) minmax(440px,1.25fr) minmax(310px,.9fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
#profileRegistrationPanel .league-registration-selected-panel,
#profileRegistrationPanel .league-registration-u17-panel{width:auto!important;min-width:0!important}
#profileRegistrationPanel .league-registration-position-summary{padding:11px 13px!important;border-bottom:1px solid rgba(212,169,79,.14)!important;background:rgba(212,169,79,.035)!important}
#profileRegistrationPanel .league-registration-position-summary>header{margin-bottom:8px!important}
#profileRegistrationPanel .league-registration-u17-panel{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important}
#profileRegistrationPanel .league-registration-u17-panel>.league-registration-u17-grid{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;align-content:start!important;gap:8px!important;max-height:560px!important;padding:12px!important;overflow-x:hidden!important;overflow-y:auto!important}
#profileRegistrationPanel .league-registration-u17-panel>.league-registration-panel-heading>span{color:#65d48e!important;font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-transform:uppercase}
#profileRegistrationPanel .league-registration-player-visual .league-registration-player-position{right:1px!important;bottom:1px!important;min-width:31px!important;min-height:20px!important;padding:0 4px!important;font-size:10px!important;line-height:16px!important}
#profileRegistrationPanel .league-registration-action-bar{display:flex!important;justify-content:flex-end!important;margin-top:16px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
#profileRegistrationPanel .league-registration-save-state{margin-right:auto}
#profileRegistrationPanel #leagueRegistrationReviewSubmit{min-width:190px!important;border-color:#51b76b!important;background:#218943!important;color:#fff!important;box-shadow:0 8px 20px rgba(16,104,48,.24)!important}
#profileRegistrationPanel #leagueRegistrationReviewSubmit:is(:hover,:focus-visible){background:#29a250!important;color:#fff!important}
@media(max-width:1120px){#profileRegistrationPanel .league-registration-workspace{grid-template-columns:1fr!important}#profileRegistrationPanel .league-registration-u17-panel>.league-registration-u17-grid{max-height:none!important}}

#profileContractsPanel .contract-sort-header,
#profileContractsPanel .contract-sort-header:is(:hover,:focus,:focus-visible,.active){
  appearance:none!important;
  position:static!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
#profileContractsPanel .contract-sort-header:is(:hover,:focus-visible){color:#fff8e9!important}
#profileContractsPanel .contract-pagination>span,
#profileContractsPanel .contract-pagination>div>b{color:#d9d1c2!important;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;text-transform:uppercase!important}

body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4{padding:11px 12px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4>header{margin-bottom:7px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4{grid-auto-rows:44px!important;gap:6px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 p{min-height:44px!important;padding:6px 8px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-willingness{margin-top:13px!important;padding-top:2px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-form-v4.is-empty .player-form-match-strip{display:grid!important;min-height:112px!important;place-items:center!important}
body.player-profile-open .player-modal.player-dossier-shell .player-form-v4.is-empty .player-dossier-empty{min-height:0!important;color:#e4dccd!important;font:600 13px/19px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

.pack-market-card-copy{display:none!important}
.pack-market-art{height:auto!important;aspect-ratio:.69!important;place-items:end center!important;padding:0 8px!important}
.pack-market-art img{width:auto!important;max-width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
.pack-market-focus-overlay{display:grid;place-items:center}
.pack-market-focus-card{position:fixed;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);align-items:center;gap:28px;box-sizing:border-box;padding:34px;border:1px solid rgba(229,195,119,.38);border-radius:20px;background:radial-gradient(circle at 32% 34%,rgba(128,82,21,.26),transparent 42%),linear-gradient(145deg,#1b1710,#080705);box-shadow:0 34px 100px rgba(0,0,0,.72);opacity:.72;transform:translate3d(var(--market-origin-x),var(--market-origin-y),0) scale(var(--market-origin-scale-x),var(--market-origin-scale-y));transition:transform 420ms cubic-bezier(.2,.8,.2,1),opacity 260ms ease,filter 260ms ease;outline:0}
.pack-market-focus-card>img{display:block;width:100%;height:100%;max-height:650px;object-fit:contain;filter:drop-shadow(0 24px 32px rgba(0,0,0,.62))}
.pack-market-focus-copy{display:grid;align-content:center;gap:12px;min-width:0}
.pack-market-focus-copy>span{color:#d7b66e;font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.12em}
.pack-market-focus-copy h2{margin:0;color:#fff7e7;font:800 clamp(28px,3vw,46px)/1 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pack-market-focus-copy dl{display:grid;gap:8px;margin:4px 0 8px}
.pack-market-focus-copy dl>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid rgba(212,169,79,.15)}
.pack-market-focus-copy :is(dt,dd){margin:0;font:600 13px/19px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pack-market-focus-copy dt{color:#aaa08d}.pack-market-focus-copy dd{color:#f2d591;font-weight:700;text-align:right}
.pack-focus-action{min-height:44px;border:1px solid #d3a54b;border-radius:9px;background:linear-gradient(#e4bd68,#b98129);color:#161006;font:800 13px/19px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.pack-focus-action.is-cancel{border-color:rgba(208,82,72,.6);background:rgba(111,29,24,.55);color:#fff0e9}
@media(max-width:720px){.pack-market-focus-card{grid-template-columns:1fr;gap:12px;padding:20px;overflow:auto}.pack-market-focus-card>img{max-height:54vh}.pack-market-focus-copy h2{font-size:25px}}

@media(min-width:1041px){
  body.market-management-page #profileMarketPanel .pack-market-inventory{box-sizing:border-box;min-height:196px;margin-top:calc(clamp(32px,4.93vh,56px) - 18px)!important;padding:8px 0!important;align-content:start!important}
  body.market-management-page #profileMarketPanel .pack-market-vault .market-pagination{top:12px!important;margin-top:12px!important}
  body.market-management-page #profileMarketPanel :is(.market-toolbar,.pack-market-inventory){min-height:196px!important}
}

/* 3.0A.50.35.123 manual-review corrections. These rules sit last so retired
   layout templates cannot reclaim the shared components below. */
.goat-faq-document .legal-page-hero h1{
  max-width:none!important;
  margin:0!important;
  font-size:clamp(34px,3.3vw,52px)!important;
  line-height:1.04!important;
  letter-spacing:-.025em!important;
  white-space:nowrap;
}
.goat-faq-item>div,.goat-faq-item>div p{color:#e1c98f!important}
@media(max-width:720px){.goat-faq-document .legal-page-hero h1{font-size:clamp(29px,9vw,42px)!important;white-space:normal}}

.player-modal.player-dossier-shell .player-contract-v4{box-sizing:border-box!important;padding-top:16px!important}
.player-modal.player-dossier-shell .player-contract-v4>header{min-height:20px!important;margin:0 0 6px!important;line-height:1!important}
.player-modal.player-dossier-shell .player-contract-v4>header span{font-size:11px!important;line-height:16px!important;letter-spacing:0!important}
.player-modal.player-dossier-shell .player-contract-grid-v4{gap:7px!important;grid-auto-rows:minmax(46px,auto)!important}
.player-modal.player-dossier-shell .player-contract-grid-v4 p{min-height:46px!important;padding:7px 9px!important}
.player-modal.player-dossier-shell .player-contract-grid-v4 span,
.player-modal.player-dossier-shell .player-contract-willingness span{font-size:11px!important;line-height:16px!important;letter-spacing:0!important}
.player-modal.player-dossier-shell .player-contract-grid-v4 strong,
.player-modal.player-dossier-shell .player-contract-willingness strong{font-size:13px!important;line-height:18px!important}
.player-modal.player-dossier-shell .player-contract-willingness{min-height:27px!important;margin-top:6px!important;padding:5px 8px!important}
.player-modal.player-dossier-shell .player-kit-number-form-v5 label>span,
.player-modal.player-dossier-shell .player-kit-number-readonly-v5 span{font-size:11px!important;line-height:16px!important;letter-spacing:0!important}

#profileCentrePanel .mc-hub-form-players .mc-hub-player-row{
  grid-template-columns:36px 78px minmax(0,1fr)!important;
  gap:10px!important;
  padding-right:14px!important;
}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-copy{gap:12px!important;padding:12px 8px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-name{display:flex!important;align-items:center!important;gap:9px!important;min-width:0}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-name-link{font-size:16px!important;line-height:21px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-position{flex:none;font-size:12px!important;line-height:18px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-metrics{grid-template-columns:repeat(3,minmax(92px,1fr))!important;gap:14px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-metrics :is(strong,small){font-size:13px!important;line-height:18px!important}

.centre-report-body .mc-report-player-table th{padding:0 3px!important}
.centre-report-body .mc-report-player-table th>button{
  display:inline-flex;
  width:100%;
  min-height:36px;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0 2px;
  border:0;
  background:transparent;
  color:inherit;
  font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;
}
.centre-report-body .mc-report-player-table th:first-child>button{justify-content:flex-start}
.centre-report-body .mc-report-player-table th>button i{min-width:9px;color:#f0cf88;font-style:normal}
.centre-report-body .mc-report-player-table th>button:is(:hover,:focus-visible){color:#fff8e9;outline:2px solid rgba(212,169,79,.26);outline-offset:-3px}
.centre-report-body .mc-report-player-identity{display:inline-flex!important;min-width:0;align-items:center;gap:6px}
.centre-report-body .mc-report-player-identity>strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.centre-report-body .mc-report-player-discipline{flex:none;margin-left:0!important}

#profileRegistrationPanel .league-registration-player,
#profileRegistrationPanel .league-registration-u17-card{
  grid-template-columns:64px minmax(0,1fr) 46px minmax(58px,auto)!important;
  gap:10px!important;
  align-items:center!important;
  min-height:72px!important;
  padding:8px 10px!important;
}
#profileRegistrationPanel .league-registration-player-visual{position:relative;display:grid;width:58px;height:54px;place-items:center;overflow:visible}
#profileRegistrationPanel .league-registration-player-visual .league-registration-player-portrait{width:48px!important;height:48px!important;border-radius:9px!important}
#profileRegistrationPanel .league-registration-player-visual .league-registration-player-position{
  position:absolute;
  right:-1px;
  bottom:-1px;
  min-width:36px!important;
  min-height:24px!important;
  padding:0 5px;
  border:1px solid rgba(229,195,119,.36)!important;
  border-radius:7px!important;
  background:#21190d!important;
  color:#f8e8bd!important;
  font:700 11px/18px Inter,InterVariable,ui-sans-serif,system-ui,sans-serif!important;
}
#profileRegistrationPanel .league-registration-player-copy{display:grid!important;gap:2px!important;min-width:0!important;align-content:center!important}
#profileRegistrationPanel .league-registration-player-copy strong{overflow:hidden!important;font-size:14px!important;line-height:20px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#profileRegistrationPanel .league-registration-player-copy small{overflow:hidden!important;font-size:12px!important;line-height:18px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#profileRegistrationPanel .league-registration-player-rating{font:700 16px/22px Inter,InterVariable,ui-sans-serif,system-ui,sans-serif!important;text-align:center!important}
#profileRegistrationPanel :is(.league-registration-player-lock,.league-registration-player-action){justify-self:end!important;min-width:52px!important}
#profileRegistrationPanel .league-registration-position-summary{border-bottom:0!important}
#profileRegistrationPanel .league-registration-sidebar-validation{border-top:0!important;border-bottom:0!important;padding-top:6px!important}
#profileRegistrationPanel .league-registration-sidebar-validation>div:first-child{justify-content:flex-end!important}
@media(max-width:560px){#profileRegistrationPanel .league-registration-player,#profileRegistrationPanel .league-registration-u17-card{grid-template-columns:56px minmax(0,1fr) 40px minmax(48px,auto)!important;gap:7px!important}}

.market-utility-actions{display:flex!important;flex-direction:column!important;align-items:flex-end!important;gap:7px!important}
.market-mode-controls{display:flex!important;gap:5px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.market-mode-controls button{
  display:grid!important;
  width:34px!important;
  height:32px!important;
  padding:4px!important;
  place-items:center!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:rgba(13,11,8,.82)!important;
  color:#a99060!important;
  box-shadow:none!important;
}
.market-mode-controls button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:14;stroke-linecap:round;stroke-linejoin:round}
.market-mode-controls button:is(:hover,:focus-visible){border-color:rgba(229,195,119,.46)!important;color:#fff4dc!important;outline:2px solid rgba(229,195,119,.16)!important;outline-offset:1px!important}
.market-mode-controls button.active{border-color:#d4a94f!important;background:rgba(111,76,22,.42)!important;color:#f3d58f!important;box-shadow:none!important}
.pack-market-vault .market-display-stack{gap:14px!important}
.pack-market-shelves{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.pack-market-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:clamp(14px,1vw,20px)!important;min-height:282px!important;margin:0 auto!important;padding:0!important}
.pack-market-card{display:grid!important;grid-template-columns:1fr!important;align-content:end!important;gap:5px!important;min-width:0!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.pack-market-art{display:grid!important;width:100%!important;height:224px!important;place-items:end center!important;padding:0 8px!important;box-sizing:border-box!important}
.pack-market-art img{display:block!important;width:auto!important;max-width:100%!important;height:100%!important;max-height:224px!important;object-fit:contain!important;filter:drop-shadow(0 14px 15px rgba(0,0,0,.58))!important;transition:transform .18s ease}
.pack-market-card:hover .pack-market-art img{transform:translateY(-5px)}
.pack-market-card-copy{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px 7px!important;align-items:center!important;padding-top:3px!important}
.pack-market-card-copy h3,.pack-market-card-copy p{overflow:hidden!important;margin:0!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.pack-market-card-copy h3{font-size:13px!important;line-height:18px!important}.pack-market-card-copy p{grid-column:1;font-size:11px!important;line-height:16px!important}
.pack-market-card-copy button{grid-column:2;grid-row:1/3;min-height:32px!important;padding:5px 8px!important;font-size:10px!important}
.pack-market-inventory{margin:4px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.pack-market-inventory>header{display:none!important}
.pack-market-inventory>div{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.pack-market-inventory-row{grid-template-columns:40px minmax(0,1fr) 96px 54px!important;gap:7px!important;padding:8px!important;background:rgba(13,11,8,.68)!important;border-color:rgba(212,169,79,.14)!important}
.pack-market-inventory-row>img{width:31px!important;height:43px!important}.pack-market-inventory-row>span strong{font-size:12px!important}.pack-market-inventory-row small{font-size:11px!important}
@media(max-width:1200px){.pack-market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.pack-market-inventory>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.pack-market-grid,.pack-market-inventory>div{grid-template-columns:1fr!important}.pack-market-inventory-row{grid-template-columns:38px minmax(0,1fr) 90px 50px!important}}

#profileContractsPanel .contract-sort-header,
#profileContractsPanel .contract-sort-header:is(:hover,:focus,.focus-visible,:focus-visible,.active){
  border:0!important;
  outline:0!important;
  outline-offset:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  transition:color .14s ease!important;
}
#profileContractsPanel .contract-sort-header::before,
#profileContractsPanel .contract-sort-header::after{content:none!important;display:none!important}
#profileContractsPanel .contract-sort-header:is(:hover,:focus-visible){color:#fff8e9!important}

#worldView .goat-world-title-row{display:flex;align-items:center;gap:7px;min-width:0}
#worldView .goat-world-title-row h2{min-width:0;margin:0!important}
#worldView .goat-world-rename-pitch{display:flex!important;flex:none!important;align-items:center!important;margin:0!important}
#worldView .goat-world-rename-pitch.hidden{display:none!important}
#worldView #goatWorldRenamePitchButton{display:grid!important;width:27px!important;height:27px!important;min-width:27px!important;padding:3px!important;place-items:center!important;border:0!important;background:transparent!important;color:#e4c178!important;box-shadow:none!important}
#worldView #goatWorldRenamePitchButton.hidden{display:none!important}
#worldView #goatWorldRenamePitchButton::before{content:none!important;display:none!important}
#worldView #goatWorldRenamePitchButton svg{display:block!important;width:20px!important;height:20px!important;fill:none;stroke:currentColor;stroke-width:15;stroke-linecap:round;stroke-linejoin:round}
#worldView #goatWorldRenamePitchButton:is(:hover,:focus-visible){color:#fff5df!important;outline:2px solid rgba(228,193,120,.28)!important;outline-offset:1px!important}
#worldView .goat-world-rename-pitch form{display:flex;align-items:center;gap:6px}
#worldView .goat-world-rename-pitch form.hidden{display:none!important}
#worldView .goat-world-picker-grid{grid-template-columns:minmax(0,1fr)!important}
#worldView .goat-world-picker-player.world-squad-player{
  grid-template-columns:48px minmax(0,1fr) auto!important;
  grid-template-areas:"image identity energy"!important;
  gap:8px!important;
  min-height:68px!important;
  padding:8px 10px!important;
  overflow:hidden!important;
}
#worldView .goat-world-picker-player.world-squad-player>img{width:44px!important;height:54px!important}
#worldView .goat-world-picker-player.world-squad-player>span{align-self:center!important;gap:3px!important;min-width:0!important}
#worldView .goat-world-picker-player.world-squad-player>span strong{display:block!important;overflow:hidden!important;font-size:14px!important;line-height:20px!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#worldView .goat-world-picker-player.world-squad-player>span small{display:block!important;overflow:visible!important;font-size:12px!important;line-height:18px!important;text-overflow:clip!important;white-space:nowrap!important}
#worldView .goat-world-picker-player.world-squad-player>b{align-self:center!important;min-width:36px!important;background:rgba(212,169,79,.12)!important;color:#f0d79b!important;font-size:11px!important}
#worldView .goat-world-picker-player.world-squad-player:is(.is-selected,.preview-locked){border-color:#d4a94f!important;background:rgba(212,169,79,.14)!important;box-shadow:inset 3px 0 0 #d4a94f,0 0 0 1px rgba(240,215,155,.18)!important}

/* Global Pack Market — shares the existing card-vault visual language. */
.market-utility-actions{display:flex;align-items:center;gap:10px;pointer-events:auto}
.market-mode-controls{display:flex;gap:6px;padding:5px;border:1px solid rgba(211,164,70,.25);border-radius:12px;background:rgba(9,8,6,.9)}
.market-mode-controls button{display:grid;width:42px;height:38px;padding:5px;place-items:center;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer}
.market-mode-controls button img{display:block;max-width:28px;max-height:28px;object-fit:contain;filter:grayscale(.35) brightness(.8)}
.market-mode-controls button:is(:hover,:focus-visible){border-color:rgba(238,204,132,.5);outline:0}
.market-mode-controls button.active{border-color:#dcb259;background:linear-gradient(180deg,rgba(151,105,28,.46),rgba(55,37,11,.68));box-shadow:inset 0 0 14px rgba(231,181,77,.1)}
.market-mode-controls button.active img{filter:none}
.pack-market-vault,.pack-market-vault button,.pack-market-vault input{font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pack-market-stage{padding:25px;border:1px solid rgba(212,169,79,.28);border-radius:20px;background:linear-gradient(145deg,rgba(21,18,13,.94),rgba(7,7,6,.95));box-shadow:0 20px 50px rgba(0,0,0,.3)}
.pack-market-stage>header span,.pack-market-inventory>header span{color:#c99c45;font-size:11px;font-weight:700}
.pack-market-stage>header h2{margin:4px 0;color:#f2e7d0;font-size:22px;line-height:1.2}
.pack-market-stage>header p{margin:0;color:#aaa18f;font-size:13px;line-height:1.5}
.pack-market-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px;min-height:280px}
.pack-market-grid>.market-empty{grid-column:1/-1;display:grid;place-content:center;gap:8px;text-align:center}
.pack-market-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:15px;align-items:center;min-height:230px;padding:16px;border:1px solid rgba(215,172,84,.22);border-radius:16px;background:radial-gradient(circle at 30% 30%,rgba(114,77,23,.2),transparent 50%),rgba(5,5,4,.74)}
.pack-market-art{display:grid;height:190px;place-items:center}
.pack-market-art img{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 14px 14px rgba(0,0,0,.7))}
.pack-market-card-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:7px}
.pack-market-card-copy>span{color:#b88d40;font-size:10px;font-weight:700}
.pack-market-card-copy h3{margin:0;color:#fff6e4;font-size:16px;line-height:1.25}
.pack-market-card-copy p,.pack-market-card-copy small{margin:0;color:#aaa08d;font-size:12px;line-height:1.4}
.pack-market-card-copy>strong{color:#edcf8c;font-size:17px}
.pack-market-card-copy button,.pack-market-inventory-row>button{min-height:36px;padding:8px 14px;border:1px solid #d3a54b;border-radius:8px;background:linear-gradient(#e4bd68,#b98129);color:#161006;font-size:12px;font-weight:700;cursor:pointer}
.pack-market-card-copy .pack-market-cancel{border-color:rgba(208,82,72,.6);background:rgba(111,29,24,.35);color:#fff0e9}
.pack-market-inventory{margin-top:18px;padding:20px;border:1px solid rgba(212,169,79,.22);border-radius:16px;background:rgba(7,7,6,.84)}
.pack-market-inventory>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.pack-market-inventory>header strong{color:#eee2cb;font-size:14px}
.pack-market-inventory>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.pack-market-inventory-row{display:grid;grid-template-columns:48px minmax(0,1fr) 130px 65px;gap:10px;align-items:center;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:11px;background:rgba(255,255,255,.025)}
.pack-market-inventory-row>img{width:38px;height:52px;object-fit:contain}.pack-market-inventory-row>span{display:grid;gap:3px}.pack-market-inventory-row>span strong{color:#eee4d1;font-size:13px}.pack-market-inventory-row small{color:#9b927f;font-size:12px}
.pack-market-inventory-row label{display:grid;gap:3px}.pack-market-inventory-row label span{color:#a98a4b;font-size:10px;font-weight:700}.pack-market-inventory-row input{width:100%;height:34px;padding:6px 9px;border:1px solid rgba(214,169,77,.32);border-radius:7px;background:#0a0907;color:#f6ead4;font-size:12px}
.pack-market-inventory-row :disabled{opacity:.42;cursor:not-allowed}.pack-market-scope{margin-top:14px}
@media(max-width:1100px){.pack-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pack-market-inventory>div{grid-template-columns:1fr}}
@media(max-width:680px){.market-utility-actions{align-items:flex-end;flex-direction:column}.pack-market-grid{grid-template-columns:1fr}.pack-market-card{grid-template-columns:100px minmax(0,1fr)}.pack-market-inventory-row{grid-template-columns:42px minmax(0,1fr)}.pack-market-inventory-row label,.pack-market-inventory-row>button{grid-column:2}}
.market-mode-controls button:first-child img,
.market-mode-controls button:first-child.active img{filter:invert(.86) sepia(.38) saturate(1.5) brightness(1.15)}
/* Development batch .122 — one readable management typography system. */
.goat-faq-document,.goat-faq-document *:not(svg),
#profileLegacyPanel,#profileLegacyPanel :is(button,input,select),
#profileSettingsPanel,#profileSettingsPanel :is(button,input,select),
#profileCentrePanel,#profileCentrePanel :is(button,input,select),
#profileContractsPanel,#profileContractsPanel :is(button,input,select){
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:0!important;
}
.goat-faq-document{max-width:1180px!important}
.goat-faq-list{display:grid;gap:10px;margin-top:28px}
.goat-faq-item{overflow:hidden;border:1px solid rgba(212,169,79,.24);border-radius:14px;background:linear-gradient(145deg,rgba(25,21,14,.96),rgba(8,7,5,.98));box-shadow:0 14px 34px rgba(0,0,0,.24)}
.goat-faq-item>button{display:flex;width:100%;min-height:58px;align-items:center;justify-content:space-between;padding:15px 18px;border:0;background:transparent;color:#f6ead0;text-align:left;cursor:pointer;font-size:14px!important;font-weight:700!important;line-height:20px!important}
.goat-faq-item>button:hover,.goat-faq-item>button:focus-visible{color:#fff;border:0;outline:0;background:rgba(212,169,79,.08)}
.goat-faq-item>button i{color:#d7ad55;font-size:22px;font-style:normal;font-weight:400}
.goat-faq-item>div{padding:0 18px 17px;color:#cfc5b1;font-size:13px;line-height:20px}
.goat-faq-item>div p{margin:0}

#profileLegacyPanel :is(p,small,span),#profileSettingsPanel :is(p,small,span){font-size:13px;line-height:19px}
#profileLegacyPanel :is(h2,h3,strong),#profileSettingsPanel :is(h2,h3,strong){font-size:15px;line-height:21px}
#profileSettingsPanel .settings-content-shell,#profileSettingsPanel .settings-grid{width:100%;max-width:1120px;margin-inline:auto}
#profileSettingsPanel .settings-grid{gap:16px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
#profileSettingsPanel .settings-grid>article{box-sizing:border-box;padding:18px!important}
#profileSettingsPanel .settings-grid :is(input,select,button){min-height:38px;font-size:12px!important;font-weight:600!important;line-height:18px!important}
#profileSettingsPanel :is(.settings-danger-zone,.settings-discord-card) .danger-button:hover{border-color:#d77a6b!important;background:#873b32!important;color:#fff8ed!important;box-shadow:0 0 0 2px rgba(215,122,107,.14)!important}

#profileLineupPanel .tc7-reaction-node :is(strong,small,i),
#profileLineupPanel .tc5-bottom-bar :is(button,p),
#profileLineupPanel .tactics-pitch-visual-toggle button{font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
#profileLineupPanel .tc7-reaction-node strong{font-size:12px!important;line-height:18px!important}
#profileLineupPanel .tc7-reaction-node :is(small,i){font-size:11px!important;font-weight:700!important;line-height:16px!important}
#profileLineupPanel .tc5-clear-reactions{color:#fff5df!important}

.player-dossier-identity>span{display:flex;align-items:center;gap:7px}
.player-dossier-identity>span .player-favourite-toggle{order:-1;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
.player-dossier-identity>span .player-favourite-toggle:is(:hover,:focus-visible){transform:scale(1.12);color:#fff2b0!important;box-shadow:none!important}
.player-contract-v4 :is(span,small),.player-positions-v4 :is(span,em),.player-performance-v4 span{font-size:12px!important;line-height:18px!important;letter-spacing:0!important}
.player-contract-v4 :is(strong,b),.player-positions-v4 strong,.player-performance-v4 strong{font-size:14px!important;line-height:20px!important}

#profileStadiumPanel .stadium-current-level-overlay,#profileStadiumPanel .stadium-room-footer{display:none!important}
#profileCentrePanel .mc-hub-panel-title>div>small:last-child{display:none!important}
#profileCentrePanel .mc-hub-player-copy strong{font-size:14px!important;line-height:20px!important}
#profileCentrePanel .mc-hub-player-copy small,#profileCentrePanel .mc-hub-latest-rating small{font-size:12px!important;line-height:18px!important}
#profileCentrePanel .mc-hub-player-metrics :is(strong,small){font-size:12px!important;line-height:18px!important}
#profileCentrePanel .mc-hub-latest-rating strong{font-size:16px!important;line-height:22px!important}
.centre-report-summary footer{font-size:13px!important;line-height:19px!important}
.centre-report-summary footer :is(span,b,strong,svg){font-size:13px!important}
.centre-report-body .mc-report-stat-circle,.centre-report-body [class*="stat-circle"]{display:grid!important;place-items:center!important;min-width:74px!important;width:74px!important;height:74px!important;padding:7px!important;box-sizing:border-box!important}
.centre-report-body .mc-report-stat-circle :is(strong,b),.centre-report-body [class*="stat-circle"] :is(strong,b){font-size:15px!important;line-height:18px!important;white-space:nowrap!important}
.centre-report-body .mc-report-player-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(1){width:22%}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(2){width:7%;min-width:0!important}
.centre-report-body .mc-report-player-table :is(th,td){padding-inline:5px!important}
.centre-report-body .mc-report-player-table-wrap{overflow-x:hidden!important}
.mc-report-player-discipline{display:inline-flex;gap:3px;margin-left:6px;vertical-align:middle}
.mc-report-player-discipline .mc-report-event-card{display:inline-block;width:7px;height:11px;border-radius:1px;box-shadow:0 1px 2px rgba(0,0,0,.45)}
.mc-report-player-discipline .is-yellow{background:#f4cf42}.mc-report-player-discipline .is-red{background:#d95045}

#profileRegistrationPanel .league-registration-drag{display:none!important}
#profileRegistrationPanel .league-registration-player-lock{border-color:rgba(205,82,67,.5)!important;background:rgba(114,34,29,.45)!important;color:#ffb1a6!important}
#profileRegistrationPanel .league-registration-sidebar-validation{border-top:0!important}
#profileRegistrationPanel .league-registration-clear-button{color:#fff5df!important}
#profileRegistrationPanel .league-registration-time-remaining[data-countdown-tone="closing"]{color:#71d68c!important}
#profileRegistrationPanel .league-registration-time-remaining[data-countdown-tone="neutral"]{color:#ff786b!important;font-size:15px!important;font-weight:700!important}
#profileRegistrationPanel :is(#leagueRegistrationDeadlineLabel,#leagueRegistrationWindowLabel){display:none!important}

#profileFinancesPanel .finance-commitment-v3>header>b,#profileFinancesPanel .finance-commitment-v3>header>b>small{font:700 16px/22px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;vertical-align:baseline!important}
#profileContractsPanel thead th{font-size:13px!important;font-weight:700!important;line-height:19px!important}
#profileContractsPanel thead th :is(button,a),#profileContractsPanel thead th:is(:hover,:focus-within){border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
#profileContractsPanel thead th :is(button,a):is(:hover,:focus-visible){color:#fff8e9!important}
#profileContractsPanel .contract-pagination,#profileContractsPanel .contract-pagination *{font-size:13px!important;line-height:19px!important}

.goat-world-picker-player.world-squad-player em{display:none!important}
.goat-world-picker-player.world-squad-player.is-selected,.goat-world-picker-player.world-squad-player.preview-locked{border-color:#f6ead0!important;box-shadow:0 0 0 2px rgba(246,234,208,.22)!important;background:rgba(246,234,208,.08)!important}
.goat-world-picker-player.world-squad-player span strong{font-size:14px!important;line-height:20px!important}
.goat-world-picker-player.world-squad-player span small{font-size:12px!important;line-height:18px!important}
#goatWorldRenamePitchButton{display:grid!important;width:28px!important;height:28px!important;min-width:28px!important;place-items:center;padding:0!important;border:0!important;background:transparent!important;font-size:0!important}
#goatWorldRenamePitchButton::before{content:"✎";color:#e1bd72;font:700 18px/1 Inter,InterVariable,ui-sans-serif,system-ui,sans-serif}
#goatWorldRenamePitchButton:hover::before{color:#fff5df}
@media(max-width:800px){#profileSettingsPanel .settings-grid{grid-template-columns:1fr!important}}

/* Development polish: the accepted Standings typography is the shared
   management-page baseline for the focused surfaces below. */
.mail-contact-remove{
  display:grid;place-items:center;width:24px;height:24px;padding:0;border:1px solid rgba(255,118,118,.54);
  border-radius:5px;background:#8c2931;color:#fff;font:800 17px/1 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  box-shadow:none;cursor:pointer
}
.mail-contact-remove:is(:hover,:focus-visible){background:#aa343e;border-color:#ff9da5;outline:2px solid rgba(255,157,165,.24);outline-offset:2px;box-shadow:none}
.player-favourite-toggle{margin-left:7px;padding:0;border:0;background:transparent;color:#efe5d2;font:700 20px/1 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;vertical-align:-2px;cursor:pointer;box-shadow:none}
.player-favourite-toggle.is-favourite{color:#e5c377}
.player-favourite-toggle:is(:hover,:focus-visible){color:#fff3ca;outline:2px solid rgba(229,195,119,.42);outline-offset:3px;box-shadow:none}
.tactics-pitch-visual-toggle{position:absolute;z-index:20;top:12px;right:12px;display:flex;gap:4px;padding:4px;border:1px solid rgba(212,169,79,.24);border-radius:9px;background:rgba(8,7,5,.88);box-shadow:0 5px 16px rgba(0,0,0,.28)}
.tactics-pitch-visual-toggle button{min-height:30px;padding:5px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#d9d1c2;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;cursor:pointer;box-shadow:none}
.tactics-pitch-visual-toggle button.active{border-color:rgba(229,195,119,.48);background:rgba(212,169,79,.16);color:#fff4df}
.tactics-pitch-visual-toggle button:is(:hover,:focus-visible){border-color:rgba(229,195,119,.42);color:#fff;outline:2px solid rgba(229,195,119,.18);outline-offset:1px;box-shadow:none}

.objective-summary-card>.objective-complete-indicator{display:none;position:absolute;z-index:2;right:31px;top:38px;width:42px;height:42px;place-items:center;border-radius:50%;background:#3a8451;color:#fff;font:800 23px/1 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;box-shadow:0 0 0 2px rgba(99,211,134,.2),0 0 22px rgba(65,174,99,.28)}
.objective-summary-card.is-complete>.objective-complete-indicator{display:grid}
.objective-summary-card.is-complete>div{visibility:hidden}

.goat-confirm-submit,.goat-confirm-submit.danger,
.goat-confirm-submit:is(:hover,:focus-visible),.goat-confirm-submit.danger:is(:hover,:focus-visible){box-shadow:none!important;filter:none!important}
#profileSettingsPanel .settings-link-button,
#profileSettingsPanel .settings-link-button:is(:hover,:focus-visible){box-shadow:none!important;filter:none!important;text-shadow:none!important}

#profileRegistrationPanel .league-registration-screen,
#profileRegistrationPanel .league-registration-screen :is(button,input,select,textarea,table){font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
#profileRegistrationPanel :is(.league-registration-heading,.league-registration-sidebar>header,.league-registration-sidebar-validation,.league-registration-notes){border-top:0!important;border-bottom:0!important}
#profileRegistrationPanel .league-registration-heading::after,
#profileRegistrationPanel .league-registration-notes::before{content:none!important;display:none!important}
#profileRegistrationPanel :is(.league-registration-summary-copy small,.league-registration-summary-copy em,.league-registration-sidebar-counts dt,.league-registration-validation-item small,.league-registration-player-copy small){font-size:12px!important;line-height:18px!important;letter-spacing:0!important}
#profileRegistrationPanel :is(.league-registration-summary-copy strong,.league-registration-sidebar-counts dd,.league-registration-validation-item strong,.league-registration-player-copy strong){font-size:14px!important;line-height:20px!important}

#profileFinancesPanel :is(.finance-commitment-card,.finance-breakdown-card,.finance-ledger-card,.finance-table-wrap),
#profileMarketPanel .market-toolbar,
#profileContractsPanel .contract-pagination{font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
#profileFinancesPanel :is(.finance-commitment-copy b,.finance-commitment-list p>strong,.finance-ledger-v3 td){font-size:14px!important;line-height:20px!important}
#profileFinancesPanel :is(.finance-commitment-copy small,.finance-commitment-list p>em,.finance-ledger-v3 th){font-size:12px!important;line-height:18px!important;letter-spacing:0!important}
#profileMarketPanel .market-filter-row{gap:8px 10px}
#profileMarketPanel .market-filter-row label>span:first-child{font-size:12px!important;font-weight:600!important;line-height:18px!important;letter-spacing:0!important}
#profileMarketPanel .market-filter-row :is(select,input){min-height:34px!important;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
#profileContractsPanel .contract-pagination{font-size:12px!important;font-weight:600!important;line-height:18px!important}
#profileContractsPanel .contract-pagination :is(span,b,button){font-size:12px!important;font-weight:600!important;line-height:18px!important;letter-spacing:0!important}

.centre-report-body,
.centre-report-body :is(button,select,table){font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
.centre-report-body .mc-report-team-stats>header .mc-hub-club-logo,
.centre-report-body .mc-report-tactics-team>header .mc-hub-club-logo,
.centre-report-body .mc-report-ratings-team>header .mc-hub-club-logo{border-color:rgba(212,169,79,.18)!important;background:transparent!important;box-shadow:none!important}
.centre-report-body :is(.mc-report-tactic-block h3,.mc-report-popup-changes strong,.mc-report-popup-changes small,.mc-report-popup-empty){font-size:13px!important;line-height:19px!important;letter-spacing:0!important}
.centre-report-body .mc-report-popup-tactic-grid dt{font-size:12px!important;line-height:18px!important;letter-spacing:0!important}
.centre-report-body .mc-report-popup-tactic-grid dd{font-size:14px!important;line-height:20px!important}
.centre-report-body .mc-report-stat-periods button{font-size:12px!important;font-weight:600!important;line-height:18px!important;letter-spacing:0!important}
.centre-report-body .mc-report-stat-row{min-height:48px!important}
.centre-report-body .mc-report-stat-row>b{font-size:14px!important;line-height:20px!important}
.centre-report-body .mc-report-stat-row small{font-size:12px!important;line-height:18px!important}
.centre-report-body .mc-report-player-table{min-width:1540px!important;table-layout:auto!important;font-size:13px!important;line-height:19px!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(2){min-width:150px}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(3){min-width:64px}
.centre-report-body .mc-report-player-table th{height:42px!important;font-size:12px!important;font-weight:700!important;letter-spacing:0!important}
.centre-report-body .mc-report-player-table td{height:56px!important;padding:7px 11px!important;font-size:13px!important}
.centre-report-body .mc-report-player-table td>button strong{font-size:14px!important;line-height:20px!important}
.centre-report-body .mc-report-player-table td>button small{font-size:11px!important;line-height:16px!important;letter-spacing:0!important}

/* .115: canonical Monthly Bonus state. Only the server-provided `claimed`
   flag turns this indicator green and reveals the SVG confirmation mark. */
#profileObjectivesPanel .objective-summary-card.is-monthly-bonus.is-claimed .monthly-bonus-indicator{
  background:#3a8451!important;
  box-shadow:0 0 0 2px rgba(99,211,134,.2),0 0 22px rgba(65,174,99,.28)!important;
}
#profileObjectivesPanel .objective-summary-card.is-monthly-bonus.is-claimed .monthly-bonus-indicator>i{
  border-color:rgba(255,255,255,.14)!important;
  background:#2f6f44!important;
}

/* Public Overview keeps each control in its original container and horizontal
   anchor. Move the two outer controls down together to the identity action
   band without changing the artwork's Copy club link control. */
body:not(.dashboard-mode).goat-page-bg-club-overview #profileView>.profile-return-row,
body:not(.dashboard-mode).goat-page-bg-club-overview #profileView>.profile-nav-row{
  z-index:80!important;
  transform:translateY(78px)!important;
}

/* Settings cards are grouped by task: the short name fields share a row,
   while location, linked account and account closure use the full workspace. */
#profileSettingsPanel #settingsAccount>.home-location-setting,
#profileSettingsPanel #settingsAccount>.settings-discord-card,
#profileSettingsPanel #settingsAccount>.settings-danger-zone{grid-column:1/-1}
#profileSettingsPanel #settingsAccount>.home-location-setting form{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr)) auto;
  align-items:end;
}
#profileSettingsPanel #settingsAccount>.home-location-setting .location-capital-help{grid-column:1/3}
#profileSettingsPanel #settingsAccount>.settings-discord-card,
#profileSettingsPanel #settingsAccount>.settings-danger-zone{min-height:0}

/* Tactics is a mode of the Lineup workspace. Inside the tablet the starting
   controls receive the complete right-hand pane instead of the full-page
   artwork column that made the final controls overflow beyond the bezel. */
.office-app-scroll #profileLineupPanel .tc7-plan-canvas{
  grid-template-columns:minmax(0,1fr)!important;
  inset:0!important;
  width:auto!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid{
  box-sizing:border-box;
  width:auto!important;
  min-width:0;
}
.office-app-scroll #profileLineupPanel .lineup-workspace-toolbar.mode-tactics,
.office-app-scroll #profileLineupPanel .lineup-workspace.mode-tactics{
  grid-template-columns:minmax(280px,.76fr) minmax(0,1.24fr)!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
  grid-template-columns:54px minmax(134px,1fr)!important;
  grid-template-rows:auto auto!important;
  gap:3px 8px!important;
  min-width:0;
  min-height:74px;
  padding:5px 7px;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{
  grid-column:1!important;
  grid-row:1/3!important;
  align-self:center;
  width:50px!important;
  height:50px!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control :is(select,.goat-select-trigger,.tc5-multiselect,.tc5-tactic-switch,.tc5-attack-lanes){
  grid-column:2!important;
  grid-row:2!important;
  min-width:0!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control-label>span{font-size:.64rem!important}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-attack-lanes span{font-size:.46rem}

/* Next Match and Compare opened from the tablet stay physically contained by
   its app screen. Their ordinary full-page presentation remains unchanged. */
.office-app-shell>.lineup-scouting-modal.is-office-embedded,
.office-app-shell>.squad-comparison-modal.is-office-embedded{
  position:absolute;
  z-index:110;
  inset:40px 0 0;
  width:auto;
  height:auto;
  padding:7px;
  overflow:hidden;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-content,
.office-app-shell>.squad-comparison-modal.is-office-embedded .squad-comparison-content{
  box-sizing:border-box;
  width:100%;
  height:100%;
  max-height:none;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-content{min-height:0}
.office-app-shell>.squad-comparison-modal.is-office-embedded .squad-comparison-content{overflow:auto}

@media(max-width:780px){
  #profileSettingsPanel #settingsAccount>.home-location-setting form{grid-template-columns:1fr}
  #profileSettingsPanel #settingsAccount>.home-location-setting .location-capital-help{grid-column:auto}
}

/* Tablet-native coaching workspace. The tablet is a separate viewport, so it
   does not keep the desktop pitch beside a second framed Tactics window. */
.office-app-shell{container-type:inline-size}
.office-app-scroll #profileLineupPanel .lineup-builder.section-frame{
  margin:0!important;
  padding:0!important;
}
.office-app-scroll #profileLineupPanel .lineup-workspace-toolbar.mode-tactics{
  display:block!important;
  margin:0 0 8px!important;
}
.office-app-scroll #profileLineupPanel .lineup-workspace-toolbar.mode-tactics .lineup-mode-tabs{
  width:100%!important;
  min-height:54px;
}
.office-app-scroll #profileLineupPanel .lineup-workspace-toolbar.mode-tactics .lineup-tactics-context{display:none!important}
.office-app-scroll #profileLineupPanel .lineup-workspace.mode-tactics{
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
}
.office-app-scroll #profileLineupPanel .lineup-workspace.mode-tactics>.lineup-pitch-column,
.office-app-scroll #profileLineupPanel .lineup-workspace.mode-tactics>.lineup-squad-panel{display:none!important}
.office-app-scroll #profileLineupPanel .lineup-workspace.mode-tactics>.lineup-tactics-workspace{
  display:block!important;
  width:100%!important;
  min-height:0!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen,
.office-app-scroll #profileLineupPanel .tc5-screen>.tactical-centre-v5,
.office-app-scroll #profileLineupPanel .tc5-form,
.office-app-scroll #profileLineupPanel .tc5-workspace-panel,
.office-app-scroll #profileLineupPanel .tc8-tactical-scene{
  box-sizing:border-box;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen,
.office-app-scroll #profileLineupPanel .tc5-screen>.tactical-centre-v5{
  min-height:730px!important;
}
.office-app-scroll #profileLineupPanel .tc5-form{min-height:716px!important}
.office-app-scroll #profileLineupPanel .tc5-workspace-panel{min-height:656px!important}
.office-app-scroll #profileLineupPanel .tc8-tactical-scene{min-height:648px!important}
.office-app-scroll #profileLineupPanel .tc5-workspace-panel{
  padding:4px 6px 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.office-app-scroll #profileLineupPanel .tc8-tactical-scene{
  display:grid!important;
  grid-template-rows:auto auto!important;
  gap:14px!important;
}
.office-app-scroll #profileLineupPanel .tc7-starting,
.office-app-scroll #profileLineupPanel .tc7-automation{
  min-height:0!important;
  padding:10px 12px 12px!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.office-app-scroll #profileLineupPanel .tc7-starting{min-height:362px!important}
.office-app-scroll #profileLineupPanel .tc7-automation{min-height:272px!important}
.office-app-scroll #profileLineupPanel .tc7-plan-canvas{
  height:auto!important;
  min-height:0!important;
}
.office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(74px,auto))!important;
  height:auto!important;
  padding:4px 8px!important;
  overflow:hidden!important;
}
.office-app-scroll #profileLineupPanel .tc7-reaction-canvas{
  position:relative!important;
  inset:auto!important;
  height:auto!important;
  min-height:245px!important;
  overflow:hidden!important;
}
.office-app-scroll #profileLineupPanel .tc7-reaction-track{
  position:relative!important;
  inset:auto!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-content:center;
  min-height:245px;
  padding:18px 10px 10px;
  row-gap:8px;
}
.office-app-scroll #profileLineupPanel .tc7-reaction-track::before{display:none!important}
.office-app-scroll #profileLineupPanel .tc5-bottom-bar{
  height:auto!important;
  min-height:58px!important;
  padding:8px 6px 12px!important;
}

/* Tablet subpages replace the app content instead of looking like another
   floating desktop modal placed on top of it. */
.office-app-shell>.lineup-scouting-modal.is-office-embedded,
.office-app-shell>.squad-comparison-modal.is-office-embedded{
  inset:40px 0 0!important;
  padding:0!important;
  background:#090806;
}
.office-app-shell>.is-office-embedded>.lineup-scouting-backdrop,
.office-app-shell>.is-office-embedded>.squad-comparison-backdrop{display:none!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-content,
.office-app-shell>.squad-comparison-modal.is-office-embedded .squad-comparison-content{
  border:0!important;
  border-radius:0!important;
  background:#090806!important;
  box-shadow:none!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-content{
  display:block!important;
  height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-color:rgba(192,143,52,.72) #080603;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-title{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) minmax(0,1.45fr) 38px!important;
  gap:14px!important;
  min-height:118px!important;
  padding:14px 18px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-opponent{gap:12px!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-opponent .mc-hub-club-logo{width:70px!important;height:70px!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-opponent h2{font-size:1.75rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-fixture-facts{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-fixture-facts article{
  grid-template-columns:25px minmax(0,1fr)!important;
  min-height:56px!important;
  padding:7px 11px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-fixture-facts article>img{width:22px!important;height:22px!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-body{
  display:block!important;
  min-height:0!important;
  overflow:visible!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-decision{
  display:grid!important;
  grid-template-columns:minmax(240px,.8fr) minmax(300px,1.2fr) minmax(250px,.92fr)!important;
  min-height:0!important;
  padding:14px 16px!important;
  overflow:visible!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-decision>section{padding:4px 14px!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-shape{
  grid-column:1!important;
  grid-row:1!important;
  grid-template-rows:auto minmax(220px,1fr)!important;
  align-self:start!important;
  min-height:280px!important;
  height:auto!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-signature{
  grid-column:2!important;
  grid-row:1!important;
  align-self:stretch!important;
  height:auto!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict{grid-column:3!important;grid-row:1!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-shape-board{
  width:min(100%,175px)!important;
  max-width:175px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-rows{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,auto)!important;
  gap:6px!important;
  height:auto!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-sector{
  grid-template-columns:58px minmax(0,1fr)!important;
  gap:8px!important;
  min-width:0;
  padding:6px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-sector .tc5-state-image{
  width:58px!important;
  height:58px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-sector small{font-size:.47rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-sector b{font-size:.7rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-style-sector em{font-size:.62rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict{
  display:grid!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  align-content:stretch!important;
  gap:0!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict>article{min-height:105px!important;padding:12px 8px 12px 15px!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict>article strong{font-size:.92rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict>article p{font-size:.66rem!important}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-context{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  min-height:0!important;
  padding:10px 16px 18px!important;
}
.office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-context>section{
  min-width:0;
  padding:10px 12px!important;
  border:0!important;
  border-radius:8px!important;
  background:rgba(22,18,11,.55)!important;
}

@container (max-width:1050px){
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-title{
    grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr) 38px!important;
  }
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-decision{
    grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr)!important;
  }
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-shape{grid-column:1!important;grid-row:1!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-signature{grid-column:2!important;grid-row:1!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict{
    grid-column:1/-1!important;
    grid-row:2!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:auto!important;
  }
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-context{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-missing{grid-column:1/-1}
}

@container (max-width:760px){
  .office-app-scroll #profileLineupPanel .tc5-screen .tc7-control-grid{grid-template-columns:1fr!important;grid-template-rows:none!important}
  .office-app-scroll #profileLineupPanel .tc7-reaction-track{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-title,
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-decision,
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-context{grid-template-columns:1fr!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-shape{grid-column:1!important;grid-row:1!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-signature{grid-column:1!important;grid-row:2!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-verdict{grid-column:1!important;grid-row:3!important}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-title>[data-close-lineup-scouting]{position:absolute;top:10px;right:10px}
  .office-app-shell>.lineup-scouting-modal.is-office-embedded .lineup-scouting-fixture-facts{grid-column:1!important}
}

/* First-login club creation. The supplied artwork is the dialog itself; live
   controls sit inside its empty central panel and scale with the full frame. */
.onboarding-modal{
  overflow:auto;
  padding:12px;
}
.onboarding-modal .onboarding-backdrop{
  background:rgba(2,2,2,.88);
  backdrop-filter:blur(7px);
}
.onboarding-modal .onboarding-card{
  position:relative;
  width:min(782px,calc(100vw - 24px),calc((100vh - 24px) * .8767));
  aspect-ratio:782 / 892;
  padding:0!important;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.onboarding-artwork{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  pointer-events:none;
  user-select:none;
}
.onboarding-modal .onboarding-form{
  position:absolute;
  z-index:1;
  inset:44% 13.2% 2.7%;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(5,auto) clamp(34px,4.8cqw,42px) minmax(16px,2.2cqw);
  align-content:space-between;
  gap:clamp(5px,.85cqw,8px);
  margin:0;
}
.onboarding-modal .onboarding-form label{
  display:grid;
  min-width:0;
  gap:clamp(4px,.65cqw,7px);
}
.onboarding-modal .onboarding-form label>span{
  overflow:hidden;
  color:#e9c979!important;
  font:700 clamp(10px,1.25cqw,12px)/1.2 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:0;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}
.onboarding-modal .onboarding-form :is(input,select){
  box-sizing:border-box!important;
  width:100%;
  min-width:0;
  height:clamp(36px,5.4cqw,48px)!important;
  min-height:clamp(36px,5.4cqw,48px)!important;
  max-height:clamp(36px,5.4cqw,48px)!important;
  padding:0 clamp(10px,1.55cqw,14px)!important;
  border:1px solid rgba(221,176,86,.48)!important;
  border-radius:clamp(5px,.8cqw,8px)!important;
  outline:0;
  background:rgba(9,7,4,.88)!important;
  box-shadow:inset 0 1px 8px rgba(0,0,0,.68);
  color:#fffaf0!important;
  font:600 clamp(10px,1.55cqw,12px)/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.onboarding-modal .onboarding-form :is(input,select):focus{
  border-color:#f1c96f!important;
  box-shadow:0 0 0 2px rgba(232,188,94,.18),inset 0 1px 8px rgba(0,0,0,.68);
}
.onboarding-modal .onboarding-form :is(input,select):disabled{
  cursor:not-allowed;
  opacity:.72;
}
.onboarding-modal .onboarding-form option{
  background:#151109;
  color:#fffaf0;
}
.onboarding-modal .onboarding-form option:disabled{color:#817968}
.onboarding-confirm{
  grid-column:1 / -1;
  width:min(42%,210px);
  height:clamp(34px,4.8cqw,42px)!important;
  min-height:clamp(34px,4.8cqw,42px)!important;
  justify-self:center;
  padding:0 clamp(18px,3cqw,28px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:clamp(6px,.85cqw,9px);
  background:#626262;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
  color:#d0d0d0;
  cursor:not-allowed;
  font:600 clamp(10px,1.65cqw,12px)/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:0;
  text-transform:uppercase;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.onboarding-confirm.is-ready:not(:disabled){
  border-color:#51b76b;
  background:#218943;
  box-shadow:0 7px 18px rgba(16,104,48,.28),inset 0 1px 0 rgba(255,255,255,.2);
  color:#fff;
  cursor:pointer;
}
.onboarding-confirm.is-ready:not(:disabled):is(:hover,:focus-visible){
  background:#29a250;
  box-shadow:0 9px 22px rgba(16,104,48,.38),0 0 0 3px rgba(70,191,103,.18);
  outline:0;
  transform:translateY(-1px);
}
.onboarding-modal .onboarding-message,
.onboarding-modal #onboardingMessage{
  grid-column:1 / -1;
  align-self:center;
  margin:0;
  overflow:hidden;
  color:#dbcda9!important;
  font:650 clamp(8px,1.15cqw,11px)/1.25 var(--body);
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
@media(max-width:480px){
  .onboarding-modal{padding:6px}
  .onboarding-modal .onboarding-card{width:min(782px,calc(100vw - 12px),calc((100vh - 12px) * .8767))}
  .onboarding-modal .onboarding-form{inset:44% 11.2% 2.3%}
  .onboarding-modal .onboarding-form :is(input,select){padding-inline:8px!important}
}

@media(max-width:720px){
  #profileOverviewPanel{width:100%}
  #profileOverviewPanel .club-overview-scene{aspect-ratio:auto;overflow:hidden;padding:14px;border-radius:18px}
  #profileOverviewPanel .club-overview-template{height:100%;object-fit:cover;object-position:top center;opacity:.42;filter:saturate(.82) brightness(.72)}
  #profileOverviewPanel .club-overview-content{position:relative;display:grid;gap:12px}
  #profileOverviewPanel .club-overview-identity,
  #profileOverviewPanel .club-overview-strength,
  #profileOverviewPanel .club-overview-trophies,
  #profileOverviewPanel .club-overview-venues,
  #profileOverviewPanel .club-overview-showcase{position:relative;inset:auto;width:100%;height:auto}
  #profileOverviewPanel .club-overview-identity{grid-template-columns:minmax(96px,30%) minmax(0,1fr);gap:14px;min-height:230px;padding:18px 16px;background:rgba(7,5,2,.70);border-radius:16px;box-shadow:inset 0 0 0 1px rgba(220,174,82,.27)}
  #profileOverviewPanel .club-overview-logo{width:100%;max-width:150px}
  #profileOverviewPanel .club-overview-identity h1{margin-bottom:12px;font-size:clamp(22px,7vw,36px)!important;white-space:normal}
  #profileOverviewPanel .club-overview-details{gap:7px}
  #profileOverviewPanel .club-overview-details p{gap:8px;font-size:11px}
  #profileOverviewPanel .club-overview-details svg{width:16px}
  #profileOverviewPanel .club-overview-manager{margin-top:10px;font-size:9px}
  #profileOverviewPanel .club-overview-identity-actions{gap:6px;margin-top:10px}
  #profileOverviewPanel .club-overview-identity-actions button{padding:7px 10px;font-size:8px}
  #profileOverviewPanel .club-overview-strength,
  #profileOverviewPanel .club-overview-trophies{padding:20px 18px;border-radius:16px;background:rgba(8,6,3,.72);box-shadow:inset 0 0 0 1px rgba(220,174,82,.28)}
  #profileOverviewPanel .club-overview-section-heading p{font-size:8px}
  #profileOverviewPanel .club-overview-section-heading h2{font-size:17px}
  #profileOverviewPanel .club-overview-strength-body{grid-template-columns:27% minmax(0,1fr);gap:6%;height:auto;margin-top:16px}
  #profileOverviewPanel .club-overview-average>strong{font-size:56px}
  #profileOverviewPanel .club-overview-average>span{margin-top:8px;font-size:10px}
  #profileOverviewPanel .club-overview-average>small{margin-top:6px;font-size:8px}
  #profileOverviewPanel .club-overview-strength-groups{gap:13px}
  #profileOverviewPanel .club-overview-strength-row{grid-template-columns:36px minmax(0,1fr) 32px;gap:9px}
  #profileOverviewPanel .club-overview-strength-row>span,
  #profileOverviewPanel .club-overview-strength-row>strong{font-size:10px}
  #profileOverviewPanel .club-overview-strength-row>div{height:7px}
  #profileOverviewPanel .club-overview-trophy-empty{height:auto;min-height:145px;padding:18px 8px 4px}
  #profileOverviewPanel .club-overview-trophy-empty>small{max-width:300px;font-size:9px}
  #profileOverviewPanel .club-overview-venues{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #profileOverviewPanel .club-overview-venue{aspect-ratio:1;padding:6px;border-radius:16px;background:rgba(8,6,3,.74);box-shadow:inset 0 0 0 1px rgba(220,174,82,.30)}
  #profileOverviewPanel .club-overview-venue>img{border-radius:12px}
  #profileOverviewPanel .club-overview-venue::after{inset:6px;border-radius:12px}
  #profileOverviewPanel .club-overview-venue-copy{left:15px;right:15px;bottom:15px}
  #profileOverviewPanel .club-overview-venue-copy p{font-size:7px}
  #profileOverviewPanel .club-overview-venue-copy h2{font-size:clamp(10px,3.1vw,15px)}
  #profileOverviewPanel .club-overview-venue-copy>span{margin-top:6px;font-size:8px}
  #profileOverviewPanel .club-overview-showcase{gap:10px}
  #profileOverviewPanel .club-overview-showcase-window{min-height:260px;padding:15px 10px 10px;border-radius:16px;background:rgba(8,6,3,.74);box-shadow:inset 0 0 0 1px rgba(220,174,82,.28)}
  #profileOverviewPanel .club-overview-showcase-window>h2{margin-bottom:8px;font-size:10px}
  #profileOverviewPanel .club-overview-player-card>button{width:94%}
}

@media(max-width:540px){
  #profileOverviewPanel .club-overview-identity{grid-template-columns:92px minmax(0,1fr);min-height:210px;padding:15px 13px}
  #profileOverviewPanel .club-overview-identity h1{font-size:clamp(19px,6.4vw,29px)!important}
  #profileOverviewPanel .club-overview-venues{grid-template-columns:1fr}
  #profileOverviewPanel .club-overview-venue{aspect-ratio:4 / 3}
  #profileOverviewPanel .club-overview-showcase{grid-template-columns:1fr}
  #profileOverviewPanel .club-overview-showcase-window{min-height:420px;padding:20px 18px 14px}
  #profileOverviewPanel .club-overview-showcase-window>h2{font-size:14px}
  #profileOverviewPanel .club-overview-kit-window>img{max-height:350px}
  #profileOverviewPanel .club-overview-player-card>button{width:min(78%,255px)}
}

@media(prefers-reduced-motion:reduce){
  #profileOverviewPanel .club-overview-player-card>button{transition:none!important}
}

/* Canonical Club Overview composition. Every live item is positioned against
   the 1538 × 2732 foreground canvas; the complete scene scales as one unit. */
.centre-report-body .mc-report-player-table{width:calc(100% - 4px)!important;max-width:calc(100% - 4px)!important;min-width:0!important;margin-inline:2px!important;table-layout:fixed!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(1){width:23%!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(2){width:6%!important;min-width:0!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(3){width:5%!important;min-width:0!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(4){width:5%!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(5){width:7%!important}
.centre-report-body .mc-report-player-table :is(th,td):nth-child(n+6){width:6%!important}
.centre-report-body .mc-report-player-table :is(th,td){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:720px){
  #profileOverviewPanel .club-overview-scene{
    width:100%!important;
    aspect-ratio:1538 / 2732!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:clamp(16px,2.1vw,28px)!important;
  }
  #profileOverviewPanel .club-overview-template{
    width:100%!important;
    height:100%!important;
    object-fit:fill!important;
    object-position:center!important;
    opacity:1!important;
    filter:none!important;
  }
  #profileOverviewPanel .club-overview-content{position:absolute!important;inset:0!important;display:block!important}
}

#profileOverviewPanel .club-overview-identity,
#profileOverviewPanel .club-overview-strength,
#profileOverviewPanel .club-overview-trophies,
#profileOverviewPanel .club-overview-venues,
#profileOverviewPanel .club-overview-showcase{
  display:contents!important;
}
#profileOverviewPanel .club-overview-content{
  position:absolute;
  z-index:1;
  inset:0;
  opacity:0;
}
#profileOverviewPanel .club-overview-content.is-layout-ready{opacity:1}
#profileOverviewPanel [data-overview-layout]{
  position:absolute!important;
  inset:auto!important;
  box-sizing:border-box!important;
  margin:0!important;
  max-width:none!important;
  min-width:0!important;
  transform-origin:top left;
}
#profileOverviewPanel [data-overview-layout][data-layout-hidden="1"]{visibility:hidden!important;pointer-events:none!important}
#profileOverviewPanel [data-overview-layout][data-layout-clip="1"]{overflow:hidden!important}

#profileOverviewPanel .club-overview-logo{
  display:grid;
  place-items:center;
  overflow:hidden;
  border:0;
  border-radius:50%;
  outline:0;
  background:radial-gradient(circle at 42% 34%,#2e2518,#080705 68%);
  box-shadow:0 14px 34px rgba(0,0,0,.46);
}
#profileOverviewPanel .club-overview-logo img{display:block;width:100%;height:100%;object-fit:inherit;object-position:inherit}
#profileOverviewPanel .club-overview-logo>span{color:#e8c477;font:900 11cqw/1 Georgia,serif}
#profileOverviewPanel #profileName{
  overflow:hidden;
  color:#fffaf0!important;
  letter-spacing:.015em!important;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
  text-shadow:0 5px 18px rgba(0,0,0,.75)!important;
}
#profileOverviewPanel .club-overview-detail-icon{
  color:#d9aa52;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
#profileOverviewPanel .club-overview-country-flag{display:grid;place-items:center;overflow:visible}
#profileOverviewPanel .club-overview-country-flag-mark.player-country-flag-wrap{
  width:100%!important;
  height:75%!important;
  flex:none!important;
  border-radius:.16cqw;
}
#profileOverviewPanel .club-overview-country-flag-mark .player-country-flag-fallback{font-size:75%;line-height:1}
#profileOverviewPanel .club-overview-detail-text{
  overflow:hidden;
  color:#e7dfd1;
  letter-spacing:.06em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileOverviewPanel .club-overview-manager{overflow:hidden;color:#b6aa96;text-overflow:ellipsis;white-space:nowrap}
#profileOverviewPanel .club-overview-copy-link,
#profileOverviewPanel .club-overview-public-actions button{
  min-height:0;
  padding:.55cqw .9cqw;
  border:1px solid rgba(218,171,82,.30);
  border-radius:999px;
  background:rgba(8,6,3,.58);
  color:#ddbd7b;
  letter-spacing:.04em;
}
#profileOverviewPanel .club-overview-copy-link:is(:hover,:focus-visible),
#profileOverviewPanel .club-overview-public-actions button:is(:hover,:focus-visible){border-color:#e1bb70;background:rgba(111,76,22,.40);color:#fff5df;outline:2px solid rgba(225,187,112,.22);outline-offset:2px}
#profileOverviewPanel .club-overview-public-actions{position:absolute;z-index:5;left:49%;top:14.9%;display:flex;gap:.55cqw}

/* On Overview, align the shared return control with the Copy club link row.
   Every other Club page keeps the standard top-left return anchor. */
body.club-hub-crumb-active.goat-page-bg-club-overview .profile-nav-row{top:83px!important}
@media(max-width:720px){body.club-hub-crumb-active.goat-page-bg-club-overview .profile-nav-row{top:72px!important}}

/* Final cascade authority for the focused 3.0A.50.35.123 review fixes. */
.player-modal.player-dossier-shell .player-contract-v4>header span,
.player-modal.player-dossier-shell .player-contract-grid-v4 span,
.player-modal.player-dossier-shell .player-contract-willingness span,
.player-modal.player-dossier-shell .player-kit-number-form-v5 label>span,
.player-modal.player-dossier-shell .player-kit-number-readonly-v5 span{font-size:11px!important;line-height:16px!important;letter-spacing:0!important}
.player-modal.player-dossier-shell .player-contract-grid-v4 strong,
.player-modal.player-dossier-shell .player-contract-willingness strong{font-size:13px!important;line-height:18px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-name-link{font-size:16px!important;line-height:21px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-position{font-size:12px!important;line-height:18px!important}
.centre-report-body .mc-report-player-discipline .mc-report-event-card{position:static!important;inset:auto!important;display:inline-block!important;width:7px!important;height:11px!important;margin:0!important;transform:none!important}
#worldView .goat-world-title-row{display:flex!important;width:100%!important;min-width:0!important;align-items:center!important;gap:7px!important}
#worldView .goat-world-title-row #goatWorldInteriorEyebrow{width:auto!important;margin:0!important}
#worldView #goatWorldRenamePitchButton.hidden{display:none!important}
#worldView #goatWorldRenamePitchButton::before{content:none!important;display:none!important}
#worldView #goatWorldRenamePitchButton svg{display:block!important;width:20px!important;height:20px!important;fill:none;stroke:currentColor;stroke-width:15;stroke-linecap:round;stroke-linejoin:round}
#worldView .goat-world-picker-player.world-squad-player{grid-template-columns:40px minmax(0,1fr) 36px!important;gap:5px!important}
#worldView .goat-world-picker-player.world-squad-player>img{width:40px!important;height:52px!important}
#worldView .goat-world-picker-player.world-squad-player>span{width:100%!important;min-width:0!important;justify-self:stretch!important}
#worldView .goat-world-picker-player.world-squad-player>span strong{display:block!important;width:100%!important;min-width:0!important;font-size:13px!important;line-height:19px!important}
#worldView .goat-world-picker-player.world-squad-player>span small{font-size:11px!important;line-height:17px!important}
#worldView .goat-world-picker-player.world-squad-player>b{min-width:32px!important;padding-inline:3px!important}

#profileOverviewPanel .club-overview-eyebrow{
  overflow:hidden;
  color:#aa8546;
  letter-spacing:.22em;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileOverviewPanel .club-overview-heading{
  overflow:hidden;
  color:#f4d28a;
  letter-spacing:.07em;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
  text-shadow:0 3px 12px rgba(0,0,0,.75);
}

/* 3.0A.50.35.124 — focused interface and formation-registration review. */
.goat-circular-back,
#worldView .goat-world-back-icon,
.club-hub-back,
.market-page-back{
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:1px solid rgba(212,169,79,.36)!important;
  border-radius:50%!important;
  background:rgba(23,21,15,.92)!important;
  color:#e5c377!important;
  box-shadow:0 8px 20px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.06)!important;
  transition:color .18s ease,border-color .18s ease,background .18s ease!important;
}
.goat-circular-back svg,
#worldView .goat-world-back-icon svg,
.club-hub-back svg,
.market-page-back svg{display:block!important;width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.goat-circular-back:is(:hover,:focus-visible),
#worldView .goat-world-back-icon:is(:hover,:focus-visible),
.club-hub-back:is(:hover,:focus-visible),
.market-page-back:is(:hover,:focus-visible){border-color:rgba(240,215,155,.72)!important;background:#2a2214!important;color:#fff4e3!important;outline:2px solid rgba(240,215,155,.48)!important;outline-offset:3px!important;transform:none!important;scale:1!important}

.league-registration-panel-heading h3,
.league-registration-sidebar>header h3,
.league-registration-u17>header h3{font:700 18px/24px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;text-transform:none!important}

.pack-market-vault .pack-market-inventory{margin-top:22px!important}
.pack-market-vault .pack-market-inventory>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.pack-market-vault .pack-market-inventory-row{grid-template-columns:40px minmax(120px,1fr) 96px 54px!important}
@media(min-width:1041px){body.market-management-page #profileMarketPanel .pack-market-vault .market-pagination{top:30px!important}}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-name-link{font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

#profileCentrePanel .mc-hub-form-players .mc-hub-player-row{grid-template-columns:36px 90px minmax(0,1fr)!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-rank{border-right:0!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait{background:transparent!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait::after{content:none!important;display:none!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait img{inset:0!important;width:100%!important;height:100%!important;background:transparent!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-name-link{font-size:18px!important;line-height:24px!important}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-metrics .mc-hub-icon{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:14!important;stroke-linecap:round!important;stroke-linejoin:round!important}

.centre-report-body .mc-report-stat-row{grid-template-columns:60px minmax(0,1fr) 60px!important}
.centre-report-body .mc-report-stat-row>b{box-sizing:border-box!important;width:54px!important;height:54px!important;padding:3px!important;font:800 12px/1 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-variant-numeric:tabular-nums!important;white-space:nowrap!important}
.centre-report-body .mc-report-player-filter>small{display:none!important}
.centre-report-body .mc-report-player-table th>button,
.centre-report-body .mc-report-player-table th>button:is(:hover,:focus,:focus-visible){border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;filter:none!important;transform:none!important}
.centre-report-body .mc-report-player-table th>button:is(:hover,:focus-visible){color:#fff8e9!important}
.centre-report-body .mc-report-player-table th>button::before,
.centre-report-body .mc-report-player-table th>button::after{content:none!important;display:none!important}

.player-modal.player-dossier-shell .player-contract-willingness{min-height:0!important;margin-top:12px!important;padding:0 1px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.player-modal.player-dossier-shell .player-contract-willingness span,
.player-modal.player-dossier-shell .player-contract-willingness strong{font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4{grid-template-rows:auto auto auto!important;align-content:start!important;padding:8px 9px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4>header{min-height:15px!important;margin-bottom:4px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4{align-self:start!important;grid-auto-rows:42px!important;gap:5px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 p{min-height:42px!important;padding:4px 7px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 strong{font:700 11px/15px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;white-space:nowrap!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-willingness{min-height:18px!important;margin-top:9px!important;padding:0 1px!important;gap:6px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-willingness span{font:700 10px/15px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-willingness strong{font:700 11px/15px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.player-modal.player-dossier-shell .player-kit-number-form-v5 label>span,
.player-modal.player-dossier-shell .player-kit-number-readonly-v5 span,
.player-modal.player-dossier-shell .player-dossier-facts p>span,
.player-modal.player-dossier-shell .player-status-v4 p>span{font:600 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important;text-transform:none!important;color:#d9d1c2!important}

#worldView .goat-world-title-row{flex-wrap:wrap!important}
#worldView .goat-world-title-row #goatWorldInteriorTitle{display:block!important}
#worldView .goat-world-title-row #goatWorldInteriorTitle.hidden{display:none!important}
#worldView .goat-world-rename-pitch{gap:7px!important}
#worldView .goat-world-rename-pitch form{display:flex!important;align-items:center!important;gap:6px!important;min-width:min(360px,60vw)!important}
#worldView .goat-world-rename-pitch form.hidden{display:none!important}
#worldView .goat-world-rename-pitch form input{min-width:220px!important;height:38px!important;font:700 18px/24px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-rename-confirm{display:grid!important;width:34px!important;height:34px!important;min-width:34px!important;padding:4px!important;place-items:center!important;border:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;cursor:pointer!important}
#worldView .goat-world-rename-confirm svg{width:23px!important;height:23px!important;fill:none!important;stroke:currentColor!important;stroke-width:18!important;stroke-linecap:round!important;stroke-linejoin:round!important}
#worldView .goat-world-rename-confirm:is(:hover,:focus-visible){color:#f0d79b!important;outline:0!important;background:transparent!important}
#worldView .goat-world-picker-player.world-squad-player{grid-template-columns:44px minmax(0,1fr)!important;grid-template-areas:"image identity"!important;gap:10px!important;min-height:72px!important}
#worldView .goat-world-picker-player.world-squad-player>img{width:44px!important;height:56px!important}
#worldView .goat-world-picker-player.world-squad-player>span strong{font-size:14px!important;line-height:20px!important}
#worldView .goat-world-picker-player.world-squad-player>span small{font-size:11px!important;line-height:16px!important;white-space:normal!important}
#worldView .goat-world-picker-pagination{display:grid!important;grid-template-columns:1fr auto 1fr!important;gap:8px!important;align-items:center!important}
#worldView .goat-world-picker-pagination button{min-height:34px!important;padding:6px 10px!important;border:1px solid rgba(212,169,79,.28)!important;border-radius:8px!important;background:rgba(20,16,10,.82)!important;color:#e5c377!important;font:700 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-picker-pagination button:last-child{justify-self:end!important}
#worldView .goat-world-picker-pagination button:disabled{opacity:.42!important}
#worldView .goat-world-picker-pagination span{font:600 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;color:#d9d1c2!important}
#worldView .goat-world-current-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
#worldView .goat-world-current-player{display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;min-height:38px!important;padding:4px 5px 4px 10px!important;align-items:center!important}
#worldView .goat-world-current-player{border:0!important;background:transparent!important;box-shadow:none!important}
#worldView .goat-world-current-player button:first-child{display:block!important;overflow:hidden!important;padding:0!important;border:0!important;background:transparent!important;color:#f2eadc!important;text-align:left!important;text-overflow:ellipsis!important;white-space:nowrap!important}
#worldView .goat-world-current-player button:first-child span{font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-current-toggle:is(:hover,:focus-visible){background:transparent!important;outline:0!important}
#worldView .goat-world-current-toggle:is(:hover,:focus-visible) :is(b,i){color:#fff5df!important}

#profileLineupPanel .lineup-tactics-context .tc5-next-match-summary .tc5-meta{align-content:center!important;justify-items:center!important;text-align:center!important}
#profileLineupPanel .lineup-tactics-context .tc5-next-match-summary .tc5-meta>span{justify-content:center!important;font:700 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:0!important}
#profileLineupPanel .lineup-tactics-context .tc5-next-match-summary .tc5-meta>b{font:700 15px/21px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:center!important}
#profileOverviewPanel .club-overview-average-value{
  display:block;
  overflow:hidden;
  color:#f4cf7e;
  letter-spacing:-.055em;
  text-shadow:0 4px 22px rgba(189,128,27,.34);
}
#profileOverviewPanel .club-overview-average-caption{display:block;color:#f4ead7;letter-spacing:.18em}
#profileOverviewPanel .club-overview-eligible-count{display:block;overflow:hidden;color:#9e927e;text-overflow:ellipsis;white-space:nowrap}
#profileOverviewPanel .club-overview-strength-groups,
#profileOverviewPanel .club-overview-strength-row{display:contents!important}
#profileOverviewPanel .club-overview-strength-label,
#profileOverviewPanel .club-overview-strength-value{color:#eadfc9;letter-spacing:.06em}
#profileOverviewPanel .club-overview-strength-bar{
  overflow:hidden;
  border-radius:999px;
  background:rgba(98,75,36,.34);
  box-shadow:inset 0 0 0 1px rgba(224,180,91,.24);
}
#profileOverviewPanel .club-overview-strength-bar i{display:block;width:var(--strength);height:100%;border-radius:inherit;background:linear-gradient(90deg,#8f6425,#f0ce82);box-shadow:0 0 12px rgba(223,171,68,.32)}

#profileOverviewPanel .club-overview-trophy-empty{display:grid;place-content:center;justify-items:center;color:#948773;text-align:inherit}
#profileOverviewPanel .club-overview-trophy-empty>span{color:rgba(226,181,92,.62);font:400 2.6em/1 Georgia,serif;text-shadow:0 0 18px rgba(226,181,92,.24)}
#profileOverviewPanel .club-overview-trophy-empty>strong{color:#e5d6b8;font-weight:750}
#profileOverviewPanel .club-overview-trophy-empty>small{margin-top:.45em;color:#948773;font-size:.72em;line-height:1.35}
#profileOverviewPanel .club-overview-trophy-slot{display:grid;place-items:center}
#profileOverviewPanel .club-overview-trophy-slot>span{display:none}
#profileOverviewPanel .trophy-cabinet-renderer{
  position:absolute!important;
  z-index:4;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  pointer-events:none;
}
.trophy-cabinet-item{
  position:absolute;
  left:var(--trophy-x);
  top:var(--trophy-y);
  width:var(--trophy-width);
  height:var(--trophy-height);
  margin:0;
  transform:scale(var(--trophy-scale));
  transform-origin:50% 100%;
}
.trophy-cabinet-item>img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  filter:drop-shadow(0 .55cqw .72cqw rgba(0,0,0,.62));
}
.trophy-cabinet-item.is-locked>img{opacity:.88;filter:drop-shadow(0 .35cqw .48cqw rgba(0,0,0,.44))}
.trophy-cabinet-item.is-unlocked{pointer-events:auto;outline:0;cursor:help}
.trophy-cabinet-item.is-unlocked:is(:hover,:focus){z-index:20!important}
.trophy-cabinet-tooltip{
  position:absolute;
  z-index:20;
  left:50%;
  bottom:100%;
  width:max-content;
  max-width:210px;
  padding:8px 11px;
  border:1px solid rgba(224,178,86,.42);
  border-radius:8px;
  background:#100d08;
  box-shadow:0 10px 24px rgba(0,0,0,.48);
  color:#f2d38e;
  font:800 15px/1.4 var(--body);
  letter-spacing:.055em;
  text-align:center;
  white-space:normal;
  transform-origin:50% 100%;
  transform:translate(-50%,.35em) scale(calc(1 / var(--trophy-scale)));
  opacity:0;
  visibility:hidden;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
  pointer-events:none;
}
.trophy-cabinet-tooltip strong,.trophy-cabinet-tooltip small{display:block}
.trophy-cabinet-tooltip small{margin-top:.28em;color:#d9cfbd;font-size:.9em;font-weight:600}
.trophy-cabinet-item.is-unlocked:is(:hover,:focus) .trophy-cabinet-tooltip{
  opacity:1;
  visibility:visible;
  transform:translate(-50%,0) scale(calc(1 / var(--trophy-scale)));
}
.trophy-cabinet-count{
  position:absolute;
  right:2%;
  bottom:2%;
  min-width:1.65em;
  padding:.2em .42em;
  border-radius:999px;
  background:rgba(12,8,3,.9);
  box-shadow:inset 0 0 0 1px rgba(240,203,127,.64),0 .25em .7em rgba(0,0,0,.58);
  color:#f4d897;
  font:800 clamp(7px,.82cqw,10px)/1 var(--body);
  text-align:center;
}

#profileOverviewPanel .club-overview-venue-image{
  display:block;
  border-radius:1.1cqw;
  filter:saturate(.84) contrast(1.04) brightness(.78);
  -webkit-mask-image:linear-gradient(180deg,#000 0 64%,rgba(0,0,0,.92) 76%,rgba(0,0,0,.26) 100%);
  mask-image:linear-gradient(180deg,#000 0 64%,rgba(0,0,0,.92) 76%,rgba(0,0,0,.26) 100%);
}
#profileOverviewPanel .club-overview-venue-image.is-missing{visibility:hidden}
#profileOverviewPanel .club-overview-venue-meta{display:block;overflow:hidden;color:#d9cfbd;letter-spacing:.05em;text-overflow:ellipsis;white-space:nowrap}
#profileOverviewPanel .club-overview-venue-meta strong{color:#f2d48f}
#profileOverviewPanel .club-overview-kit-image{display:block;filter:drop-shadow(0 18px 22px rgba(0,0,0,.60))}
#profileOverviewPanel .club-overview-player-card{display:grid;place-items:center;container-type:size}
#profileOverviewPanel .club-overview-player-card>button{display:grid;width:100%;height:100%;padding:0;place-items:center;border:0;background:transparent;color:inherit;cursor:pointer}
#profileOverviewPanel .club-overview-player-card>button:is(:hover,:focus-visible){outline:0;box-shadow:none;transform:translateY(-2px)}
#profileOverviewPanel .club-overview-player-card .footballer-card[class*="rarity-"]:not(.has-card-template):is(:hover,:focus-visible){box-shadow:0 16px 36px rgba(9,7,4,0.28),0 0 22px color-mix(in srgb,var(--rarity-color) 8%,transparent)!important}
#profileOverviewPanel .club-overview-player-card .footballer-card.has-card-template:is(:hover,:focus-visible){box-shadow:none!important}
#profileOverviewPanel .club-overview-player-card .footballer-card-shell{width:min(100cqw,64.75cqh);max-height:none;filter:drop-shadow(0 16px 18px rgba(0,0,0,.52))}
#profileOverviewPanel .club-overview-player-empty{display:grid;place-items:center;gap:.75cqw;color:#9e927e;text-align:center}
#profileOverviewPanel .club-overview-player-empty>span{color:rgba(220,174,82,.52);font:400 clamp(24px,3.2cqw,40px)/1 Georgia,serif}
#profileOverviewPanel .club-overview-player-empty>strong{font:700 clamp(8px,1cqw,12px)/1.2 var(--body)}

/* 3.0A.50.35.125 final cascade authority. */
.goat-circular-back.hidden,
.club-hub-back.hidden,
.market-page-back.hidden,
#worldView .goat-world-back-icon.hidden{display:none!important}
#worldView .goat-world-picker-player.world-squad-player{grid-template-columns:38px minmax(0,1fr) 48px!important;grid-template-areas:"image identity energy"!important;gap:7px!important;align-items:center!important;min-height:72px!important}
#worldView .goat-world-picker-player.world-squad-player>img{grid-area:image!important;width:38px!important;height:50px!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity{grid-area:identity!important;display:grid!important;width:100%!important;min-width:0!important;justify-items:start!important;text-align:left!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>strong{display:block!important;width:100%!important;min-width:0!important;overflow:visible!important;font-size:12px!important;line-height:16px!important;text-align:left!important;text-overflow:clip!important;white-space:normal!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small{display:grid!important;gap:1px!important;justify-items:start!important;font-size:11px!important;line-height:16px!important;text-align:left!important;white-space:normal!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-energy{grid-area:energy!important;display:grid!important;gap:5px!important;align-content:center!important;justify-items:end!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-energy>b{min-width:0!important;padding:0!important;color:#f3ead9!important;font:700 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-energy>i{width:44px!important}
#worldView .goat-world-picker-pagination{grid-template-columns:92px minmax(90px,1fr) 92px!important;justify-content:center!important}
#worldView .goat-world-picker-pagination button{box-sizing:border-box!important;width:92px!important;height:36px!important;min-width:92px!important;min-height:36px!important;padding:6px 10px!important}

.centre-report-body .mc-report-stat-row{grid-template-columns:56px minmax(0,1fr) 56px!important;min-height:58px!important}
.centre-report-body .mc-report-stat-row>b{width:50px!important;height:50px!important;font-size:12px!important;line-height:1!important}

body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4{padding:11px 12px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-v4>header{margin-bottom:7px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4{grid-auto-rows:44px!important;gap:6px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 p{min-height:44px!important;padding:6px 8px!important}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-willingness{margin-top:13px!important;padding-top:2px!important}

.pack-market-card-copy{display:none!important}
.pack-market-art{height:auto!important;aspect-ratio:.69!important;place-items:end center!important;padding:0 8px!important}
.pack-market-art img{width:auto!important;max-width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
@media(min-width:1041px){
  body.market-management-page #profileMarketPanel .pack-market-inventory{box-sizing:border-box!important;min-height:196px!important;margin-top:calc(clamp(32px,4.93vh,56px) - 18px)!important;padding:8px 0!important;align-content:start!important}
  body.market-management-page #profileMarketPanel .pack-market-vault .market-pagination{top:12px!important;margin-top:12px!important}
}

/* 3.0A.50.35.126 — shared layout corrections and unified Pack seller control. */
#worldView .goat-world-picker-player.world-squad-player{
  grid-template-columns:32px minmax(0,1fr) 42px!important;
  grid-template-areas:"image identity energy"!important;
  column-gap:6px!important;
}
#worldView .goat-world-picker-player.world-squad-player>img{width:32px!important;height:46px!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>strong{
  overflow:hidden!important;
  font:700 11px/17px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-.01em!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  line-height:16px!important;
}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small>b{display:block!important}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-energy>i{width:40px!important}

#profileSettingsPanel .settings-content-shell,
#profileSettingsPanel .settings-grid{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
.office-app-scroll #profileSettingsPanel,
.office-app-scroll #profileSettingsPanel .settings-content-shell{width:100%!important;max-width:none!important}
#profileSettingsPanel #settingsAccount>.settings-discord-card,
#profileSettingsPanel #settingsAccount>.settings-danger-zone{grid-column:auto!important}
#profileSettingsPanel #settingsAccount>.club-logo-setting,
#profileSettingsPanel #settingsAccount>.tablet-background-setting,
#profileSettingsPanel #settingsAccount>.settings-discord-card,
#profileSettingsPanel #settingsAccount>.settings-danger-zone{height:100%!important;min-height:174px!important}
#profileSettingsPanel #settingsAccount.settings-layout-founder>.settings-management-card{grid-column:1/-1!important}
#profileSettingsPanel #settingsAccount.settings-layout-owner>.settings-management-card{grid-column:auto!important}
@media(max-width:800px){
  #profileSettingsPanel #settingsAccount>.settings-discord-card,
  #profileSettingsPanel #settingsAccount>.settings-danger-zone,
  #profileSettingsPanel #settingsAccount>.settings-management-card{grid-column:1/-1!important}
}

#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileCentrePanel .mc-hub-form-players .mc-hub-player-portrait img{
  object-fit:contain!important;
  object-position:center bottom!important;
  filter:none!important;
}

.centre-report-body .mc-report-player-stats{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.centre-report-body .mc-report-player-filter{margin:0 0 12px!important}
.centre-report-body .mc-report-player-table-wrap{width:100%!important;box-sizing:border-box!important}
.centre-report-body .mc-report-player-table{
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
.centre-report-body .mc-report-player-table :is(thead,tbody,tr){width:100%!important}

#profileRegistrationPanel .league-registration-validation{overflow:visible!important}
#profileRegistrationPanel .league-registration-validation>header,
#profileRegistrationPanel .league-registration-validation:has(.league-registration-validation-grid:not(.hidden),.league-registration-rules:not(.hidden))>header{
  padding-inline:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileRegistrationPanel .league-registration-position-summary{padding-top:9px!important}
#profileRegistrationPanel .league-registration-position-summary>header{display:none!important}
#profileRegistrationPanel .league-registration-action-bar{
  margin-top:14px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#profileRegistrationPanel #leagueRegistrationReviewSubmit{
  min-width:190px!important;
  border-color:#4ba767!important;
  background:#2f7847!important;
  color:#fff!important;
  box-shadow:none!important;
}
#profileRegistrationPanel #leagueRegistrationReviewSubmit:is(:hover,:focus-visible){border-color:#66bd80!important;background:#398b55!important;color:#fff!important;transform:none!important}

#profileContractsPanel .contract-table-panel.agency thead th,
#profileContractsPanel .contract-table-panel.agency thead th:is(:hover,:focus-within){
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:rgba(31,25,15,.96)!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
}
#profileContractsPanel .contract-sort-header,
#profileContractsPanel .contract-sort-header:is(:hover,:focus,:focus-visible,.active){
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  filter:none!important;
  transform:none!important;
  transition:none!important;
}
#profileContractsPanel .contract-sort-header:is(:hover,:focus-visible){color:#fff!important}
#profileContractsPanel .contract-table-panel.agency thead th:hover,
#profileContractsPanel .contract-table-panel.agency thead th:hover *{color:#fff!important}

.pack-market-vault .pack-market-inventory{min-height:0!important;margin-top:18px!important;padding:0!important}
.pack-market-vault .pack-market-inventory>div{display:contents!important}
.pack-market-vault .pack-market-inventory-row{
  display:grid!important;
  grid-template-columns:54px minmax(170px,1fr) 92px minmax(130px,190px) 76px!important;
  gap:12px!important;
  align-items:end!important;
  min-height:76px!important;
  padding:11px 14px!important;
}
.pack-market-vault .pack-market-inventory-row>img{align-self:center!important;width:42px!important;height:58px!important;object-fit:contain!important}
.pack-market-vault .pack-market-inventory-row label{display:grid!important;gap:5px!important}
.pack-market-vault .pack-market-inventory-row :is(select,input){box-sizing:border-box!important;width:100%!important;height:40px!important;min-height:40px!important;border:1px solid rgba(214,169,77,.32)!important;border-radius:8px!important;background:#0a0907!important;color:#f6ead4!important;padding:7px 10px!important}
.pack-market-vault .pack-market-quantity{display:grid!important;align-self:center!important;gap:1px!important;text-align:center!important}
.pack-market-vault .pack-market-quantity strong{color:#f2e6ce!important;font-size:18px!important;line-height:22px!important}
.pack-market-vault .pack-market-quantity small{color:#b9944d!important;font-size:9px!important;font-weight:800!important;letter-spacing:.08em!important}
.pack-market-vault .pack-market-inventory-row>button{height:40px!important;min-height:40px!important}
@media(max-width:760px){
  .pack-market-vault .pack-market-inventory-row{grid-template-columns:46px minmax(0,1fr) 72px!important;align-items:center!important}
  .pack-market-vault .pack-market-price-field{grid-column:2!important}
  .pack-market-vault .pack-market-inventory-row>button{grid-column:3!important}
}

/* 3.0A.50.35.127 — focused manual-review corrections. */
#homeView.gd-home .gd-showcase-body{
  width:max-content!important;
  max-width:100%!important;
  font-size:clamp(13px,.82vw,16px)!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}

/* Facility squad cards use one true identity column. The two metadata rows
   inherit the name's left edge; Energy remains the independent right rail. */
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>strong,
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small,
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small>b{
  width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}
#worldView .goat-world-picker-player.world-squad-player>.world-squad-player-identity>small{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
}

/* Settings fills the tablet canvas. The common cards form two fixed pairs;
   optional capability cards then occupy only the rows they actually need. */
.office-app-scroll #profileSettingsPanel,
.office-app-scroll #profileSettingsPanel .settings-command-centre,
.office-app-scroll #profileSettingsPanel .settings-content-shell,
#profileSettingsPanel .settings-command-centre,
#profileSettingsPanel .settings-content-shell{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  margin-inline:0!important;
}
#profileSettingsPanel #settingsAccount>.club-logo-setting,
#profileSettingsPanel #settingsAccount>.tablet-background-setting{grid-row:auto!important}
#profileSettingsPanel #settingsAccount>.settings-discord-card,
#profileSettingsPanel #settingsAccount>.settings-danger-zone{grid-row:auto!important;grid-column:auto!important}
#profileSettingsPanel #settingsAccount.settings-layout-user>.settings-danger-zone:last-child:nth-child(7),
#profileSettingsPanel #settingsAccount.settings-layout-founder>.settings-danger-zone,
#profileSettingsPanel #settingsAccount.settings-layout-owner>.settings-danger-zone{grid-column:auto!important}
#profileSettingsPanel #settingsAccount>.settings-management-card{grid-column:auto!important}
#profileSettingsPanel #settingsAccount.settings-layout-founder>.settings-streamer-control-card{grid-column:1/-1!important}

#profileRegistrationPanel .league-registration-position-counts b{
  font-size:12px!important;
  line-height:16px!important;
  letter-spacing:.02em!important;
}
#profileRegistrationPanel .league-registration-action-bar{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#profileRegistrationPanel #leagueRegistrationReviewSubmit{
  border-color:#3d7650!important;
  background:#275c3a!important;
  color:#fff!important;
  box-shadow:none!important;
}
#profileRegistrationPanel #leagueRegistrationReviewSubmit:is(:hover,:focus-visible){
  border-color:#568d67!important;
  background:#306a43!important;
  color:#fff!important;
  transform:none!important;
}

#profileContractsPanel .contract-table-panel.agency .finance-table-wrap{
  border-radius:14px 14px 0 0!important;
}
#profileContractsPanel .contract-table-panel.agency thead th,
#profileContractsPanel .contract-table-panel.agency thead th:is(:hover,:focus-within){
  background:rgba(31,25,15,.96)!important;
}
#profileContractsPanel .contract-table-panel.agency thead th:first-child{border-radius:14px 0 0 0!important}
#profileContractsPanel .contract-table-panel.agency thead th:last-child{border-radius:0 14px 0 0!important}

/* Pack listings now enter the same focused interaction layer as player cards,
   but the focused surface is deliberately only artwork plus its one action. */
.pack-market-focus-card{
  position:fixed!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  justify-items:center!important;
  gap:12px!important;
  box-sizing:border-box!important;
  padding:0 18px 10px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:.72;
  transform:translate3d(var(--market-origin-x),var(--market-origin-y),0) scale(var(--market-origin-scale-x),var(--market-origin-scale-y));
  transform-origin:center!important;
  transform-style:preserve-3d!important;
  filter:brightness(.88);
  outline:0!important;
  transition:transform 460ms cubic-bezier(.16,1,.3,1),opacity 300ms ease,filter 380ms ease!important;
  will-change:transform;
}
.pack-market-focus-card.is-tilting{transition:transform .1s linear,opacity 300ms ease,filter 180ms ease!important}
.pack-market-focus-art{display:grid;width:100%;height:100%;min-height:0;place-items:center;transform-style:preserve-3d}
.pack-market-focus-art>img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(var(--tilt-sx,0) var(--tilt-sy,24px) 28px rgba(0,0,0,.62))}
.pack-market-focus-card .pack-focus-action{min-width:150px;min-height:48px;padding:0 24px;border:1px solid #e5bd67;border-radius:10px;background:#d1a950;color:#171207;font:800 14px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.34)}
.pack-market-focus-card .pack-focus-action:is(:hover,:focus-visible){border-color:#f3d890;background:#e0bd70;color:#090704;outline:2px solid rgba(240,215,155,.28);outline-offset:3px}
.pack-market-focus-card .pack-focus-action.is-cancel{border-color:#9b5b4e;background:#5f2d27;color:#fff0e9}

/* Development Market Layout Editor bridge. The editor writes these values
   directly onto the preview body, so they are the actual computed values used
   by the shared Market DOM rather than inert inherited placeholders. */
body.market-layout-preview{
  --ml-card-width:160px;--ml-card-height:300px;--ml-art-scale:1;
  --ml-shelf-x:0px;--ml-shelf-y:0px;--ml-horizontal-gap:16px;
  --ml-asking-x:0px;--ml-asking-y:0px;--ml-time-x:0px;--ml-time-y:0px;
  --ml-filter-x:0px;--ml-filter-y:0px;--ml-filter-width:100%;
  --ml-seller-x:0px;--ml-seller-y:0px;--ml-seller-width:100%;
  --ml-prev-x:0px;--ml-prev-y:0px;--ml-page-x:0px;--ml-page-y:0px;--ml-next-x:0px;--ml-next-y:0px;
}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-shelf-track{
  grid-template-columns:repeat(6,var(--ml-card-width))!important;
  justify-content:center!important;
  gap:var(--ml-horizontal-gap)!important;
  transform:translate(var(--ml-shelf-x),var(--ml-shelf-y))!important;
}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-shelf-card{
  box-sizing:border-box!important;
  width:var(--ml-card-width)!important;
  min-height:var(--ml-card-height)!important;
  transform:none!important;
}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-shelf-card:not(.pack-market-card) .footballer-card-shell,
body.market-layout-preview.market-layout-tuned #profileMarketPanel .pack-market-art img{
  transform:scale(var(--ml-art-scale))!important;
  transform-origin:center bottom!important;
}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-card-summary>span:first-child{transform:translate(var(--ml-asking-x),var(--ml-asking-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-card-summary>span:last-child{transform:translate(var(--ml-time-x),var(--ml-time-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-toolbar{box-sizing:border-box!important;width:var(--ml-filter-width)!important;transform:translate(var(--ml-filter-x),var(--ml-filter-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .pack-market-inventory{box-sizing:border-box!important;width:var(--ml-seller-width)!important;transform:translate(var(--ml-seller-x),var(--ml-seller-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-pagination>button:first-child{transform:translate(var(--ml-prev-x),var(--ml-prev-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-pagination>form{transform:translate(var(--ml-page-x),var(--ml-page-y))!important}
body.market-layout-preview.market-layout-tuned #profileMarketPanel .market-pagination>button:last-child{transform:translate(var(--ml-next-x),var(--ml-next-y))!important}

@media(max-width:720px){
  #homeView.gd-home .gd-showcase-body{font-size:clamp(12px,3.2vw,15px)!important}
  .pack-market-focus-card{padding-inline:10px!important}
}

/* 3.0A.50.35.128 — focused profile, Pack Market, and editor-fidelity pass. */
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4{
  grid-auto-rows:minmax(48px,auto)!important;
  gap:7px!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 p{
  align-content:center!important;
  min-height:48px!important;
  padding:7px 9px!important;
  border:0!important;
  border-radius:7px!important;
  background:rgba(212,169,79,.055)!important;
  box-shadow:none!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 span{
  font:600 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-contract-grid-v4 strong{
  margin-top:1px!important;
  font:700 13px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-career-table-v4{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-career-table-v4 th{background:rgba(23,19,13,.42)!important}
body.player-profile-open .player-modal.player-dossier-shell .player-form-v4.is-empty .player-form-match-strip{
  display:grid!important;
  grid-template-columns:1fr!important;
  min-height:112px!important;
  place-items:center!important;
  text-align:center!important;
}
body.player-profile-open .player-modal.player-dossier-shell .player-form-v4.is-empty .player-dossier-empty{
  width:100%!important;
  min-height:0!important;
  margin:auto!important;
  font:600 13px/19px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  text-align:center!important;
}

.market-pagination>form{min-width:132px;margin:0}
.market-pagination>form label{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--goat-text-muted,#a89f90);font:700 10px/16px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.06em}
.market-pagination>form input{
  box-sizing:border-box;width:34px;height:28px;padding:2px 4px;border:1px solid transparent;border-radius:6px;background:transparent;color:#f0d79b;font:800 14px/20px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;font-variant-numeric:tabular-nums;outline:0;
}
.market-pagination>form input:is(:hover,:focus){border-color:rgba(212,169,79,.52);background:rgba(212,169,79,.07);color:#fff3d7;box-shadow:0 0 0 2px rgba(212,169,79,.10)}
.market-pagination>form i{color:rgba(221,211,188,.42);font-style:normal}.market-pagination>form b{color:#eee5d5;font-size:13px;font-variant-numeric:tabular-nums}

.pack-market-type-filter{position:relative;z-index:4;width:min(290px,100%);margin:12px 0 0}
.pack-market-combobox{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 36px}
.pack-market-combobox>input{box-sizing:border-box;width:100%;height:38px;padding:7px 10px;border:1px solid rgba(214,169,77,.30);border-right:0;border-radius:8px 0 0 8px;background:rgba(9,8,6,.92);color:#f3e9d6;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;outline:0}
.pack-market-combobox>button{display:grid;height:38px;padding:0;border:1px solid rgba(214,169,77,.30);border-radius:0 8px 8px 0;background:rgba(20,16,10,.94);color:#d8b76e;place-items:center;cursor:pointer}
.pack-market-combobox>button svg{display:block;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pack-market-combobox>input:focus,.pack-market-combobox:focus-within>button{border-color:rgba(230,193,111,.68)}
.pack-market-combobox>[role=listbox]{position:absolute;z-index:12;top:auto;bottom:43px;left:0;right:0;display:grid;max-height:190px;overflow:auto;padding:5px;border:1px solid rgba(214,169,77,.32);border-radius:9px;background:rgba(12,10,7,.98);box-shadow:0 18px 44px rgba(0,0,0,.62)}
.pack-market-combobox>[role=listbox][hidden]{display:none}.pack-market-combobox>[role=option]{min-height:34px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:#d9d1c2;font:600 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:left;cursor:pointer}
.pack-market-combobox>[role=option][hidden]{display:none}
.pack-market-combobox>[role=option]:is(:hover,:focus-visible),.pack-market-combobox>[role=option][aria-selected=true]{background:rgba(212,169,79,.13);color:#f3d68f;outline:0}

.pack-list-confirm-overlay{position:fixed;z-index:10080;inset:0;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}
.pack-list-confirm{display:grid;gap:20px;width:min(370px,calc(100vw - 32px));padding:24px;border:1px solid rgba(212,169,79,.36);border-radius:14px;background:rgba(17,14,9,.93);box-shadow:0 26px 72px rgba(0,0,0,.68)}
.pack-list-confirm h2{margin:0;color:#f5ead6;font:700 20px/28px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center}
.pack-list-confirm>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pack-list-confirm button{min-height:42px;border-radius:8px;color:#fff;font:800 12px/18px Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer}
.pack-list-confirm .confirm{border:1px solid #4f815c;background:#315f3d}.pack-list-confirm .cancel{border:1px solid #925449;background:#632f29}
.pack-list-confirm button:is(:hover,:focus-visible){filter:brightness(1.13);outline:2px solid rgba(240,215,155,.34);outline-offset:2px}

.pack-market-focus-art{
  transition:transform .1s linear;transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(var(--tilt-lift,0px)) scale(var(--tilt-scale,1));will-change:transform;
}
.pack-market-focus-art.is-tilting{transition:transform .1s linear}
.pack-market-focus-card .pack-focus-action{position:relative;isolation:isolate;overflow:hidden;transform:none!important}
.pack-market-focus-card .pack-focus-action::before{content:"";position:absolute;z-index:0;inset:0;width:var(--hold-progress,0%);background:#2f7b48;transition:width 60ms linear;pointer-events:none}
.pack-market-focus-card .pack-focus-action{color:#171207;text-shadow:0 1px rgba(255,255,255,.18)}
.pack-market-focus-card .pack-focus-action>span{position:relative;z-index:1}
.pack-market-focus-card .pack-focus-action.is-holding{border-color:#62ad76;background:#17140e;color:#fff}.pack-market-focus-card .pack-focus-action.is-purchasing{border-color:#62ad76;background:#2f7b48;color:#fff;cursor:wait}
.pack-market-focus-card .pack-focus-action.is-cancel::before{content:none}

@media(max-width:760px){.pack-market-type-filter{width:100%}.market-pagination>form{min-width:88px}}

/* 3.0A.50.35.129 — accepted Market layout plus Pack interaction follow-up. */
body.market-layout-applied[data-market-layout-mode="players"]{
  --ml-card-width:240px;--ml-card-height:444px;--ml-art-scale:1;
  --ml-shelf-x:0px;--ml-shelf-y:2px;--ml-horizontal-gap:20px;
  --ml-asking-x:0px;--ml-asking-y:0px;--ml-time-x:0px;--ml-time-y:0px;
  --ml-filter-x:0px;--ml-filter-y:-5px;--ml-filter-width:1540px;
  --ml-prev-x:0px;--ml-prev-y:11px;--ml-page-x:0px;--ml-page-y:11px;--ml-next-x:0px;--ml-next-y:11px;
}
body.market-layout-applied[data-market-layout-mode="packs"]{
  --ml-card-width:240px;--ml-card-height:422px;--ml-art-scale:1.05;
  --ml-shelf-x:0px;--ml-shelf-y:25px;--ml-horizontal-gap:20px;
  --ml-asking-x:0px;--ml-asking-y:0px;--ml-time-x:0px;--ml-time-y:0px;
  --ml-filter-x:650px;--ml-filter-y:110px;--ml-filter-width:240px;
  --ml-seller-x:260px;--ml-seller-y:70px;--ml-seller-width:1020px;
  --ml-prev-x:0px;--ml-prev-y:-16px;--ml-page-x:0px;--ml-page-y:-16px;--ml-next-x:0px;--ml-next-y:-16px;
}
@media(min-width:1041px){
  body.market-layout-applied #profileMarketPanel .market-shelf-track{
    grid-template-columns:repeat(6,var(--ml-card-width))!important;
    justify-content:center!important;
    gap:var(--ml-horizontal-gap)!important;
    transform:translate(var(--ml-shelf-x),var(--ml-shelf-y))!important;
  }
  body.market-layout-applied #profileMarketPanel .market-shelf-card{
    box-sizing:border-box!important;
    width:var(--ml-card-width)!important;
    min-height:var(--ml-card-height)!important;
    transform:none!important;
  }
  body.market-layout-applied #profileMarketPanel .market-shelf-card:not(.pack-market-card) .footballer-card-shell,
  body.market-layout-applied #profileMarketPanel .pack-market-art img{
    transform:scale(var(--ml-art-scale))!important;
    transform-origin:center bottom!important;
  }
  body.market-layout-applied #profileMarketPanel .market-card-summary>span:first-child{transform:translate(var(--ml-asking-x),var(--ml-asking-y))!important}
  body.market-layout-applied #profileMarketPanel .market-card-summary>span:last-child{transform:translate(var(--ml-time-x),var(--ml-time-y))!important}
  body.market-layout-applied[data-market-layout-mode="players"] #profileMarketPanel .market-toolbar{box-sizing:border-box!important;width:var(--ml-filter-width)!important;transform:translate(var(--ml-filter-x),var(--ml-filter-y))!important}
  body.market-layout-applied[data-market-layout-mode="packs"] #profileMarketPanel .pack-market-type-filter{box-sizing:border-box!important;width:var(--ml-filter-width)!important;transform:translate(var(--ml-filter-x),var(--ml-filter-y))!important}
  body.market-layout-applied[data-market-layout-mode="packs"] #profileMarketPanel .pack-market-inventory{box-sizing:border-box!important;width:var(--ml-seller-width)!important;transform:translate(var(--ml-seller-x),var(--ml-seller-y))!important}
  body.market-layout-applied #profileMarketPanel .market-pagination>button:first-child{transform:translate(var(--ml-prev-x),var(--ml-prev-y))!important}
  body.market-layout-applied #profileMarketPanel .market-pagination>form{transform:translate(var(--ml-page-x),var(--ml-page-y))!important}
  body.market-layout-applied #profileMarketPanel .market-pagination>button:last-child{transform:translate(var(--ml-next-x),var(--ml-next-y))!important}
}
@media(min-width:1041px) and (max-width:1531px){
  body.market-layout-applied[data-market-layout-mode="packs"] #profileMarketPanel .pack-market-inventory{
    transform:translate(min(var(--ml-seller-x),calc((100vw + 1060px)/2 - var(--ml-seller-width) - 16px)),var(--ml-seller-y))!important;
  }
}

/* The searchable Pack Type menu uses the same warm dark surface and selected
   row treatment as the adjacent listing selector, never the browser-grey
   button surface inherited by generic controls. */
.pack-market-combobox{color-scheme:dark}
.pack-market-combobox>[role=listbox]{
  border-color:rgba(214,169,77,.42)!important;
  background:#12100b!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 44px rgba(0,0,0,.62)!important;
}
.pack-market-combobox [role=option]{
  appearance:none!important;
  -webkit-appearance:none!important;
  border:0!important;
  background:transparent!important;
  color:#eee7da!important;
  box-shadow:none!important;
}
.pack-market-combobox [role=option]:is(:hover,:focus-visible),
.pack-market-combobox [role=option][aria-selected=true]{background:#2b2617!important;color:#fff8e9!important}

/* Buy and Cancel Listing share one deliberate hold interaction. The buy fill
   is green; the destructive cancellation fill stays in the accepted red rail. */
.pack-market-focus-card .pack-focus-action.is-committing{border-color:#62ad76;background:#2f7b48;color:#fff;cursor:wait}
.pack-market-focus-card .pack-focus-action.is-cancel::before{content:"";background:#8a3e34}
.pack-market-focus-card .pack-focus-action.is-cancel.is-holding{border-color:#b96b5e;background:#17100e;color:#fff}
.pack-market-focus-card .pack-focus-action.is-cancel.is-committing{border-color:#b96b5e;background:#8a3e34;color:#fff;cursor:wait}

/* 3.0A.50.35.136 focused interaction and responsive polish. */
.club-news-discord-cta{display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-top:14px;padding:10px 16px;border:1px solid rgba(212,169,79,.48);border-radius:999px;background:rgba(212,169,79,.10);color:#f0d79b;font-weight:850;text-decoration:none}
.club-news-discord-cta svg{width:20px;height:20px}.club-news-discord-cta:is(:hover,:focus-visible){background:rgba(212,169,79,.18);color:#fff8e9;outline:2px solid rgba(240,215,155,.45);outline-offset:2px}

#lineupDeletePreset.hold-to-confirm{position:relative;overflow:hidden;isolation:isolate;touch-action:none}
#lineupDeletePreset.hold-to-confirm::before{content:"";position:absolute;z-index:-1;inset:0;width:var(--hold-progress,0%);background:#843d34;transition:width 60ms linear}
#lineupDeletePreset.hold-to-confirm.is-holding{border-color:#b96b5e;color:#fff}
#lineupDeletePreset.hold-to-confirm.is-committing{border-color:#b96b5e;background:#843d34;color:#fff;cursor:wait}

#profileLineupPanel .lineup-bench-panel{min-width:0}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel>#lineupBench{min-height:clamp(300px,48vh,580px)}
#profileLineupPanel .lineup-bench-panel>#lineupBench>.lineup-empty-state{width:100%;min-height:100%;box-sizing:border-box;color:#eee7da!important;font-size:11px!important;font-weight:650}
#profileLineupPanel .tc5-save-cluster>button.is-save-confirmed{border-color:#59b977!important;background:#2f7b48!important;color:#fff!important}

#profileFacilitiesPanel .facility-unified-body>header h3{color:#e5c377!important;font-size:clamp(1.15rem,1.5vw,1.55rem)!important}
#profileFacilitiesPanel .facility-unified-state:not(:has(>small)){padding-bottom:0!important}

#profileContractsPanel .contract-filter-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#profileContractsPanel .contract-pagination{justify-content:center!important;border-top:0!important;background:transparent!important}
#profileContractsPanel .contract-pagination>div{width:100%;justify-content:center!important}
#profileContractsPanel .contract-negotiation-notice-kicker{display:none!important}

.player-kit-number-form input.is-invalid{border-color:#ce594d!important;box-shadow:0 0 0 2px rgba(206,89,77,.20)!important;color:#ffd8d2!important}
.player-kit-number-form button[type="submit"].is-saved{border-color:#59b977!important;background:#2f7b48!important;color:#fff!important}
.player-kit-number-form small:empty{display:none!important}
.player-kit-number-form small .player-kit-number-remove-conflict{display:block;margin-top:7px;font-size:12px!important;line-height:18px!important}

.goat-world-action-buttons{grid-template-columns:1fr auto!important;align-items:end}
.goat-world-focus-control{align-self:end;display:grid!important;grid-template-columns:auto 37px auto;align-items:center;gap:7px;min-height:34px;padding:4px 0 4px 12px;color:#d9d1c2!important;cursor:pointer}
.goat-world-focus-control>b{color:#f0d79b!important;font-size:12px!important}.goat-world-focus-control>span{min-width:20px;color:#d9d1c2!important;font-size:11px!important;font-weight:800;text-transform:uppercase}
.goat-world-focus-control i{background:#494235!important}.goat-world-focus-control input:checked+i{background:#896723!important}.goat-world-focus-control input:checked+i::after{background:#f2dda7!important}

#profileCompetitionsPanel .competition-primary-switch{display:flex!important;justify-content:center!important;gap:10px!important;width:max-content!important;max-width:100%!important;margin:0 auto 18px!important;padding:7px!important;border:1px solid rgba(212,169,79,.22)!important;border-radius:16px!important;background:rgba(20,17,12,.56)!important;backdrop-filter:blur(15px)}
#profileCompetitionsPanel .competition-primary-switch button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-width:150px!important;min-height:45px!important;padding:0 18px!important;border:1px solid transparent!important;border-radius:11px!important;background:rgba(255,255,255,.025)!important;color:#eee7da!important}
#profileCompetitionsPanel .competition-primary-switch button img{width:19px;height:19px;object-fit:contain;opacity:.78;filter:sepia(1) saturate(.85) hue-rotate(356deg) brightness(1.15)}
#profileCompetitionsPanel .competition-primary-switch button:is(:hover,:focus-visible){border-color:rgba(212,169,79,.30)!important;background:rgba(212,169,79,.08)!important;color:#fff8e9!important}
#profileCompetitionsPanel .competition-primary-switch button.active{border-color:rgba(212,169,79,.52)!important;background:linear-gradient(180deg,rgba(212,169,79,.19),rgba(212,169,79,.09))!important;color:#f0d79b!important;box-shadow:inset 0 1px 0 rgba(255,246,220,.12)!important}

#profileCompetitionsPanel :is(.competition-table-head,.competition-player-table>header,.competition-transfers-table>header,.competition-injuries-table>header){color:#e5c377!important;font-family:Inter,InterVariable,ui-sans-serif,system-ui,sans-serif!important;font-size:12px!important;font-weight:600!important;line-height:18px!important;letter-spacing:0!important}
#profileCompetitionsPanel :is(.competition-player-table,.competition-team-stats,.competition-transfers-table,.competition-injuries-table){background:#17150f!important;border-color:rgba(212,169,79,.18)!important}
#profileCompetitionsPanel .competition-transfer-row>strong:first-child,#profileCompetitionsPanel .competition-transfer-row>b{color:#e5c377!important}
#profileCompetitionsPanel .competition-transfer-row>span b{color:#fbf7ef!important}
#profileCompetitionsPanel .competition-transfers-table>header,#profileCompetitionsPanel .competition-transfer-row{grid-template-columns:minmax(170px,1.35fr) minmax(150px,1fr) minmax(150px,1fr) 112px minmax(150px,.72fr)!important}
#profileCompetitionsPanel .competition-transfer-row time{white-space:nowrap!important;color:#d9d1c2!important}

@media(max-width:760px){#profileCompetitionsPanel .competition-primary-switch{width:100%!important;box-sizing:border-box!important;overflow-x:auto}#profileCompetitionsPanel .competition-primary-switch button{min-width:128px!important}#profileCompetitionsPanel .competition-transfers-table>header,#profileCompetitionsPanel .competition-transfer-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px!important}}

/* 3.0A.50.35.137 focused regression and presentation corrections. */
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
  height:78px!important;
  min-height:78px!important;
  max-height:78px!important;
}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-panel,
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel{height:100%!important;min-height:0!important}
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel>#lineupBench{
  align-content:flex-start;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}
#profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
  flex-basis:50px;
  min-width:46px;
}
#profileLineupPanel .lineup-bench-panel>#lineupBench>.lineup-empty-state{
  display:grid;
  min-height:0!important;
  height:100%;
  place-items:center;
  color:#eee7da!important;
  font-size:10px!important;
}

#profileInfrastructurePanel .facility-unified-body>header h3{
  color:#e5c377!important;
  font-size:clamp(1.15rem,1.5vw,1.55rem)!important;
}
#profileInfrastructurePanel .facility-unified-state:not(:has(>small)){padding-bottom:0!important}

#profileContractsPanel .renewal-outlook-v5 .renewal-outlook-heading>span{color:#e5c377!important}
#profileContractsPanel .renewal-outlook-v5:is(.very-interested,.interested,.recently-signed) .renewal-outlook-heading strong{color:#7fdaa0!important}
#profileContractsPanel .renewal-outlook-v5.final-attempt .renewal-outlook-heading strong{color:#e27878!important}
#profileContractsPanel .renewal-outlook-v5.not-interested .renewal-outlook-heading strong{color:#ff6f73!important}

#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  margin-top:7px;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  color:#e86d66!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:18px!important;
  text-decoration:none!important;
  cursor:pointer;
}
.player-kit-number-remove-conflict i{
  display:inline-grid;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#c94f48;
  color:#fff;
  font:900 11px/16px Inter,InterVariable,ui-sans-serif,system-ui,sans-serif;
  font-style:normal;
  place-items:center;
}
.player-kit-number-remove-conflict:is(:hover,:focus-visible){color:#ff8b84!important;text-decoration:none!important;outline:0}

#profileCompetitionsPanel .competition-team-stats{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#profileCompetitionsPanel .competition-stat-card:nth-child(odd){background:#1d1b15!important}
#profileCompetitionsPanel .competition-stat-card:nth-child(even){background:#17150f!important}

.goat-world-action-buttons{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
}
.goat-world-action-buttons .goat-world-focus-control{
  align-self:center;
  margin-left:auto;
}

/* System-wide desktop management density.
   The accepted management UI is an authored 1540px canvas. Scale that canvas
   as one real layout box so 1080p preserves the same hierarchy and visible
   working area as 2K. CSS zoom keeps hit testing, fixed descendants, text and
   scroll geometry aligned; it is intentionally scoped away from tablet,
   mobile, Home, World, Office and Half-Time, which own separate responsive
   architectures. Ultra-HD is capped at the accepted 2K size. */
:root{
  --goat-desktop-shell-max:1540px;
  --goat-desktop-shell-gutter:clamp(16px,2.25vw,48px);
  --goat-management-density:1;
}
@media(min-width:981px){
  .site-header,.page-shell,body>footer{
    width:min(var(--goat-desktop-shell-max),calc(100% - var(--goat-desktop-shell-gutter) - var(--goat-desktop-shell-gutter)));
    max-width:none;
  }
  .profile-view:not(.hidden){grid-template-columns:max-content minmax(0,1fr)}
  .profile-view>:is(.profile-tab-panel,.club-hub){min-width:0}
  :is(#profileLineupPanel,#profileFinancesPanel,#profileContractsPanel,#profileCompetitionsPanel) :is(.finance-table-wrap,.competition-table-scroll,.competition-player-table,.competition-transfers-table,.competition-injuries-table){min-width:0;max-width:100%}
}
@media(min-width:1101px) and (max-width:2199px),
       (min-width:1101px) and (max-height:1179px){
  :root{--goat-management-density:.8}
}
@media(min-width:1101px) and (max-width:1999px),
       (min-width:1101px) and (max-height:1019px){
  :root{--goat-management-density:.75}
}
@media(min-width:1101px) and (max-width:1799px),
       (min-width:1101px) and (max-height:899px){
  :root{--goat-management-density:.7}
}
@media(min-width:1101px){
  body.profile-background:not(.office-open)>.site-header,
  body.profile-background:not(.office-open)>.page-shell,
  body.profile-background:not(.office-open)>footer,
  body.profile-background:not(.office-open)>.market-utility-row{
    zoom:var(--goat-management-density);
  }
}

/* 3.0A.50.35.138 focused visual-regression corrections. */
#profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
}

/* Short desktop viewports include high-resolution displays with OS scaling. */
@media (min-width:1121px) and (max-height:1020px) {
  body:not(.office-open) #profileLineupPanel .lineup-view-toggle.lineup-mode-tabs {
    grid-template-columns:repeat(5,auto);
  }
  body:not(.office-open) #profileLineupPanel .lineup-mode-tabs button {
    min-width:0;
    padding-inline:4px;
    white-space:nowrap;
  }
  #profileLineupPanel .lineup-slot .lineup-card-visual > strong {
    left:2px;
    width:21px;
    min-width:21px;
    padding-inline:0;
  }
  #profileLineupPanel .lineup-slot .lineup-card-position {
    right:2px;
    min-width:24px!important;
    padding-inline:2px!important;
    font-size:.48rem!important;
  }
  body:not(.office-open) #profileLineupPanel .lineup-builder:has(.lineup-workspace.mode-tactics) {
    --lineup-tactics-bench-height:108px;
    --lineup-tactics-left-width:clamp(340px,calc((var(--lineup-workspace-height) - var(--lineup-tactics-bench-height) - 8px) * .75625),690px);
  }
  body:not(.office-open) #profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel {
    height:var(--lineup-tactics-bench-height)!important;
    min-height:var(--lineup-tactics-bench-height)!important;
    max-height:var(--lineup-tactics-bench-height)!important;
  }
  body:not(.office-open) #profileLineupPanel .mode-tactics .lineup-bench-panel > #lineupBench {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:4px;
  }
  body:not(.office-open) #profileLineupPanel .mode-tactics #lineupBench .lineup-tactics-substitute {
    min-width:0;
  }
  body:not(.office-open) #profileLineupPanel .tc5-screen .tc8-tactical-scene {
    grid-template-rows:minmax(0,1fr) 144px!important;
  }
  body:not(.office-open) #profileLineupPanel .tc5-screen .tc7-control-grid {
    inset:42px 16px 6px;
    padding-block:4px!important;
  }
  body:not(.office-open) #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image {
    width:58px!important;
    height:58px!important;
  }
  body:not(.office-open) #profileLineupPanel .tc7-reaction-canvas {
    inset:34px 6px 0!important;
  }
  body:not(.office-open) #profileLineupPanel .tc7-reaction-track {
    top:50%!important;
    grid-template-columns:repeat(9,minmax(0,1fr));
    transform:translateY(-50%);
  }
}

@media (min-width:1121px) and (max-height:760px) {
  body:not(.office-open) #profileLineupPanel .lineup-builder:not(:has(.lineup-workspace.mode-tactics)) {
    --lineup-workspace-height:520px;
  }
  body:not(.office-open) #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupBench,#lineupAvailable) {
    grid-auto-rows:56px;
    gap:5px;
  }
  body:not(.office-open) #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupBench,#lineupAvailable) > .lineup-squad-card {
    height:100%!important;
    min-height:0!important;
  }
  body:not(.office-open) #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(#lineupBench,#lineupAvailable) > .lineup-squad-card .lineup-card-visual {
    height:46px!important;
  }
}

#profileInfrastructurePanel .facility-unified-body>header h3{
  font-size:clamp(1.05rem,1.25vw,1.35rem)!important;
  line-height:1.3!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:static!important;
  isolation:auto!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  gap:4px!important;
  margin-top:2px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  clip-path:none!important;
  font-size:11px!important;
  line-height:14px!important;
  text-decoration:none!important;
}
#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict::before,
#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict::after{
  content:none!important;
  display:none!important;
  background:transparent!important;
  box-shadow:none!important;
}
.player-kit-number-remove-conflict i{
  width:14px!important;
  height:14px!important;
  font-size:9px!important;
  line-height:14px!important;
}

/* Production's accepted shell capped Competition content at 1540px. Keep the
   newer fluid global shell, but restore that page-specific centered cap so all
   seven tabs share one stable, compact geometry. */
#profileCompetitionsPanel>.goat-luxury-page.section-frame{
  width:min(100%,1540px)!important;
  margin-inline:auto!important;
  box-sizing:border-box!important;
}
html:has(body.goat-page-bg-standings){scrollbar-gutter:stable}

#profileCompetitionsPanel .competition-transfers-table>header,
#profileCompetitionsPanel .competition-transfer-row{
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) 100px 96px!important;
}
#profileCompetitionsPanel .competition-transfers-table>header>span:first-child,
#profileCompetitionsPanel .competition-transfer-row>strong:first-child{text-align:left!important;justify-self:stretch!important}
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(2),
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(3),
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(2),
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(3){justify-content:center!important;text-align:center!important}
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(4),
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(5),
#profileCompetitionsPanel .competition-transfer-row>b,
#profileCompetitionsPanel .competition-transfer-row>time{justify-self:end!important;text-align:right!important;white-space:nowrap!important}

#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr) minmax(0,.9fr) 88px 72px 150px!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(-n+3),
#profileCompetitionsPanel .competition-injury-row>span:first-child,
#profileCompetitionsPanel .competition-injury-row>strong,
#profileCompetitionsPanel .competition-injury-row>span:nth-child(3){justify-self:stretch!important;text-align:left!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(n+4),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(4),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(5),
#profileCompetitionsPanel .competition-injury-row>time{justify-self:end!important;text-align:right!important;white-space:nowrap!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:last-child{white-space:nowrap!important}

@media(max-width:760px){
  #profileCompetitionsPanel .competition-transfers-table>header,
  #profileCompetitionsPanel .competition-transfer-row,
  #profileCompetitionsPanel .competition-injuries-table>header,
  #profileCompetitionsPanel .competition-injury-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px!important}
}
@media(min-width:981px) and (max-width:1500px){
  :root{--goat-desktop-shell-gutter:clamp(14px,1.75vw,28px)}
  .profile-view:not(.hidden){column-gap:12px}
  .profile-view .profile-nav-row,.dashboard-mode .profile-nav-row{padding-inline:clamp(10px,1.3vw,16px)!important}
}

/* 3.0A.50.35.139 focused Competition layout and profile-copy corrections. */
#profileCompetitionsPanel .competition-primary-switch button .competition-primary-crown{
  width:19px;
  height:19px;
  flex:0 0 19px;
  opacity:.78;
  color:currentColor;
}

#profileCompetitionsPanel .competition-transfers-table>header,
#profileCompetitionsPanel .competition-transfer-row{
  grid-template-columns:minmax(260px,.85fr) minmax(220px,1fr) minmax(220px,1fr) 130px 130px!important;
}
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(2),
#profileCompetitionsPanel .competition-transfers-table>header>span:nth-child(3){
  justify-self:stretch!important;
  justify-content:center!important;
  text-align:center!important;
}
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(2),
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(3){
  justify-self:stretch!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(2)>[data-competition-club-profile],
#profileCompetitionsPanel .competition-transfer-row>span:nth-child(3)>[data-competition-club-profile]{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr);
  align-items:center;
  gap:6px;
  width:100%;
  min-width:0;
  text-align:left!important;
}

#profileCompetitionsPanel .competition-injuries-table{
  width:min(100%,1320px);
  margin-inline:auto;
}
#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{
  grid-template-columns:minmax(210px,1fr) minmax(180px,.85fr) minmax(42px,.45fr) minmax(240px,.85fr) 100px 80px 170px!important;
  column-gap:6px!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(1),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(1){grid-column:1}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(2),
#profileCompetitionsPanel .competition-injury-row>strong{grid-column:2}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(3),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(3){grid-column:4}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(4),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(4){grid-column:5}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(5),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(5){grid-column:6}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(6),
#profileCompetitionsPanel .competition-injury-row>time{grid-column:7}

#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict>span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#e86d66;
  font-weight:650;
}
#playerModal.player-dossier-shell .player-kit-number-form small .player-kit-number-remove-conflict>span>b{
  color:inherit;
  font-weight:900;
}

@media(max-width:760px){
  #profileCompetitionsPanel .competition-injuries-table>header>span,
  #profileCompetitionsPanel .competition-injury-row>*{grid-column:auto!important}
}

/* 3.0A.50.35.140 focused Transfers metadata and table grouping. */
#profileCompetitionsPanel .competition-transfers-table{
  grid-template-columns:minmax(220px,260px) 76px 62px minmax(28px,1fr) minmax(170px,220px) minmax(170px,220px) 104px 116px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel .competition-transfers-table>header,
#profileCompetitionsPanel .competition-transfer-row{
  grid-column:1/-1;
  grid-template-columns:subgrid!important;
  column-gap:inherit!important;
}
#profileCompetitionsPanel .competition-transfers-table>header>*,
#profileCompetitionsPanel .competition-transfer-row>*{min-width:0}
#profileCompetitionsPanel :is(.competition-transfer-player-head,.competition-transfer-player){grid-column:1}
#profileCompetitionsPanel :is(.competition-transfer-position-head,.competition-transfer-position){grid-column:2}
#profileCompetitionsPanel :is(.competition-transfer-overall-head,.competition-transfer-overall){grid-column:3}
#profileCompetitionsPanel :is(.competition-transfer-from-head,.competition-transfer-from){grid-column:5}
#profileCompetitionsPanel :is(.competition-transfer-to-head,.competition-transfer-to){grid-column:6}
#profileCompetitionsPanel :is(.competition-transfer-fee-head,.competition-transfer-fee){grid-column:7}
#profileCompetitionsPanel :is(.competition-transfer-date-head,.competition-transfer-date){grid-column:8}
#profileCompetitionsPanel .competition-transfer-player{
  display:grid!important;
  grid-template-columns:22px minmax(0,max-content);
  align-items:center;
  gap:7px!important;
  color:#e5c377!important;
}
#profileCompetitionsPanel .competition-transfer-player>strong{
  min-width:0;
  overflow:hidden;
  color:#e5c377!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-transfer-player-flag{
  width:22px!important;
  height:17px!important;
  flex:0 0 22px!important;
  overflow:hidden!important;
  border-radius:2px;
}
#profileCompetitionsPanel .competition-transfer-player-flag .player-country-flag{
  width:22px!important;
  height:17px!important;
  object-fit:cover;
}
#profileCompetitionsPanel :is(.competition-transfer-position,.competition-transfer-overall){
  justify-self:start!important;
  text-align:left!important;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-transfers-table.competition-transfers-table>header>:is(.competition-transfer-player-head,
  .competition-transfer-position-head,.competition-transfer-overall-head){
  justify-self:start!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-transfer-row>:is(.competition-transfer-player,
  .competition-transfer-position,.competition-transfer-overall){
  justify-self:start!important;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-transfers-table.competition-transfers-table>header>:is(.competition-transfer-from-head,
  .competition-transfer-to-head),
#profileCompetitionsPanel .competition-transfer-row>:is(.competition-transfer-from,
  .competition-transfer-to){
  justify-self:stretch!important;
  justify-content:flex-start!important;
  text-align:left!important;
}
#profileCompetitionsPanel :is(.competition-transfer-from,.competition-transfer-to)>[data-competition-club-profile]{
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr);
  align-items:center;
  gap:6px;
  width:100%;
  min-width:0;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-transfers-table.competition-transfers-table>header>:is(.competition-transfer-fee-head,
  .competition-transfer-date-head),
#profileCompetitionsPanel .competition-transfer-row>:is(.competition-transfer-fee,
  .competition-transfer-date){
  justify-self:end!important;
  text-align:right!important;
  white-space:nowrap!important;
}

#profileCompetitionsPanel .competition-injuries-table{
  grid-template-columns:minmax(210px,250px) minmax(190px,230px) minmax(48px,1fr) minmax(180px,220px) 82px 70px 168px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{
  grid-column:1/-1;
  grid-template-columns:subgrid!important;
  column-gap:inherit!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>*,
#profileCompetitionsPanel .competition-injury-row>*{min-width:0}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(n+4),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(4),
#profileCompetitionsPanel .competition-injury-row>span:nth-child(5),
#profileCompetitionsPanel .competition-injury-row>time{
  justify-self:stretch!important;
  text-align:right!important;
}

/* 3.0A.50.35.141 — final shared-track geometry for Transfers and Injuries. */
#profileCompetitionsPanel .competition-transfers-table{
  grid-template-columns:fit-content(230px) 58px 82px minmax(44px,1fr) fit-content(220px) fit-content(220px) 104px 116px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel :is(.competition-transfer-overall-head,.competition-transfer-overall){grid-column:2}
#profileCompetitionsPanel :is(.competition-transfer-position-head,.competition-transfer-position){grid-column:3}
#profileCompetitionsPanel .competition-transfers-table.competition-transfers-table>header>:is(.competition-transfer-overall-head,.competition-transfer-position-head),
#profileCompetitionsPanel .competition-transfers-table.competition-transfers-table .competition-transfer-row>:is(.competition-transfer-overall,.competition-transfer-position){
  justify-self:stretch!important;
  justify-content:center!important;
  text-align:center!important;
}
#profileCompetitionsPanel .competition-transfer-row>.competition-transfer-overall{
  color:#d9d1c2!important;
}

/* .162 — authoritative transfer pages and shared Domestic Cup bracket. */
#profileCompetitionsPanel .competition-transfer-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  width:100%;
  margin:18px 0 4px;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:12px;
  font-weight:700;
  color:#d9d1c2;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .competition-transfer-pagination button{
  min-width:92px;
  min-height:34px;
  padding:7px 14px;
  border:1px solid rgba(212,169,79,.34);
  border-radius:8px;
  background:#17140e;
  color:#e5c377;
  font:inherit;
  font-size:10px;
  letter-spacing:.055em;
  cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease;
}
#profileCompetitionsPanel .competition-transfer-pagination button:hover:not(:disabled),
#profileCompetitionsPanel .competition-transfer-pagination button:focus-visible{
  border-color:#d4a94f;
  background:#211b10;
  outline:2px solid rgba(229,195,119,.25);
  outline-offset:2px;
}
#profileCompetitionsPanel .competition-transfer-pagination button:active:not(:disabled){transform:translateY(1px)}
#profileCompetitionsPanel .competition-transfer-pagination button:disabled{opacity:.34;cursor:default}

html.goat-domestic-cup-active,
body.goat-domestic-cup-active{overflow:hidden!important}
body.goat-domestic-cup-active #profileView{overflow:hidden!important}
body.goat-domestic-cup-active #profileCompetitionsPanel .goat-luxury-body{padding-bottom:0!important}
#profileCompetitionsPanel .domestic-cup-round-menu{
  display:flex;
  width:max-content;
  max-width:100%;
  margin:2px auto 7px;
  padding:0;
  align-items:center;
  justify-content:center;
  gap:clamp(2px,.45vw,8px);
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}
#profileCompetitionsPanel .domestic-cup-round-menu button{
  min-height:25px;
  padding:3px clamp(6px,.72vw,13px) 4px;
  border:0;
  border-radius:4px;
  background:rgba(13,11,8,.36);
  color:#b9ae9a;
  font:700 clamp(8px,.55vw,10px)/1.2 Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.025em;
  white-space:nowrap;
  cursor:pointer;
}
#profileCompetitionsPanel .domestic-cup-round-menu button:hover:not(:disabled),
#profileCompetitionsPanel .domestic-cup-round-menu button:focus-visible{
  color:#f0d28a;
  background:rgba(45,35,19,.62);
  outline:1px solid rgba(229,195,119,.45);
  outline-offset:1px;
}
#profileCompetitionsPanel .domestic-cup-round-menu button.active{
  color:#f4d887;
  background:rgba(67,49,21,.72);
  box-shadow:inset 0 -2px #d4a94f;
}
#profileCompetitionsPanel .domestic-cup-round-menu button:disabled{opacity:.28;cursor:not-allowed}
#profileCompetitionsPanel .domestic-cup-stage{
  position:relative;
  width:100%;
  min-height:300px;
  margin:0;
  overflow:hidden;
  box-sizing:border-box;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  font-family:Inter,InterVariable,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
#profileCompetitionsPanel .domestic-cup-match-grid{
  display:grid;
  width:100%;
  height:100%;
  box-sizing:border-box;
  align-content:stretch;
  justify-content:center;
}
#profileCompetitionsPanel .domestic-cup-grid-stage.is-round-1 .domestic-cup-match-grid{
  grid-template-columns:repeat(4,minmax(190px,280px));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:clamp(14px,2vh,24px) clamp(14px,1.35vw,26px);
  padding:clamp(8px,1.4vh,16px) clamp(10px,2vw,34px) clamp(16px,2.5vh,30px);
}
#profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-match-grid{
  grid-template-columns:repeat(8,minmax(96px,1fr));
  grid-template-rows:repeat(4,minmax(0,1fr));
  gap:clamp(7px,1vh,12px) clamp(7px,.65vw,12px);
  padding:clamp(7px,1.1vh,12px) 2px clamp(12px,1.8vh,20px);
}
#profileCompetitionsPanel .domestic-cup-bracket{
  position:relative;
  width:100%;
  height:100%;
  overflow:hidden;
}
#profileCompetitionsPanel .domestic-cup-connections{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
  z-index:1;
}
#profileCompetitionsPanel .domestic-cup-connections path{
  fill:none;
  stroke:rgba(226,187,101,.64);
  stroke-width:1.5;
  vector-effect:non-scaling-stroke;
}
#profileCompetitionsPanel .domestic-cup-round-label{
  position:absolute;
  top:auto;
  height:20px;
  color:#e5c377;
  font-size:clamp(8px,.56vw,10px);
  line-height:18px;
  font-weight:700;
  letter-spacing:.045em;
  text-align:center;
  white-space:nowrap;
  z-index:3;
}
#profileCompetitionsPanel .domestic-cup-match{
  z-index:2;
  box-sizing:border-box;
  display:grid;
  grid-template-rows:1fr 1fr;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.26);
  border-radius:7px;
  background:linear-gradient(150deg,rgba(39,29,15,.60),rgba(12,10,7,.70));
  box-shadow:inset 0 1px 0 rgba(255,244,216,.045),0 12px 34px rgba(6,4,2,.16);
  backdrop-filter:blur(4px);
}
#profileCompetitionsPanel .domestic-cup-match.is-bracket-match{position:absolute}
#profileCompetitionsPanel .domestic-cup-match.is-grid-match{position:relative;width:100%;height:100%;min-height:0}
#profileCompetitionsPanel .domestic-cup-match[role="button"]{cursor:pointer}
#profileCompetitionsPanel .domestic-cup-match[role="button"]:hover,
#profileCompetitionsPanel .domestic-cup-match[role="button"]:focus-visible{
  border-color:rgba(229,195,119,.72);
  outline:2px solid rgba(229,195,119,.18);
  outline-offset:2px;
}
#profileCompetitionsPanel .domestic-cup-team{
  display:grid;
  grid-template-columns:clamp(24px,1.9vw,34px) minmax(0,1fr) minmax(18px,24px);
  align-items:center;
  gap:clamp(3px,.42vw,7px);
  min-height:0;
  padding:2px clamp(4px,.48vw,8px);
  box-sizing:border-box;
  color:#d9d1c2;
}
#profileCompetitionsPanel .domestic-cup-team+.domestic-cup-team{border-top:1px solid rgba(212,169,79,.13)}
#profileCompetitionsPanel .domestic-cup-team.is-empty::after{
  content:"";
  grid-column:1/-1;
  width:58%;
  height:1px;
  background:rgba(212,169,79,.14);
}
#profileCompetitionsPanel .domestic-cup-team b{
  min-width:0;
  overflow:hidden;
  color:inherit;
  font-size:clamp(8px,.62vw,11px);
  line-height:1.15;
  font-weight:600;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .domestic-cup-team strong{
  color:#eee5d3;
  font-size:clamp(9px,.68vw,12px);
  text-align:right;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .domestic-cup-team.is-winner{color:#f0cc78;background:rgba(184,132,34,.095)}
#profileCompetitionsPanel .domestic-cup-team.is-winner b{font-weight:700}
#profileCompetitionsPanel .domestic-cup-team .competition-club-mark{
  width:clamp(24px,1.9vw,34px);
  height:clamp(24px,1.9vw,34px);
  min-width:clamp(24px,1.9vw,34px);
  border-radius:5px;
  font-size:7px;
}
#profileCompetitionsPanel .domestic-cup-team .competition-club-mark img{width:100%;height:100%;object-fit:contain}
#profileCompetitionsPanel .domestic-cup-bracket-stage:is([data-cup-start-round="3"],[data-cup-start-round="4"]) .domestic-cup-team{
  grid-template-columns:28px minmax(0,1fr) 20px;
  gap:4px;
  padding:2px 5px;
}
#profileCompetitionsPanel .domestic-cup-bracket-stage:is([data-cup-start-round="3"],[data-cup-start-round="4"]) .domestic-cup-team .competition-club-mark{
  width:28px;
  height:28px;
  min-width:28px;
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="6"] .domestic-cup-team,
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="5"] .domestic-cup-team{
  grid-template-columns:clamp(32px,2.5vw,44px) minmax(0,1fr) 26px;
  gap:clamp(7px,.65vw,11px);
  padding:3px 12px;
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="6"] .domestic-cup-team .competition-club-mark,
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="5"] .domestic-cup-team .competition-club-mark{
  width:clamp(32px,2.5vw,44px);
  height:clamp(32px,2.5vw,44px);
  min-width:clamp(32px,2.5vw,44px);
}
#profileCompetitionsPanel .domestic-cup-vertical-match{
  grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);
  padding:clamp(7px,1vh,12px) clamp(6px,.75vw,13px);
  overflow:visible;
}
#profileCompetitionsPanel .domestic-cup-vertical-team{
  display:flex;
  min-width:0;
  min-height:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:clamp(4px,.65vh,8px);
  color:#ddd3c1;
  text-align:center;
}
#profileCompetitionsPanel .domestic-cup-vertical-team b{
  display:block;
  max-width:100%;
  overflow:hidden;
  font-size:clamp(9px,.72vw,13px);
  line-height:1.15;
  font-weight:650;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .domestic-cup-vertical-team.is-winner{color:#f1cd78}
#profileCompetitionsPanel .domestic-cup-vertical-team .competition-club-mark{
  width:clamp(30px,3.2vmin,48px);
  height:clamp(30px,3.2vmin,48px);
  min-width:clamp(30px,3.2vmin,48px);
  min-height:clamp(30px,3.2vmin,48px);
  flex:0 0 clamp(30px,3.2vmin,48px);
  border-radius:8px;
}
#profileCompetitionsPanel .domestic-cup-grid-stage.is-round-1 .domestic-cup-vertical-team .competition-club-mark{
  width:clamp(42px,5vmin,68px);
  height:clamp(42px,5vmin,68px);
  min-width:clamp(42px,5vmin,68px);
  min-height:clamp(42px,5vmin,68px);
  flex-basis:clamp(42px,5vmin,68px);
}
#profileCompetitionsPanel .domestic-cup-grid-stage.is-round-1 .domestic-cup-vertical-team b{font-size:clamp(11px,.9vw,15px)}
#profileCompetitionsPanel .domestic-cup-vertical-result{
  display:grid;
  place-items:center;
  min-height:22px;
  color:#f4d887;
  font-size:clamp(12px,1vw,17px);
  line-height:1;
  font-weight:750;
  letter-spacing:.06em;
  font-variant-numeric:tabular-nums;
}
#profileCompetitionsPanel .domestic-cup-grid-stage.is-round-1 .domestic-cup-vertical-result{font-size:clamp(15px,1.25vw,21px)}
#profileCompetitionsPanel .domestic-cup-trophy{position:absolute;margin:0;pointer-events:none}
#profileCompetitionsPanel .domestic-cup-trophy img{display:block;width:100%;height:100%;object-fit:contain}
#profileCompetitionsPanel .domestic-cup-trophy.is-bracket-trophy{
  z-index:2;
  top:calc(28% + 53px);
  left:50%;
  width:clamp(120px,12vw,200px);
  height:34%;
  opacity:.92;
  transform:translateX(-50%);
  filter:drop-shadow(0 16px 34px rgba(19,12,4,.65));
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="3"] .domestic-cup-trophy.is-bracket-trophy{
  transform:translateX(-50%) scale(.8);
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="4"] .domestic-cup-trophy.is-bracket-trophy{
  top:calc(24% + 63px);
  width:clamp(145px,15vw,240px);
  height:38%;
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="5"] .domestic-cup-trophy.is-bracket-trophy{
  top:15%;
  width:clamp(170px,20vw,320px);
  height:48%;
}
#profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="6"] .domestic-cup-trophy.is-bracket-trophy{
  position:relative;
  top:auto;
  left:auto;
  width:clamp(210px,23vw,380px);
  height:min(58vh,440px);
  opacity:1;
  transform:none;
  filter:drop-shadow(0 24px 38px rgba(18,11,3,.7));
}
#profileCompetitionsPanel .domestic-cup-bracket-centre{
  position:absolute;
  z-index:2;
  top:clamp(8px,1.5vh,18px);
  right:0;
  bottom:clamp(24px,4vh,48px);
  left:0;
  display:flex;
  min-height:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  pointer-events:none;
}
#profileCompetitionsPanel .domestic-cup-final-venue.is-layout-spacer{
  visibility:hidden;
}
#profileCompetitionsPanel .domestic-cup-final-showcase{
  display:grid;
  width:min(1320px,100%);
  height:100%;
  margin:0 auto;
  grid-template-columns:minmax(0,1fr) minmax(210px,.8fr) minmax(0,1fr);
  align-items:center;
  gap:clamp(28px,5vw,86px);
  padding:clamp(8px,1.5vh,18px) clamp(16px,3vw,48px) clamp(24px,4vh,48px);
  box-sizing:border-box;
}
#profileCompetitionsPanel .domestic-cup-finalist{
  display:flex;
  min-width:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:clamp(14px,2vh,24px);
  color:#f4efe5;
  text-align:center;
}
#profileCompetitionsPanel .domestic-cup-finalist .competition-club-mark{
  width:clamp(112px,13vw,210px);
  height:clamp(112px,13vw,210px);
  min-width:clamp(112px,13vw,210px);
  min-height:clamp(112px,13vw,210px);
  flex:0 0 clamp(112px,13vw,210px);
  border-radius:18px;
  font-size:clamp(21px,2vw,34px);
  filter:drop-shadow(0 16px 30px rgba(0,0,0,.42));
}
#profileCompetitionsPanel .domestic-cup-finalist strong{
  max-width:100%;
  overflow:hidden;
  font-size:clamp(18px,1.6vw,28px);
  line-height:1.12;
  font-weight:720;
  letter-spacing:-.025em;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-shadow:0 5px 18px rgba(0,0,0,.8);
}
#profileCompetitionsPanel .domestic-cup-finalist.is-winner{color:#f4d887}
#profileCompetitionsPanel .domestic-cup-finalist[role="button"]{cursor:pointer}
#profileCompetitionsPanel .domestic-cup-finalist[role="button"]:is(:hover,:focus-visible){color:#fff4d2;outline:2px solid rgba(229,195,119,.52);outline-offset:8px;border-radius:12px}
#profileCompetitionsPanel .domestic-cup-final-centre{
  position:relative;
  display:flex;
  height:100%;
  min-height:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
}
#profileCompetitionsPanel .domestic-cup-trophy.is-final-trophy{
  position:relative;
  width:clamp(210px,23vw,380px);
  height:min(58vh,440px);
  filter:drop-shadow(0 24px 38px rgba(18,11,3,.7));
}
#profileCompetitionsPanel .domestic-cup-final-venue{
  max-width:min(30vw,360px);
  margin-top:clamp(4px,1vh,12px);
  color:#f4d887;
  font-size:clamp(14px,1.25vw,22px);
  line-height:1.15;
  font-weight:700;
  letter-spacing:.04em;
  text-align:center;
  text-wrap:balance;
  text-shadow:0 7px 20px rgba(0,0,0,.8);
}
#profileCompetitionsPanel .domestic-cup-final-meta{position:relative;display:grid;place-items:center;max-width:min(34vw,410px)}
#profileCompetitionsPanel .domestic-cup-final-meta .domestic-cup-final-venue{display:block}
#profileCompetitionsPanel .domestic-cup-final-kickoff{position:absolute;left:50%;bottom:calc(100% - 1px);display:grid;gap:2px;width:max-content;max-width:36vw;transform:translateX(-50%);text-align:center;color:#f7ead0;font-style:normal}
#profileCompetitionsPanel .domestic-cup-final-kickoff strong{font-size:clamp(.72rem,1.05vw,.92rem);letter-spacing:.035em}
#profileCompetitionsPanel .domestic-cup-final-kickoff span{color:#e5c357;font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
#profileCompetitionsPanel .domestic-cup-watch-live{position:absolute;left:50%;top:calc(100% + 8px);min-width:132px;min-height:38px;margin:0;padding:0 18px;transform:translateX(-50%);border:1px solid rgba(229,195,87,.52);border-radius:10px;background:linear-gradient(180deg,rgba(68,55,31,.88),rgba(27,22,14,.92));color:#fff;font-size:.67rem;font-weight:950;letter-spacing:.1em;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.08)}
#profileCompetitionsPanel .domestic-cup-watch-live:is(:hover,:focus-visible){background:linear-gradient(180deg,rgba(111,89,45,.94),rgba(49,38,21,.96));outline:2px solid rgba(229,195,87,.45);outline-offset:2px}
#profileCompetitionsPanel .domestic-cup-watch-live:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}

@media(max-width:1500px){
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-match-grid{grid-template-columns:repeat(8,minmax(84px,1fr))}
  #profileCompetitionsPanel .domestic-cup-round-menu{gap:2px}
  #profileCompetitionsPanel .domestic-cup-round-menu button{padding-inline:6px}
}

@media(max-height:820px){
  #profileCompetitionsPanel .domestic-cup-final-showcase{padding-bottom:60px}
  #profileCompetitionsPanel .domestic-cup-bracket-centre{bottom:60px}
  #profileCompetitionsPanel .domestic-cup-final-kickoff{bottom:calc(100% - 4px)}
  #profileCompetitionsPanel .domestic-cup-watch-live{top:calc(100% + 4px);min-height:32px}
  #profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="5"] .domestic-cup-trophy.is-bracket-trophy{
    top:13%;
    height:40%;
  }
  #profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="6"] [data-cup-round="7"] .domestic-cup-team{
    grid-template-columns:19px minmax(0,1fr) 18px;
    gap:4px;
    padding:1px 5px;
  }
  #profileCompetitionsPanel .domestic-cup-bracket-stage[data-cup-start-round="6"] [data-cup-round="7"] .domestic-cup-team .competition-club-mark{
    width:19px;
    height:19px;
    min-width:19px;
  }
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-vertical-match{padding:2px 3px}
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-vertical-team{gap:1px}
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-vertical-team .competition-club-mark{
    width:22px;
    height:22px;
    min-width:22px;
    min-height:22px;
    flex-basis:22px;
  }
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-vertical-team b{font-size:8px;line-height:1}
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-vertical-result{min-height:10px;font-size:10px}
}

@media(max-width:760px){
  #profileCompetitionsPanel .competition-transfer-pagination{gap:10px;margin-top:14px}
  #profileCompetitionsPanel .competition-transfer-pagination button{min-width:78px;padding-inline:10px}
  #profileCompetitionsPanel .domestic-cup-round-menu{width:100%;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}
  #profileCompetitionsPanel .domestic-cup-round-menu::-webkit-scrollbar{display:none}
  #profileCompetitionsPanel .domestic-cup-stage{width:100%}
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-1 .domestic-cup-match-grid{grid-template-columns:repeat(4,minmax(100px,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px;padding:5px 0 10px}
  #profileCompetitionsPanel .domestic-cup-grid-stage.is-round-2 .domestic-cup-match-grid{grid-template-columns:repeat(8,minmax(72px,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px;padding:4px 0 8px}
  #profileCompetitionsPanel .domestic-cup-vertical-match{padding:4px 3px}
  #profileCompetitionsPanel .domestic-cup-vertical-team b{font-size:8px}
  #profileCompetitionsPanel .domestic-cup-final-showcase{grid-template-columns:minmax(0,1fr) minmax(150px,.72fr) minmax(0,1fr);gap:15px;padding-inline:6px}
}

#profileCompetitionsPanel .competition-injuries-table{
  width:100%!important;
  max-width:none!important;
  grid-template-columns:fit-content(210px) fit-content(230px) minmax(60px,1fr) fit-content(190px) 82px 70px 168px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel .competition-injury-row>.competition-injury-player{
  color:#e5c377!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(n+4),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-days,
#profileCompetitionsPanel .competition-injury-row>.competition-injury-fitness,
#profileCompetitionsPanel .competition-injury-row>.competition-injury-comeback{
  justify-self:stretch!important;
  text-align:right!important;
}

/* Store copy is deliberately secondary to the pack choices. The selected
   conversion is sourced from the server response and presented without a
   nested panel beneath the artwork. */
.trade-store-heading h2{margin-top:0!important}
.trade-store-guidance{
  max-width:760px;
  margin:24px auto 0!important;
  padding:0 12px!important;
  color:#b6aa95!important;
  font-size:.72rem!important;
  line-height:1.5!important;
  text-align:center;
}
.trade-pack-sidebar>.trade-conversion-line{
  margin:0!important;
  padding:0!important;
  color:#e5c377!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  font-family:var(--body);
  font-size:.82rem!important;
  font-weight:850;
  letter-spacing:.02em;
  line-height:1.25!important;
  text-align:center;
}
.trade-conversion-line>span{
  display:inline-block;
  margin-inline:.35em;
  color:#f0d79b;
}

/* .141 loading surface: visible before optimized artwork decodes. */
body.profile-background .world-bg,
body.profile-background:is(.goat-page-bg-office2,.goat-page-bg-club-profile,.goat-page-bg-club-main,.goat-page-bg-tactics-workspace,.goat-page-bg-stadium,.goat-page-bg-facilities,.goat-page-bg-bank,.goat-page-bg-finances) .world-bg,
.player-modal.player-dossier-shell .player-dossier-hero .player-squad-photo,
#profileLineupPanel .tc5-screen .tc8-tactical-scene,
#profileOverviewPanel .club-overview-canvas{
  background-color:#100d08!important;
}

@media(max-width:760px){
  #profileCompetitionsPanel .competition-transfers-table>header,
  #profileCompetitionsPanel .competition-transfer-row,
  #profileCompetitionsPanel .competition-injuries-table>header,
  #profileCompetitionsPanel .competition-injury-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px!important;
  }
  #profileCompetitionsPanel .competition-transfers-table>header>*,
  #profileCompetitionsPanel .competition-transfer-row>*,
  #profileCompetitionsPanel .competition-injuries-table>header>*,
  #profileCompetitionsPanel .competition-injury-row>*{
    grid-column:auto!important;
  }
}

/* 3.0A.50.35.142 — authoritative season, injury and Store presentation. */
#profileCompetitionsPanel .competition-toolbar-select.season select{
  width:62px!important;
  min-width:62px!important;
  padding-left:10px!important;
}
#profileCompetitionsPanel .competition-injuries-table{
  grid-template-columns:minmax(230px,270px) minmax(190px,240px) minmax(160px,1fr) 82px 70px 168px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{
  grid-column:1/-1;
  grid-template-columns:subgrid!important;
  column-gap:inherit!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>*,
#profileCompetitionsPanel .competition-injury-row>*{
  grid-column:auto!important;
}
#profileCompetitionsPanel .competition-injury-player{
  display:grid!important;
  grid-template-columns:22px minmax(0,max-content);
  align-items:center;
  gap:7px!important;
  min-width:0;
  color:#e5c377!important;
}
#profileCompetitionsPanel .competition-injury-player>strong{
  min-width:0;
  overflow:hidden;
  color:#e5c377!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#profileCompetitionsPanel .competition-injury-player-flag{
  width:22px!important;
  height:17px!important;
  flex:0 0 22px!important;
  overflow:hidden!important;
  border-radius:2px;
}
#profileCompetitionsPanel .competition-injury-player-flag .player-country-flag{
  width:22px!important;
  height:17px!important;
  object-fit:cover;
}
#profileCompetitionsPanel .competition-injury-club{
  display:flex;
  min-width:0;
  align-items:center;
  gap:6px;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(-n+3),
#profileCompetitionsPanel .competition-injury-row>:nth-child(-n+3){
  justify-self:stretch!important;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(n+4),
#profileCompetitionsPanel .competition-injury-row>:nth-child(n+4){
  justify-self:stretch!important;
  text-align:right!important;
  white-space:nowrap!important;
}
.trade-pack-detail{align-items:stretch!important}
.trade-pack-sidebar{
  align-self:center!important;
  justify-content:center!important;
}
.trade-main-requirement{
  color:#e5c377!important;
  font-size:.72rem!important;
  font-weight:800;
  line-height:1.3;
}
.club-hub-stage-slider,
.club-slider,
.club-slider-track,
.club-slide,
.club-slide-art{
  background-color:#100d08!important;
}
.club-slide-art{
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
}
@media(max-width:760px){
  #profileCompetitionsPanel .competition-injuries-table>header,
  #profileCompetitionsPanel .competition-injury-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px!important;
  }
  #profileCompetitionsPanel .competition-injuries-table>header>*,
  #profileCompetitionsPanel .competition-injury-row>*{grid-column:auto!important}
}

/* 3.0A.50.35.143 — focused submenu, Pack Market and Injuries restoration. */
/* The decode fallback belongs to the artwork plane only. Applying it to the
   full slider stage or track paints large opaque blocks between the cards and
   defeats the established masked, perspective rail geometry. */
.club-hub-stage-slider,
.club-slider,
.club-slider-track,
.club-slide{
  background-color:transparent!important;
}
.club-slide-art{
  background-color:#100d08!important;
}

/* Player and Club are content-sized neighbours. Column three is the only
   flexible spacer; all medical fields occupy stable shared subgrid tracks. */
#profileCompetitionsPanel .competition-injuries-table{
  width:100%!important;
  max-width:none!important;
  grid-template-columns:fit-content(270px) fit-content(230px) minmax(40px,1fr) fit-content(180px) 82px 70px 168px!important;
  column-gap:12px!important;
}
#profileCompetitionsPanel .competition-injuries-table>header,
#profileCompetitionsPanel .competition-injury-row{
  grid-column:1/-1;
  grid-template-columns:subgrid!important;
  column-gap:inherit!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(1),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-player{grid-column:1!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(2),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-club{grid-column:2!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(3),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-name{grid-column:4!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(4),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-days{grid-column:5!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(5),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-fitness{grid-column:6!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(6),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-comeback{grid-column:7!important}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(-n+3),
#profileCompetitionsPanel .competition-injury-row>:is(.competition-injury-player,.competition-injury-club,.competition-injury-name){
  justify-self:stretch!important;
  text-align:left!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(4),
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(5),
#profileCompetitionsPanel .competition-injury-row>:is(.competition-injury-days,.competition-injury-fitness){
  justify-self:stretch!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
}
#profileCompetitionsPanel .competition-injuries-table>header>span:nth-child(6),
#profileCompetitionsPanel .competition-injury-row>.competition-injury-comeback{
  justify-self:stretch!important;
  justify-content:flex-end!important;
  text-align:right!important;
  white-space:nowrap!important;
}

@media(max-width:760px){
  #profileCompetitionsPanel .competition-injuries-table>header,
  #profileCompetitionsPanel .competition-injury-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 80px!important;
  }
  #profileCompetitionsPanel .competition-injuries-table>header>*,
  #profileCompetitionsPanel .competition-injury-row>*{grid-column:auto!important}
}

/* 3.0A.50.35.144 — keep the accepted Pack Market control geometry stable.
   Tight pack artwork may be visually taller than the saved 400px card frame.
   Give the card an exact layout footprint and let its bottom-anchored artwork
   overflow upward, so artwork scale never pushes the controls below it down. */
@media(min-width:1041px){
  body.market-layout-applied[data-market-layout-mode="packs"] #profileMarketPanel .pack-market-card,
  body.market-layout-preview.market-layout-tuned #profileMarketPanel .pack-market-card{
    height:var(--ml-card-height)!important;
    min-height:var(--ml-card-height)!important;
    max-height:var(--ml-card-height)!important;
    overflow:visible!important;
  }
}

/* The tight 369x640 source must fit inside the focus artwork row. Percentage
   sizing on a normal grid child can resolve against the full dialog and let
   the image paint through the separate action row. Absolute containment makes
   the artwork row the unambiguous sizing box and keeps BUY/CANCEL below it. */
.pack-market-focus-art{
  position:relative!important;
  min-width:0!important;
  min-height:0!important;
}
.pack-market-focus-art>img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  pointer-events:none;
}

/* .148 final cascade: compact titles and approved feedback/presentation. */
#profileInfrastructurePanel .facility-unified-body>header h3{
  font-size:clamp(.92rem,1vw,1.12rem)!important;
}
.stadium-readiness-card small{display:none!important}
.settings-stadium-name button.is-saved{
  border-color:#4bd580!important;background:#218c4b!important;color:#fff!important;
}
.mc-hub-next .mc-hub-hero-stage{padding-top:22px!important;align-content:center!important}
.trade-result,.trade-result-player-card{box-shadow:none!important;filter:none!important}

.mail-thread-history{display:grid;gap:12px}
.mail-thread-history details{display:grid;gap:10px}
.mail-thread-history summary{cursor:pointer;color:#d6b962;font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
.mail-thread-message{max-width:82%;padding:12px 14px;border:1px solid rgba(216,181,80,.24);border-radius:14px;background:rgba(255,255,255,.035)}
.mail-thread-message.is-sent{justify-self:end;background:rgba(216,181,80,.09)}
.mail-thread-message header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:6px}
.mail-thread-message header strong{font-size:.78rem;color:#e6cd82}
.mail-thread-message header time{font-size:.68rem;color:#8f897e}
.mail-thread-message p{margin:0;white-space:pre-wrap;line-height:1.45}

/* .164-RC1 canonical confirmation contract: the default shared confirmation
   keeps its accepted geometry and actions, but now consumes the exact liquid-
   glass material used by Recent Form and the Club / World switch. */
.goat-confirm-overlay{background:rgba(2,2,2,.46)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important}
.goat-confirm-modal,
.league-registration-modal-card{
  display:grid!important;
  justify-items:center!important;
  gap:18px!important;
  width:min(424px,calc(100vw - 32px))!important;
  padding:28px!important;
  border-radius:18px!important;
}
.goat-confirm-modal{
  border:1px solid var(--goat-glass-edge)!important;
  background:var(--goat-glass-surface)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 var(--goat-glass-highlight),inset 0 -1px 0 rgba(212,169,79,.10)!important;
  backdrop-filter:var(--goat-glass-filter)!important;
  -webkit-backdrop-filter:var(--goat-glass-filter)!important;
}
.league-registration-modal-card{
  overflow:visible!important;
  border:1px solid rgba(212,169,79,.38)!important;
  background:#110e09!important;
  box-shadow:0 24px 60px rgba(0,0,0,.62)!important;
}
.goat-confirm-modal{position:relative!important;isolation:isolate!important;overflow:hidden!important}
.goat-confirm-modal>h3,
.league-registration-modal-card>h3{
  margin:0!important;
  color:#fbf7ef!important;
  font:900 clamp(1.2rem,2.2vw,1.5rem)/1.16 var(--body)!important;
  text-align:center!important;
}
.goat-confirm-modal>footer,
.league-registration-modal-actions{
  display:flex!important;
  justify-content:center!important;
  gap:11px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
.goat-confirm-modal>header{display:contents!important}
.goat-confirm-modal>header+*{border-top:0!important}
.goat-confirm-copy,.goat-confirm-details{position:relative!important;z-index:1!important;width:100%!important}
.goat-confirm-details>p{border-color:rgba(212,169,79,.25)!important;background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.018) 52%,rgba(212,169,79,.075)),rgba(8,7,6,.30)!important;box-shadow:0 9px 24px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.13),inset 0 -1px 0 rgba(212,169,79,.08)!important;backdrop-filter:blur(14px) saturate(135%)!important;-webkit-backdrop-filter:blur(14px) saturate(135%)!important}
.goat-confirm-modal>footer button,.league-registration-modal-actions button{min-width:0!important;flex:1 1 0!important;max-width:172px!important}
.goat-confirm-modal.is-compact{
  width:min(360px,calc(100vw - 32px))!important;
  gap:18px!important;
  padding:24px!important;
}
.goat-confirm-modal.is-compact>footer{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.goat-confirm-modal.is-compact>footer button{width:100%!important;max-width:none!important}
.league-registration-modal-card .league-registration-review-summary{display:none!important}

/* Compact World training/Gym confirmation uses the same canonical geometry. */
.goat-world-modal-shell.is-compact-confirm .goat-world-choice-card{
  box-sizing:border-box!important;display:grid!important;justify-items:center!important;gap:18px!important;
  width:min(424px,calc(100vw - 32px))!important;min-height:0!important;padding:28px!important;
  border:1px solid rgba(212,169,79,.38)!important;border-radius:18px!important;
  background:#110e09!important;box-shadow:0 24px 60px rgba(0,0,0,.62)!important;
}
.goat-world-modal-shell.is-compact-confirm .goat-world-modal-close,
.goat-world-modal-shell.is-compact-confirm #goatWorldChoiceEyebrow,
.goat-world-modal-shell.is-compact-confirm #goatWorldChoiceCopy,
.goat-world-modal-shell.is-compact-confirm #goatWorldChoiceContent{display:none!important}
.goat-world-modal-shell.is-compact-confirm #goatWorldChoiceTitle{margin:0!important;text-align:center!important}
.goat-world-modal-shell.is-compact-confirm .goat-world-choice-actions{display:flex!important;justify-content:center!important;gap:11px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important}
.goat-world-modal-shell.is-compact-confirm .goat-world-choice-actions button{flex:1 1 0!important;max-width:172px!important;height:46px!important;min-height:46px!important}

@media(max-width:500px){
  .goat-confirm-modal>footer,.league-registration-modal-actions,.goat-world-modal-shell.is-compact-confirm .goat-world-choice-actions{display:grid!important;grid-template-columns:1fr!important}
  .goat-confirm-modal>footer button,.league-registration-modal-actions button,.goat-world-modal-shell.is-compact-confirm .goat-world-choice-actions button{width:100%!important;max-width:none!important}
}

/* .151 focused presentation corrections. */
.mail-transfer-actions button.positive{
  border-color:#4fcf82!important;
  background:#238849!important;
  color:#fff!important;
}
.mail-transfer-actions button.negotiate{
  border-color:#e2bc66!important;
  background:#9b7229!important;
  color:#fff!important;
}
.mail-transfer-actions button.danger{
  border-color:#df6259!important;
  background:#9b302b!important;
  color:#fff!important;
}

.trade-result-player-card .footballer-card,
.trade-result-player-card .footballer-card-shell,
.trade-result-player-card .footballer-card::before,
.trade-result-player-card .footballer-card::after{
  box-shadow:none!important;
  filter:none!important;
}

body.market-management-page #profileMarketPanel .market-toolbar{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

.market-card-offer-form>.market-offer-hold{
  position:relative;
  isolation:isolate;
  overflow:hidden;
}
.market-card-offer-form>.market-offer-hold::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  width:var(--hold-progress,0%);
  background:#2f7b48;
  transition:width 60ms linear;
  pointer-events:none;
}
.market-card-offer-form>.market-offer-hold.is-committing{border-color:#55d187;background:#2f7b48;color:#fff}

.list-for-sale-sheet>header{padding-right:34px}
.list-for-sale-sheet footer button.destructive{
  border-color:#cb5149!important;
  background:#8e2e2a!important;
  color:#fff!important;
}
.list-for-sale-sheet footer button.positive{
  border-color:#4fcf82!important;
  background:#238849!important;
  color:#fff!important;
}

/* The featured fixture is one continuous surface, including below WATCH LIVE. */
:is(#profileCentrePanel,#matchCentreView) .mc-hub-next{
  background:linear-gradient(145deg,rgba(27,23,15,.97),rgba(12,10,7,.98))!important;
}
:is(#profileCentrePanel,#matchCentreView) .mc-hub-next::before{content:none!important}

/* Desktop height fitting keeps all six accepted Competition Center viewports
   inside the page without clipping meaningful data or forcing a page scroll. */
@media (min-width:981px){
  #profileCentrePanel .mc-hub-page{min-height:0!important;height:auto!important}
  body.centre-management-page #profileView{padding-bottom:0!important}
  body.centre-management-page #siteFooter{display:none!important}
}
@media (min-width:981px) and (max-height:1050px){
  #profileCentrePanel .mc-hub-page{padding-top:12px!important;padding-bottom:16px!important}
  #profileCentrePanel .mc-hub-page-header{margin-bottom:10px!important}
  #profileCentrePanel .mc-hub-dashboard-grid,
  #profileCentrePanel :is(.mc-hub-left-column,.mc-hub-right-column){gap:12px!important}
  #profileCentrePanel :is(.mc-hub-left-column,.mc-hub-right-column){grid-template-rows:360px 270px!important}
  #profileCentrePanel .mc-hub-next,
  #profileCentrePanel .mc-hub-form-players{height:360px!important;min-height:360px!important}
}
@media (min-width:981px) and (max-height:900px){
  #profileCentrePanel .mc-hub-page{min-height:0!important;padding:8px 0 14px!important}
  #profileCentrePanel .mc-hub-page-header{margin-bottom:9px!important}
  #profileCentrePanel .mc-hub-page-header .eyebrow{font-size:1.28rem!important}
  #profileCentrePanel .mc-hub-page-header h1{margin-top:3px!important;font-size:.7rem!important}
  #profileCentrePanel .mc-hub-dashboard-grid{gap:10px!important}
  #profileCentrePanel :is(.mc-hub-left-column,.mc-hub-right-column){gap:10px!important}
  #profileCentrePanel :is(.mc-hub-left-column,.mc-hub-right-column){grid-template-rows:304px 225px!important}
  #profileCentrePanel .mc-hub-right-bottom{gap:9px!important}
  #profileCentrePanel .mc-hub-next{min-height:304px!important;height:304px!important;padding-bottom:10px!important}
  #profileCentrePanel .mc-hub-panel-title{padding:10px 14px 0!important}
  #profileCentrePanel .mc-hub-next .mc-hub-hero-stage{padding:4px 16px 0!important}
  #profileCentrePanel .mc-hub-versus{margin-top:0!important}
  #profileCentrePanel .mc-hub-club{grid-template-rows:82px auto auto!important}
  #profileCentrePanel .mc-hub-club-logo.is-large{width:70px!important;height:76px!important}
  #profileCentrePanel .mc-hub-fixture-meta{margin-top:4px!important}
  #profileCentrePanel .mc-hub-countdown{margin-top:4px!important}
  #profileCentrePanel .mc-hub-watch{min-height:38px!important;margin-top:5px!important}
  #profileCentrePanel .mc-hub-recent{min-height:0!important}
  #profileCentrePanel .mc-hub-match-row{padding-top:7px!important;padding-bottom:7px!important}
  #profileCentrePanel .mc-hub-form-players{min-height:304px!important;height:304px!important}
  #profileCentrePanel .mc-hub-player-row{padding-top:7px!important;padding-bottom:7px!important}
}
@media (min-width:981px) and (max-height:800px){
  #profileCentrePanel .mc-hub-page{padding-bottom:11px!important}
}
@media (min-width:981px) and (max-height:760px){
  #profileCentrePanel .mc-hub-page{padding-top:2px!important}
  #profileCentrePanel .mc-hub-page-header{margin-bottom:6px!important}
  #profileCentrePanel .mc-hub-page-header h1{display:none!important}
  #profileCentrePanel .mc-hub-next,
  #profileCentrePanel .mc-hub-form-players{height:225px!important;min-height:225px!important}
  #profileCentrePanel :is(.mc-hub-left-column,.mc-hub-right-column){grid-template-rows:225px 173px!important}
  #profileCentrePanel .mc-hub-club{grid-template-rows:66px auto auto!important}
  #profileCentrePanel .mc-hub-club-logo.is-large{width:58px!important;height:62px!important}
  #profileCentrePanel .mc-hub-club strong{font-size:.82rem!important}
  #profileCentrePanel .mc-hub-club small{margin-top:1px!important}
  #profileCentrePanel .mc-hub-fixture-meta{font-size:.57rem!important}
  #profileCentrePanel .mc-hub-countdown-unit b{font-size:1.05rem!important}
  #profileCentrePanel .mc-hub-countdown-unit small{font-size:.48rem!important}
  #profileCentrePanel .mc-hub-match-row{padding-top:5px!important;padding-bottom:5px!important}
}

/* .152 touch and constrained-viewport corrections. Desktop geometry above
   1180px remains owned by the accepted desktop layouts. */
#profileLineupPanel .lineup-mini-card.lineup-touch-selected{
  border-color:#e5c377!important;
  background:rgba(212,169,79,.16)!important;
  box-shadow:inset 0 0 0 2px rgba(229,195,119,.30)!important;
}

@media (max-width:1180px){
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-main-layout{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-side-rail{
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
  }
}

@media (max-width:600px) and (orientation:portrait){
  .store-modal.trade-store-active .trade-pack-sidebar{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    padding:0!important;
    text-align:center!important;
  }
  .store-modal.trade-store-active .trade-pack-sidebar>img{
    width:min(210px,56vw)!important;
    margin-inline:auto!important;
  }
  .store-modal.trade-store-active .trade-pack-sidebar>.trade-conversion-line{
    width:100%!important;
    text-align:center!important;
  }
  .store-modal.trade-store-active .trade-player-picker{
    padding:14px 10px max(12px,env(safe-area-inset-bottom))!important;
    overflow:visible!important;
  }
  .store-modal.trade-store-active .trade-player-list{
    padding-bottom:calc(132px + env(safe-area-inset-bottom))!important;
  }
  .store-modal.trade-store-active .trade-selection-footer{
    position:sticky!important;
    z-index:12!important;
    bottom:max(0px,env(safe-area-inset-bottom))!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin:0!important;
    padding:10px!important;
    background:#17130d!important;
    box-shadow:0 -14px 32px rgba(0,0,0,.72)!important;
  }
  .store-modal.trade-store-active .trade-selection-actions{grid-column:1/-1!important}
  .store-modal.trade-store-active .trade-submit-button{width:100%!important;min-height:44px!important}

  body.club-hub-crumb-active.goat-page-bg-club-overview .profile-nav-row{
    top:max(10px,env(safe-area-inset-top))!important;
  }

  #profileLineupPanel .lineup-workspace,
  #profileLineupPanel .lineup-workspace.mode-tactics{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    grid-template-areas:"pitch" "squad" "tactics"!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  #profileLineupPanel .lineup-squad-panel,
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-squad-panel{
    grid-area:squad!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    padding:0!important;
    overflow:visible!important;
    border:0!important;
    background:transparent!important;
  }
  #profileLineupPanel #lineupSquadPanel{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  #profileLineupPanel #lineupSquadPanel>.lineup-side-panel,
  #profileLineupPanel #lineupSquadPanel>.lineup-left-panel{
    grid-area:auto!important;
  }
  #profileLineupPanel #lineupSquadPanel>.lineup-side-panel{grid-column:1!important;grid-row:1!important}
  #profileLineupPanel #lineupSquadPanel>.lineup-left-panel{grid-column:1!important;grid-row:2!important}
  #profileLineupPanel .lineup-side-panel,
  #profileLineupPanel .lineup-left-panel,
  #profileLineupPanel .lineup-bench-panel,
  #profileLineupPanel .lineup-available-panel,
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-side-panel,
  #profileLineupPanel .lineup-workspace.mode-tactics .lineup-bench-panel{
    position:relative!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  #profileLineupPanel .lineup-left-panel{border:0!important}
  #profileLineupPanel .lineup-registered-content{max-height:none!important;overflow:visible!important}
  #profileLineupPanel .lineup-available-grid{max-height:none!important;overflow:visible!important}
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    min-height:94px!important;
    padding:7px 2px 10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    overscroll-behavior-inline:contain;
  }
  #profileLineupPanel .lineup-workspace.mode-tactics #lineupBench .lineup-tactics-substitute{
    display:flex!important;
    flex:0 0 132px!important;
    width:132px!important;
    min-width:132px!important;
    height:78px!important;
    min-height:78px!important;
    max-height:none!important;
  }

  #profileLineupPanel .tc5-screen .tc8-tactical-scene,
  #profileLineupPanel .tc5-screen :is(.tc7-starting,.tc7-automation){
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
  }
  #profileLineupPanel .tc5-screen .tc7-control-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    height:auto!important;
    padding:8px!important;
    overflow:visible!important;
  }
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-control{
    grid-template-columns:54px minmax(86px,.72fr) minmax(0,1fr)!important;
    min-height:58px!important;
    height:auto!important;
    gap:6px!important;
    padding:5px 3px!important;
  }
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-state-image{
    width:50px!important;
    height:50px!important;
  }
  #profileLineupPanel .tc5-screen .tc7-control-grid :is(select,.goat-select-trigger),
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-switch-control .tc5-tactic-switch,
  #profileLineupPanel .tc5-screen .tc7-control-grid .tc5-attack-lanes{
    width:100%!important;
    min-width:134px!important;
  }
  #profileLineupPanel .tc5-screen .tc5-attack-lanes{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  #profileLineupPanel .tc5-attack-lanes span{min-height:40px!important;font-size:.48rem!important}
  #profileLineupPanel .tc7-reaction-canvas{
    position:relative!important;
    inset:auto!important;
    min-height:0!important;
    height:auto!important;
    padding:6px 0 0!important;
    overflow:visible!important;
    background:none!important;
  }
  #profileLineupPanel .tc7-reaction-canvas>img{display:none!important}
  #profileLineupPanel .tc7-reaction-track{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:10px 6px!important;
    min-height:0!important;
    padding:8px 2px 18px!important;
  }
  #profileLineupPanel .tc5-screen .tc5-bottom-bar{
    position:relative!important;
    height:auto!important;
    min-height:0!important;
    margin-top:0!important;
    padding:4px 0 max(12px,env(safe-area-inset-bottom))!important;
  }
  #profileLineupPanel .tc5-screen .tc5-save-cluster{
    position:relative!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
  }
  #profileLineupPanel .tc5-screen .tc5-save-cluster>button{
    grid-column:1!important;
    width:100%!important;
    min-height:46px!important;
  }
}

@media (orientation:landscape) and (max-width:1000px) and (max-height:600px){
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-dashboard{grid-template-columns:minmax(0,1fr)!important}
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-overview-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:0!important;
  }
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-stat:nth-child(3){border-left:1px solid rgba(255,255,255,.08)!important}
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-shell{
    grid-template-columns:minmax(0,1.35fr) minmax(150px,.7fr) minmax(190px,.82fr)!important;
    gap:10px!important;
  }
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-datetime{
    border:0!important;
    border-left:1px solid rgba(255,255,255,.09)!important;
    border-right:1px solid rgba(255,255,255,.09)!important;
    padding:7px 10px!important;
  }
  #profileCalendarPanel .goat-calendar-modern .goat-calendar-next-match-info{padding-left:4px!important}

  #profileLineupPanel #lineupOwnerControls{
    grid-template-columns:minmax(145px,1fr) minmax(145px,1fr) minmax(120px,.72fr) auto!important;
    align-items:end!important;
    gap:6px!important;
  }
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions{
    display:grid!important;
    grid-template-columns:repeat(3,44px)!important;
    gap:6px!important;
    width:auto!important;
  }
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions>button{
    display:grid!important;
    place-items:center!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
    padding:9px!important;
  }
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions>button>span{display:none!important}
  #profileLineupPanel #lineupOwnerControls>.lineup-control-actions>button>img{width:22px!important;height:22px!important;margin:0!important}
  #profileLineupPanel .lineup-workspace:not(.mode-tactics){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"pitch" "squad"!important;
    height:auto!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-squad-panel{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    height:min(330px,78dvh)!important;
    min-height:260px!important;
    overflow:hidden!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupSquadPanel{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupSquadPanel>.lineup-side-panel,
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupSquadPanel>.lineup-left-panel{
    grid-area:auto!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupSquadPanel>.lineup-side-panel{grid-column:1!important;grid-row:1!important}
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupSquadPanel>.lineup-left-panel{grid-column:2!important;grid-row:1!important}
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) :is(.lineup-side-panel,.lineup-left-panel,.lineup-bench-panel,.lineup-available-panel){
    width:100%!important;
    height:100%!important;
    min-height:0!important;
  }
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) #lineupBench,
  #profileLineupPanel .lineup-workspace:not(.mode-tactics) .lineup-available-grid{
    max-height:none!important;
    overflow-y:auto!important;
  }

  .lineup-role-dialog{padding:6px!important}
  .lineup-role-dialog-card{
    width:min(760px,calc(100vw - 12px))!important;
    max-height:calc(100dvh - 12px)!important;
    border-radius:12px!important;
  }
  .lineup-role-dialog-card>header{padding:8px 11px!important}
  .lineup-role-dialog-card h3{font-size:.92rem!important}
  .lineup-role-dialog-body{
    grid-template-columns:minmax(230px,.82fr) minmax(250px,1.18fr)!important;
    gap:8px!important;
    padding:0 11px 8px!important;
    overflow:hidden!important;
  }
  .lineup-role-options{gap:4px!important;min-height:0!important;overflow-y:auto!important}
  .lineup-role-options button{min-height:45px!important;padding:6px 8px!important}
  .lineup-role-options button strong{font-size:.68rem!important}
  .lineup-role-options button span{font-size:.54rem!important;line-height:1.25!important}
  .lineup-role-description{min-height:0!important;padding:10px!important}
  .lineup-role-dialog-card>footer{padding:0 11px 8px!important}
  .lineup-role-dialog-card>footer button{min-height:38px!important}

  .player-modal.player-dossier-shell{overflow:auto!important;overflow-x:hidden!important}
  .player-modal.player-dossier-shell .player-profile-v4{
    display:grid!important;
    grid-template-columns:190px minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    min-height:100dvh!important;
    padding:42px 8px 14px!important;
    overflow:visible!important;
  }
  .player-modal.player-dossier-shell .player-dossier-left{grid-column:1!important;grid-row:1 / span 4!important;display:block!important;min-width:0!important}
  .player-modal.player-dossier-shell .player-dossier-card-wrap .profile-footballer-card{width:160px!important;max-width:160px!important}
  .player-modal.player-dossier-shell .player-dossier-facts{margin-top:7px!important;padding:8px!important}
  .player-modal.player-dossier-shell .player-dossier-facts>div{grid-template-columns:1fr!important}
  .player-modal.player-dossier-shell .player-dossier-facts p{padding:5px 1px!important}
  .player-modal.player-dossier-shell .player-kit-panel-v5,
  .player-modal.player-dossier-shell .player-dossier-actions-left{margin-top:7px!important;padding:8px!important}
  .player-modal.player-dossier-shell .player-kit-layout-v5{grid-template-columns:58px minmax(0,1fr)!important}
  .player-modal.player-dossier-shell .player-kit-visual-v5{width:58px!important;height:64px!important}
  .player-modal.player-dossier-shell .player-dossier-actions-left>div{grid-template-columns:1fr!important}
  .player-modal.player-dossier-shell .player-dossier-actions-left :is(.owner-contract-action,.owner-list-action,.owner-external-action){grid-column:1!important}
  .player-modal.player-dossier-shell .player-share-action{width:100%!important;margin-top:7px!important}
  .player-modal.player-dossier-shell .player-dossier-hero{grid-column:2!important;grid-row:1!important;grid-template-columns:minmax(0,1fr) 92px!important;min-height:112px!important}
  .player-modal.player-dossier-shell .player-dossier-identity{padding:10px 12px!important}
  .player-modal.player-dossier-shell .player-dossier-identity h2{font-size:clamp(1.45rem,4vw,2.1rem)!important}
  .player-modal.player-dossier-shell .player-dossier-club-mark{width:70px!important;height:70px!important;border-radius:16px!important}
  .player-modal.player-dossier-shell .player-dossier-top{grid-column:2!important;grid-row:2!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .player-modal.player-dossier-shell .player-dossier-panel{padding:8px!important}
  .player-modal.player-dossier-shell .player-dossier-analytics{
    grid-column:2!important;
    grid-row:3!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    gap:7px!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
  }
  .player-modal.player-dossier-shell .player-attributes-v4{grid-column:1!important;grid-row:auto!important}
  .player-modal.player-dossier-shell .player-attribute-grid-v4{grid-template-columns:repeat(3,minmax(150px,1fr))!important;height:auto!important;overflow-x:auto!important;padding-bottom:4px!important}
  .player-modal.player-dossier-shell .player-dossier-info-rail{
    grid-column:1!important;
    grid-row:auto!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-template-rows:auto!important;
    gap:7px!important;
  }
  .player-modal.player-dossier-shell .player-dossier-info-rail>*{grid-column:auto!important;grid-row:auto!important;height:auto!important;min-height:150px!important;max-height:none!important}
  .player-modal.player-dossier-shell .player-dossier-info-rail>.player-training-v4{grid-column:1/-1!important;min-height:0!important}
  .player-modal.player-dossier-shell .player-career-v4{grid-column:1!important;grid-row:auto!important;min-height:0!important}
  .player-modal.player-dossier-shell .player-career-table-v4{overflow-x:auto!important}
  .player-modal.player-dossier-shell .player-career-table-v4 table{min-width:600px!important}

  #profileCompetitionsPanel>.goat-luxury-page{box-sizing:border-box!important;width:100%!important;max-width:100%!important;padding-inline:8px!important;overflow-x:hidden!important}
  #profileCompetitionsPanel .competition-primary-switch{width:100%!important;justify-content:flex-start!important;overflow-x:auto!important}
  #profileCompetitionsPanel .competition-primary-switch button{min-width:132px!important;min-height:40px!important;padding-inline:12px!important}
  #profileCompetitionsPanel .competition-toolbar{align-items:stretch!important;flex-direction:column!important;gap:6px!important}
  #profileCompetitionsPanel .competition-toolbar-controls{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;width:100%!important}
  #profileCompetitionsPanel .competition-toolbar-select.streamer{flex:1 1 250px!important;min-width:0!important}
  #profileCompetitionsPanel .competition-toolbar-select.streamer select{width:100%!important;min-width:0!important}
  #profileCompetitionsPanel .competition-table-card{width:100%!important;max-width:100%!important;overflow-x:auto!important}
  #profileCompetitionsPanel .competition-table-card:not(.compact) :is(.competition-table-head,.competition-table-row){
    grid-template-columns:34px minmax(170px,1fr) repeat(4,34px) 54px 42px 42px 94px 42px!important;
    min-width:720px!important;
    padding-inline:5px!important;
    font-size:12px!important;
  }
  #profileCompetitionsPanel .competition-table-card.compact :is(.competition-table-head,.competition-table-row){
    grid-template-columns:34px minmax(180px,1fr) 36px 42px 42px 94px 42px!important;
    min-width:510px!important;
    padding-inline:5px!important;
  }
  #profileCompetitionsPanel :is(.competition-table-head,.competition-table-row)>*{padding-inline:4px!important}
  #profileCompetitionsPanel .competition-overview-layout{grid-template-columns:minmax(0,1fr)!important}
}

@media (orientation:landscape) and (min-width:700px) and (max-width:1180px) and (max-height:900px){
  .mail-modal.is-office-mail .mail-modal-card{width:100%!important;height:100%!important;max-height:100dvh!important}
  .mail-modal.is-office-mail .mail-modal-body,
  .mail-modal.is-office-mail .mail-modal-body.mail-nav-collapsed{
    grid-template-columns:124px minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    height:100%!important;
  }
  .mail-modal.is-office-mail .mail-tabs{
    display:flex!important;
    flex-direction:column!important;
    padding:42px 7px 8px!important;
    overflow:hidden!important;
    border-right:1px solid var(--mail-border)!important;
    border-bottom:0!important;
  }
  .mail-modal.is-office-mail .mail-nav-primary{display:grid!important;gap:4px!important}
  .mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button{
    display:grid!important;
    grid-template-columns:22px minmax(0,1fr)!important;
    place-items:center start!important;
    width:100%!important;
    min-height:36px!important;
    padding:6px 8px!important;
  }
  .mail-modal.is-office-mail .mail-tabs :is(.mail-nav-primary,.mail-nav-footer)>button>span,
  .mail-modal.is-office-mail .mail-tabs button>b{display:block!important;font-size:10px!important}
  .mail-modal.is-office-mail .mail-nav-footer{display:grid!important;margin-top:auto!important}
  .mail-modal.is-office-mail .mail-nav-user{display:none!important}
  .mail-modal.is-office-mail .mail-two-pane{
    grid-template-columns:minmax(210px,35%) minmax(0,65%)!important;
    height:100%!important;
  }
  .mail-modal.is-office-mail .mail-two-pane .mail-conversation-pane,
  .mail-modal.is-office-mail .mail-two-pane .mail-reading-pane{display:grid!important;min-width:0!important;min-height:0!important}
  .mail-modal.is-office-mail .mail-two-pane .mail-reading-pane{display:block!important;overflow:hidden!important}
  .mail-modal.is-office-mail .mail-detail-back{display:none!important}
  .mail-modal.is-office-mail .mail-thread{grid-template-columns:34px minmax(0,1fr)!important;gap:7px!important;min-height:74px!important;padding:8px!important}
  .mail-modal.is-office-mail .mail-thread .mail-avatar{width:34px!important;height:34px!important}
  .mail-modal.is-office-mail .mail-thread-copy header strong{font-size:14px!important}
  .mail-modal.is-office-mail .mail-thread-copy>b,.mail-modal.is-office-mail .mail-thread-copy>p{font-size:11px!important}
  .mail-modal.is-office-mail .mail-search{height:40px!important;margin:6px 8px!important;padding-inline:9px!important}
  .mail-modal.is-office-mail .mail-search input{height:38px!important;font-size:12px!important}
  .mail-modal.is-office-mail .mail-message-detail{grid-template-rows:70px minmax(0,1fr) auto!important}
  .mail-modal.is-office-mail .mail-detail-header{min-height:70px!important;padding:9px 12px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent{grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent .mail-avatar{width:38px!important;height:38px!important}
  .mail-modal.is-office-mail .mail-detail-correspondent-copy>strong{font-size:16px!important}
  .mail-modal.is-office-mail .mail-message-detail-scroll{padding:16px 18px 22px!important}
  .mail-modal.is-office-mail .mail-detail-subject-row h3{font-size:20px!important}
  .mail-modal.is-office-mail .mail-message-detail-body{font-size:13px!important;line-height:1.5!important}
  .mail-modal.is-office-mail .mail-quick-composer{min-height:58px!important;padding:6px 9px!important}
}

/* 3.0A.50.35.162 responsive Mail/Contracts corrections.
   Tablet Mail is deliberately single-pane: the Inbox (or Sent list) owns the
   available width until a message is selected, then the message owns it and
   exposes its Back control. This avoids two half-width panes competing with
   the Office navigation rail. */
@media (orientation:landscape) and (min-width:700px) and (max-width:1180px) and (max-height:900px){
  .mail-modal.is-office-mail .mail-two-pane{grid-template-columns:minmax(0,1fr)!important}
  .mail-modal.is-office-mail .mail-two-pane:not(.has-selection) .mail-conversation-pane{display:grid!important}
  .mail-modal.is-office-mail .mail-two-pane:not(.has-selection) .mail-reading-pane{display:none!important}
  .mail-modal.is-office-mail .mail-two-pane.has-selection .mail-conversation-pane{display:none!important}
  .mail-modal.is-office-mail .mail-two-pane.has-selection .mail-reading-pane{display:block!important;width:100%!important}
  .mail-modal.is-office-mail .mail-detail-back{display:grid!important;place-items:center!important}
  .mail-modal.is-office-mail .mail-view-contacts,
  .mail-modal.is-office-mail .mail-contacts-shell{box-sizing:border-box;width:100%!important;max-width:none!important}
}

@media (max-width:1180px){
  #profileContractsPanel .contract-table-panel.agency .finance-table-wrap{
    padding-bottom:max(96px,env(safe-area-inset-bottom))!important;
    scroll-padding-bottom:160px!important;
  }
  #profileContractsPanel .contract-review-popover{
    position:fixed!important;
    z-index:10050!important;
    inset:auto max(14px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) auto!important;
    width:min(320px,calc(100vw - 28px))!important;
    max-height:min(420px,70dvh)!important;
    overflow-y:auto!important;
  }
}
.collector-achievement-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.collector-achievement-category{padding:16px;border:1px solid rgba(229,195,87,.22);border-radius:16px;background:linear-gradient(145deg,rgba(25,20,12,.82),rgba(8,8,7,.72));box-shadow:inset 0 1px rgba(255,255,255,.04)}
.collector-achievement-category>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.collector-achievement-category>header div{display:grid;gap:3px}.collector-achievement-category>header span{color:#e5c357;font-size:.66rem;letter-spacing:.16em}.collector-achievement-category>header strong{color:#fff;font-size:1.02rem}.collector-achievement-category>header small{color:#a99f8c;text-align:right;font-size:.7rem}
.legacy-content-shell>header h3{font-size:clamp(1.15rem,1.8vw,1.55rem)!important;letter-spacing:.08em;color:#f5e7bd!important}
#profileLegacyPanel .collector-achievement-category>header .collector-category-name{color:#e5c357!important;-webkit-text-fill-color:#e5c357!important;font-size:1.16rem;letter-spacing:.08em}
.collector-achievement-category>div{display:grid;gap:9px}.collector-achievement{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;align-items:center;padding:10px 11px;border-radius:11px;background:rgba(255,255,255,.035)}
.collector-achievement>div:first-child{display:grid;gap:3px}.collector-achievement strong{color:#ede8de;font-size:.82rem}.collector-achievement small{color:#9d9688;font-size:.7rem;line-height:1.4}.collector-achievement .mission-progress{grid-column:1/-1}.collector-achievement>b{color:#817a6e;font-size:.65rem;letter-spacing:.11em}.collector-achievement.complete,.collector-achievement.claimable{background:rgba(229,195,87,.08)}.collector-achievement.claimed{opacity:.72}
.collector-achievement .mission-progress span{min-width:0;background:linear-gradient(90deg,#8d6b24,#e5c357)!important}
.legacy-promo-shell{margin:0 0 clamp(28px,5vh,64px);padding:0;border:0;background:transparent;box-shadow:none}
.legacy-promo-shell .collector-achievement-grid{display:grid;grid-template-columns:minmax(0,520px);justify-content:center}
.collector-promo-achievement{display:grid;grid-template-columns:1fr;gap:18px;padding:22px 24px 24px}
.collector-promo-achievement>header{margin:0}.collector-promo-achievement>header div{gap:5px}.collector-promo-achievement>header div small{color:#d9d1c2!important;text-align:left}
.collector-promo-reward{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px 16px}
.collector-promo-reward-copy{display:flex;align-items:baseline;justify-content:space-between;gap:18px;grid-column:1/-1}
.collector-promo-reward-copy>strong{color:#f5e7bd!important;font-size:.86rem!important}.collector-promo-reward-copy>small{color:#aaa18f;font-size:.7rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.collector-promo-reward .mission-progress{grid-column:1/2;margin-bottom:5px}.collector-promo-reward .milestone-claim-button{justify-self:end}
.collector-promo-achievement.claimed{opacity:.72}.collector-promo-achievement:is(.complete,.claimable){background:linear-gradient(145deg,rgba(45,36,18,.88),rgba(12,10,7,.84))}
.collector-achievement.claimed,
.collector-promo-achievement.claimed{
  opacity:1;
  border-color:rgba(114,245,160,.46);
  background:linear-gradient(145deg,rgba(35,122,66,.92),rgba(18,85,43,.94));
  color:#fff;
}
#profileLegacyPanel .collector-achievement.claimed :is(strong,small,b),
#profileLegacyPanel .collector-promo-achievement.claimed :is(strong,small,b){color:#fff!important;-webkit-text-fill-color:#fff!important}
.collector-achievement.claimed .mission-progress span,
.collector-promo-achievement.claimed .mission-progress span{background:linear-gradient(90deg,#9ff4c0,#fff)!important}
/* An earned-but-unclaimed reward keeps the ordinary achievement card. Only
   its explicit Claim action signals readiness in the success colour. */
#profileLegacyPanel .collector-achievement.claimable .milestone-claim-button,
#profileLegacyPanel .collector-promo-achievement.claimable .milestone-claim-button{
  border-color:rgba(114,245,160,.62)!important;
  background:#237a42!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
@media(max-width:760px){.collector-promo-reward{grid-template-columns:1fr}.collector-promo-reward-copy{align-items:flex-start;flex-direction:column;gap:4px}.collector-promo-reward .mission-progress{grid-column:1}.collector-promo-reward .milestone-claim-button{justify-self:start;width:max-content}}
.collector-promo-choice-overlay{z-index:20050;background:rgba(3,2,1,.42)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
.collector-promo-choice{height:auto!important;min-height:0!important;width:min(390px,calc(100vw - 32px))!important;max-width:390px!important;gap:14px!important;padding:22px!important;border-color:rgba(229,195,87,.38)!important;background:linear-gradient(145deg,rgba(32,27,19,.72),rgba(11,10,8,.66))!important;backdrop-filter:blur(18px) saturate(115%)!important;-webkit-backdrop-filter:blur(18px) saturate(115%)!important;box-shadow:0 24px 64px rgba(12,8,3,.48),inset 0 1px rgba(255,255,255,.10)!important}
.collector-promo-choice h3{margin:0;color:#fff;text-align:center;text-wrap:balance}
.collector-promo-choice label{display:grid}.collector-promo-choice select{width:100%;min-height:44px;padding:0 12px;border:1px solid rgba(229,195,87,.34);border-radius:10px;background:rgba(17,14,10,.76);color:#fff;font:inherit}
.collector-promo-choice footer{width:100%;gap:9px!important}
.collector-promo-choice .collector-promo-cancel{border-color:#b73e3e!important;background:linear-gradient(135deg,#a72424,#701717)!important;color:#fff!important}
.collector-promo-choice .positive{border-color:#3b9a5b!important;background:linear-gradient(135deg,#237a42,#12552b)!important;color:#fff!important}
.collector-promo-choice-message{margin:0!important;color:#ff9e9e!important;font-size:.75rem}.collector-promo-choice-message:empty{display:none}
.mail-modal.is-office-mail .mail-compose.is-friendly-compose{width:100%;max-width:none!important;min-height:100%;margin:0!important;padding:clamp(28px,5vh,64px) clamp(28px,7vw,110px)!important}
.mail-modal.is-office-mail .mail-compose.is-friendly-compose form{align-content:start;width:100%;max-width:none}
.mail-modal.is-office-mail .mail-compose.is-friendly-compose .mail-compose-actions button:first-child{border-color:#b73e3e!important;background:linear-gradient(135deg,#a72424,#701717)!important;color:#fff!important}
.mail-modal.is-office-mail .mail-compose.is-friendly-compose .mail-compose-actions button:last-child{border-color:#3b9a5b!important;background:linear-gradient(135deg,#237a42,#12552b)!important;color:#fff!important}
.mail-modal.is-office-mail .mail-recipient-suggestions span{color:#fff!important}.mail-modal.is-office-mail .mail-recipient-suggestions small{color:#e5c357!important}
.office-app-scroll .goat-calendar-upcoming-item.is-friendly{border-color:rgba(212,169,79,0.34)!important;background:linear-gradient(145deg,rgba(23,21,15,0.58),rgba(13,12,10,0.92))!important}
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date{background:rgba(76,57,21,0.14)!important;color:#d9d1c2!important}
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b{color:#d9d1c2!important}

/* Final friendly-fixture colour contract. Keep both the full Club Calendar
   and the Office tablet neutral gray; later legacy green rules must not win. */
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly,
.goat-calendar-upcoming-item.is-friendly.is-development-example{
  border-color:rgba(212,169,79,0.42)!important;
  background:linear-gradient(145deg,rgba(23,21,15,0.72),rgba(13,12,10,0.96))!important;
  box-shadow:inset 3px 0 #d4a94f!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date,
.goat-calendar-upcoming-item.is-friendly.is-development-example .goat-calendar-upcoming-date{
  border-color:rgba(212,169,79,0.3)!important;
  background:rgba(76,57,21,0.16)!important;
  color:#fbf7ef!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy>b,
.goat-calendar-upcoming-item.is-friendly.is-development-example .goat-calendar-upcoming-copy>b{
  color:#fbf7ef!important;
}

/* Friendly cards keep their neutral-gray shell, while shared date and match
   symbols use the same gold treatment as every other upcoming fixture. */
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date strong,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date strong,
.goat-calendar-upcoming-item.is-friendly.is-development-example .goat-calendar-upcoming-date strong{
  color:#f0d79b!important;
}
#profileCalendarPanel .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date small,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-date small,
.goat-calendar-upcoming-item.is-friendly.is-development-example .goat-calendar-upcoming-date small{
  color:#e5c377!important;
}
#profileCalendarPanel .goat-calendar-modern .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy-icon-img,
.office-app-scroll .goat-calendar-upcoming-item.is-friendly .goat-calendar-upcoming-copy-icon-img,
.goat-calendar-upcoming-item.is-friendly.is-development-example .goat-calendar-upcoming-copy-icon-img{
  filter:brightness(0) saturate(100%) invert(78%) sepia(31%) saturate(802%) hue-rotate(2deg) brightness(89%) contrast(88%)!important;
  opacity:.92!important;
}

/* Once the foil cap has detached, the dark tear guide must disappear. Leaving
   it behind looked like a one-pixel strip of the concealed player card. */
.halftime-pack-experience:is([data-pack-state="opening"],[data-pack-state="opened"],[data-pack-state="collecting"]) .halftime-pack-tear-seam{
  opacity:0;
}

/* Collection album sort control. Its coordinate space has the exact aspect
   ratio used by collection-page.png with background-size:cover, so the circle
   remains centred inside the painted magnifying-glass lens at every viewport. */
.halftime-collection-sort-artboard{
  --collection-sort-x:50%;
  --collection-sort-y:50%;
  --collection-sort-scale:1;
  position:fixed;
  z-index:38;
  top:50%;
  left:50%;
  width:max(100vw,calc(100vh * 1672 / 941));
  height:max(100vh,calc(100vw * 941 / 1672));
  pointer-events:none;
  opacity:0;
  transform:translate(-50%,-50%);
}
.halftime-collection-sort-artboard[data-layout-ready="true"]{opacity:1}
.halftime-collection-view:not(.is-album-section) .halftime-collection-sort-artboard{display:none}
.halftime-collection-sort{
  position:absolute;
  z-index:1;
  top:var(--collection-sort-y);
  left:var(--collection-sort-x);
  display:grid;
  width:5.3%;
  aspect-ratio:1;
  padding:0;
  place-items:center;
  border:0;
  border-radius:50%;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  color:#f3d98f;
  pointer-events:auto;
  cursor:pointer;
  transform:translate(-50%,-50%);
  transform-origin:center;
  transition:filter .18s ease;
}
.halftime-collection-sort::before{
  content:"";
  position:absolute;
  inset:0;
  border:1px solid rgba(244,207,119,.42);
  border-radius:50%;
  background:radial-gradient(circle at 35% 24%,rgba(255,255,255,.08),transparent 38%),linear-gradient(145deg,rgba(48,36,24,.10),rgba(8,7,6,.06));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 3px 10px rgba(0,0,0,.08);
  backdrop-filter:blur(2px) saturate(108%);
  -webkit-backdrop-filter:blur(2px) saturate(108%);
  pointer-events:none;
  transform:scale(var(--collection-sort-scale));
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.halftime-collection-sort:is(:hover,:focus-visible){filter:brightness(1.13);outline:none}
.halftime-collection-sort:is(:hover,:focus-visible)::before{border-color:rgba(255,231,166,.78);box-shadow:0 0 0 2px rgba(229,195,87,.3),0 0 18px rgba(229,195,87,.18)}
.halftime-collection-sort:active::before{transform:scale(calc(var(--collection-sort-scale) * .94))}
.halftime-collection-sort-icon{display:grid;width:51%;height:51%;place-items:center;transform:scale(var(--collection-sort-scale));transition:transform .18s ease}
.halftime-collection-sort-icon svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.halftime-collection-sort-icon svg[data-icon-source="phosphor"]{fill:currentColor;stroke:none}

/* Squad list: attributes/statistics switch and configurable season tables. */
#profileSquadPanel .squad-filter-actions{
  display:flex;
  grid-column:1 / -1;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}
#profileSquadPanel .squad-filter-actions .clear-button{min-width:132px}
.squad-list-data-toggle{
  display:inline-grid;
  grid-template-columns:repeat(2,minmax(112px,1fr));
  justify-self:end;
  padding:3px;
  border:1px solid rgba(212,169,79,.26);
  border-radius:10px;
  background:rgba(8,7,6,.78);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.squad-list-data-toggle button{
  min-height:38px;
  padding:6px 15px;
  border:0;
  border-radius:7px;
  color:#bdb3a2;
  background:transparent;
  font-family:var(--body);
  font-size:.66rem;
  font-weight:850;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
}
.squad-list-data-toggle button:hover,
.squad-list-data-toggle button:focus-visible{color:#fbf7ef;background:rgba(212,169,79,.10);outline:none}
.squad-list-data-toggle button.active,
.squad-list-data-toggle button[aria-pressed="true"]{
  color:#1a1207;
  background:linear-gradient(180deg,#f0d79b 0%,#d4a94f 48%,#9c7128 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.44),0 5px 14px rgba(212,169,79,.16);
}
#profileSquadPanel .card-grid.squad-statistics-mode{overflow-x:auto;overflow-y:visible}
.squad-statistics-lists{display:grid;gap:22px;min-width:100%;padding:2px}
.squad-statistics-group{display:grid;gap:8px;min-width:100%}
.squad-statistics-group-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  padding:2px 5px;
}
.squad-statistics-group-title>div{display:grid;gap:2px}
.squad-statistics-group-title strong{color:#fbf7ef;font-family:var(--display);font-size:1rem;letter-spacing:.025em;text-transform:uppercase}
.squad-statistics-group-title small{color:#938a7c;font-size:.57rem}
.squad-statistics-table{
  position:relative;
  isolation:isolate;
  width:max-content;
  min-width:100%;
  overflow:visible;
  border:1px solid var(--goat-glass-edge,rgba(212,169,79,.28));
  border-radius:13px;
  background:var(--goat-glass-surface,linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.015) 48%,rgba(212,169,79,.07)),rgba(8,7,6,.5));
  box-shadow:0 12px 34px rgba(1,1,1,.24),inset 0 1px 0 var(--goat-glass-highlight,rgba(255,255,255,.14)),inset 0 -1px 0 rgba(212,169,79,.10);
  -webkit-backdrop-filter:var(--goat-glass-filter,blur(20px) saturate(140%));
  backdrop-filter:var(--goat-glass-filter,blur(20px) saturate(140%));
}
.squad-statistics-row{
  display:grid;
  grid-template-columns:72px 82px minmax(210px,1.7fr) 58px 64px repeat(var(--squad-stat-columns),minmax(102px,.72fr));
  align-items:center;
  width:max-content;
  min-width:100%;
  min-height:60px;
  gap:7px;
  box-sizing:border-box;
  padding:8px 14px;
  border:0;
  border-left:3px solid color-mix(in srgb,var(--rarity-color,#8a7550) 55%,transparent);
  border-bottom:1px solid rgba(212,169,79,.12);
  color:#e5e0d4;
  background:linear-gradient(105deg,color-mix(in srgb,var(--rarity-color,#8a7550) 10%,rgba(255,255,255,.055)),rgba(255,255,255,.018) 58%,rgba(212,169,79,.025));
  font:inherit;
  text-align:left;
  appearance:none;
}
button.squad-statistics-row{cursor:pointer}
button.squad-statistics-row:nth-child(odd){background:linear-gradient(105deg,color-mix(in srgb,var(--rarity-color,#8a7550) 13%,rgba(255,255,255,.07)),rgba(255,255,255,.03) 58%,rgba(212,169,79,.04))}
button.squad-statistics-row:hover,
button.squad-statistics-row:focus-visible{
  position:relative;
  z-index:1;
  border-left-color:color-mix(in srgb,var(--rarity-color,#8a7550) 78%,#d4a94f);
  background:linear-gradient(105deg,color-mix(in srgb,var(--rarity-color,#8a7550) 18%,rgba(255,255,255,.11)),rgba(255,255,255,.055) 62%,rgba(212,169,79,.065));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(212,169,79,.12),0 8px 22px rgba(0,0,0,.14);
  outline:none;
}
.squad-statistics-row.squad-list-header{
  min-height:52px;
  border-left-color:transparent;
  background:linear-gradient(105deg,rgba(255,255,255,.10),rgba(255,255,255,.035) 55%,rgba(212,169,79,.085));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),inset 0 -1px 0 rgba(212,169,79,.08);
  font-family:var(--mono);
  font-size:.59rem;
  letter-spacing:.035em;
}
.squad-statistics-header>.squad-list-sort{justify-self:start;text-align:left}
.squad-statistics-header>.squad-list-sort:nth-child(n+6){justify-self:end;text-align:right}
.squad-statistics-header>.squad-list-sort:nth-child(n+6) span{white-space:normal;line-height:1.05}
.squad-statistics-row .squad-list-player,
.squad-statistics-row .squad-list-overall{justify-self:start;text-align:left}
.squad-statistics-header>.squad-list-sort:nth-child(1),
.squad-statistics-header>.squad-list-sort:nth-child(2),
.squad-statistics-header>.squad-list-sort:nth-child(4),
.squad-statistics-row .squad-list-nation,
.squad-statistics-row .squad-list-position,
.squad-statistics-row .squad-statistic-age{justify-self:center;text-align:center}
.squad-statistics-row .squad-list-overall{place-items:center;text-align:center}
.squad-statistic-age{color:#d9d1c2;font-size:.72rem;font-weight:800;font-variant-numeric:tabular-nums}
.squad-statistic-value{
  justify-self:end;
  color:#fbf7ef;
  font-size:.82rem;
  font-weight:780;
  font-variant-numeric:tabular-nums;
  text-align:right;
  white-space:nowrap;
}
.squad-statistic-value.rating{color:#f0d79b;font-weight:900}
.squad-statistic-value.money{color:#e5c377;font-size:.7rem;font-weight:850}
.squad-statistics-row:not(.squad-list-header) :is(.squad-list-position,.squad-statistic-age,.squad-list-overall){font-size:.82rem}
.squad-statistics-row:not(.squad-list-header) .squad-list-nation small{font-size:.62rem}
.squad-stat-context-menu{
  position:fixed;
  z-index:4600;
  width:min(230px,calc(100vw - 20px));
  padding:8px;
  overflow:hidden;
  border:1px solid rgba(212,169,79,.34);
  border-radius:12px;
  background:linear-gradient(155deg,rgba(28,24,17,.99),rgba(10,9,7,.99));
  box-shadow:0 20px 48px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.045);
}
.squad-stat-context-menu header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 4px 8px}
.squad-stat-context-menu header span{color:#e5c377;font-size:.55rem;font-weight:900;letter-spacing:.1em}
.squad-stat-context-menu header button{width:28px;min-height:26px;padding:0;font-size:.9rem}
.squad-stat-context-menu>div,
.squad-stat-context-choices{display:grid;gap:4px;max-height:min(330px,60vh);overflow:auto}
.squad-stat-context-menu button{
  min-height:34px;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:7px;
  color:#d9d1c2;
  background:transparent;
  font:750 .65rem/1.2 var(--body);
  text-align:left;
  cursor:pointer;
}
.squad-stat-context-menu button:hover,
.squad-stat-context-menu button:focus-visible{border-color:rgba(212,169,79,.32);color:#fbf7ef;background:rgba(212,169,79,.11);outline:none}
.squad-stat-context-menu button:disabled{color:#625c52;cursor:not-allowed}
.squad-stat-context-menu p{margin:5px;color:#938a7c;font-size:.62rem;line-height:1.4}
@media(max-width:720px){
  #profileSquadPanel .squad-filter-actions{align-items:stretch;flex-direction:column}
  #profileSquadPanel .squad-filter-actions .clear-button{width:100%}
  .squad-list-data-toggle{width:100%;box-sizing:border-box}
  .squad-statistics-group-title{align-items:start;flex-direction:column;gap:3px}
  .squad-statistics-row{grid-template-columns:62px 72px minmax(176px,1.55fr) 52px 58px repeat(var(--squad-stat-columns),minmax(94px,.72fr));padding-inline:10px}
}

/* A cover image is right-aligned on viewports narrower than its 1672:941
   ratio. The artboard uses the identical alignment, keeping lens and control
   together instead of tying the control to arbitrary viewport pixels. */
@media(max-aspect-ratio:1672/941){
  .halftime-collection-view::before{background-position:right center}
  .halftime-collection-sort-artboard{right:0;left:auto;transform:translateY(-50%)}
}

/* Phones reuse the established bookmark-select treatment for sorting. The
   artwork magnifier remains a desktop/tablet control and is hidden here. */
@media(max-width:760px),(max-width:1000px) and (max-height:600px){
  .halftime-collection-sort-artboard{display:none}
  .halftime-mobile-album-controls #halftimeMobileAlbumSort{box-sizing:border-box;width:100%!important;min-width:0;height:42px!important;min-height:42px}
}

@media(prefers-reduced-motion:reduce){.halftime-collection-sort{transition:none}}

/* Phone Mail contacts own one bounded vertical scroll pane. The surrounding
   Office screen is intentionally clipped, so the Contacts view must not grow
   with its rows or hand the gesture to the non-scrolling tablet shell. */
@media (max-width:1000px){
  .mail-modal.is-office-mail .mail-view-contacts{
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
  }
  .mail-modal.is-office-mail .mail-contacts-shell{
    box-sizing:border-box!important;
    width:100%!important;
    min-height:min-content!important;
    padding-bottom:max(28px,calc(18px + env(safe-area-inset-bottom)))!important;
  }
}

/* Market artwork registration.
   The room artwork is a 1586x992 cover layer with an 8px bleed and a 1.008
   layer scale. app.js exposes that layer's real rendered scale and mapped
   canonical top edge. The foreground remains the accepted 2560x1440 Market
   composition (1540px stage plus its canonical 1.1 presentation scale), then
   follows the artwork as one hit-test-correct unit at smaller desktops. */
@media(min-width:1041px){
  body.market-management-page>.page-shell{
    zoom:1!important;
  }
  body.market-management-page #profileMarketPanel .market-artwork-frame{
    position:fixed!important;
    z-index:3;
    top:var(--market-artwork-stage-top,204px)!important;
    left:calc(50vw - 770px)!important;
    width:1540px!important;
    height:auto!important;
    margin:0!important;
    transform:scale(var(--market-artwork-scale,1));
    transform-origin:top center;
  }
  body.market-management-page #profileView #profileMarketPanel .market-artwork-frame .market-display-stack{
    box-sizing:border-box!important;
    width:1540px!important;
    max-width:1540px!important;
    margin:0!important;
    padding-top:172px!important;
    transform:scale(1.1)!important;
    transform-origin:top center!important;
  }
  body.market-layout-applied[data-market-layout-mode="players"] #profileView #profileMarketPanel .market-artwork-frame .market-toolbar{
    margin-top:38px!important;
  }
  body.market-layout-applied[data-market-layout-mode="packs"] #profileView #profileMarketPanel .market-artwork-frame .pack-market-inventory{
    height:196px!important;
    min-height:196px!important;
    max-height:196px!important;
    margin-top:38px!important;
    transform:translate(var(--ml-seller-x),var(--ml-seller-y))!important;
  }
  body.market-management-page #profileView #profileMarketPanel .market-artwork-frame .market-pagination{
    top:12px!important;
    margin-top:12px!important;
  }
}

.player-profile-contact-actions{display:flex;gap:8px;width:100%}.player-profile-contact-actions>button{flex:1;min-width:0;width:auto;padding:12px 5px}.player-enquire-action{border:1px solid #785b34;border-radius:8px;background:#322518;color:#f9e6c5;font:inherit;font-weight:700;cursor:pointer}.player-enquire-action.is-sent{background:#238346;color:#fff;border-color:#238346}.player-position-list-v4>button{color:inherit;cursor:pointer;font:inherit;width:100%;min-width:0}.player-position-list-v4>button.secondary{color:#c5a97b}.player-position-list-v4>button.is-selected{background:#ffffff12;border-radius:6px}.player-position-list-v4>button:focus-visible{outline:2px solid #d3ae68}.player-attributes-v4 header small{font-size:11px;color:#c5ad88}.player-enquire-action:disabled{cursor:default}
.player-modal.player-dossier-shell .player-profile-contact-actions{display:flex!important;align-items:stretch!important;gap:8px!important;margin-top:7px}.player-modal.player-dossier-shell .player-profile-contact-actions>button{flex:1 1 0!important;width:0!important;min-width:0!important;min-height:32px!important;margin:0!important;padding:8px 3px!important;align-self:stretch!important;font:800 .59rem/1 var(--body)!important}.player-modal.player-dossier-shell .player-profile-contact-actions .player-enquire-action.is-sent{background:#238346!important;color:#fff!important;border-color:#238346!important}

.player-position-list-v4 button[aria-pressed="true"]{outline:1px solid #ca9c50;background:#ffffff12!important}

/* Collection artwork and every desktop control share one contained artboard.
   These ratios retain the existing illustrated composition at 1672:941. */
@media (min-width:761px) and (min-height:601px), (orientation:landscape) {
 .halftime-collection-view{--collection-board-w:min(100vw,calc(100dvh * 1672 / 941));--collection-board-h:calc(var(--collection-board-w) * 941 / 1672);--collection-board-y:max(calc((100dvh - var(--collection-board-h))/2),calc(98px - var(--collection-board-h)*.09604),calc(136px - var(--collection-board-h)*.1674));height:100%;min-height:0}
 .halftime-collection-view::before{inset:auto;left:calc((100vw - var(--collection-board-w))/2);top:var(--collection-board-y);width:var(--collection-board-w);height:var(--collection-board-h);background-size:100% 100%;background-position:center}
 .halftime-album{height:55.1%!important;min-height:0!important}
 .halftime-album-shell{position:fixed;left:calc((100vw - var(--collection-board-w))/2 + var(--collection-board-w)*.00266);top:calc(var(--collection-board-y) - var(--collection-board-h)*.07585);width:calc(var(--collection-board-w)*.98459);height:auto;aspect-ratio:1672/941;transform:none}
 .halftime-collection-tabs{position:fixed;left:calc((100vw - var(--collection-board-w))/2 + var(--collection-board-w)*.89928);top:calc(var(--collection-board-y) + var(--collection-board-h)*.29104);right:auto;width:max-content;max-width:calc(var(--collection-board-w)*.10);gap:calc(var(--collection-board-h)*.0115);transform:rotate(14deg)}
 .halftime-collection-tabs button{font-size:calc(var(--collection-board-w)*.02088)}
 .halftime-collection-sort-artboard{width:var(--collection-board-w);height:var(--collection-board-h);top:calc(var(--collection-board-y) + var(--collection-board-h)/2);left:50%;right:auto;transform:translate(-50%,-50%)}
 #halftimeCollectionBack{left:calc((100vw - var(--collection-board-w))/2 + var(--collection-board-w)*.198);top:calc(var(--collection-board-y) + var(--collection-board-h)*.09604)}
 .halftime-album-sub-bookmarks{padding-left:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
 .halftime-album-sub-bookmark{flex-shrink:0}
}
@media (max-width:760px) and (orientation:portrait), (max-width:1000px) and (max-height:600px) and (orientation:portrait) {
 body.halftime-collection-background{height:auto;min-height:100dvh;overflow-y:auto;overflow-x:hidden}
 body.halftime-collection-background .page-shell{height:auto;min-height:0}
 .halftime-collection-view{position:relative;display:flex;flex-direction:column;gap:12px;height:auto;min-height:0;padding-top:8px;overflow:visible}
 .halftime-collection-tabs{position:relative;inset:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;max-width:none;gap:22px;transform:none;order:0}
 .halftime-collection-tabs button{font-size:.85rem}
 .halftime-mobile-album-controls{position:relative;inset:auto;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1fr);width:calc(100% - 68px);height:44px;align-self:flex-end;order:1}
 .halftime-mobile-album-controls select{font:800 12px/1 var(--body)!important;padding:0 22px 0 8px!important;letter-spacing:.01em}
 .halftime-collection-panel,.halftime-collection-view.is-album-section .halftime-album-stage{position:relative;inset:auto;width:100%;height:max(400px,calc(100dvh - 240px));min-height:0;order:2;overflow:visible}
 .halftime-album-shell{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;transform:none}
 .halftime-album{position:absolute;top:0;bottom:6px;left:1%;width:98%;height:calc(100% - 6px)!important;min-height:0!important;transform:none}
 .halftime-album-art,.halftime-album-main-bookmarks,.halftime-album-sub-bookmarks{display:none}
 #halftimeCollectionBack{position:absolute!important;top:34px!important;left:0!important}
}
/* Dialog actions remain reachable with a long previous squad on a phone. */
#goatWorldChoiceDialog .goat-world-choice-card{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}

/* Owner review: phone landscape uses the same artwork coordinates as desktop.
   Reserve the existing header before scaling; do not float tabs outside the art. */
@media (max-width:1000px) and (orientation:landscape) {
 body.halftime-collection-background{height:100dvh;min-height:0;overflow:hidden}
 body.halftime-collection-background .page-shell{height:100%;min-height:0}
 .halftime-collection-view{--collection-board-w:min(100vw,calc((100dvh - 148px)*1672/941));--collection-board-y:max(calc((100dvh - var(--collection-board-h))/2),calc(148px - var(--collection-board-h)*.09604));display:grid;height:100%;min-height:0;padding:0}
 .halftime-collection-panel,.halftime-collection-view.is-album-section .halftime-album-stage{position:static;width:100%;height:100%;min-height:0}
 .halftime-album-shell{top:calc(var(--collection-board-y) - var(--collection-board-h)*.07585);left:calc((100vw - var(--collection-board-w))/2 + var(--collection-board-w)*.00266);right:auto;bottom:auto;height:auto}
 .halftime-album-art{display:block}
 .halftime-album{top:24.7%;bottom:auto;left:20.77%;width:60.145%;transform:none}
 .halftime-collection-tabs{display:flex;flex-direction:column;align-items:flex-start;justify-content:initial}
 .halftime-collection-tabs button{font-size:calc(var(--collection-board-w)*.02088)}
 .halftime-collection-tab-separator{font-size:calc(var(--collection-board-w)*.0068)}
 .halftime-mobile-album-controls{position:fixed;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) minmax(0,1fr);gap:4px;left:calc((100vw - var(--collection-board-w))/2 + var(--collection-board-w)*.16);top:calc(var(--collection-board-y) + var(--collection-board-h)*.8);right:auto;width:calc(var(--collection-board-w)*.68);height:44px;z-index:36}
 .halftime-mobile-album-controls label{min-width:0}
 .halftime-mobile-album-controls select{height:44px;font:600 12px/18px var(--body);letter-spacing:0}
 .halftime-pocket-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:3px}
 .halftime-page-leather,.halftime-album-page.--left .halftime-page-leather,.halftime-album-page.--right .halftime-page-leather{padding:3px}
 .halftime-collection-view.is-album-section #halftimeCollectionBack{top:calc(var(--collection-board-y) + var(--collection-board-h)*.09604)}
}

/* Owner review: Close Account follows the shared warm confirmation surface.
   Actions are scoped here; other accepted dialogs retain their geometry. */
#closeAccountModal{padding:16px;font-family:var(--body)}
#closeAccountModal .close-account-backdrop{background:rgba(2,2,2,.46);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
#closeAccountModal .close-account-card{box-sizing:border-box;width:min(480px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;padding:28px;border:1px solid var(--goat-glass-edge);border-radius:18px;background:var(--goat-glass-surface);box-shadow:0 28px 80px rgba(0,0,0,.42),inset 0 1px 0 var(--goat-glass-highlight);backdrop-filter:var(--goat-glass-filter);-webkit-backdrop-filter:var(--goat-glass-filter)}
#closeAccountModal h2{margin:0 0 16px;color:#fbf7ef;font:700 16px/1.4 var(--body);letter-spacing:normal;text-transform:none}
#closeAccountModal .close-account-card>p{color:#d9d1c2;font:400 14px/1.6 var(--body)}
#closeAccountModal label{margin-top:20px;gap:8px;color:#d9d1c2;font:600 12px/18px var(--body);letter-spacing:normal;text-transform:none}
#closeAccountModal input{min-height:44px;border:1px solid rgba(212,169,79,.35);border-radius:8px;background:rgba(12,10,8,.7);color:#fbf7ef;font:400 14px/20px var(--body)}
#closeAccountModal input:focus-visible{outline:2px solid #d4a94f;outline-offset:2px}
#closeAccountModal .close-account-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
#closeAccountModal .close-account-actions button{box-sizing:border-box;min-width:0;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:8px;clip-path:none;transform:none;background-image:none;color:#fff;font:600 12px/18px var(--body);letter-spacing:normal;text-transform:none;text-shadow:none}
#closeAccountModal #closeAccountCancel{border-color:#238346;background:#238346;color:#fff}
#closeAccountModal #closeAccountCancel:hover{border-color:#2a9451;background:#2a9451;color:#fff}
#closeAccountModal #closeAccountSubmit{border-color:#ad382b;background:#ad382b;color:#fff}
#closeAccountModal #closeAccountSubmit:disabled{opacity:.45;cursor:not-allowed}
#closeAccountModal .close-account-actions button:focus-visible{outline:2px solid #d4a94f;outline-offset:3px}
@media(max-width:420px){#closeAccountModal .close-account-card{padding:22px}#closeAccountModal .close-account-actions{grid-template-columns:1fr}}

/* A phone report reads as one scrolling sheet. Summary metadata participates
   in layout instead of covering the score; events use the available width. */
.mc-report-event-club{display:none}
@media(max-width:680px),(max-width:1000px) and (max-height:600px){
 #centreReportModal{padding:0}
 #centreReportModal .centre-report-sheet{box-sizing:border-box;display:block;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;overflow-x:hidden;overflow-y:auto;border-radius:0;overscroll-behavior:contain;scroll-padding-top:84px}
 #centreReportModal .centre-report-header{position:sticky;top:0;z-index:10;align-items:flex-start;gap:12px;padding:12px 16px;border-bottom:0!important;background:#15110c!important}
 #centreReportModal .centre-report-header>div{min-width:0;flex:1}
 #centreReportModal .centre-report-header span{font:700 11px/16px var(--body);letter-spacing:0}
 #centreReportModal .centre-report-header h2{font:700 16px/22px var(--body);letter-spacing:0;overflow-wrap:anywhere}
 #centreReportModal .centre-report-close{flex:0 0 40px;width:40px;height:40px}
 #centreReportModal .centre-report-summary{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);align-items:center;gap:12px 8px;min-height:0;padding:16px;border-bottom:0!important}
 #centreReportModal .mc-report-summary-club{flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
 #centreReportModal .mc-report-summary-club-copy{width:100%;gap:4px;text-align:center}
 #centreReportModal .mc-report-summary-club strong{display:block;max-width:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;font:700 14px/20px var(--body);letter-spacing:0}
 #centreReportModal .mc-report-summary-club .mc-hub-club-logo.is-normal{flex:none;width:40px;height:40px}
 #centreReportModal .mc-report-summary-club.is-away .mc-hub-club-logo{order:-1}
 #centreReportModal .mc-report-manager-link,#centreReportModal .mc-report-manager-name{font:400 12px/18px var(--body);letter-spacing:0;overflow-wrap:anywhere;text-align:center}
 #centreReportModal .mc-report-summary-score{min-width:0;gap:5px}
 #centreReportModal .mc-report-summary-score b{font:700 28px/34px var(--body);letter-spacing:0;white-space:nowrap}
 #centreReportModal .mc-report-summary-score>small,#centreReportModal .mc-report-summary-score>span,#centreReportModal .mc-report-summary-score .mc-report-summary-penalties,#centreReportModal .mc-report-summary-score .mc-report-summary-winner{max-width:100%;font:600 12px/18px var(--body);letter-spacing:0;overflow-wrap:anywhere}
 #centreReportModal .centre-report-summary>footer{position:static;grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;min-height:0;margin:4px 0 0;padding:0;border:0!important}
 #centreReportModal .centre-report-summary>footer span{min-width:0;align-items:flex-start;overflow-wrap:anywhere;font:400 12px/18px var(--body)!important;letter-spacing:0}
 #centreReportModal .centre-report-summary>footer span:first-child,#centreReportModal .centre-report-summary>footer span:last-child{grid-column:1/-1}
 #centreReportModal .centre-report-summary>footer .mc-hub-icon{flex:0 0 14px;width:14px;height:18px}
 #centreReportModal .centre-report-tabs{box-sizing:border-box;width:100%;gap:4px;padding:8px 12px;border-bottom:0!important;overflow-x:auto}
 #centreReportModal .centre-report-tabs button{flex:0 0 auto;min-height:40px;padding:10px 12px;font:600 12px/18px var(--body);letter-spacing:0}
 #centreReportModal .centre-report-body{max-height:none;overflow:visible;padding:12px}
 #centreReportModal .mc-report-key-timeline>div{padding:8px 12px 12px}
 #centreReportModal .mc-report-key-timeline>div::before{left:50px}
 #centreReportModal .mc-report-key-timeline .mc-report-key-event{grid-template-columns:76px minmax(0,1fr)!important;gap:10px;min-height:76px;padding:10px 0!important}
 #centreReportModal .mc-report-key-timeline .mc-report-event-centre{grid-column:1;grid-row:1;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:4px!important;width:76px!important;min-width:76px!important;flex:none!important}
 #centreReportModal .mc-report-key-timeline .mc-report-event-centre>b{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;font:700 12px/18px var(--body)}
 #centreReportModal .mc-report-key-timeline .mc-report-event-centre>:not(b){position:static!important;inset:auto!important;transform:none!important;flex-shrink:0;margin:0!important}
 #centreReportModal .mc-report-key-timeline .mc-report-event-home,#centreReportModal .mc-report-key-timeline .mc-report-event-away{grid-column:2;grid-row:1;justify-content:flex-start;text-align:left;padding:0}
 #centreReportModal .mc-report-key-timeline .is-home .mc-report-event-away,#centreReportModal .mc-report-key-timeline .is-away .mc-report-event-home{display:none}
 #centreReportModal .mc-report-event-copy{width:100%;min-width:0;max-width:none;gap:4px;white-space:normal;overflow-wrap:anywhere}
 #centreReportModal .mc-report-event-copy strong{font:700 14px/20px var(--body);letter-spacing:0}
 #centreReportModal .mc-report-event-copy small{font:400 13px/19px var(--body);letter-spacing:0}
 #centreReportModal .mc-report-event-copy .mc-report-shootout-detail{display:flex;flex-direction:column;gap:2px}
 #centreReportModal .mc-report-shootout-separator{display:none}
 #centreReportModal .mc-report-event-copy .mc-report-event-club{display:block;color:#d9d1c2!important;font-size:12px;line-height:18px}
 #centreReportModal .mc-report-event-divider span{box-sizing:border-box;max-width:100%;white-space:normal;text-align:center;font:600 12px/18px var(--body);letter-spacing:0}
}

/* Discord reminder: warm checkbox aligned with its label in the tablet. */
#profileSettingsPanel .settings-discord-card label:has(> [data-discord-activity-reminders]) {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  line-height: 20px;
  cursor: pointer;
}
#profileSettingsPanel .settings-discord-card input[data-discord-activity-reminders] {
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid #b99a56 !important;
  border-radius: 4px;
  background: #17150f !important;
  display: grid;
  place-content: center;
  cursor: pointer;
}
#profileSettingsPanel .settings-discord-card input[data-discord-activity-reminders]:checked {
  background: #d4a94f !important;
}
#profileSettingsPanel .settings-discord-card input[data-discord-activity-reminders]:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #17150f;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
#profileSettingsPanel .settings-discord-card input[data-discord-activity-reminders]:focus-visible {
  outline: 2px solid #d4a94f;
  outline-offset: 3px;
}

/* November art includes transparent padding; align its visible pack with
   the standard artwork without changing the asset or the shelf layout. */
#profileMarketPanel .pack-market-art:has(img[src*="/market-packs/november-pack-v180.webp"]) {
  position: relative;
  box-sizing: content-box !important;
  width: calc(100% - 16px) !important;
  aspect-ratio: 369 / 640 !important;
}
#profileMarketPanel .pack-market-art img[src*="/market-packs/november-pack-v180.webp"] {
  position: absolute;
  left: 50%;
  bottom: -3.337%;
  height: 106.778% !important;
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  translate: -50% 0;
}

/* Calendar summaries have one content row after removing their headings. */
#profileCalendarPanel .goat-calendar-modern :is(.goat-calendar-next-match-card,.goat-calendar-overview-card) {
  grid-template-rows: minmax(0,1fr) !important;
  row-gap: 0 !important;
  align-content: stretch !important;
}

/* On desktop, register the Collection controls to the full-bleed desk artwork. */
@media (min-width:1001px) {
  body.halftime-collection-background > .site-header {
    pointer-events:none;
  }
  body.halftime-collection-background > .site-header > :is(.brand,.site-menu,.header-account) {
    pointer-events:auto;
  }
  .halftime-collection-view {
    --collection-scene-width:max(100vw,calc(100dvh * 1672 / 941));
    --collection-scene-height:max(100dvh,calc(100vw * 941 / 1672));
    --collection-scene-left:calc((100vw - var(--collection-scene-width)) / 2);
    --collection-scene-top:calc((100dvh - var(--collection-scene-height)) / 2);
    --collection-album-width:var(--collection-scene-width);
    --collection-album-left:var(--collection-scene-left);
    --collection-back-top:9.604dvh;
    --collection-pages-top:max(19.8dvh,calc(var(--collection-back-top) + 100px));
    --collection-book-natural-width:calc(var(--collection-album-width) * .98459);
    --collection-book-width:min(var(--collection-book-natural-width),calc((100dvh - var(--collection-pages-top) - 16px) * 1672 / 941 / .60));
    --collection-book-height:calc(var(--collection-book-width) * 941 / 1672);
    --collection-book-top:calc(var(--collection-pages-top) - var(--collection-book-height) * .247);
  }
  .halftime-collection-view::before,
  .halftime-collection-sort-artboard {
    inset:var(--collection-scene-top) auto auto var(--collection-scene-left);
    width:var(--collection-scene-width);
    height:var(--collection-scene-height);
    transform:none;
  }
  .halftime-collection-tabs {
    top:calc(var(--collection-scene-top) + var(--collection-scene-height) * .354);
    left:calc(var(--collection-scene-left) + var(--collection-scene-width) * .925);
    align-items:center;
    gap:clamp(5px,calc(var(--collection-scene-height) * .008),12px);
    width:calc(var(--collection-scene-width) * .09);
    max-width:none;
    transform:translate(-50%,-50%) rotate(14deg);
  }
  .halftime-collection-tabs button {
    font-size:clamp(.72rem,calc(var(--collection-scene-width) * .0175),3.5rem);
  }
  #halftimeCollectionBack {
    top:var(--collection-back-top);
    left:19.8vw;
  }
  .halftime-album-shell {
    top:var(--collection-book-top);
    left:calc(var(--collection-album-left) + var(--collection-album-width) * .00266 + (var(--collection-book-natural-width) - var(--collection-book-width)) / 2);
    width:var(--collection-book-width);
  }
  .halftime-album-sub-bookmarks:is([data-bookmark-group="rating"],[data-bookmark-group="nation"]) {
    display:grid;
    align-items:end;
    gap:clamp(2px,.3vw,8px);
    padding-inline:clamp(4px,.65vw,16px);
    overflow:visible;
  }
  .halftime-album-sub-bookmarks[data-bookmark-group="rating"] {
    grid-template-columns:repeat(20,minmax(0,1fr));
  }
  .halftime-album-sub-bookmarks[data-bookmark-group="nation"] {
    grid-template-columns:repeat(12,minmax(0,1fr));
  }
  .halftime-album-sub-bookmarks:is([data-bookmark-group="rating"],[data-bookmark-group="nation"]) .halftime-album-sub-bookmark {
    min-width:0;
    padding-inline:2px;
  }
  .halftime-album-sub-bookmarks[data-bookmark-group="nation"] .halftime-album-sub-bookmark span:last-child {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

@media (min-width:1001px) and (max-aspect-ratio:1672/941) {
  .halftime-collection-view {
    --collection-scene-left:calc(100vw - var(--collection-scene-width));
  }
}
@media (min-width:1001px) and (max-aspect-ratio:8/5) {
  .halftime-collection-view {
    --collection-album-width:100vw;
    --collection-album-left:0px;
  }
}
