/* Kindenheim FM, the station: set like something printed — warm paper, rules instead of cards,
   one wine as the accent, and four typefaces doing four jobs: Oswald for the callsign and the
   headings, Newsreader for the titles, Plex Sans for the prose, Plex Mono for the micro-labels.
   Light is Riesling gold on paper, dark is Dornfelder red on the cellar. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/oswald-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-500-latin.woff2") format("woff2");
}

:root {
  --kfm-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --kfm-serif: "Newsreader", ui-serif, Georgia, serif;
  --kfm-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --kfm-display: "Oswald", "IBM Plex Sans", ui-sans-serif, sans-serif;

  /* Light: paper, ink, Riesling. */
  --kfm-card: oklch(99.4% 0.007 88.6);
  --kfm-page: oklch(96.2% 0.016 86.4);
  --kfm-line: oklch(87.3% 0.029 84.6);
  --kfm-ink: oklch(23.7% 0.017 66.9);
  --kfm-primary: oklch(70% 0.13 87);
  --kfm-on-primary: oklch(23.7% 0.017 66.9);
  --kfm-accent: oklch(43.2% 0.147 16.4);
  --kfm-accent-soft: color-mix(in oklch, var(--kfm-primary) 45%, var(--kfm-line));
  --kfm-marked: color-mix(in oklch, var(--kfm-primary) 14%, var(--kfm-page));
  --kfm-marked-ink: oklch(52% 0.11 75);
  --kfm-bar: oklch(23.7% 0.017 66.9);
  --kfm-on-bar: oklch(96.2% 0.016 86.4);
  --kfm-error: oklch(53% 0.19 27);
  --kfm-success: oklch(50% 0.09 152);
  --kfm-glass: oklch(68.9% 0.043 83);
  --kfm-track: color-mix(in oklch, var(--kfm-primary) 16%, var(--kfm-page));
  color-scheme: light;
}

/* Dark: the cellar, its ink, Dornfelder. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --kfm-card: oklch(21.5% 0.011 48.2);
    --kfm-page: oklch(17.7% 0.008 48.3);
    --kfm-line: oklch(27.2% 0.014 48.2);
    --kfm-ink: oklch(94.6% 0.013 75.4);
    --kfm-primary: oklch(56.9% 0.16 12.8);
    --kfm-on-primary: oklch(97% 0.015 8);
    --kfm-accent: oklch(77.5% 0.128 86.9);
    --kfm-marked: color-mix(in oklch, var(--kfm-primary) 12%, var(--kfm-page));
    --kfm-marked-ink: oklch(66% 0.15 14);
    --kfm-bar: oklch(12.5% 0.007 48);
    --kfm-on-bar: oklch(94.6% 0.013 75.4);
    --kfm-error: oklch(66% 0.16 25);
    --kfm-success: oklch(70% 0.1 152);
    --kfm-glass: oklch(48.6% 0.027 60.8);
    --kfm-track: color-mix(in oklch, var(--kfm-primary) 18%, var(--kfm-page));
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --kfm-card: oklch(21.5% 0.011 48.2);
  --kfm-page: oklch(17.7% 0.008 48.3);
  --kfm-line: oklch(27.2% 0.014 48.2);
  --kfm-ink: oklch(94.6% 0.013 75.4);
  --kfm-primary: oklch(56.9% 0.16 12.8);
  --kfm-on-primary: oklch(97% 0.015 8);
  --kfm-accent: oklch(77.5% 0.128 86.9);
  --kfm-marked: color-mix(in oklch, var(--kfm-primary) 12%, var(--kfm-page));
  --kfm-marked-ink: oklch(66% 0.15 14);
  --kfm-bar: oklch(12.5% 0.007 48);
  --kfm-on-bar: oklch(94.6% 0.013 75.4);
  --kfm-error: oklch(66% 0.16 25);
  --kfm-success: oklch(70% 0.1 152);
  --kfm-glass: oklch(48.6% 0.027 60.8);
  --kfm-track: color-mix(in oklch, var(--kfm-primary) 18%, var(--kfm-page));
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--kfm-sans);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--kfm-page);
  color: var(--kfm-ink);
  line-height: 1.5;
  padding-bottom: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  body {
    transition: background-color 0.25s ease, color 0.25s ease;
  }
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

img {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

p,
h1,
h2,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.kfm-skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 60;
  background: var(--kfm-card);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--kfm-ink);
}
.kfm-skip:focus {
  left: 0.5rem;
}

.kfm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid color-mix(in oklch, var(--kfm-primary) 70%, transparent);
  outline-offset: 2px;
}

.kfm-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.kfm-icon[data-filled="yes"] {
  fill: currentColor;
  stroke: none;
}
.kfm-icon-small {
  width: 0.875rem;
  height: 0.875rem;
}
.kfm-icon-tiny {
  width: 0.75rem;
  height: 0.75rem;
}

.kfm-micro {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

/* ===== The mark ===== */

.kfm-badge-mark {
  display: block;
  overflow: visible;
}
/* The station's mark: the ring, the mast with its arm, and the cluster of three, two and one in
   the page's wine. */
.kfm-mark-lines {
  fill: none;
  stroke: var(--kfm-ink);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.kfm-mark-grapes {
  fill: var(--kfm-primary);
}

.kfm-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.kfm-wordmark .kfm-badge-mark {
  width: 1.5rem;
  height: 1.5rem;
}
.kfm-wordmark-text {
  font-family: var(--kfm-display);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kfm-wordmark-text b {
  margin-left: 0.1em;
  font-weight: 600;
  color: var(--kfm-primary);
}

/* ===== The top bar ===== */

.kfm-top {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--kfm-line);
  background: color-mix(in oklch, var(--kfm-page) 95%, transparent);
  backdrop-filter: blur(2px);
}
.kfm-top-inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
}
.kfm-top-start {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
}

.kfm-links {
  display: none;
  gap: 1.75rem;
}
.kfm-links a {
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}
.kfm-links a:hover {
  color: var(--kfm-primary);
}

.kfm-burger {
  position: relative;
}
.kfm-burger summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  cursor: pointer;
}
.kfm-burger summary::-webkit-details-marker {
  display: none;
}
.kfm-burger-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 12rem;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--kfm-ink);
  background: var(--kfm-page);
  padding: 0.25rem 0;
}
.kfm-burger-menu a {
  padding: 0.625rem 1rem;
  font-family: var(--kfm-display);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.kfm-burger-menu a:hover {
  background: var(--kfm-card);
  color: var(--kfm-primary);
}

@media (min-width: 640px) {
  .kfm-top-inner {
    padding: 0.75rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .kfm-links {
    display: flex;
  }
  .kfm-burger {
    display: none;
  }
}

/* ===== Account ===== */

.kfm-sign-in-button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.75rem;
  border: 1px solid var(--kfm-ink);
  background: transparent;
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.kfm-sign-in-button:hover {
  background: var(--kfm-ink);
  color: var(--kfm-page);
}

.kfm-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--kfm-line);
  background: repeating-linear-gradient(45deg, var(--kfm-card) 0 5px, var(--kfm-line) 5px 10px);
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.15s;
}
.kfm-chip:hover {
  border-color: var(--kfm-primary);
}
.kfm-chip-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  border: 2px solid var(--kfm-page);
  background: var(--kfm-primary);
}
.kfm-chip-large {
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  border-color: var(--kfm-ink);
  background: repeating-linear-gradient(45deg, var(--kfm-card) 0 6px, var(--kfm-line) 6px 12px);
  font-size: 1.125rem;
  cursor: default;
}

/* ===== Dialogs ===== */

.kfm-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--kfm-ink);
  background: var(--kfm-page);
  color: var(--kfm-ink);
}
.kfm-dialog::backdrop {
  background: color-mix(in oklch, var(--kfm-bar) 45%, transparent);
}
.kfm-dialog-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.kfm-dialog-head,
.kfm-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.kfm-account-head {
  justify-content: flex-start;
  align-items: center;
}
.kfm-account-who {
  min-width: 0;
}
.kfm-dialog-title {
  font-family: var(--kfm-display);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-account-address {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  opacity: 0.7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-dialog-text {
  font-size: 0.875rem;
  line-height: 1.6;
}
.kfm-quiet {
  opacity: 0.7;
}
.kfm-dialog-foot {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.55;
}
.kfm-dialog-foot a {
  text-underline-offset: 4px;
}
.kfm-close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.kfm-close:hover {
  background: var(--kfm-card);
}

.kfm-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.kfm-legend {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}
.kfm-field-hint {
  font-size: 0.75rem;
  opacity: 0.55;
}
.kfm-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--kfm-line);
  background: var(--kfm-card);
  color: var(--kfm-ink);
  font: inherit;
  font-size: 0.9375rem;
}
.kfm-input:focus {
  outline: 2px solid color-mix(in oklch, var(--kfm-primary) 60%, transparent);
  outline-offset: 0;
  border-color: var(--kfm-primary);
}
.kfm-input-code {
  font-family: var(--kfm-mono);
  font-size: 1.125rem;
  letter-spacing: 0.3em;
}

.kfm-bot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--kfm-line);
  background: var(--kfm-card);
  cursor: pointer;
}
.kfm-bot input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--kfm-primary);
  margin: 0;
}
.kfm-bot-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
}
.kfm-bot .kfm-micro {
  opacity: 0.55;
  letter-spacing: 0.12em;
}
.kfm-bot .kfm-icon {
  color: var(--kfm-success);
}

.kfm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--kfm-display);
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, opacity 0.15s, transform 0.1s;
}
.kfm-button:disabled {
  opacity: 0.45;
  cursor: default;
}
.kfm-button-primary {
  width: 100%;
  background: var(--kfm-primary);
  color: var(--kfm-on-primary);
}
.kfm-button-primary:not(:disabled):hover {
  background: color-mix(in oklch, var(--kfm-primary) 88%, var(--kfm-ink));
}
.kfm-button-ghost:not(:disabled):hover {
  background: var(--kfm-card);
}
.kfm-button-small {
  min-height: 2rem;
  padding: 0 0.75rem;
  font-family: var(--kfm-sans);
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .kfm-button:not(:disabled):active {
    transform: scale(0.97);
  }
}
.kfm-danger {
  color: var(--kfm-error);
  opacity: 0.75;
}
.kfm-danger:not(:disabled):hover {
  opacity: 1;
}
.kfm-account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: -0.25rem;
}

.kfm-modes {
  display: flex;
  border: 1px solid var(--kfm-line);
}
.kfm-mode {
  flex: 1;
  padding: 0.625rem 0;
  border: 0;
  background: transparent;
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
}
.kfm-mode:hover {
  opacity: 1;
}
.kfm-mode[aria-pressed="true"] {
  background: var(--kfm-ink);
  color: var(--kfm-page);
  opacity: 1;
}

.kfm-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklch, var(--kfm-marked-ink) 40%, transparent);
  background: var(--kfm-marked);
  font-size: 0.875rem;
}
.kfm-alert-error {
  border-color: color-mix(in oklch, var(--kfm-error) 40%, transparent);
  background: color-mix(in oklch, var(--kfm-error) 10%, var(--kfm-page));
}

.kfm-link {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.kfm-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== The page ===== */

.kfm-main {
  margin: 0 auto;
  max-width: 72rem;
  padding: 0 1rem 4rem;
}
.kfm-main > kfm-notice {
  display: block;
}
.kfm-main > kfm-notice .kfm-alert {
  margin-top: 1.5rem;
}
.kfm-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 2.5rem;
}
.kfm-grid > * {
  min-width: 0;
}
@media (min-width: 640px) {
  .kfm-main {
    padding: 0 1.5rem 4rem;
  }
}
@media (min-width: 1024px) {
  .kfm-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 3rem;
  }
  .kfm-hero {
    grid-column: 1;
    grid-row: 1;
  }
  .kfm-schedule {
    grid-column: 2;
    grid-row: 1;
  }
  .kfm-playlist {
    grid-column: 1;
    grid-row: 2;
  }
  .kfm-side {
    grid-column: 2;
    grid-row: 2;
  }
}
.kfm-side {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.kfm-section-title {
  font-family: var(--kfm-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
}
.kfm-center-narrow {
  text-align: center;
}
@media (min-width: 1024px) {
  .kfm-center-narrow {
    text-align: left;
  }
}
.kfm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.kfm-section-head .kfm-micro {
  flex-shrink: 0;
}
.kfm-playlist-note {
  margin-top: 0.5rem;
}
.kfm-empty {
  border: 1px solid var(--kfm-line);
  padding: 1rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ===== The hero: the double frame ===== */

.kfm-hero,
.kfm-frame {
  border: 1.5px solid var(--kfm-ink);
  padding: 0.25rem;
}
.kfm-hero-inner,
.kfm-frame-inner {
  border: 1px solid var(--kfm-primary);
}
.kfm-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .kfm-hero-inner {
    padding: 2rem 2rem;
  }
}
@media (min-width: 1024px) {
  .kfm-hero-inner {
    padding: 2rem 2.5rem;
  }
}
.kfm-kicker {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.kfm-hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
}
.kfm-hero-mark .kfm-badge-mark {
  position: relative;
  width: 5rem;
  height: 5rem;
}
.kfm-hero-mark .kfm-ring {
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  border: 1px solid var(--kfm-primary);
}
.kfm-title {
  font-family: var(--kfm-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.kfm-title b {
  font-weight: 600;
  color: var(--kfm-primary);
}
@media (min-width: 640px) {
  .kfm-title {
    font-size: 3rem;
  }
}
.kfm-tagline {
  font-family: var(--kfm-serif);
  font-style: italic;
  font-size: 1.125rem;
  opacity: 0.7;
}
.kfm-rule {
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--kfm-primary);
}

kfm-transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.kfm-play {
  position: relative;
  margin-top: 0.5rem;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border: 0;
  border-radius: 50%;
  background: var(--kfm-primary);
  color: var(--kfm-on-primary);
  cursor: pointer;
  transition: transform 0.15s;
}
.kfm-play:hover {
  transform: scale(1.05);
}
.kfm-play:active {
  transform: scale(0.95);
}
.kfm-play:disabled {
  opacity: 0.6;
}
.kfm-ring-button {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--kfm-primary);
}
.kfm-icon-play {
  width: 2.25rem;
  height: 2.25rem;
}
.kfm-play-label {
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.kfm-play-error {
  font-size: 0.8125rem;
  color: var(--kfm-error);
}

.kfm-volume {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.kfm-mute {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.15s;
}
.kfm-mute:hover {
  opacity: 1;
}
.kfm-volume-label {
  width: 2.5rem;
  text-align: right;
  font-family: var(--kfm-mono);
  font-size: 11px;
  line-height: 1.25rem;
  opacity: 0.6;
  font-variant-numeric: tabular-nums;
}

/* The volume: a bar filled to its value, the knob a dot on it. */
.kfm-range {
  --fill: 80%;
  flex: 1;
  min-width: 0;
  height: 0.75rem;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--kfm-primary) var(--fill), var(--kfm-track) var(--fill));
  cursor: pointer;
}
.kfm-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--kfm-ink);
  border: 2px solid var(--kfm-primary);
}
.kfm-range::-moz-range-thumb {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--kfm-ink);
  border: 2px solid var(--kfm-primary);
}
.kfm-range::-moz-range-track {
  background: transparent;
}

/* ===== What is on ===== */

kfm-now {
  display: block;
  width: 100%;
}
.kfm-now {
  margin-top: 0.5rem;
  width: 100%;
  border-top: 1px solid var(--kfm-line);
  padding-top: 1rem;
}
.kfm-now-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
}
.kfm-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--kfm-primary);
}
.kfm-now-state {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kfm-primary);
}
.kfm-listening {
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
}
.kfm-sleeve {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.kfm-sleeve-frame {
  border: 1.5px solid var(--kfm-ink);
  padding: 0.25rem;
}
.kfm-sleeve-frame img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border: 1px solid var(--kfm-primary);
  background: var(--kfm-card);
}
@media (min-width: 640px) {
  .kfm-sleeve-frame img {
    width: 12rem;
    height: 12rem;
  }
}
.kfm-now-title {
  margin-top: 0.75rem;
  font-family: var(--kfm-serif);
  font-size: 1.5rem;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.kfm-now-pause {
  margin-top: 0.25rem;
  opacity: 0.4;
}
.kfm-now-sub {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  opacity: 0.6;
  overflow-wrap: anywhere;
}
.kfm-spectrum {
  display: block;
  margin-top: 1rem;
  width: 100%;
  height: 2.5rem;
}
.kfm-verdict {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px dotted var(--kfm-line);
  padding-top: 1rem;
}
.kfm-verdict .kfm-micro {
  letter-spacing: 0.18em;
  opacity: 0.55;
}
.kfm-verdict-label {
  font-family: var(--kfm-mono);
  font-size: 11px;
  color: var(--kfm-primary);
}

/* ===== The glasses ===== */

kfm-glasses {
  display: inline-block;
}
.kfm-glasses {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.125rem;
}
.kfm-glasses[data-size="lg"] {
  gap: 0.5rem;
}
.kfm-glasses:has(:focus-visible) {
  outline: 2px solid color-mix(in oklch, var(--kfm-primary) 50%, transparent);
}
.kfm-glass {
  position: relative;
  display: block;
  width: 21px;
  height: 30px;
}
.kfm-glasses[data-size="lg"] .kfm-glass {
  width: 30px;
  height: 44px;
}
.kfm-glass-wine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(17% 8%, 83% 8%, 71% 80%, 29% 80%);
}
.kfm-glass-inside {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  bottom: 20%;
  opacity: 0.55;
}
.kfm-glass-liquid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: var(--kfm-primary);
  transition: height 850ms cubic-bezier(0.22, 0.85, 0.25, 1);
}
.kfm-glass[data-fill="half"] .kfm-glass-liquid {
  height: 50%;
}
.kfm-glass[data-fill="full"] .kfm-glass-liquid {
  height: 94%;
}
.kfm-pour {
  position: absolute;
  left: -25%;
  right: -25%;
  top: -3px;
  display: block;
  height: 6px;
  border-radius: 50%;
  background: var(--kfm-primary);
}
.kfm-glass[data-index="1"] .kfm-pour {
  animation-delay: 90ms;
}
.kfm-glass[data-index="2"] .kfm-pour {
  animation-delay: 180ms;
}
.kfm-glass[data-index="3"] .kfm-pour {
  animation-delay: 270ms;
}
.kfm-glass[data-index="4"] .kfm-pour {
  animation-delay: 360ms;
}
.kfm-glass-fizz {
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 20%;
  height: 0;
  overflow: hidden;
  transition: height 850ms cubic-bezier(0.22, 0.85, 0.25, 1);
}
.kfm-glass[data-fill="half"] .kfm-glass-fizz {
  height: 36%;
}
.kfm-glass[data-fill="full"] .kfm-glass-fizz {
  height: 68%;
}
.kfm-glass-fizz i {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  width: 2px;
}
.kfm-glass-fizz i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--kfm-card);
  opacity: 0.8;
}
.kfm-glass-fizz i:nth-child(1) {
  left: 12%;
  animation-duration: 2.6s;
  animation-delay: -0.4s;
}
.kfm-glass-fizz i:nth-child(2) {
  left: 36%;
  animation-duration: 3.1s;
  animation-delay: -1.7s;
}
.kfm-glass-fizz i:nth-child(3) {
  left: 60%;
  animation-duration: 2.3s;
  animation-delay: -0.9s;
}
.kfm-glass-fizz i:nth-child(4) {
  left: 82%;
  animation-duration: 3.5s;
  animation-delay: -2.4s;
}
.kfm-glass-art {
  position: absolute;
  inset: 0;
  display: block;
  background-color: var(--kfm-glass);
  -webkit-mask-image: var(--kfm-dubbeglas);
  mask-image: var(--kfm-dubbeglas);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.kfm-glass input {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  opacity: 0;
  appearance: none;
  cursor: pointer;
}
.kfm-glass input:disabled {
  cursor: default;
}
.kfm-glass-high {
  top: 0;
  height: 50%;
}
.kfm-glass-low {
  bottom: 0;
  height: 50%;
}
:root {
  --kfm-dubbeglas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 32' fill='none' stroke='%23000' stroke-linejoin='round' stroke-linecap='round'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Cpath d='M2.8 2 6.1 28.6a1.4 1.4 0 0 0 1.4 1.4h7a1.4 1.4 0 0 0 1.4-1.4L19.2 2Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg stroke-width='0.7' opacity='0.32' clip-path='url(%23c)'%3E%3Ccircle cx='3.6' cy='7.4' r='2.9'/%3E%3Ccircle cx='11' cy='7.4' r='2.9'/%3E%3Ccircle cx='18.4' cy='7.4' r='2.9'/%3E%3Ccircle cx='7.3' cy='14.1' r='2.9'/%3E%3Ccircle cx='14.7' cy='14.1' r='2.9'/%3E%3Ccircle cx='4.9' cy='20.8' r='2.9'/%3E%3Ccircle cx='11' cy='20.8' r='2.9'/%3E%3Ccircle cx='17.1' cy='20.8' r='2.9'/%3E%3C/g%3E%3Cpath d='M6.4 26.2h9.2' stroke-width='0.8' opacity='0.6'/%3E%3Cpath d='M2.8 2 6.1 28.6a1.4 1.4 0 0 0 1.4 1.4h7a1.4 1.4 0 0 0 1.4-1.4L19.2 2' stroke-width='1.3'/%3E%3Cpath d='M2.8 2H19.2' stroke-width='0.7'/%3E%3C/svg%3E");
}

/* ===== The schedule ===== */

kfm-schedule {
  display: block;
}
.kfm-schedule-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}
.kfm-show {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow: hidden;
  border-bottom: 1px dotted var(--kfm-line);
  padding: 0.75rem 0;
  transition: padding 0.15s, color 0.15s;
}
.kfm-show:last-child {
  border-bottom: 0;
}
.kfm-show[data-live="yes"] {
  color: var(--kfm-primary);
}
.kfm-show[data-live="no"]:hover {
  padding-left: 0.375rem;
  color: var(--kfm-primary);
}
.kfm-sweep {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, var(--kfm-primary), transparent);
  opacity: 0.12;
}
.kfm-show-when {
  width: 5rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}
.kfm-show-time {
  display: block;
  font-family: var(--kfm-mono);
  font-size: 0.75rem;
  opacity: 0.7;
}
.kfm-show-day {
  display: block;
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}
.kfm-show-what {
  flex: 1;
  min-width: 0;
}
.kfm-show-name {
  font-family: var(--kfm-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-show[data-live="yes"] .kfm-show-name {
  font-weight: 600;
}
.kfm-show-premiere {
  font-size: 0.75rem;
  color: var(--kfm-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-show-artists {
  font-size: 0.75rem;
  opacity: 0.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-show-slot {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.025em;
  opacity: 0.45;
}
.kfm-show-live {
  flex-shrink: 0;
  padding-top: 0.25rem;
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== The playlist ===== */

kfm-playlist {
  display: block;
}
.kfm-playlist-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
}
.kfm-played {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  border-bottom: 1px dotted var(--kfm-line);
  padding: 0.75rem 0;
  transition: background-color 0.15s;
}
.kfm-played:last-child {
  border-bottom: 0;
}
.kfm-played:hover {
  background: var(--kfm-card);
}
.kfm-played-time {
  width: 3rem;
  flex-shrink: 0;
  font-family: var(--kfm-mono);
  font-size: 0.75rem;
  opacity: 0.5;
}
.kfm-thumb,
.kfm-bar-sleeve {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--kfm-line);
  background: var(--kfm-card);
}
.kfm-thumb img,
.kfm-bar-sleeve img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kfm-thumb-none {
  opacity: 0.3;
}
.kfm-played-what {
  flex: 1;
  min-width: 0;
}
.kfm-played-title {
  font-family: var(--kfm-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-played-artist {
  font-size: 0.75rem;
  opacity: 0.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-played-glasses {
  margin-left: auto;
  flex-shrink: 0;
}
.kfm-locked {
  opacity: 0.45;
}
.kfm-played-none {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  opacity: 0.25;
}

/* ===== The village's dates ===== */

kfm-events {
  display: block;
}
.kfm-dates {
  margin-top: 1rem;
  border: 1px solid var(--kfm-line);
}
.kfm-date {
  display: grid;
  grid-template-columns: 68px 1fr;
  border-bottom: 1px solid var(--kfm-line);
  transition: background-color 0.15s;
}
.kfm-date:last-child {
  border-bottom: 0;
}
.kfm-date:hover {
  background: var(--kfm-card);
}
.kfm-date-day {
  display: grid;
  place-items: center;
  align-content: center;
  border-right: 1px solid var(--kfm-line);
  background: var(--kfm-card);
  padding: 0.875rem 0;
}
.kfm-date-number {
  font-family: var(--kfm-display);
  font-size: 1.5rem;
  line-height: 1;
}
.kfm-date-month {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.kfm-date-what {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.75rem 1rem;
}
.kfm-date-title {
  font-family: var(--kfm-display);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.kfm-date-when {
  font-size: 0.75rem;
  opacity: 0.6;
  overflow-wrap: anywhere;
}

/* ===== The footer and its disclosure ===== */

.kfm-footer {
  margin-top: 3.5rem;
}
.kfm-disclosure {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .kfm-disclosure {
    padding: 1.5rem 2.5rem;
  }
}
.kfm-disclosure-title {
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kfm-primary);
}
.kfm-disclosure p {
  margin: 0 auto;
  max-width: 42rem;
  font-family: var(--kfm-serif);
  font-size: 1rem;
  line-height: 1.625;
}
.kfm-disclosure b {
  font-weight: 600;
}
.kfm-footer-row {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--kfm-line);
  padding-top: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .kfm-footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.kfm-footer-name {
  font-family: var(--kfm-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.kfm-footer-links,
.kfm-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.75rem;
}
.kfm-footer-links a,
.kfm-legal-links a {
  opacity: 0.55;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: opacity 0.15s;
}
.kfm-footer-links a:hover,
.kfm-legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ===== The legal pages ===== */

.kfm-legal {
  margin: 0 auto;
  max-width: 43rem;
  padding: 1.5rem 1rem 4rem;
}
.kfm-legal-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kfm-wordmark-small .kfm-badge-mark {
  width: 1.5rem;
  height: 1.5rem;
}
.kfm-legal-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.kfm-legal-title {
  font-family: var(--kfm-display);
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kfm-back {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  text-decoration: none;
  white-space: nowrap;
}
.kfm-back:hover {
  opacity: 1;
}
.kfm-legal-main {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.kfm-card {
  border: 1px solid var(--kfm-line);
  background: var(--kfm-card);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
}
.kfm-card > * + * {
  margin-top: 0.625rem;
}
.kfm-card h2 {
  margin-bottom: 0.25rem;
  font-family: var(--kfm-display);
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kfm-card p,
.kfm-card li,
.kfm-card address {
  opacity: 0.85;
  font-style: normal;
}
.kfm-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.125rem;
  list-style: disc;
}
.kfm-card a {
  text-underline-offset: 3px;
}
.kfm-card code {
  font-family: var(--kfm-mono);
  font-size: 0.8125rem;
}
.kfm-card-marked {
  border-color: color-mix(in oklch, var(--kfm-primary) 55%, var(--kfm-line));
  background: var(--kfm-marked);
}
.kfm-card-marked h2 {
  color: var(--kfm-marked-ink);
}
.kfm-stand {
  font-family: var(--kfm-mono);
  font-size: 11px;
  opacity: 0.6;
}
.kfm-legal-links {
  margin-top: 1rem;
}
@media (min-width: 640px) {
  .kfm-legal {
    padding: 2rem 1.5rem 4rem;
  }
}

/* ===== The bar ===== */

kfm-bar {
  display: block;
}
.kfm-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid color-mix(in oklch, var(--kfm-ink) 20%, transparent);
  background: var(--kfm-bar);
  color: var(--kfm-on-bar);
  transition: transform 0.3s ease-out;
}
.kfm-bar[data-shown="no"] {
  transform: translateY(100%);
}
@media (prefers-reduced-motion: reduce) {
  .kfm-bar {
    transition: none;
  }
}
.kfm-bar-inner {
  margin: 0 auto;
  max-width: 72rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .kfm-bar-inner {
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.kfm-bar-play {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--kfm-primary);
  color: var(--kfm-on-primary);
  cursor: pointer;
  transition: transform 0.1s;
}
.kfm-bar-play:active {
  transform: scale(0.95);
}
.kfm-icon-play-small {
  width: 1.25rem;
  height: 1.25rem;
}
.kfm-bar-sleeve {
  width: 2.75rem;
  height: 2.75rem;
  border-color: color-mix(in oklch, var(--kfm-on-bar) 25%, transparent);
  background: color-mix(in oklch, var(--kfm-on-bar) 5%, transparent);
}
.kfm-bar-what {
  flex: 1;
  min-width: 0;
}
.kfm-bar-title {
  font-family: var(--kfm-display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-bar-sub {
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kfm-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-bars {
  display: none;
  height: 1.25rem;
  align-items: flex-end;
  gap: 3px;
}
.kfm-bars i {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--kfm-primary);
  transform-origin: bottom;
}
.kfm-bars i:nth-child(2) {
  animation-delay: 0.2s;
}
.kfm-bars i:nth-child(3) {
  animation-delay: 0.1s;
}
.kfm-bars i:nth-child(4) {
  animation-delay: 0.35s;
}
.kfm-bars i:nth-child(5) {
  animation-delay: 0.45s;
}
.kfm-bar-volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.kfm-bar-volume .kfm-mute {
  opacity: 0.7;
}
.kfm-range-bar {
  display: none;
  width: 7rem;
  flex: none;
  --kfm-track: color-mix(in oklch, var(--kfm-on-bar) 14%, transparent);
}
.kfm-range-bar::-webkit-slider-thumb {
  background: var(--kfm-bar);
}
@media (min-width: 640px) {
  .kfm-bars {
    display: flex;
  }
  .kfm-range-bar {
    display: block;
  }
}

/* ===== Spinner ===== */

.kfm-spinner {
  display: block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid currentColor;
  border-right-color: transparent;
  animation: kfm-spin 0.8s linear infinite;
}
.kfm-spinner-small {
  width: 1.125rem;
  height: 1.125rem;
  border-width: 2px;
}
.kfm-spinner-tiny {
  width: 0.875rem;
  height: 0.875rem;
  border-width: 2px;
}

/* ===== Motion: what is decoration waits for the listener's consent to motion ===== */

@keyframes kfm-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes kfm-rise {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes kfm-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes kfm-bar {
  0%,
  100% {
    transform: scaleY(0.28);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes kfm-ring {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes kfm-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(220%);
  }
}
@keyframes kfm-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes kfm-pour {
  0% {
    transform: translateY(5px) scaleY(2.2) rotate(-4deg);
    opacity: 0.9;
  }
  14% {
    transform: translateY(-2px) scaleY(1.5) rotate(3deg);
  }
  30% {
    transform: translateY(1.4px) scaleY(1.3) rotate(-2deg);
  }
  48% {
    transform: translateY(-0.9px) scaleY(1.18) rotate(1.4deg);
    opacity: 0.7;
  }
  66% {
    transform: translateY(0.5px) scaleY(1.1) rotate(-0.8deg);
  }
  82% {
    transform: translateY(-0.25px) scaleY(1.05) rotate(0.4deg);
    opacity: 0.28;
  }
  100% {
    transform: none;
    opacity: 0;
  }
}
@keyframes kfm-bubble {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  85% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kfm-rise {
    animation: kfm-rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .kfm-fade {
    animation: kfm-fade 0.4s ease-out both;
  }
  .kfm-bars i {
    animation: kfm-bar 1.1s ease-in-out infinite;
  }
  .kfm-ring {
    animation: kfm-ring 2.6s ease-out infinite;
  }
  .kfm-ring-late {
    animation-delay: 1.3s;
  }
  .kfm-sweep {
    animation: kfm-sweep 4s linear infinite;
  }
  .kfm-pulse {
    animation: kfm-pulse 2s ease-in-out infinite;
  }
  .kfm-pour {
    animation: kfm-pour 2.9s cubic-bezier(0.25, 0.9, 0.3, 1) both;
  }
  .kfm-glass-fizz i {
    animation-name: kfm-bubble;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kfm-ring,
  .kfm-sweep,
  .kfm-glass-fizz {
    display: none;
  }
  .kfm-spinner {
    animation-duration: 2s;
  }
}

/* ===== The demo ===== */

.kfm-demo-badge {
  margin-left: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--kfm-primary);
  color: var(--kfm-on-primary);
  font-family: var(--kfm-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.kfm-greeting {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
}
.kfm-greeting-name {
  font-family: var(--kfm-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfm-greeting-leave {
  color: inherit;
  font-family: var(--kfm-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.kfm-demo-how p {
  margin: 0.75rem 0 0;
  line-height: 1.55;
}
