/* A compact viewport utility; never resize or reposition the room artwork. */
#fc-recent-records {
  --records-gold: #ffdf8c;
  --records-cyan: #80edfa;
  position: absolute;
  top: 16px; left: 20px; right: auto;
  z-index: 45;
  width: min(640px, 42%, calc(100% - 300px));
  height: 38px; min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  padding: 5px 10px;
  border: 1px solid #c7ac6247; border-radius: 10px;
  color: #f8f8ff;
  background: linear-gradient(105deg, #18152fe8, #081b2be8);
  box-shadow: 0 3px 14px #0005, inset 0 1px #fff1;
  font-family: "Nunito", sans-serif;
  font-size: clamp(13px, .85vw, 16px); font-weight: 800;
}
#fc-recent-records[hidden] { display: none !important; }
#fc-recent-records .fc-records-label {
  flex: 0 0 auto; padding-right: 10px; border-right: 1px solid #ffe8a538;
  color: var(--records-gold); font-size: 9px; font-weight: 900;
  line-height: 1.15; letter-spacing: .06em; white-space: nowrap;
}
#fc-recent-records .fc-records-window { min-width: 0; flex: 1 1 auto; overflow: hidden; }
#fc-recent-records .fc-records-line {
  display: inline-flex; align-items: center; gap: 0;
  width: max-content; max-width: none; white-space: nowrap;
  transform: translate3d(0, 0, 0);
}
#fc-recent-records .fc-records-sequence {
  position: relative; display: inline-flex; align-items: center;
  flex: 0 0 auto; width: max-content;
}
#fc-recent-records .fc-records-entry {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto; padding-right: 28px;
}
#fc-recent-records .fc-records-entry::after {
  content: ""; position: absolute; right: 13px; top: 50%;
  height: 14px; border-right: 1px solid #ffe8a55c; transform: translateY(-50%);
}
#fc-recent-records .fc-records-line strong { color: var(--records-gold); }
#fc-recent-records .fc-records-rank { color: var(--records-cyan); }
#fc-recent-records .fc-records-line.is-moving {
  will-change: transform;
}
#fc-recent-records[data-error="true"] { border-color: #ffb97580; }
.fc-records-settings h3 { margin: 0 0 14px; font: inherit; font-size: 1.05rem; font-weight: 900; }
.fc-records-settings label { display: flex; align-items: center; gap: 12px; cursor: pointer; font: inherit; font-weight: 800; }
.fc-records-settings input { flex: 0 0 auto; width: 20px; height: 20px; margin: 0; accent-color: #80edfa; }
.fc-records-settings input:focus-visible { outline: 3px solid #ffdf8c; outline-offset: 4px; }
.fc-records-settings p { margin: 12px 0 0; color: var(--muted, #bec9dc); font: inherit; font-size: .85rem; line-height: 1.5; }
@media (max-width: 1000px) {
  #fc-recent-records { left: 16px; gap: 7px; padding-inline: 8px; }
  #fc-recent-records .fc-records-label { max-width: 54px; padding-right: 7px; white-space: normal; font-size: 8px; }
}
@media (max-width: 760px) { #fc-recent-records { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #fc-recent-records { height: auto; min-height: 38px; align-items: flex-start; }
  #fc-recent-records .fc-records-label { padding-top: 3px; }
  #fc-recent-records .fc-records-window { max-height: 96px; overflow: auto; }
  #fc-recent-records .fc-records-line,
  #fc-recent-records .fc-records-sequence {
    display: block; width: auto; white-space: normal; overflow-wrap: anywhere;
    transform: none !important; will-change: auto;
  }
  #fc-recent-records .fc-records-sequence[aria-hidden="true"] { display: none; }
  #fc-recent-records .fc-records-entry { display: block; padding: 0 0 8px; }
  #fc-recent-records .fc-records-entry > * { margin-right: .5em; }
  #fc-recent-records .fc-records-entry::after { display: none; }
}
