@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/inter-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02DF, U+0304,
    U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;

  /* The neutral scale is warm monochrome: the accent is the foreground
     itself, so every grey sits one hue away from it. */
  --bg: oklch(99.2% 0.004 75);
  --surface: oklch(100% 0 0);
  --fill: oklch(96.1% 0.005 75);
  --fill-hover: oklch(94.8% 0.005 75);
  --fill-pressed: oklch(92.3% 0.006 75);
  --segment-on: var(--surface);
  --edge: rgb(0 0 0 / 0.06);
  --edge-strong: oklch(62% 0.012 75);
  --fg: oklch(18% 0.012 75);
  --fg-muted: oklch(52% 0.014 75);
  --on-primary: oklch(99.2% 0.004 75);
  --danger: oklch(52% 0.17 29);
  --bar-track: var(--fill);
  --bar-fill: oklch(72% 0.012 75);
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 1px 3px rgb(0 0 0 / 0.06);
  --shadow-pill: 0 1px 2px rgb(0 0 0 / 0.1);
  --ring: var(--fg);

  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --control-height: 40px;
  --page-width: 42rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 320ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: oklch(19% 0.008 75);
    --surface: oklch(23% 0.009 75);
    --fill: oklch(27% 0.01 75);
    --fill-hover: oklch(30.5% 0.011 75);
    --fill-pressed: oklch(34% 0.012 75);
    --segment-on: oklch(32% 0.011 75);
    --edge: rgb(255 255 255 / 0.09);
    --edge-strong: oklch(58% 0.014 75);
    --fg: oklch(96.5% 0.005 75);
    --fg-muted: oklch(71% 0.014 75);
    --on-primary: oklch(18% 0.012 75);
    --danger: oklch(70% 0.15 29);
    --bar-fill: oklch(55% 0.014 75);
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-pill: 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--fg);
  color: var(--on-primary);
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--fg) 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-fast) var(--ease);
}
a:hover {
  text-decoration-color: var(--fg);
}
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}
h1,
h2,
p,
dl,
dd,
figure,
form {
  margin: 0;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-strong);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-strong);
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}
b,
strong {
  font-weight: var(--weight-medium);
}
small {
  font-size: var(--text-xs);
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.wrap {
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 0 var(--space-4);
}
.site-header .wrap {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 64px;
  row-gap: var(--space-2);
}
.site-name {
  align-items: center;
  border-radius: var(--radius-pill);
  display: inline-flex;
  font-size: var(--text-base);
  font-weight: var(--weight-strong);
  letter-spacing: -0.01em;
  min-height: var(--control-height);
  text-decoration: none;
}
.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.site-nav a {
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  display: inline-flex;
  min-height: 32px;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease);
}
.site-nav a:hover {
  color: var(--fg);
}
.shell {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-16);
  padding-top: var(--space-6);
}
.page-head {
  display: grid;
  gap: var(--space-3);
}
.meta,
.hint,
.field small,
.muted,
.track small,
.footer {
  color: var(--fg-muted);
}
.hint,
.field small {
  display: block;
  font-size: var(--text-xs);
}
.footer {
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  gap: var(--space-4);
  padding-bottom: var(--space-8);
}
.footer a {
  align-items: center;
  color: var(--fg-muted);
  display: inline-flex;
  min-height: 24px;
}
.footer a:hover {
  color: var(--fg);
}
.stack {
  display: grid;
  gap: var(--space-4);
}

.label {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.segmented {
  background: var(--fill);
  border-radius: var(--radius-pill);
  display: inline-flex;
  justify-self: start;
  padding: var(--space-1);
}
.segmented a {
  align-items: center;
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  display: inline-flex;
  font-weight: var(--weight-medium);
  justify-content: center;
  min-height: 32px;
  min-width: 24px;
  padding: 0 var(--space-4);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease);
}
.segmented a:hover {
  color: var(--fg);
}
.segmented a[aria-current="page"] {
  background: var(--segment-on);
  box-shadow: var(--shadow-pill);
  color: var(--fg);
}

.stats {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
}
.stat dd {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-medium);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.section-head {
  align-items: baseline;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
}
.section-body {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
  padding: 0 var(--space-5) var(--space-5);
}
ol.ranked,
ul.rows {
  list-style: none;
  margin: calc(var(--space-1) * -1) 0;
  padding: 0;
}
ul.rows:empty {
  display: none;
}
ol.ranked li,
ul.rows li {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  padding: var(--space-2) 0;
}
ul.rows li {
  border-top: 1px solid var(--edge);
}
ul.rows li:first-child {
  border-top: 0;
}
li form {
  flex: none;
}
.rank {
  color: var(--fg-muted);
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
  text-align: right;
}
.track {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.track b {
  font-weight: var(--weight-medium);
  overflow-wrap: anywhere;
}
.track small {
  overflow-wrap: anywhere;
}
.count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.share {
  background: var(--bar-track);
  border-radius: var(--radius-pill);
  flex: none;
  height: 3px;
  margin-top: var(--space-1);
  width: 100%;
}
.share > span {
  background: var(--bar-fill);
  border-radius: var(--radius-pill);
  display: block;
  height: 100%;
}
ol.ranked li {
  align-items: start;
  flex-wrap: wrap;
  row-gap: var(--space-1);
}
ol.ranked .track {
  padding-top: 1px;
}

.daily {
  align-items: end;
  display: flex;
  gap: 3px;
  height: 80px;
}
.bar {
  background: var(--bar-fill);
  border-radius: 4px 4px 0 0;
  flex: 1;
  min-height: 2px;
  min-width: 0;
}
.axis {
  color: var(--fg-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  justify-content: space-between;
  margin-top: var(--space-2);
}

.empty {
  align-items: center;
  border: 1px dashed var(--edge-strong);
  border-radius: var(--radius-lg);
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
}
.empty h2,
.empty .empty-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-strong);
  letter-spacing: -0.015em;
}
.empty p {
  color: var(--fg-muted);
  max-width: 44ch;
}
.empty .pill {
  margin-top: var(--space-3);
}

.notice {
  background: var(--fill);
  border-radius: var(--radius-md);
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.token-box {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
}
.token-box code {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
  user-select: all;
}

.field {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: minmax(0, 1fr);
}
.field label {
  font-weight: var(--weight-medium);
}
.form-error {
  color: var(--danger);
}
.check {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: var(--space-3);
  min-height: var(--control-height);
}
input[type="text"],
select {
  background: var(--surface);
  border: 1px solid var(--edge-strong);
  border-radius: var(--radius-pill);
  color: var(--fg);
  font: inherit;
  min-height: var(--control-height);
  padding: 0 var(--space-4);
  transition:
    border-color var(--duration-fast) var(--ease),
    box-shadow var(--duration-fast) var(--ease);
}
input[type="text"] {
  max-width: 100%;
  width: 20rem;
}
input[type="text"]:focus-visible {
  border-color: var(--fg);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--fg) 25%, transparent);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
input[type="checkbox"] {
  accent-color: var(--fg);
  flex: none;
  height: 20px;
  margin: 0;
  width: 20px;
}
button,
.pill {
  align-items: center;
  background: var(--fill);
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  justify-content: center;
  min-height: var(--control-height);
  min-width: 24px;
  padding: 0 var(--space-5);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease),
    color var(--duration-fast) var(--ease),
    transform var(--duration-fast) var(--ease);
}
button:hover,
.pill:hover {
  background: var(--fill-hover);
}
button:active,
.pill:active {
  background: var(--fill-pressed);
}
button.primary,
.pill.primary {
  background: var(--fg);
  color: var(--on-primary);
}
button.primary:hover,
.pill.primary:hover {
  background: color-mix(in oklch, var(--fg) 82%, var(--bg));
  color: var(--on-primary);
}
button.primary:active,
.pill.primary:active {
  background: color-mix(in oklch, var(--fg) 70%, var(--bg));
}
button.danger {
  color: var(--danger);
}
button.small,
.pill.small {
  font-size: var(--text-xs);
  min-height: 32px;
  padding: 0 var(--space-3);
}
button:active,
.pill:active {
  transform: scale(0.97);
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}

.play-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}
.play-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: var(--space-3);
  align-content: start;
  padding: var(--space-4) var(--space-5);
}
.play-card h2 {
  font-size: var(--text-base);
}
.play-card .modes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.clip {
  display: grid;
  gap: var(--space-3);
}
.clip audio {
  width: 100%;
}
#count-bar {
  transform-origin: left;
}
.choices {
  display: grid;
  gap: var(--space-3);
}
.choices .choice {
  justify-content: flex-start;
  overflow-wrap: anywhere;
  padding-bottom: var(--space-2);
  padding-top: var(--space-2);
  text-align: left;
  width: 100%;
}
.guess {
  display: grid;
  gap: var(--space-4);
}
.reveal {
  align-items: center;
  display: flex;
  gap: var(--space-4);
}
.reveal img {
  border-radius: var(--radius-sm);
  flex: none;
  height: 96px;
  width: 96px;
}
.reveal .track a {
  align-self: flex-start;
}
[hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  input[type="text"],
  select {
    font-size: var(--text-base);
  }
}
@media (max-width: 640px) {
  .shell {
    gap: var(--space-6);
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
  input[type="text"] {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
