.fc-winner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(95px, 33%);
  align-items: center;
  gap: 12px;
  min-height: 154px;
  margin: 2px 0 12px;
  padding: 19px 23px;
  color: #fff9da;
  border: 1px solid #1e452e;
  border-radius: 10px;
  background: linear-gradient(110deg, #1d4334 12%, #335d45 71%, #466648);
}
.fc-winner::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #e7cd803e;
  border-radius: 6px;
}
.fc-citation {
  min-width: 0;
}
.fc-citation small {
  display: block;
  color: #e9dca8;
  font: 650 12px/1.2 var(--sans);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.fc-citation h3 {
  margin: 6px 0 7px;
  color: #fffbe8;
  font: 700 clamp(27px, 6vw, 40px)/0.99 var(--serif);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.fc-citation > span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #ecefdc;
  font: 550 13px/1.25 var(--sans);
}
.fc-citation > span i {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--fc-seat);
  box-shadow: 0 0 0 1px #fff7;
}
.fc-citation > b {
  display: inline-block;
  margin-top: 12px;
  padding-top: 7px;
  border-top: 1px solid #bfcbb05c;
  font: 600 13px/1.2 var(--sans);
}
.fc-medal {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 145px;
  justify-self: center;
  aspect-ratio: 1;
}
.fc-medal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6%;
  border: 3px double #d7bd7f;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 36% 25%,
    #fff5d9 10%,
    #ead8aa 57%,
    #c2aa70
  );
  box-shadow:
    0 0 0 3px #254a35,
    0 0 0 4px #b6985e,
    2px 6px 10px #12281b68;
}
.fc-medal img {
  display: block;
  width: 104%;
  height: 104%;
  object-fit: contain;
  filter: drop-shadow(1px 5px 3px #503b1733);
}
.fc-confetti {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.fc-confetti i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 7px;
  background: #efd592;
  transform: rotate(var(--turn));
  opacity: 0.7;
}
.fc-confetti i:nth-child(3n) {
  background: #e28d69;
  width: 5px;
  height: 3px;
}
.fc-confetti i:nth-child(3n + 1) {
  background: #a9c5ab;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .fc-confetti i {
    animation: fc-paper-fall 1.2s ease-out var(--delay) backwards;
  }
}
@keyframes fc-paper-fall {
  from {
    transform: translate(-9px, -58px) rotate(calc(var(--turn) - 120deg));
    opacity: 0;
  }
  30% {
    opacity: 0.85;
  }
  to {
    transform: rotate(var(--turn));
    opacity: 0.7;
  }
}
.fc-records {
  margin: 12px 0;
}
.fc-records h3,
.fc-history h3 {
  margin: 0 0 8px;
  font: 700 19px/1.2 var(--serif);
  color: #2c4836;
}
.fc-records > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 118px), 1fr));
  gap: 6px;
}
.fc-record {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cccbb3;
  border-top: 2px solid #a88c51;
  border-radius: 5px;
  background: #f6f2e2;
}
.fc-record > span {
  display: block;
  color: #5a6554;
  font: 550 12px/1.2 var(--sans);
}
.fc-record > b {
  display: block;
  margin: 4px 0 5px;
  color: #294332;
  font: 700 18px/1.1 var(--serif);
}
.fc-record > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 5px;
  font-size: 12px;
}
.fc-record .participant {
  min-width: 0;
}
.fc-record .participant img {
  width: 19px;
  height: 19px;
}
.fc-history {
  margin: 15px 0;
  padding: 13px;
  color: #294434;
  border: 1px solid #c4cbb7;
  border-radius: 8px;
  background: #f6f7ed;
}
.fc-history .fc-empty {
  margin: 0;
  color: #5b6959;
  font: 400 14px/1.4 var(--sans);
}
.fc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 15px;
}
.fc-tabs button {
  padding: 6px 8px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #4b6150;
  font: 650 13px/1.2 var(--sans);
}
.fc-tabs button[aria-pressed="true"] {
  background: #29503c;
  border-color: #244635;
  color: #fffbe8;
}
.fc-tabs button:disabled {
  opacity: 0.47;
}
.fc-graph {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: clamp(112px, 19vh, 166px) auto;
  gap: 6px 9px;
  margin: 4px 4px 8px 0;
  font: 500 12px/1.1 var(--sans);
  color: #647161;
}
.fc-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  margin-block: -0.42em;
  font-variant-numeric: tabular-nums;
}
.fc-plot {
  position: relative;
  min-width: 0;
  cursor: crosshair;
}
.fc-grid,
.fc-plot > svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fc-grid {
  border-block: 1px solid #b9c3ac;
  background: linear-gradient(
    to bottom,
    transparent calc(50% - 0.5px),
    #cdd2c0 calc(50% - 0.5px),
    #cdd2c0 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}
.fc-plot svg {
  overflow: visible;
  pointer-events: none;
}
.fc-hair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed #65775e;
  pointer-events: none;
}
.fc-mark,
.fc-isolated {
  position: absolute;
  display: block;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fc-mark {
  left: -0.5px;
  width: 11px;
  height: 11px;
  border: 1px solid #fffcec;
  box-shadow: 0 0 0 1px #344c3c66;
}
.fc-isolated {
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  background: var(--ink);
}
.fc-no-series {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 7px;
  background: #f6f7ed;
  color: #566754;
  font-size: 12px;
  text-align: center;
}
.fc-ends {
  grid-column: 2;
  display: flex;
  gap: 9px;
  justify-content: space-between;
}
.fc-ends > :only-child {
  margin: auto;
}
.fc-period > label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 9px 0 7px;
  color: #53684f;
  font: 600 13px/1.2 var(--sans);
}
.fc-period select {
  width: auto;
  max-width: 65%;
  min-height: 30px;
  padding: 4px 26px 4px 8px;
  color: #284d35;
  font: 650 13px/1.2 var(--sans);
}
.fc-keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.fc-key {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-align: start;
  gap: 3px 6px;
  flex-wrap: wrap;
  min-width: 0;
  min-height: 31px;
  padding: 6px 7px;
  border: 1px solid #cdd4c0;
  border-radius: 5px;
  background: #fdfbf1;
  font: 600 12px/1.2 var(--sans);
  color: #2c4838;
}
.fc-key-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
  overflow-wrap: anywhere;
}
.fc-key-name i {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--fc-ink);
}
.fc-key b {
  white-space: nowrap;
  color: #284937;
  font-variant-numeric: tabular-nums;
}
.fc-key[aria-pressed="false"] {
  border-style: dashed;
  background: transparent;
  color: #6e776c;
}
.fc-key[aria-pressed="false"] .fc-key-name i {
  background: transparent;
  border: 1px solid var(--fc-ink);
}
.fc-key:hover,
.fc-tabs button:hover:not(:disabled):not([aria-pressed="true"]) {
  border-color: #8fa78b;
}
@media (max-width: 410px) {
  .fc-winner {
    padding: 16px;
    min-height: 130px;
  }
  .fc-history {
    padding: 10px;
  }
  .fc-tabs {
    gap: 1px;
  }
  .fc-tabs button {
    padding-inline: 5px;
  }
  .fc-graph {
    gap: 4px 6px;
  }
  .fc-records > div {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 98px), 1fr));
  }
}
