.nf12md-dashboard {
  --nf12md-indigo: #150184;
  --nf12md-gold: #A57029;
  --nf12md-white: #FCFCFC;
  --nf12md-lavender: #B0AAD9;
  --nf12md-ink: #111827;
  --nf12md-muted: #6b7280;
  --nf12md-line: #e5e7eb;
  --nf12md-soft: #f8fafc;
  --nf12md-danger: #dc2626;
  --nf12md-success: #16a34a;
  color: var(--nf12md-ink);
  display: grid;
  gap: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  max-width: 100%;
  padding: 2px 0;
}

.nf12md-dashboard * {
  box-sizing: border-box;
}

.nf12md-dashboard--compact {
  gap: 12px;
}

.nf12md-loading,
.nf12md-error {
  border: 1px solid var(--nf12md-line);
  color: var(--nf12md-muted);
  padding: 18px;
  text-align: center;
}

.nf12md-error {
  border-color: #fecaca;
  color: var(--nf12md-danger);
}

.nf12md-card,
.nf12md-hero {
  background: var(--nf12md-white);
  border: 1px solid var(--nf12md-line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
  overflow: hidden;
}

.nf12md-card {
  padding: 20px;
}

.nf12md-hero {
  background:
    linear-gradient(90deg, rgba(21, 1, 132, .06), transparent 34%, rgba(165, 112, 41, .08)),
    var(--nf12md-white);
  border-top: 6px solid var(--nf12md-indigo);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  padding: 24px;
  position: relative;
}

.nf12md-hero::before {
  background: var(--nf12md-gold);
  content: "";
  height: 6px;
  position: absolute;
  right: 0;
  top: -6px;
  width: 30%;
}

.nf12md-hero__team {
  align-content: center;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.nf12md-hero__team--away {
  justify-items: end;
  text-align: right;
}

.nf12md-team-label {
  background: var(--nf12md-indigo);
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 3px 9px;
  width: fit-content;
}

.nf12md-hero__team--away .nf12md-team-label {
  background: var(--nf12md-gold);
}

.nf12md-hero__team strong {
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.nf12md-scoreboard {
  align-items: center;
  background: rgba(252, 252, 252, .88);
  border: 1px solid rgba(176, 170, 217, .55);
  color: var(--nf12md-gold);
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  min-width: 180px;
  padding: 14px 18px;
  text-align: center;
}

.nf12md-scoreboard small {
  color: var(--nf12md-muted);
  font-weight: 700;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.nf12md-score {
  font-size: 60px;
  font-weight: 950;
  line-height: 1;
  min-width: 54px;
}

.nf12md-score-separator {
  color: var(--nf12md-indigo);
  font-size: 38px;
  font-weight: 900;
  padding: 0 8px;
}

.nf12md-meta {
  border-top: 1px solid var(--nf12md-line);
  display: grid;
  gap: 8px 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding-top: 14px;
}

.nf12md-meta div {
  background: rgba(255, 255, 255, .68);
  border-left: 2px solid rgba(176, 170, 217, .8);
  min-width: 0;
  padding: 4px 8px;
}

.nf12md-meta dt {
  color: var(--nf12md-muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.nf12md-meta dd {
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.nf12md-grid {
  display: grid;
  gap: 18px;
}

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

.nf12md-section-head {
  align-items: center;
  color: var(--nf12md-indigo);
  display: flex;
  font-size: 13px;
  font-weight: 950;
  gap: 10px;
  letter-spacing: 0;
  margin: -2px 0 16px;
}

.nf12md-section-head span {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  line-height: 1;
}

.nf12md-section-head span::before {
  background: var(--nf12md-gold);
  content: "";
  display: inline-block;
  height: 14px;
  width: 4px;
}

.nf12md-section-head::after {
  background: linear-gradient(90deg, var(--nf12md-gold), transparent);
  content: "";
  flex: 1;
  height: 2px;
  order: 2;
}

.nf12md-accordion-toggle {
  all: unset;
  align-items: center;
  box-sizing: border-box;
  color: var(--nf12md-indigo);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 13px;
  font-weight: 950;
  gap: 10px;
  letter-spacing: 0;
  line-height: 1;
  margin: -2px 0 16px;
  text-align: left;
  width: 100%;
}

.nf12md-accordion-toggle i {
  border-bottom: 2px solid var(--nf12md-indigo);
  border-right: 2px solid var(--nf12md-indigo);
  display: block;
  height: 9px;
  margin-left: 4px;
  order: 3;
  transform: rotate(45deg);
  transition: transform 180ms ease;
  width: 9px;
}

.nf12md-accordion-toggle[aria-expanded="true"] i {
  transform: rotate(225deg);
}

.nf12md-accordion-toggle:focus-visible {
  outline: 2px solid var(--nf12md-indigo);
  outline-offset: 4px;
}

.nf12md-accordion-panel {
  max-height: none;
  opacity: 1;
  overflow: hidden;
  transition: max-height 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.nf12md-accordion-panel[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .nf12md-accordion-panel {
    transition: none;
  }
}

.nf12md-context-cards,
.nf12md-highlight-grid,
.nf12md-lineup-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nf12md-context-card {
  border-left: 4px solid var(--nf12md-indigo);
  background: var(--nf12md-soft);
  padding: 12px;
}

.nf12md-context-card--away {
  border-left-color: var(--nf12md-gold);
}

.nf12md-card-title {
  align-items: center;
  background: #ffffff;
  border-left: 5px solid var(--nf12md-indigo);
  color: var(--nf12md-indigo);
  display: flex;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  padding: 8px 10px;
}

.nf12md-context-card--away .nf12md-card-title,
.nf12md-highlight-team:nth-child(2) .nf12md-card-title,
.nf12md-lineup-team:nth-child(2) .nf12md-card-title {
  border-left-color: var(--nf12md-gold);
  color: #7a4e0d;
}

.nf12md-context-card p,
.nf12md-note p,
.nf12md-empty {
  margin: 0;
}

.nf12md-rank-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px 0 0;
}

.nf12md-rank-summary div {
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .9);
  min-width: 0;
  padding: 7px 6px;
  text-align: center;
}

.nf12md-rank-summary dt {
  color: var(--nf12md-muted);
  font-size: 11px;
  font-weight: 800;
  margin: 0;
}

.nf12md-rank-summary dd {
  color: var(--nf12md-indigo);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.15;
  margin: 2px 0 0;
}

.nf12md-rank-chart {
  margin-top: 16px;
  max-width: 100%;
  overflow: hidden;
}

.nf12md-rank-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.nf12md-rank-legend span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.nf12md-rank-legend span::before {
  content: "";
  display: inline-block;
  height: 3px;
  width: 28px;
}

.nf12md-rank-legend__home::before {
  background: var(--nf12md-indigo);
}

.nf12md-rank-legend__away::before {
  background: var(--nf12md-gold);
}

.nf12md-rank-chart svg {
  aspect-ratio: 12 / 5;
  background: linear-gradient(180deg, #fff, var(--nf12md-soft));
  border: 1px solid var(--nf12md-line);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.nf12md-rank-grid line {
  stroke: rgba(176, 170, 217, .42);
  stroke-width: 1;
}

.nf12md-rank-axis text {
  fill: var(--nf12md-muted);
  font-size: 11px;
  font-weight: 800;
  text-anchor: middle;
}

.nf12md-rank-axis text[x="8"] {
  text-anchor: start;
}

.nf12md-rank-series polyline {
  fill: none;
  stroke-dasharray: 2400;
  stroke-dashoffset: 2400;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  transition: stroke-dashoffset 5600ms cubic-bezier(.22, .61, .36, 1);
  vector-effect: non-scaling-stroke;
}

.nf12md-rank-series--home polyline {
  stroke: var(--nf12md-indigo);
}

.nf12md-rank-series--away polyline {
  stroke: var(--nf12md-gold);
}

.is-visible .nf12md-rank-series polyline {
  stroke-dashoffset: 0;
}

.nf12md-rank-point {
  opacity: 0;
  transform: scale(.55);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 620ms ease var(--nf12md-delay), transform 620ms ease var(--nf12md-delay);
}

.is-visible .nf12md-rank-point {
  opacity: 1;
  transform: scale(1);
}

.nf12md-rank-point circle {
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.nf12md-rank-point text {
  fill: #fff;
  font-size: 13px;
  font-weight: 950;
  text-anchor: middle;
}

.nf12md-rank-point__minus,
.nf12md-rank-point__check,
.nf12md-rank-point__cross {
  fill: none;
  stroke: #fff !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5 !important;
  vector-effect: non-scaling-stroke;
}

.nf12md-rank-point--win circle {
  fill: var(--nf12md-success);
}

.nf12md-rank-point--draw circle {
  fill: #9ca3af;
}

.nf12md-rank-point--loss circle {
  fill: var(--nf12md-danger);
}

.nf12md-compare-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.nf12md-compare-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 1fr);
}

.nf12md-compare-label {
  color: var(--nf12md-muted);
  font-size: 13px;
  font-weight: 800;
}

.nf12md-compare-bar {
  align-items: center;
  background: linear-gradient(90deg, #f4f5fb, #eef0f8);
  display: flex;
  min-height: 26px;
  position: relative;
}

.nf12md-compare-bar span,
.nf12md-mini-bar i,
.nf12md-stat-bar span,
.nf12md-stack-bar span,
.nf12md-player-bar span {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1400ms cubic-bezier(.2, .8, .2, 1);
}

.is-visible .nf12md-compare-bar span,
.is-visible .nf12md-mini-bar i,
.is-visible .nf12md-stat-bar span,
.is-visible .nf12md-stack-bar span,
.is-visible .nf12md-player-bar span {
  transform: scaleX(1);
}

.nf12md-compare-bar span {
  background: var(--nf12md-indigo);
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  width: var(--nf12md-bar-width);
}

.nf12md-compare-bar--away span {
  background: var(--nf12md-gold);
}

.nf12md-compare-bar b {
  color: var(--nf12md-ink);
  margin-left: 8px;
  position: relative;
  z-index: 1;
}

.nf12md-timeline__list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  position: relative;
}

.nf12md-timeline__list::before {
  background: var(--nf12md-lavender);
  bottom: 10px;
  content: "";
  left: 50%;
  position: absolute;
  top: 10px;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1500ms ease;
  width: 2px;
}

.is-visible .nf12md-timeline__list::before {
  transform: scaleY(1);
}

.nf12md-timeline__item {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 52px minmax(0, 1fr) 50px;
  margin: 0 0 10px;
  opacity: 0;
  padding: 10px;
  position: relative;
  transform: translateY(8px);
  transition: opacity 760ms ease var(--nf12md-delay), transform 760ms ease var(--nf12md-delay);
}

.is-visible .nf12md-timeline__item {
  opacity: 1;
  transform: translateY(0);
}

.nf12md-timeline__item--home {
  background: linear-gradient(90deg, #f1f0ff, #fff);
  border-left: 3px solid var(--nf12md-indigo);
}

.nf12md-timeline__item--away {
  background: linear-gradient(90deg, #fbf4ea, #fff);
  border-left: 3px solid var(--nf12md-gold);
}

.nf12md-timeline__minute,
.nf12md-timeline__score {
  color: var(--nf12md-indigo);
  font-weight: 950;
}

.nf12md-timeline__score {
  background: var(--nf12md-gold);
  color: #fff;
  padding: 2px 6px;
  text-align: center;
}

.nf12md-timeline__score--home {
  background: var(--nf12md-indigo);
}

.nf12md-timeline__score--away {
  background: var(--nf12md-gold);
}

.nf12md-timeline__body {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.nf12md-period-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.nf12md-period-row__name {
  align-self: center;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.nf12md-period-cell {
  display: grid;
  gap: 4px;
}

.nf12md-period-cell span {
  color: var(--nf12md-muted);
  font-size: 12px;
  font-weight: 800;
}

.nf12md-period-cell b {
  color: var(--nf12md-gold);
  font-size: 20px;
  line-height: 1;
}

.nf12md-period-row--home .nf12md-period-cell b {
  color: var(--nf12md-indigo);
}

.nf12md-period-row--away .nf12md-period-cell b {
  color: var(--nf12md-gold);
}

.nf12md-mini-bar,
.nf12md-player-bar,
.nf12md-stack-bar {
  background: #eef0f8;
  height: 10px;
  overflow: hidden;
}

.nf12md-mini-bar i {
  background: var(--nf12md-indigo);
  display: block;
  height: 100%;
  width: var(--nf12md-bar-width);
}

.nf12md-period-row--away .nf12md-mini-bar i {
  background: var(--nf12md-gold);
}

.nf12md-team-legend,
.nf12md-shot-row__head {
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.nf12md-team-legend span,
.nf12md-shot-row__head strong {
  overflow-wrap: anywhere;
}

.nf12md-stat-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr) 70px minmax(0, 1fr) 34px;
  margin-bottom: 10px;
}

.nf12md-stat-value {
  color: var(--nf12md-gold);
  font-weight: 950;
  text-align: center;
}

.nf12md-stat-value--home {
  color: var(--nf12md-indigo);
}

.nf12md-stat-value--away {
  color: var(--nf12md-gold);
}

.nf12md-stat-label {
  color: var(--nf12md-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.nf12md-stat-bar {
  background: #eef0f8;
  height: 12px;
  overflow: hidden;
}

.nf12md-stat-bar--home span {
  background: var(--nf12md-indigo);
  display: block;
  height: 100%;
  margin-left: auto;
  transform-origin: right center;
  width: var(--nf12md-bar-width);
}

.nf12md-stat-bar--away span {
  background: var(--nf12md-gold);
  display: block;
  height: 100%;
  width: var(--nf12md-bar-width);
}

.nf12md-shot-row {
  margin-bottom: 12px;
}

.nf12md-shot-metric {
  border-top: 1px solid var(--nf12md-line);
  padding-top: 12px;
}

.nf12md-shot-metric:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.nf12md-shot-title {
  color: var(--nf12md-indigo);
  font-size: 14px;
  font-weight: 950;
  margin: 0 0 8px;
}

.nf12md-stack-bar {
  display: flex;
  height: 18px;
}

.nf12md-stack-bar__first {
  align-items: center;
  background: var(--nf12md-indigo);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 950;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  width: var(--nf12md-bar-width);
}

.nf12md-stack-bar--total-only .nf12md-stack-bar__first {
  background: linear-gradient(90deg, var(--nf12md-indigo), var(--nf12md-lavender));
}

.nf12md-stack-bar__second {
  align-items: center;
  background: var(--nf12md-lavender);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 950;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  transition-delay: 130ms;
  width: var(--nf12md-bar-width);
}

.nf12md-stack-bar b {
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.nf12md-shot-row--away .nf12md-stack-bar__first {
  background: var(--nf12md-gold);
}

.nf12md-shot-row--away .nf12md-stack-bar__second {
  background: #d7b57f;
}

.nf12md-shot-row--away .nf12md-stack-bar--total-only .nf12md-stack-bar__first {
  background: linear-gradient(90deg, var(--nf12md-gold), #d7b57f);
}

.nf12md-shot-row small {
  color: var(--nf12md-muted);
  display: block;
  font-weight: 700;
  margin-top: 5px;
}

.nf12md-highlight-team,
.nf12md-lineup-team {
  background: var(--nf12md-soft);
  border-top: 3px solid var(--nf12md-indigo);
  padding: 14px;
}

.nf12md-highlight-team:nth-child(2),
.nf12md-lineup-team:nth-child(2) {
  border-top-color: var(--nf12md-gold);
}

.nf12md-substitutions {
  margin: 0 0 18px;
}

.nf12md-subsection-head {
  align-items: center;
  color: var(--nf12md-indigo);
  display: flex;
  font-size: 13px;
  font-weight: 950;
  gap: 10px;
  line-height: 1;
  margin: 20px 0 14px;
}

.nf12md-subsection-head::before {
  background: var(--nf12md-gold);
  content: "";
  height: 18px;
  width: 3px;
}

.nf12md-subsection-head::after {
  background: linear-gradient(90deg, var(--nf12md-gold), transparent);
  content: "";
  flex: 1;
  height: 2px;
}

.nf12md-substitution-map {
  background: #fff;
  border: 1px solid var(--nf12md-border);
  min-height: 500px;
  padding: 14px 16px 26px;
  position: relative;
}

.nf12md-substitution-teams {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.nf12md-substitution-teams .nf12md-card-title {
  margin: 0;
}

.nf12md-substitution-teams .nf12md-card-title:nth-child(2) {
  border-left-color: var(--nf12md-gold);
  color: #7a4e0d;
}

.nf12md-substitution-plot {
  height: 410px;
  margin: 0 auto;
  max-width: 780px;
  position: relative;
}

.nf12md-substitution-axis {
  bottom: 18px;
  left: 50%;
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
}

.nf12md-substitution-axis::before {
  background: var(--nf12md-indigo);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform 1100ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: 150ms;
  width: 2px;
}

.is-visible .nf12md-substitution-axis::before {
  transform: translateX(-50%);
}

.nf12md-substitution-axis span {
  color: var(--nf12md-muted);
  font-size: 11px;
  font-weight: 900;
  left: 10px;
  position: absolute;
  transform: translateY(-50%);
  white-space: nowrap;
}

.nf12md-substitution-axis span:nth-child(1) {
  top: 0;
}

.nf12md-substitution-axis span:nth-child(2) {
  top: 50%;
}

.nf12md-substitution-axis span:nth-child(3) {
  top: 100%;
}

.nf12md-substitution-axis b {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  left: -50px;
  position: absolute;
  top: -4px;
  white-space: nowrap;
}

.nf12md-substitution-event {
  left: 50%;
  position: absolute;
  top: var(--nf12md-sub-top);
  transform: translate(-50%, -50%);
}

.nf12md-substitution-event.is-open {
  z-index: 8;
}

.nf12md-substitution-event--home {
  --nf12md-sub-color: var(--nf12md-indigo);
}

.nf12md-substitution-event--away {
  --nf12md-sub-color: var(--nf12md-gold);
}

.nf12md-substitution-stem {
  background: var(--nf12md-sub-color);
  height: 2px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleX(0);
  transition: transform 460ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--nf12md-sub-delay);
}

.nf12md-substitution-event--home .nf12md-substitution-stem {
  right: 0;
  transform-origin: right center;
  width: calc(88px + var(--nf12md-sub-stack));
}

.nf12md-substitution-event--away .nf12md-substitution-stem {
  left: 0;
  transform-origin: left center;
  width: calc(88px + var(--nf12md-sub-stack));
}

.is-visible .nf12md-substitution-stem {
  transform: translateY(-50%) scaleX(1);
}

.nf12md-substitution-dot {
  appearance: none;
  background: var(--nf12md-sub-color);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #0f172a;
  cursor: pointer;
  height: 28px;
  opacity: 0;
  top: 50%;
  margin: 0;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%) scale(.35);
  transition: opacity 300ms ease, box-shadow 180ms ease, transform 300ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--nf12md-sub-delay), 0ms, var(--nf12md-sub-delay);
  width: 28px;
  z-index: 2;
}

.is-visible .nf12md-substitution-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.nf12md-substitution-dot:focus-visible,
.nf12md-substitution-dot:hover,
.nf12md-substitution-dot[aria-expanded="true"] {
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 7px rgba(26, 12, 129, .16);
  transform: translate(-50%, -50%) scale(1.08);
}

.nf12md-substitution-event--away .nf12md-substitution-dot:focus-visible,
.nf12md-substitution-event--away .nf12md-substitution-dot:hover,
.nf12md-substitution-event--away .nf12md-substitution-dot[aria-expanded="true"] {
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 7px rgba(178, 116, 33, .18);
}

.nf12md-substitution-event--home .nf12md-substitution-dot {
  left: calc(-88px - var(--nf12md-sub-stack));
}

.nf12md-substitution-event--away .nf12md-substitution-dot {
  left: calc(88px + var(--nf12md-sub-stack));
}

.nf12md-substitution-card {
  background: #fff;
  border-left: 3px solid var(--nf12md-sub-color);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  display: grid;
  gap: 5px;
  left: 50%;
  min-width: 190px;
  padding: 8px 10px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 3;
}

.nf12md-substitution-card[hidden] {
  display: none;
}

.nf12md-substitution-event--home .nf12md-substitution-card {
  left: calc(-88px - var(--nf12md-sub-stack));
  top: 18px;
}

.nf12md-substitution-event--away .nf12md-substitution-card {
  left: calc(88px + var(--nf12md-sub-stack));
  top: 18px;
}

.nf12md-substitution-time {
  color: var(--nf12md-muted);
  font-size: 12px;
  font-weight: 900;
}

.nf12md-substitution-card div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
}

.nf12md-substitution-card b {
  color: var(--nf12md-sub-color);
  font-size: 11px;
  font-weight: 950;
}

.nf12md-substitution-card strong {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.nf12md-player-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.nf12md-player-row__main {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.nf12md-player-row__main strong,
.nf12md-player-row__main span {
  overflow-wrap: anywhere;
}

.nf12md-player-row__main span {
  color: var(--nf12md-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.nf12md-player-bar {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  height: auto;
}

.nf12md-player-bar span {
  background: var(--nf12md-indigo);
  display: block;
  height: 10px;
  width: var(--nf12md-bar-width);
}

.nf12md-highlight-team--away .nf12md-player-bar span {
  background: var(--nf12md-gold);
}

.nf12md-player-bar b {
  color: var(--nf12md-gold);
  font-size: 12px;
  text-align: right;
}

.nf12md-lineup-block {
  margin-top: 12px;
}

.nf12md-lineup-label {
  color: var(--nf12md-indigo);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 8px;
}

.nf12md-lineup-block ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nf12md-lineup-block li {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .9);
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 6px 8px;
}

.nf12md-lineup-block li span:first-child {
  color: var(--nf12md-indigo);
  font-size: 12px;
  font-weight: 900;
}

.nf12md-lineup-block li strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.nf12md-bench {
  margin-top: 12px;
}

.nf12md-bench summary {
  color: var(--nf12md-gold);
  cursor: pointer;
  font-weight: 900;
}

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

.nf12md-card-item {
  align-items: center;
  background: linear-gradient(90deg, var(--nf12md-soft), #fff);
  border-left: 3px solid var(--nf12md-gold);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

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

.nf12md-card-item strong {
  margin-right: auto;
}

.nf12md-card-badge {
  color: #fff;
  font-size: 12px;
  padding: 2px 7px;
}

.nf12md-card-badge--yellow {
  background: var(--nf12md-gold);
}

.nf12md-card-badge--red {
  background: var(--nf12md-danger);
}

.nf12md-note {
  border-left: 4px solid var(--nf12md-gold);
}

.nf12md-note p {
  font-weight: 700;
}

.nf12md-source {
  text-align: right;
}

.nf12md-source a {
  background: var(--nf12md-indigo);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nf12md-source a:focus,
.nf12md-source a:hover {
  background: var(--nf12md-gold);
  color: #fff;
  transform: translateY(-1px);
}

.nf12md-observe {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 850ms ease, transform 850ms ease;
}

.nf12md-observe.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nf12md-hero,
  .nf12md-grid--two,
  .nf12md-context-cards,
  .nf12md-highlight-grid,
  .nf12md-substitutions,
  .nf12md-lineup-grid {
    grid-template-columns: 1fr;
  }

  .nf12md-hero {
    padding: 16px;
    text-align: center;
  }

  .nf12md-hero__team,
  .nf12md-hero__team--away {
    justify-items: center;
    text-align: center;
  }

  .nf12md-scoreboard {
    min-width: 0;
  }

  .nf12md-score {
    font-size: 48px;
  }

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

  .nf12md-card {
    padding: 14px;
  }

  .nf12md-rank-chart svg {
    aspect-ratio: 4 / 3;
  }

  .nf12md-rank-axis text {
    font-size: 20px;
  }

  .nf12md-rank-point circle {
    r: 13px;
  }

  .nf12md-rank-point__minus,
  .nf12md-rank-point__check,
  .nf12md-rank-point__cross {
    stroke-width: 3.2 !important;
  }

  .nf12md-compare-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  }

  .nf12md-period-row {
    grid-template-columns: 1fr;
  }

  .nf12md-stat-row {
    gap: 6px;
    grid-template-columns: 28px minmax(0, 1fr) 56px minmax(0, 1fr) 28px;
  }

  .nf12md-player-row__main {
    display: grid;
  }

  .nf12md-player-row__main span {
    text-align: left;
  }

  .nf12md-substitution-map {
    min-height: 460px;
    padding: 12px 12px 22px;
  }

  .nf12md-substitution-teams {
    gap: 10px;
  }

  .nf12md-substitution-plot {
    height: 380px;
  }

  .nf12md-substitution-card {
    min-width: 160px;
  }

  .nf12md-lineup-block li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .nf12md-lineup-block li span:last-child {
    grid-column: 2;
  }

  .nf12md-source {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .nf12md-meta {
    grid-template-columns: 1fr;
  }

  .nf12md-score {
    font-size: 42px;
  }

  .nf12md-compare-row {
    grid-template-columns: 1fr;
  }

  .nf12md-stat-row {
    grid-template-columns: 24px minmax(0, 1fr) 48px minmax(0, 1fr) 24px;
  }

  .nf12md-substitution-map {
    min-height: 520px;
    padding: 10px 8px 20px;
  }

  .nf12md-substitution-teams {
    grid-template-columns: 1fr;
  }

  .nf12md-substitution-plot {
    height: 405px;
  }

  .nf12md-substitution-axis b {
    font-size: 12px;
    left: -42px;
  }

  .nf12md-substitution-card {
    min-width: 142px;
    padding: 7px;
  }

  .nf12md-substitution-card strong,
  .nf12md-substitution-time {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf12md-dashboard *,
  .nf12md-dashboard *::before,
  .nf12md-dashboard *::after {
    animation: none !important;
    transition: none !important;
  }

  .nf12md-observe,
  .nf12md-compare-bar span,
  .nf12md-mini-bar i,
  .nf12md-stat-bar span,
  .nf12md-stack-bar span,
  .nf12md-player-bar span,
  .nf12md-timeline__list::before,
  .nf12md-timeline__item {
    opacity: 1 !important;
    transform: none !important;
  }

  .nf12md-substitution-dot {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
  }

  .nf12md-substitution-axis::before {
    transform: translateX(-50%) scaleY(1) !important;
  }

  .nf12md-substitution-stem {
    transform: translateY(-50%) scaleX(1) !important;
  }
}
