:root {
  color: #000;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 1.5rem;
  color: #000;
  background: #fff;
}

main {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.corner-credit {
  position: fixed;
  right: 0.9rem;
  bottom: 0.75rem;
  z-index: 5;
  color: #111;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  opacity: 0.45;
  pointer-events: none;
}

.page-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.top-link {
  margin: 0 0 0.5rem;
}

.header-subtitle {
  margin: 0.35rem 0 0;
  color: #444;
  font-size: 1rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.refresh-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.48), rgba(20, 20, 40, 0.65));
  backdrop-filter: blur(2px);
}

.refresh-overlay[hidden] {
  display: none;
}

.refresh-overlay__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-overlay__gif {
  width: min(24vw, 180px);
  max-width: 180px;
  height: auto;
  pointer-events: none;
}

a {
  color: #0000ee;
}

table {
  margin: 3rem 0;
}

th,
td {
  vertical-align: top;
}

.keyword-wrap {
  position: relative;
  display: inline-block;
  outline: none;
}

.keyword-text {
  color: #000;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 120ms ease;
}

.medal-gold {
  background: linear-gradient(180deg, #f7d25c 0%, #b57d0f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.medal-silver {
  background: linear-gradient(180deg, #e8e8e8 0%, #8d959b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.medal-bronze {
  background: linear-gradient(180deg, #f0c28b 0%, #9a4f16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.keyword-wrap:hover .keyword-text,
.keyword-wrap:focus .keyword-text {
  text-decoration-color: #a7dcf4;
}

.keyword-tooltip {
  position: absolute;
  z-index: 1;
  bottom: calc(100% + 0.45rem);
  left: 50%;
  width: max-content;
  max-width: 18rem;
  padding: 0.4rem 0.55rem;
  color: #000;
  background: rgba(255, 164, 73, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.2);
  font: 0.85rem/1.3 Arial, Helvetica, sans-serif;
  text-align: left;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.2rem);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

.keyword-wrap:hover .keyword-tooltip,
.keyword-wrap:focus .keyword-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.keyword-tooltip[hidden] {
  display: none;
}
