/*
 * EA SPORTS FC — `.gt-fc`, in the platform's colours. "Match day": the broadcast scorebug and
 * the pitch.
 *
 * Everything is built from what a player sees around a match:
 *   - wide, heavy capitals for titles (Archivo, expanded) — and only for titles: labels and
 *     buttons stay in Rubik, numbers in the site's tech face;
 *   - flat tiles with ONE corner cut at 45° — the brand's triangle — and the same triangle as
 *     the small marker before a heading and over anything that is the viewer's own;
 *   - the scorebug: a clock box and name plates with square score boxes at their end;
 *   - the match-facts possession bar: one bar split in two on a slant, a figure at each end;
 *   - the pitch from above, in thin lines: mown bands, centre circle, penalty area and "D".
 *
 * Colour is the platform's, through tokens: crimson for the action and the winner's score
 * box, gold for money and the champion, live red for what is running, the neutrals for the
 * rest. A box has one neutral 1px outline and nothing else on its edges.
 *
 * Every selector is scoped under `.gt-fc` or is a `.gt-fc-*` class the theme renders. Served
 * as the file it is: plain CSS, no nesting.
 */

/* ================================================================== scope */

.gt-fc {
  --fc-display: var(--gt-font-fc), var(--font-rubik), sans-serif;
  /* The cut corner, the one outline, and the ground a slanted gap is cut out of. */
  --fc-cut: 16px;
  --fc-edge: var(--border);
  --fc-ground: var(--card);
  /* The grey a bar's unfilled share and a quiet plate are drawn in. */
  --fc-track: color-mix(in srgb, var(--foreground) 15%, transparent);
}

/* ================================================================== the cut corner */

/*
 * A flat tile with its top end corner cut at 45°. The element keeps its own 1px border; the
 * clip takes the corner off, and `::after` draws the missing diagonal: a square in the
 * corner whose own diagonal is the cut, painted in the border's colour for the last pixel
 * before it. Hover changes `--fc-edge`, so the whole outline strengthens together.
 */
.gt-fc
  :is(
    [data-gt='panel'],
    [data-gt='purse'],
    [data-gt='facts'],
    [data-gt='organizer'],
    [data-gt='entry-requirements'],
    [data-gt='standings'],
    [data-gt='cta'],
    [data-gt='tournament-row'],
    [data-gt='br-focus'],
    [data-gt='br-my-squad'],
    [data-gt='br-points'],
    [data-gt='br-round'],
    .gt-fc-card,
    .gt-fc-board
  ),
.gt-fc.gt-dialog {
  position: relative;
  border-color: var(--fc-edge);
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - var(--fc-cut)) 0, 100% var(--fc-cut), 100% 100%, 0 100%);
}
.gt-fc
  :is(
    [data-gt='panel'],
    [data-gt='purse'],
    [data-gt='facts'],
    [data-gt='organizer'],
    [data-gt='entry-requirements'],
    [data-gt='standings'],
    [data-gt='cta'],
    [data-gt='tournament-row'],
    [data-gt='br-focus'],
    [data-gt='br-my-squad'],
    [data-gt='br-points'],
    [data-gt='br-round'],
    [data-gt='stats'],
    [data-gt='detail-stats'],
    .gt-fc-card,
    .gt-fc-board
  )::after,
.gt-fc.gt-dialog::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 3;
  width: calc(var(--fc-cut) - 2px);
  height: calc(var(--fc-cut) - 2px);
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--fc-edge) 0);
  pointer-events: none;
}
[dir='rtl']
  .gt-fc
  :is(
    [data-gt='panel'],
    [data-gt='purse'],
    [data-gt='facts'],
    [data-gt='organizer'],
    [data-gt='entry-requirements'],
    [data-gt='standings'],
    [data-gt='cta'],
    [data-gt='tournament-row'],
    [data-gt='br-focus'],
    [data-gt='br-my-squad'],
    [data-gt='br-points'],
    [data-gt='br-round'],
    [data-gt='stats'],
    [data-gt='detail-stats'],
    .gt-fc-card,
    .gt-fc-board
  ),
[dir='rtl'] .gt-fc.gt-dialog {
  clip-path: polygon(var(--fc-cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--fc-cut));
}
[dir='rtl']
  .gt-fc
  :is(
    [data-gt='panel'],
    [data-gt='purse'],
    [data-gt='facts'],
    [data-gt='organizer'],
    [data-gt='entry-requirements'],
    [data-gt='standings'],
    [data-gt='cta'],
    [data-gt='tournament-row'],
    [data-gt='br-focus'],
    [data-gt='br-my-squad'],
    [data-gt='br-points'],
    [data-gt='br-round'],
    [data-gt='stats'],
    [data-gt='detail-stats'],
    .gt-fc-card,
    .gt-fc-board
  )::after,
[dir='rtl'] .gt-fc.gt-dialog::after {
  background: linear-gradient(to top left, transparent calc(50% - 1px), var(--fc-edge) 0);
}
.gt-fc :is([data-gt='organizer'], [data-gt='entry-requirements'], [data-gt='tournament-row']) {
  --fc-cut: 13px;
}
.gt-fc :is([data-gt='tournament-row'], .gt-fc-card) {
  transition: border-color 0.2s ease;
}
.gt-fc :is([data-gt='tournament-row'], .gt-fc-card):is(:hover, :focus-within) {
  --fc-edge: var(--line-hover);
}

/* ================================================================== small parts */

/* The triangle before a heading: the corner that was cut off, set down beside the words. */
.gt-fc
  :is(
    [data-gt='section-title'],
    [data-gt='panel-title'],
    [data-gt='standings-title'],
    [data-gt='participants-title'],
    [data-gt='match-round-title'],
    [data-gt='entry-title'],
    [data-gt='br-teams-title'],
    [data-gt='br-schedule-title'],
    [data-gt='br-points-title'],
    [data-gt='mine-title']
  )::before {
  content: '';
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-inline-end: 0.55em;
  background: var(--primary);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
[dir='rtl']
  .gt-fc
  :is(
    [data-gt='section-title'],
    [data-gt='panel-title'],
    [data-gt='standings-title'],
    [data-gt='participants-title'],
    [data-gt='match-round-title'],
    [data-gt='entry-title'],
    [data-gt='br-teams-title'],
    [data-gt='br-schedule-title'],
    [data-gt='br-points-title'],
    [data-gt='mine-title']
  )::before {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* Something running right now: a small square that breathes. */
.gt-fc .gt-fc-live {
  flex: none;
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  animation: gt-fc-breathe 1.8s ease-in-out infinite;
}
@keyframes gt-fc-breathe {
  50% {
    opacity: 0.35;
  }
}

/* A slanted rule between words: "Solo · Baghdad · Free entry". */
.gt-fc .gt-fc-sep {
  display: inline-block;
  width: 1px;
  height: 0.85em;
  margin-inline: 9px;
  vertical-align: -0.08em;
  background: var(--line-hover);
  transform: skewX(-24deg);
}
[dir='rtl'] .gt-fc .gt-fc-sep {
  transform: skewX(24deg);
}

.gt-fc .gt-fc-ico {
  display: block;
  flex: none;
}
[dir='rtl'] .gt-fc .gt-fc-ico[data-dir] {
  transform: scaleX(-1);
}

/* ------------------------------------------------------------------ the possession bar */

.gt-fc .gt-fc-poss {
  --fc-bar: 8px;
  display: grid;
  gap: 8px;
}
.gt-fc .gt-fc-poss__ends {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.gt-fc .gt-fc-poss__ends > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
/* The figure sits at the outer end of each side, its word inside it. */
.gt-fc .gt-fc-poss__ends > div[data-side='home'] {
  flex-direction: row-reverse;
}
.gt-fc .gt-fc-poss__ends dt {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.gt-fc .gt-fc-poss__ends dd {
  margin: 0;
  font: 700 19px/1 var(--font-tech);
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}
.gt-fc .gt-fc-poss__bar {
  display: flex;
  height: var(--fc-bar);
}
.gt-fc .gt-fc-poss__bar i {
  display: block;
  height: 100%;
}
.gt-fc .gt-fc-poss__bar i[data-side='home'] {
  width: var(--share);
  min-width: calc(var(--fc-bar) + 4px);
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--fc-bar)) 100%, 0 100%);
}
.gt-fc .gt-fc-poss__bar i[data-side='away'] {
  flex: 1;
  min-width: calc(var(--fc-bar) + 4px);
  margin-inline-start: calc(3px - var(--fc-bar));
  background: var(--fc-track);
  clip-path: polygon(var(--fc-bar) 0, 100% 0, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc .gt-fc-poss__bar i[data-side='home'] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, var(--fc-bar) 100%);
}
[dir='rtl'] .gt-fc .gt-fc-poss__bar i[data-side='away'] {
  clip-path: polygon(0 0, calc(100% - var(--fc-bar)) 0, 100% 100%, 0 100%);
}
.gt-fc .gt-fc-poss__bar i[data-whole] {
  flex: 1;
  width: auto;
  margin: 0;
  clip-path: none;
}
/* Nearly gone: the seats left turn gold. A final count: the bar goes quiet. */
.gt-fc .gt-fc-poss[data-tone='low'] [data-side='away'] dd {
  color: var(--warning);
}
.gt-fc .gt-fc-poss[data-tone='low'] i[data-side='away'] {
  background: var(--warning);
}
.gt-fc .gt-fc-poss[data-tone='done'] i[data-side='home'] {
  background: color-mix(in srgb, var(--foreground) 62%, transparent);
}

/*
 * The site's own seats bars (the prize panel, a result row) are the same bar: the filled
 * share ends on the slant, a sliver of the ground between it and the rest.
 */
.gt-fc [data-gt='seats-bar'] {
  height: 6px;
  border-radius: 0;
  background: var(--fc-track);
}
.gt-fc [data-gt='seats-bar'] > div {
  position: relative;
}
.gt-fc [data-gt='seats-bar'] > div::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(100% - 4px);
  width: 4px;
  background: var(--fc-ground);
  transform: skewX(-45deg);
}
[dir='rtl'] .gt-fc [data-gt='seats-bar'] > div::after {
  transform: skewX(45deg);
}

/* ================================================================== buttons, chips, focus */

.gt-fc [data-button] {
  border-radius: 0;
  font-family: var(--font-rubik);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* The action: a solid plate, its corner cut. */
.gt-fc [data-button='default'] {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-button='default'] {
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.gt-fc [data-button='outline'] {
  border-color: var(--line-card);
}
.gt-fc [data-button='outline']:hover {
  border-color: var(--line-hover);
  background: var(--secondary);
}
.gt-fc [data-button='overlay'] {
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(12 13 18 / 0.74);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.gt-fc [data-button='overlay']:hover {
  border-color: rgb(255 255 255 / 0.5);
}

/* Chips are flat plates; a tag's tinted edge gives way to its own ground. */
.gt-fc [data-badge] {
  border-radius: 0;
}
.gt-fc :is([data-badge='tag'], [data-badge='tag-gold'], [data-badge='verified']) {
  border-color: transparent;
}

.gt-fc :is(a, button, input, textarea, [role='checkbox'], [role='combobox']):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
/* Inside a cut shape or a scroller the ring is drawn inside the box. */
.gt-fc :is([data-button='default'], [data-gt='tab'], [data-gt='bracket-match']):focus-visible {
  outline-offset: -3px;
}
.gt-fc [data-button='default']:focus-visible {
  outline-color: var(--primary-foreground);
}

/* ================================================================== hero (both pages) */

/*
 * The art keeps its strength; the publisher-coloured glow, the site's hatch and the ghosted
 * wordmark give way to the pitch. The shade is the page's own night: up from the bottom for
 * the title, and a little all over so the lines read.
 */
.gt-fc :is([data-gt='hero-art'], [data-gt='row-art']) {
  --art-accent: var(--background) !important;
  --art-tint: var(--background) !important;
  background-color: var(--background) !important;
}
.gt-fc [data-gt='hero-art'] > div[aria-hidden]:not([data-gt], .gt-fc-hero),
.gt-fc [data-gt='row-art'] > div[aria-hidden] {
  display: none;
}
.gt-fc [data-gt='hero-shade'] {
  background: linear-gradient(
    0deg,
    var(--background) 0%,
    rgb(12 13 18 / 0.72) 30%,
    rgb(12 13 18 / 0.34) 66%,
    rgb(12 13 18 / 0.46) 100%
  );
}
.gt-fc .gt-fc-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 56%);
  mask-image: linear-gradient(90deg, transparent 8%, #000 56%);
}
[dir='rtl'] .gt-fc .gt-fc-pitch {
  transform: scaleX(-1);
}
.gt-fc .gt-fc-pitch__stripes rect {
  fill: rgb(255 255 255 / 0.045);
}
.gt-fc .gt-fc-pitch__lines :is(path, circle) {
  stroke: rgb(255 255 255 / 0.3);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}
.gt-fc .gt-fc-pitch__spots circle {
  fill: rgb(255 255 255 / 0.4);
}

.gt-fc [data-gt='hero-title'] {
  font-family: var(--fc-display);
  font-weight: 900;
  font-stretch: 122%;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
}
.gt-fc [data-hero='game'] [data-gt='hero-title'] {
  font-size: clamp(32px, 4.8vw, 62px);
}
.gt-fc .gt-detail-title {
  font-size: clamp(26px, 3.3vw, 42px);
}
/* A long name wraps under itself, so the actions keep their place at the end of the band. */
.gt-fc [data-hero='tournament'] [data-gt='hero-text'] {
  max-width: min(100%, 880px);
}
.gt-fc :is([data-gt='hero-tagline'], [data-gt='hero-meta']) {
  margin-top: 12px;
  font: 400 14.5px/1.5 var(--font-rubik);
  color: var(--soft);
}
.gt-fc [data-gt='hero-starts'] {
  font: 600 14.5px/1.5 var(--font-rubik);
}

/* The tags over the art: dark plates with a hairline; the state keeps its own colour. */
.gt-fc [data-gt='hero-tags'] [data-badge] {
  padding: 5px 10px;
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc
  [data-gt='hero-tags']
  :is([data-badge='tag'], [data-badge='tag-gold'], [data-badge='tag-neutral']) {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(12 13 18 / 0.74);
  color: var(--bright);
}
.gt-fc [data-gt='hero-tags'] [data-badge='soon'] {
  background: rgb(12 13 18 / 0.74);
}

/* ------------------------------------------------------------------ the kick-off board */

.gt-fc .gt-fc-board {
  --fc-cut: 14px;
  --fc-edge: var(--line-card);
  display: flex;
  flex-direction: column;
  width: 372px;
  max-width: 100%;
  border: 1px solid var(--fc-edge);
  background: var(--card);
  color: var(--foreground);
  text-align: start;
}
/* Docked beside the facts band, it is that band's twin: the same width as the column. */
.gt-fc [data-gt='facts-side'] .gt-fc-board {
  --fc-edge: var(--border);
  width: 100%;
}
.gt-fc .gt-fc-board__bug {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  flex: 1;
}
/* The clock box: the bright plate of the scorebug, in the page's own ink. */
.gt-fc .gt-fc-board__clock {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 112px;
  padding: 12px 16px;
  background: var(--foreground);
  color: var(--background);
}
.gt-fc .gt-fc-board__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font: 600 10px/1.2 var(--font-rubik);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.gt-fc .gt-fc-board__clock .gt-fc-board__label {
  color: color-mix(in srgb, var(--background) 72%, var(--foreground));
}
.gt-fc .gt-fc-board__label[data-live] {
  color: var(--live);
}
.gt-fc .gt-fc-clock {
  font: 700 25px/1 var(--font-tech);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.gt-fc .gt-fc-clock[data-date] {
  font-size: 21px;
}
.gt-fc .gt-fc-clock small {
  display: block;
  margin-top: 5px;
  font: 600 11.5px/1 var(--font-tech);
}
.gt-fc .gt-fc-board__plate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 16px;
}
.gt-fc .gt-fc-board__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font: 800 15px/1.18 var(--fc-display);
  font-stretch: 112%;
  text-transform: uppercase;
}
.gt-fc .gt-fc-board__when {
  margin: 0;
  font: 400 12px/1.3 var(--font-rubik);
  color: var(--soft);
}
.gt-fc :is(.gt-fc-board__poss, .gt-fc-board__nocap, .gt-fc-board__facts) {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}
.gt-fc .gt-fc-board__nocap {
  font: 400 13px/1.4 var(--font-rubik);
  color: var(--soft);
}
.gt-fc .gt-fc-board__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  padding-block: 9px;
}
.gt-fc .gt-fc-board__facts > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.gt-fc .gt-fc-board__facts dt {
  font: 600 10px/1.2 var(--font-rubik);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.gt-fc .gt-fc-board__facts dd {
  margin: 0;
  font: 600 13px/1.2 var(--font-rubik);
}
.gt-fc .gt-fc-board__facts [data-tone='gold'] dd {
  font: 700 14px/1.2 var(--font-tech);
  color: var(--warning);
}
.gt-fc .gt-fc-board__facts small {
  font-size: 10.5px;
}

/* ================================================================== hero strip: fixtures ticker */

.gt-fc .gt-fc-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.gt-fc .gt-fc-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1600px;
  height: 42px;
  margin: 0 auto;
  padding-inline: 16px;
}
/* The label: the bright plate that names the ticker, its corner cut. */
.gt-fc .gt-fc-strip__label {
  flex: none;
  padding: 5px 16px 5px 10px;
  background: var(--foreground);
  color: var(--background);
  font: 700 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc .gt-fc-strip__label {
  padding: 5px 10px 5px 16px;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
.gt-fc .gt-fc-strip__track {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.gt-fc .gt-fc-strip__track::-webkit-scrollbar {
  display: none;
}
.gt-fc .gt-fc-strip__track[data-belt] {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 28px,
    #000 calc(100% - 28px),
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.gt-fc .gt-fc-strip__belt {
  display: flex;
  width: max-content;
}
.gt-fc .gt-fc-strip__track[data-belt] .gt-fc-strip__belt {
  animation: gt-fc-belt 90s linear infinite;
}
[dir='rtl'] .gt-fc .gt-fc-strip__track[data-belt] .gt-fc-strip__belt {
  animation-name: gt-fc-belt-rtl;
}
.gt-fc .gt-fc-strip__track[data-belt]:is(:hover, :focus-within) .gt-fc-strip__belt {
  animation-play-state: paused;
}
@keyframes gt-fc-belt {
  to {
    transform: translateX(-50%);
  }
}
@keyframes gt-fc-belt-rtl {
  to {
    transform: translateX(50%);
  }
}
.gt-fc .gt-fc-strip__run {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gt-fc .gt-fc-strip__run > li {
  display: flex;
  align-items: center;
}
/* The slanted rule between two fixtures. */
.gt-fc .gt-fc-strip__run > li::after {
  content: '';
  width: 1px;
  height: 16px;
  margin-inline: 18px;
  background: var(--line-hover);
  transform: skewX(-24deg);
}
[dir='rtl'] .gt-fc .gt-fc-strip__run > li::after {
  transform: skewX(24deg);
}
.gt-fc .gt-fc-strip__track:not([data-belt]) li:last-child::after {
  display: none;
}
.gt-fc .gt-fc-fixture {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  color: var(--foreground);
}
.gt-fc .gt-fc-fixture__name {
  font: 600 13px/1.2 var(--font-rubik);
  text-decoration: underline transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.gt-fc .gt-fc-fixture:hover .gt-fc-fixture__name {
  text-decoration-color: currentColor;
}
.gt-fc .gt-fc-fixture__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-text);
}
.gt-fc .gt-fc-fixture[data-tone='live'] .gt-fc-fixture__state {
  color: var(--live);
}
.gt-fc .gt-fc-fixture[data-tone='low'] .gt-fc-fixture__state {
  color: var(--warning);
}
.gt-fc .gt-fc-fixture__seats {
  font: 400 12px/1.2 var(--font-rubik);
  color: var(--faint);
}
.gt-fc .gt-fc-fixture__seats .num-ltr {
  font: 600 12px/1.2 var(--font-tech);
  color: var(--soft);
}

/* ================================================================== stat tiles: one scoreboard */

/*
 * The tiles join into a single board: no gap, each cell's outline overlapping its
 * neighbour's, the board's own top end corner cut. Label above, the figure big in the tech
 * face, the pictogram at the end of the cell.
 */
.gt-fc :is([data-gt='stats'], [data-gt='detail-stats']) {
  position: relative;
  gap: 0;
  padding-inline-end: 1px;
  padding-bottom: 1px;
  clip-path: polygon(0 0, calc(100% - var(--fc-cut)) 0, 100% var(--fc-cut), 100% 100%, 0 100%);
}
.gt-fc :is([data-gt='stats'], [data-gt='detail-stats'])::after {
  width: var(--fc-cut);
  height: var(--fc-cut);
}
.gt-fc :is([data-gt='stat'], [data-gt='detail-stat']) {
  margin-inline-end: -1px;
  margin-bottom: -1px;
  padding: 15px 18px;
  border: 1px solid var(--fc-edge);
  border-radius: 0;
  background: var(--card);
  box-shadow: none;
}
.gt-fc :is([data-gt='stat'], [data-gt='detail-stat']):has([data-gt='stat-figure']) {
  padding-inline-end: 66px;
}
.gt-fc [data-gt='stat-label'] > * {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  color: var(--faint);
}
.gt-fc [data-gt='stat-value'] {
  margin-top: 8px;
  font: 700 16px/1.25 var(--font-rubik);
}
.gt-fc [data-gt='stat-value'][data-numeric] {
  font: 700 31px/1 var(--font-tech);
}
.gt-fc [data-gt='stat-figure'] {
  inset-inline-end: 16px;
}
.gt-fc .gt-fc-figure {
  display: block;
  color: var(--ghost);
}
.gt-fc .gt-fc-figure[data-tone='primary'] {
  color: var(--primary-text);
}
.gt-fc .gt-fc-figure[data-tone='live'] {
  color: var(--live);
}

/* ================================================================== headings, panels, empty */

.gt-fc [data-gt='section-title'] {
  font: 900 21px/1.15 var(--fc-display);
  font-stretch: 118%;
  letter-spacing: 0;
  text-transform: uppercase;
}
.gt-fc
  :is(
    [data-gt='panel-title'],
    [data-gt='standings-title'],
    [data-gt='participants-title'],
    [data-gt='match-round-title'],
    [data-gt='entry-title'],
    [data-gt='br-teams-title'],
    [data-gt='br-schedule-title'],
    [data-gt='br-points-title'],
    [data-gt='mine-title']
  ) {
  font: 800 14.5px/1.2 var(--fc-display);
  font-stretch: 114%;
  letter-spacing: 0;
  text-transform: uppercase;
}
/* A count or a note beside a heading is a label, not part of the title. */
.gt-fc [data-gt='participants-title'] > span {
  font: 500 13px/1.2 var(--font-rubik);
  text-transform: none;
}
.gt-fc :is([data-gt='section-link'], [data-gt='panel-link']) {
  font: 600 12px/1.2 var(--font-rubik);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gt-fc [data-gt='empty'] {
  border-radius: 0;
}
.gt-fc [data-gt='empty-title'] {
  font: 800 15px/1.2 var(--fc-display);
  font-stretch: 114%;
  text-transform: uppercase;
}

/* ================================================================== cards: fixture cards */

.gt-fc .gt-fc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--fc-edge);
  background: var(--card);
}
/* The header's layers share one cell: the art, the clock tab hung from the top, the name. */
.gt-fc .gt-fc-card__art {
  display: grid;
  height: 172px;
  background: var(--background);
  overflow: hidden;
}
.gt-fc .gt-fc-card__art > * {
  grid-area: 1 / 1;
}
.gt-fc .gt-fc-card__pic {
  position: relative;
  overflow: hidden;
}
.gt-fc .gt-fc-card__img {
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gt-fc .gt-fc-card:hover .gt-fc-card__img {
  transform: scale(1.035);
}
.gt-fc .gt-fc-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgb(12 13 18 / 0.95) 4%,
    rgb(12 13 18 / 0.56) 50%,
    rgb(12 13 18 / 0.2) 100%
  );
}
.gt-fc .gt-fc-card__clock {
  z-index: 1;
  align-self: start;
  justify-self: start;
  padding: 7px 20px 7px 12px;
  background: var(--foreground);
  color: var(--background);
  font: 700 11.5px/1.1 var(--font-tech);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
}
[dir='rtl'] .gt-fc .gt-fc-card__clock {
  padding: 7px 12px 7px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 11px 100%);
}
.gt-fc .gt-fc-card__head {
  z-index: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 0 14px 13px;
}
.gt-fc .gt-fc-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  font: 900 18px/1.1 var(--fc-display);
  font-stretch: 116%;
  text-transform: uppercase;
  color: var(--foreground);
}
/* The whole card is the name's link; the actions sit above it. */
.gt-fc .gt-fc-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.gt-fc .gt-fc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  background: rgb(12 13 18 / 0.8);
  color: var(--soft);
  font: 700 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.gt-fc .gt-fc-chip[data-state='open'] {
  background: var(--primary);
  color: var(--primary-foreground);
}
.gt-fc .gt-fc-chip[data-state='lastSeats'] {
  background: var(--warning);
  color: var(--warning-foreground);
}
.gt-fc .gt-fc-chip[data-state='live'] {
  background: var(--destructive-fill);
  color: #fff;
}
.gt-fc .gt-fc-chip:is([data-state='ended'], [data-state='cancelled']) {
  color: var(--faint);
}
.gt-fc .gt-fc-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 14px;
}
.gt-fc .gt-fc-card__meta,
.gt-fc .gt-fc-card__nocap {
  margin: 0;
  font: 400 12.5px/1.4 var(--font-rubik);
  color: var(--muted-foreground);
}
.gt-fc .gt-fc-card__meta > span {
  white-space: nowrap;
}
.gt-fc .gt-fc-card .gt-fc-poss {
  --fc-bar: 6px;
}
.gt-fc .gt-fc-card__prize {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
}
.gt-fc .gt-fc-card__prize-label {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.gt-fc .gt-fc-card__prize-value {
  font: 700 17px/1 var(--font-tech);
  color: var(--warning);
}
.gt-fc .gt-fc-card__prize-value small {
  font-size: 10.5px;
}
.gt-fc .gt-fc-card__actions {
  margin-top: auto;
}

/* ================================================================== how it's played, integration */

.gt-fc :is([data-gt='how-step'], [data-gt='integration-summary'], [data-gt='integration-row']) {
  border-color: var(--line-soft);
  border-radius: 0;
  background: var(--sunken);
}
.gt-fc [data-gt='how-step'] {
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
}
.gt-fc [data-gt='how-marker'] {
  position: relative;
  flex: none;
  display: block;
}
/* The step's picture on a small tile, its corner cut; the step's number on the bright plate. */
.gt-fc .gt-fc-step {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--secondary);
  color: var(--foreground);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc .gt-fc-step {
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.gt-fc [data-gt='how-marker'] [data-gt='how-number'] {
  position: absolute;
  inset-block-end: -5px;
  inset-inline-end: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  background: var(--foreground);
  color: var(--background);
  font: 700 10.5px/1 var(--font-tech);
}
.gt-fc [data-gt='integration-icon'] {
  border-radius: 0;
}
.gt-fc [data-gt='integration-row-label'] {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.07em;
}

/* ================================================================== recent results: fixture rows */

.gt-fc [data-gt='tournament-row'] {
  gap: 16px;
  padding: 12px 16px 12px 12px;
}
[dir='rtl'] .gt-fc [data-gt='tournament-row'] {
  padding: 12px 12px 12px 16px;
}
/* The date on a recessed plate, the way a fixture list leads with the day. */
.gt-fc [data-gt='row-date'] {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 62px;
  padding: 8px 10px;
  background: var(--sunken);
}
.gt-fc [data-gt='row-art'] {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-gt='row-art'] {
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.gt-fc [data-gt='row-title'] {
  font: 800 16px/1.2 var(--fc-display);
  font-stretch: 114%;
  text-transform: uppercase;
}
.gt-fc [data-gt='row-prize-value'] {
  font: 700 18px/1.2 var(--font-tech);
}

/* ================================================================== side: squads, news, cta */

.gt-fc [data-gt='squad'] {
  border-radius: 0;
}
.gt-fc [data-gt='squad-rank'] {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--secondary);
  color: var(--foreground);
  font: 700 12px/1 var(--font-tech);
}
.gt-fc [data-gt='squad'][data-rank='1'] [data-gt='squad-rank'] {
  background: var(--warning);
  color: var(--warning-foreground);
}
.gt-fc [data-gt='squad-points'] {
  color: var(--foreground);
}
.gt-fc [data-gt='news-item'] {
  border-color: var(--line-soft);
  border-radius: 0;
  background: var(--sunken);
}
.gt-fc [data-gt='news-item']:hover {
  border-color: var(--line-hover);
}
.gt-fc [data-gt='news-item'] > :first-child {
  border-radius: 0;
}

/* The call to action stands on the centre spot. */
.gt-fc [data-gt='cta'] {
  background: var(--card);
}
.gt-fc [data-gt='cta-title'] {
  font: 900 17px/1.2 var(--fc-display);
  font-stretch: 116%;
  text-transform: uppercase;
}
.gt-fc .gt-fc-centre {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.gt-fc .gt-fc-centre :is(path, circle) {
  stroke: color-mix(in srgb, var(--foreground) 10%, transparent);
  stroke-width: 1.25px;
  vector-effect: non-scaling-stroke;
}
.gt-fc .gt-fc-centre .gt-fc-centre__spot {
  fill: color-mix(in srgb, var(--foreground) 14%, transparent);
  stroke: none;
}

/* ================================================================== tournament page: facts, tabs */

/* The status line's own colour stays in its words and its dot; its rule is the panel's. */
.gt-fc [data-gt='facts-status'] {
  border-color: var(--line-soft);
}
.gt-fc [data-gt='facts-status'] > div > span:last-child {
  font-family: var(--fc-display);
  font-stretch: 116%;
  letter-spacing: 0;
}
.gt-fc [data-gt='facts-status'] > div > span:first-child {
  border-radius: 0;
}

/*
 * The tab bar is the broadcast's lower third: wide capitals, and the current tab on the
 * bright plate with its corner cut — a filled plate, never a stripe under the word.
 */
.gt-fc [data-gt='tabs-nav'] {
  align-items: center;
  gap: 2px;
}
.gt-fc [data-gt='tab'] {
  height: 34px;
  padding-inline: 14px;
  box-shadow: none;
  font: 700 12px/1 var(--font-rubik);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.gt-fc [data-gt='tab']:hover {
  color: var(--foreground);
}
.gt-fc [data-gt='tab'][aria-current='page'] {
  background: var(--foreground);
  color: var(--background);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-gt='tab'][aria-current='page'] {
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
}
/* The viewer's own tab carries the player indicator: the triangle over the one you control. */
.gt-fc [data-gt='tab-mark'] {
  width: 9px;
  height: 7px;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ================================================================== tournament page: overview */

.gt-fc [data-gt='about-divider'] {
  background: var(--line-soft);
}
/* Each rule is led by the small triangle, in the neutral. */
.gt-fc [data-gt='rule-mark'] {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--faint);
  color: transparent;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-gt='rule-mark'] {
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ------------------------------------------------------------------ schedule: match days */

/*
 * Each step is a match day: its number in a square cell where the dot was, the round's name,
 * and the day on a plate at the end. The cell fills for the day being played and goes quiet
 * for the ones behind us.
 */
.gt-fc [data-gt='schedule'] {
  counter-reset: gt-fc-day;
}
.gt-fc [data-gt='schedule-step'] {
  counter-increment: gt-fc-day;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 14px;
  padding-bottom: 12px;
}
.gt-fc [data-gt='schedule-dot'] {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: var(--secondary);
  color: var(--foreground);
}
.gt-fc [data-gt='schedule-dot']::before {
  content: counter(gt-fc-day);
  font: 700 12px/1 var(--font-tech);
}
.gt-fc [data-gt='schedule-step'][data-active] [data-gt='schedule-dot'] {
  background: var(--primary);
  color: var(--primary-foreground);
}
.gt-fc [data-gt='schedule-step'][data-done] [data-gt='schedule-dot'] {
  background: var(--sunken);
  color: var(--faint);
}
.gt-fc [data-gt='schedule-rail'] {
  width: 1px;
  margin-top: 4px;
  background: var(--line-card);
}
.gt-fc [data-gt='schedule-name'] {
  font: 700 14px/1.3 var(--font-rubik);
}
.gt-fc [data-gt='schedule-step'][data-active] [data-gt='schedule-name'] {
  color: var(--primary-text);
}
.gt-fc [data-gt='schedule-when'] {
  align-self: start;
  padding: 5px 10px;
  background: var(--sunken);
  font: 600 12px/1.2 var(--font-tech);
  color: var(--soft);
}
.gt-fc [data-gt='schedule-when']:empty {
  display: none;
}

/* ------------------------------------------------------------------ the purse and the prizes */

/* The pool: its label, then the gold figure and its unit on one line, on a recessed ground. */
.gt-fc [data-gt='purse-head'] {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 18px 20px 16px;
  border-color: var(--line-soft);
  background: var(--sunken);
  text-align: start;
}
.gt-fc [data-gt='purse-label'] {
  flex-basis: 100%;
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc [data-gt='purse-amount'] {
  font: 700 36px/1.05 var(--font-tech);
}
.gt-fc [data-gt='purse-unit'] {
  font: 600 13px/1 var(--font-tech);
  color: var(--warning);
}
.gt-fc [data-gt='prize-places'] {
  border-color: var(--line-soft);
}
.gt-fc [data-gt='prize-places'] > h3 {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
}
.gt-fc [data-gt='prize-places'] > ul {
  gap: 0;
}
.gt-fc [data-gt='prize-place'] {
  padding-block: 7px;
  border-top: 1px solid var(--line-soft);
}
.gt-fc [data-gt='prize-place'] > span:first-child {
  font: 600 11px/1.2 var(--font-rubik);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gt-fc [data-gt='prize-place'] > span:last-child {
  font: 700 14px/1.2 var(--font-tech);
}
.gt-fc [data-gt='prize-place'][data-rank='1'] > span:last-child {
  font-size: 16px;
  color: var(--warning);
}
.gt-fc [data-gt='purse-row-label'] {
  color: var(--muted-foreground);
}
.gt-fc [data-gt='purse-seats-count'] {
  font-weight: 700;
}

/* ------------------------------------------------------------------ registration */

.gt-fc [data-gt='register-action']:is([data-variant='panel'], [data-variant='hero']) {
  font-size: 13.5px;
}
.gt-fc [data-gt='register-action'][data-variant='panel'] {
  height: 48px;
}
.gt-fc [data-gt='register-status'] {
  border-color: var(--line-soft);
  border-radius: 0;
  background: var(--sunken);
}
/* The phone's bar: a flat band over the page, the action its plate. */
.gt-fc [data-gt='register-bar'] {
  border-color: var(--line-card);
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.gt-fc [data-gt='register-bar-title'] {
  font: 800 13.5px/1.2 var(--fc-display);
  font-stretch: 112%;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------ who may enter, how it is played, organiser */

.gt-fc [data-gt='entry-rank'] {
  border-radius: 0;
}
.gt-fc [data-gt='setting-chip'] {
  border-radius: 0;
}
.gt-fc [data-gt='organizer-title'] {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc [data-gt='organizer-mark'] {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-gt='organizer-mark'] {
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
}

/* The champion: the panel recessed, the title in gold where the result is. */
.gt-fc [data-gt='panel'][data-panel='champion'] {
  background: var(--sunken);
}
.gt-fc [data-gt='champion-eyebrow'] {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
}
.gt-fc [data-gt='champion-name'] {
  font: 900 22px/1.15 var(--fc-display);
  font-stretch: 116%;
  text-transform: uppercase;
}

/* ================================================================== bracket: the road to the final */

.gt-fc [data-gt='bracket-round-head'] {
  border-color: var(--line-soft);
}
.gt-fc [data-gt='bracket-round-title'] {
  font: 800 12.5px/1.2 var(--fc-display);
  font-stretch: 114%;
  text-transform: uppercase;
}
.gt-fc [data-gt='bracket-connector'] {
  background: var(--line-card);
}

/*
 * A tie is a two-row scorebug: each side a name plate with its score in a square box at the
 * end. The winner's box fills with the action colour, the loser dims; the outline is neutral
 * whatever the tie's state — a live tie is said by its foot, the viewer's own by its strip.
 */
.gt-fc [data-gt='bracket-match'] {
  border-color: var(--border);
  border-radius: 0;
}
.gt-fc [data-gt='bracket-match']:hover {
  border-color: var(--line-hover);
}
.gt-fc [data-gt='bracket-slot'] {
  min-height: 32px;
  padding: 0;
  padding-inline-start: 11px;
  border-color: var(--line-soft);
}
.gt-fc [data-gt='bracket-slot-name'] {
  font: 500 13px/1.2 var(--font-rubik);
}
.gt-fc [data-gt='bracket-slot'][data-winner] [data-gt='bracket-slot-name'] {
  font-weight: 700;
}
.gt-fc [data-gt='bracket-score'] {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 34px;
  padding: 0;
  border-radius: 0;
  font: 700 14px/1 var(--font-tech);
}
.gt-fc [data-gt='bracket-match-foot'] {
  padding: 5px 11px;
  border-top: 1px solid var(--line-soft);
  font: 400 11px/1.3 var(--font-rubik);
}
/* The viewer's own tie: the strip is the bright plate, led by the player indicator. */
.gt-fc [data-gt='bracket-yours'] {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: var(--foreground);
  color: var(--background);
  font: 700 10px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc [data-gt='bracket-yours']::before {
  content: '';
  width: 8px;
  height: 6px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
/* The champion's card: recessed, a neutral outline, the name and the prize in gold. */
.gt-fc [data-gt='bracket-champion-card'] {
  border-color: var(--border);
  border-radius: 0;
  background: var(--sunken);
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
[dir='rtl'] .gt-fc [data-gt='bracket-champion-card'] {
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.gt-fc [data-gt='bracket-champion-card'] > div:nth-child(2) {
  font: 900 15px/1.2 var(--fc-display);
  font-stretch: 114%;
  text-transform: uppercase;
}

/* The big bracket's controls and cells take the same flat shape. */
.gt-fc
  :is(
    [data-gt='big-bracket-round-tab'],
    [data-gt='big-bracket-cell'],
    [data-gt='big-bracket-road'],
    [data-gt='big-bracket-search'],
    [data-gt='big-bracket-mine'],
    [data-gt='big-bracket-result']
  ) {
  border-radius: 0;
}

/* ================================================================== standings: the league table */

.gt-fc [data-gt='standings'] thead {
  background: var(--sunken);
}
.gt-fc [data-gt='standings'] th {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc [data-gt='standings'] :is(tr, thead tr) {
  border-color: var(--line-soft);
}
.gt-fc [data-gt='standings'] td {
  padding-block: 9px;
}
/* The position in a small square cell. Still in: the cell is filled. Out: only outlined. */
.gt-fc [data-gt='standings'][data-kind='knockout'] td:first-child > span,
.gt-fc [data-gt='standings'][data-kind='lobbies'] td:first-child {
  font: 700 12.5px/1 var(--font-tech);
}
.gt-fc [data-gt='standings'][data-kind='knockout'] td:first-child > span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding-inline: 6px;
  background: var(--secondary);
  color: var(--foreground);
}
.gt-fc [data-gt='standings-row'][data-status='out'] td:first-child > span {
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--faint);
}
/* The champion: the cell filled in gold, the row on a recessed ground. */
.gt-fc [data-gt='standings-row'][data-status='champion'] {
  background: var(--sunken);
}
.gt-fc [data-gt='standings-row'][data-status='champion'] td:first-child > span {
  background: var(--warning);
  color: var(--warning-foreground);
}
.gt-fc [data-gt='standings-row'][data-status='out'] td:nth-child(2) {
  color: var(--muted-foreground);
}
.gt-fc [data-gt='standings-row'] [data-badge='open'] {
  background: var(--secondary);
  color: var(--foreground);
}

/* ================================================================== matches: scorebug rows */

/*
 * One match, one scorebug: the state on a plate, the two names either side of two square
 * score boxes. The winner's box fills; the row's outline stays neutral.
 */
.gt-fc [data-gt='match-row'] {
  gap: 12px;
  min-height: 46px;
  padding: 7px 14px;
  border-color: var(--border);
  border-radius: 0;
}
.gt-fc [data-gt='match-row']:hover {
  border-color: var(--line-hover);
}
.gt-fc [data-gt='match-row']:focus-visible {
  outline-offset: -3px;
}
.gt-fc [data-gt='match-row']:not([data-bye]) [data-gt='match-score'] {
  gap: 3px;
  padding: 0;
  border-radius: 0;
  background: none;
  font: 700 15px/1 var(--font-tech);
}
.gt-fc [data-gt='match-score'] > span:is(:first-child, :last-child) {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  background: var(--score);
}
.gt-fc [data-gt='match-score'] > span:nth-child(2):not(:last-child) {
  display: none;
}
.gt-fc [data-gt='match-side'][data-winner] + [data-gt='match-score'] > span:first-child,
.gt-fc [data-gt='match-score']:has(+ [data-gt='match-side'][data-winner]) > span:last-child {
  background: var(--primary);
  color: var(--primary-foreground);
}
.gt-fc [data-gt='match-row'][data-live] [data-gt='match-score'] > span {
  color: var(--live);
}
.gt-fc [data-gt='match-row'][data-mine] [data-gt='match-state']::before {
  content: '';
  width: 8px;
  height: 6px;
  background: var(--primary);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ================================================================== participants: the squad list */

.gt-fc [data-gt='participant'] {
  padding: 10px 12px;
  border-color: var(--border);
  border-radius: 0;
}
/* The seed, like a shirt number: a square cell at the end of the row. */
.gt-fc [data-gt='participant-seed'] {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 26px;
  padding-inline: 6px;
  background: var(--sunken);
  font: 700 12px/1 var(--font-tech);
  color: var(--soft);
}
.gt-fc [data-gt='participant'][data-mine] {
  background: var(--sunken);
}
.gt-fc [data-gt='participant'][data-mine] [data-gt='participant-seed'] {
  background: var(--foreground);
  color: var(--background);
}

/* ================================================================== my tournament, battle royale */

.gt-fc
  :is(
    [data-gt='mine-opponent'],
    [data-gt='mine-room'],
    [data-gt='mine-history-row'],
    [data-gt='mine-member'],
    [data-gt='br-bigstat'],
    [data-gt='br-team'],
    [data-gt='br-round-result'],
    [data-gt='br-schedule-row']
  ) {
  border-radius: 0;
}
.gt-fc [data-gt='mine-standing'] {
  font-family: var(--fc-display);
  font-stretch: 114%;
  text-transform: uppercase;
}

/* ================================================================== dialogs: the fixture announcement */

.gt-fc.gt-dialog {
  --fc-edge: var(--line-card);
  --fc-ground: var(--popover);
  border-color: var(--fc-edge);
}
.gt-fc.gt-dialog [data-gt='dialog-banner'] {
  position: relative;
}
.gt-fc .gt-fc-announce {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 176px;
  padding: 14px 18px 16px;
  overflow: hidden;
  background: var(--background);
}
.gt-fc .gt-fc-announce__img {
  z-index: -2;
  object-fit: cover;
  opacity: 0.85;
}
.gt-fc .gt-fc-announce__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    rgb(12 13 18 / 0.96) 0%,
    rgb(12 13 18 / 0.72) 55%,
    rgb(12 13 18 / 0.34) 100%
  );
}
.gt-fc .gt-fc-announce__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Clear of the cut corner. */
  padding-inline-end: 10px;
}
.gt-fc .gt-fc-announce__game {
  padding: 4px 9px;
  background: var(--foreground);
  color: var(--background);
  font: 700 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc .gt-fc-announce__fee {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 4px 9px;
  background: rgb(12 13 18 / 0.78);
}
.gt-fc .gt-fc-announce__fee > span {
  font: 600 10px/1.2 var(--font-rubik);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}
.gt-fc .gt-fc-announce__fee > b {
  font: 600 12.5px/1.2 var(--font-rubik);
}
.gt-fc .gt-fc-announce__fee[data-paid] > b {
  color: var(--warning);
}
.gt-fc .gt-fc-announce__foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gt-fc .gt-fc-announce__name {
  font: 900 20px/1.08 var(--fc-display);
  font-stretch: 118%;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.gt-fc .gt-fc-announce__when,
.gt-fc .gt-fc-announce__nocap {
  font: 400 12.5px/1.4 var(--font-rubik);
  color: var(--soft);
}
.gt-fc .gt-fc-announce .gt-fc-poss {
  --fc-bar: 6px;
  margin-top: 6px;
}

.gt-fc.gt-dialog [data-gt='dialog-eyebrow'] {
  font: 600 10.5px/1.2 var(--font-rubik);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gt-fc.gt-dialog [data-gt='dialog-title'] {
  font: 900 17px/1.2 var(--fc-display);
  font-stretch: 116%;
  text-transform: uppercase;
}
/* The register form's line repeats what the announcement already shows (game, fee, seats). */
.gt-fc.gt-dialog
  [data-gt='dialog-banner'][data-variant='register']
  ~ [data-gt='dialog-head']
  [data-gt='dialog-description'] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}
.gt-fc.gt-dialog :is([data-gt='dialog-note'], [data-gt='dialog-account']),
.gt-fc.gt-dialog
  [data-gt='dialog-body']
  :is(input, [role='combobox'], ul, [data-gt='dialog-field'] > div) {
  border-radius: 0;
}
.gt-fc.gt-dialog [data-gt='dialog-note'] {
  border-color: var(--line-soft);
  background: var(--sunken);
}
.gt-fc.gt-dialog [data-gt='dialog-action']:is([data-action='confirm'], [data-action='sign-in']) {
  height: 46px;
  font-size: 13.5px;
}

/* ================================================================== match day: the football layer */

/*
 * What makes the page read as football at a glance, drawn in the platform's colours: the
 * pitch under everything (mown bands and the halfway line with its centre circle), the
 * floodlit pitch over the hero art, the stadium scoreboard's LED figures, the pitch-side LED
 * boards for the fixtures ticker, match tickets for the cards, and a ball before every
 * heading.
 */

/* The body stands on the pitch: mown bands that fade down the page, and the chalk of the
   halfway line and the centre circle across its top. */
.gt-fc [data-gt='body'] {
  position: relative;
  isolation: isolate;
}
.gt-fc [data-gt='body']::before,
.gt-fc [data-gt='body']::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.gt-fc [data-gt='body']::before {
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--foreground) 3%, transparent) 0 120px,
    transparent 120px 240px
  );
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 45%, transparent 100%);
}
.gt-fc [data-gt='body']::after {
  inset: 0 0 auto;
  height: 280px;
  background: color-mix(in srgb, var(--foreground) 11%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 280' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M0 1H1200'/%3E%3Ccircle cx='600' cy='1' r='138'/%3E%3Ccircle cx='600' cy='1' r='6' fill='black' stroke='none'/%3E%3C/svg%3E")
    top center / 1200px 280px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 280' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M0 1H1200'/%3E%3Ccircle cx='600' cy='1' r='138'/%3E%3Ccircle cx='600' cy='1' r='6' fill='black' stroke='none'/%3E%3C/svg%3E")
    top center / 1200px 280px no-repeat;
}

/* The hero's pitch, floodlit: the lines and the mown bands read at a glance, and two
   floodlight pools fall from the top of the stand. */
.gt-fc .gt-fc-pitch {
  -webkit-mask-image: linear-gradient(90deg, transparent 16%, #000 52%);
  mask-image: linear-gradient(90deg, transparent 16%, #000 52%);
}
.gt-fc .gt-fc-pitch__stripes rect {
  fill: rgb(255 255 255 / 0.07);
}
.gt-fc .gt-fc-pitch__lines :is(path, circle) {
  stroke: rgb(255 255 255 / 0.5);
  stroke-width: 1.75px;
}
.gt-fc .gt-fc-pitch__spots circle {
  fill: rgb(255 255 255 / 0.75);
}
.gt-fc .gt-fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 34% 70% at 88% -12%, rgb(255 255 255 / 0.18), transparent 70%),
    radial-gradient(ellipse 26% 55% at 52% -18%, rgb(255 255 255 / 0.11), transparent 70%);
}
[dir='rtl'] .gt-fc .gt-fc-hero::before {
  transform: scaleX(-1);
}

/* The stat tiles are the stadium scoreboard: a dark LED panel, the figures lit in dots. */
.gt-fc :is([data-gt='stat'], [data-gt='detail-stat']) {
  background-color: var(--sunken);
  background-image: radial-gradient(
    color-mix(in srgb, var(--foreground) 7%, transparent) 0.9px,
    transparent 1.3px
  );
  background-size: 4px 4px;
}
.gt-fc [data-gt='stat-label'] > * {
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 0.14em;
}
.gt-fc [data-gt='stat-value'][data-numeric] {
  margin-top: 6px;
  font: 700 44px/1 var(--font-tech);
  color: var(--bright);
  -webkit-mask: radial-gradient(circle, #000 1.25px, transparent 1.45px) 0 0 / 3px 3px;
  mask: radial-gradient(circle, #000 1.25px, transparent 1.45px) 0 0 / 3px 3px;
}
.gt-fc [data-gt='stat'][data-tone='live'] [data-gt='stat-value'][data-numeric] {
  color: var(--live);
}
.gt-fc .gt-fc-figure {
  color: var(--faint);
}

/* The fixtures ticker is the LED board round the pitch: lit in dots, pitch-dark between. */
.gt-fc .gt-fc-strip {
  position: relative;
  border-block: 1px solid rgb(255 255 255 / 0.08);
  background: #08090c;
}
.gt-fc .gt-fc-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgb(0 0 0 / 0.32) 1px, transparent 1px),
    linear-gradient(0deg, rgb(0 0 0 / 0.32) 1px, transparent 1px);
  background-size: 3px 3px;
}
.gt-fc .gt-fc-strip__inner {
  height: 48px;
}
.gt-fc .gt-fc-fixture__name {
  font: 700 14px/1.2 var(--font-tech);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Cards are match tickets: torn across where the art meets the stub, a notch at each end. */
.gt-fc .gt-fc-card {
  --fc-tear: 173px;
  -webkit-mask:
    radial-gradient(circle 9px at 0 var(--fc-tear), #0000 96%, #000),
    radial-gradient(circle 9px at 100% var(--fc-tear), #0000 96%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 9px at 0 var(--fc-tear), #0000 96%, #000),
    radial-gradient(circle 9px at 100% var(--fc-tear), #0000 96%, #000);
  mask-composite: intersect;
}
.gt-fc .gt-fc-card__body {
  position: relative;
  padding-top: 18px;
}
.gt-fc .gt-fc-card__body::before {
  content: '';
  position: absolute;
  top: -2px;
  inset-inline: 14px;
  height: 4px;
  background: radial-gradient(circle, var(--line-hover) 1.6px, transparent 1.9px) 0 50% / 9px 4px
    repeat-x;
}
.gt-fc .gt-fc-card__clock {
  display: grid;
  gap: 3px;
  padding-block: 7px 8px;
}
.gt-fc .gt-fc-card__ko {
  font: 800 9px/1 var(--font-rubik);
  letter-spacing: 0.16em;
  opacity: 0.62;
}

/* A ball before every heading. */
.gt-fc
  :is(
    [data-gt='section-title'],
    [data-gt='panel-title'],
    [data-gt='standings-title'],
    [data-gt='participants-title'],
    [data-gt='match-round-title'],
    [data-gt='entry-title'],
    [data-gt='br-teams-title'],
    [data-gt='br-schedule-title'],
    [data-gt='br-points-title'],
    [data-gt='mine-title']
  )::before,
[dir='rtl']
  .gt-fc
  :is(
    [data-gt='section-title'],
    [data-gt='panel-title'],
    [data-gt='standings-title'],
    [data-gt='participants-title'],
    [data-gt='match-round-title'],
    [data-gt='entry-title'],
    [data-gt='br-teams-title'],
    [data-gt='br-schedule-title'],
    [data-gt='br-points-title'],
    [data-gt='mine-title']
  )::before {
  width: 0.9em;
  height: 0.9em;
  vertical-align: -0.12em;
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.4l4.3 3.1-1.6 5H9.3l-1.6-5z' fill='black'/%3E%3Cpath d='M12 7.4V2.2M16.3 10.5l5-1.7M14.7 15.5l3.1 4.2M9.3 15.5l-3.1 4.2M7.7 10.5l-5-1.7' stroke-width='1.7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.4l4.3 3.1-1.6 5H9.3l-1.6-5z' fill='black'/%3E%3Cpath d='M12 7.4V2.2M16.3 10.5l5-1.7M14.7 15.5l3.1 4.2M9.3 15.5l-3.1 4.2M7.7 10.5l-5-1.7' stroke-width='1.7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* The call to action stands on the centre spot, the chalk plain to see. */
.gt-fc .gt-fc-centre :is(path, circle) {
  stroke: color-mix(in srgb, var(--foreground) 20%, transparent);
  stroke-width: 1.75px;
}
.gt-fc .gt-fc-centre .gt-fc-centre__spot {
  fill: color-mix(in srgb, var(--foreground) 30%, transparent);
}

/* Arabic: the ticker's names are words, not LED capitals. */
:lang(ar) .gt-fc .gt-fc-fixture__name {
  font-family: var(--font-rubik);
  letter-spacing: 0;
}

/* ================================================================== light site theme */

/* By day the gold fill stays the brand's own; `--warning` there is the darker gold of words. */
:root[data-theme='light']
  .gt-fc
  [data-gt='standings-row'][data-status='champion']
  td:first-child
  > span,
:root[data-theme='light'] .gt-fc [data-gt='squad'][data-rank='1'] [data-gt='squad-rank'],
:root[data-theme='light'] .gt-fc .gt-fc-poss[data-tone='low'] i[data-side='away'] {
  background: #ffc53d;
}
/* Inside a night panel the gold is already the bright one. */
:root[data-theme='light'] .gt-fc .theme-dark .gt-fc-poss[data-tone='low'] i[data-side='away'] {
  background: var(--warning);
}
:root[data-theme='light'] .gt-fc [data-gt='register-bar'] {
  background: var(--card);
}

/* ================================================================== phones and narrow columns */

@media (min-width: 640px) {
  .gt-fc .gt-fc-strip__inner {
    padding-inline: 28px;
  }
}
@media (max-width: 639px) {
  .gt-fc .gt-fc-board {
    width: 100%;
  }
  .gt-fc [data-gt='hero-actions'] {
    width: 100%;
  }
  .gt-fc [data-gt='hero-actions'] > :first-child {
    flex: 1;
  }
  .gt-fc .gt-fc-strip__label {
    display: none;
  }
  .gt-fc :is([data-gt='stat'], [data-gt='detail-stat']) {
    padding: 13px 14px;
  }
  .gt-fc :is([data-gt='stat'], [data-gt='detail-stat']):has([data-gt='stat-figure']) {
    padding-inline-end: 50px;
  }
  .gt-fc [data-gt='stat-figure'] {
    inset-inline-end: 12px;
  }
  .gt-fc .gt-fc-figure .gt-fc-ico {
    width: 28px;
    height: 28px;
  }
  .gt-fc [data-gt='stat-value'][data-numeric] {
    font-size: 27px;
  }
  .gt-fc [data-gt='schedule-step'] {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .gt-fc [data-gt='schedule-when'] {
    grid-column: 2;
    justify-self: start;
  }
  /* A match on a phone: the state above, the two names either side of the score. */
  .gt-fc [data-gt='match-row'] {
    padding: 9px 12px;
  }
}

/* ================================================================== Arabic */

/*
 * Tracking and capitals break Arabic joining: nothing in Arabic is letter-spaced or forced
 * to capitals, whatever rule above set them (`!important`, so no label can be missed). Latin
 * runs marked as such (`.latin`, `.num-ltr`, `lang="en"`) keep theirs. The display face has
 * no Arabic: titles fall through the stack to Rubik glyph by glyph, on a looser line.
 */
.gt-fc :lang(ar):not(.latin, .num-ltr) {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.gt-fc
  :is(
    [data-gt='hero-title'],
    [data-gt='section-title'],
    [data-gt='row-title'],
    [data-gt='champion-name'],
    .gt-fc-card__title,
    .gt-fc-board__name,
    .gt-fc-announce__name
  ):lang(ar) {
  line-height: 1.3;
}

/* ================================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  .gt-fc .gt-fc-live {
    animation: none;
  }
  /* The ticker stands still and is scrolled by hand; its repeat is not shown. */
  .gt-fc .gt-fc-strip__track[data-belt] {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .gt-fc .gt-fc-strip__track[data-belt] .gt-fc-strip__belt {
    animation: none;
  }
  .gt-fc .gt-fc-strip__run[aria-hidden] {
    display: none;
  }
  .gt-fc :is(.gt-fc-card__img, [data-gt='tournament-row'], .gt-fc-card, .gt-fc-fixture__name) {
    transition: none;
  }
  .gt-fc .gt-fc-card:hover .gt-fc-card__img {
    transform: none;
  }
}
