:root { color-scheme: light; font-family: system-ui, sans-serif; color: #202522; background: #f5f5f0; }
* { box-sizing: border-box; }
body { margin: 0; --accent: #205b3e; }
.series-boat { --accent: #174879; }
.series-keirin { --accent: #882a29; }
header { text-align: center; padding: 1rem; background: white; border-bottom: 1px solid #dde0d9; }
header img { max-width: 65vw; height: auto; }
main { max-width: 58rem; margin: 0 auto; padding: 1rem; }
article { background: white; border: 1px solid #dfe2dc; border-radius: .8rem; padding: clamp(1rem, 4vw, 2rem); }
h1 { margin-top: 0; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.35; }
h2 { font-size: 1.2rem; }
p, li { line-height: 1.7; }
a { color: var(--accent); }
.intro { font-size: 1.1rem; font-weight: 650; }
.series-nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.2rem; margin: .6rem 0 1rem; }
.series-nav:last-child { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .55rem; border: 1px solid #dfe2dc; text-align: left; vertical-align: top; }
th { background: #eef1ed; }
button { font: inherit; min-height: 2.8rem; border-radius: .5rem; border: 1px solid var(--accent); color: white; background: var(--accent); padding: .5rem .8rem; cursor: pointer; }
button:disabled { opacity: .75; cursor: auto; }
.iq-choices { display: grid; gap: .65rem; }
.iq-choices button { text-align: left; background: white; color: var(--accent); }
details { margin-top: 1rem; }
summary { cursor: pointer; }

.iq-meter {
  --sweep: 0deg;
  --needle: -120deg;
  --dial: #86e6b8;
  width: min(100%, 21rem);
  aspect-ratio: 1;
  margin: 1rem auto;
  position: relative;
  isolation: isolate;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 15%, #23413c, #10191b 62%);
  color: #edfdf9;
}
.series-boat .iq-meter { --dial: #8fd6ff; }
.series-keirin .iq-meter { --dial: #ffad9e; }
.iq-meter::before, .iq-meter::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  mask: radial-gradient(farthest-side, transparent 90%, #000 91%);
  background: conic-gradient(from 240deg, #ffffff38 240deg, transparent 0);
}
.iq-meter::after {
  background: conic-gradient(from 240deg, var(--dial) var(--sweep), transparent 0);
}
.iq-meter-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: clamp(.72rem, 3vw, .95rem);
  font-variant-numeric: tabular-nums;
}
.iq-meter-needle {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 9%;
  width: 3px;
  height: 41%;
  border-radius: 2px;
  background: var(--dial);
  box-shadow: 0 0 8px var(--dial);
  transform-origin: center bottom;
  transform: rotate(var(--needle));
}
.iq-meter-digits {
  position: absolute;
  inset: 51% 0 auto;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .35rem;
  font-family: ui-monospace, monospace;
}
.iq-meter-digits strong {
  color: var(--dial);
  font-size: clamp(2.4rem, 12vw, 4.2rem);
  line-height: 1.15;
  text-shadow: 0 0 .5rem color-mix(in srgb, var(--dial), transparent 55%);
}
