/* Two YouTube Videos and a Motherfucking Crossfader — 2009 look, modern plumbing */

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #000; }

body {
  /* Theme knobs (serious = the 2009 original) */
  --panel-border: #f0f;
  --g1: #fbdbe7;
  --g2: #f2b8cb;
  --g3: #e79db6;
  --stroke: #262626;
  --shadow: #555;

  margin: 0;
  min-height: 100vh;
  color: #fff;
  background: transparent; /* html is black; the theme layers sit behind the body */
  font: 15px/1.4 Arial, Helvetica, sans-serif;
  padding-bottom: 80px;
}

/* Two fixed background layers per theme: ::before = the wallpaper, ::after = something moving on top */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ---------- serious: the original purple starfield ---------- */
body::before { background: #000 url("img/stars-a.svg") repeat; }
body::after { background: url("img/stars-b.svg") repeat 90px 140px; animation: twinkle 2.4s steps(2, jump-none) infinite alternate; }
@keyframes twinkle { from { opacity: 1; } to { opacity: 0.15; } }

/* ---------- party: the 2009 party-animals idea, as emoji over a colour wash ---------- */
body[data-theme="party"]::before {
  background:
    url("img/party.svg") repeat,
    linear-gradient(135deg, #ff4fd8, #ffe14f, #4fffb0, #4fb3ff, #b84fff);
  background-size: 280px 280px, 400% 400%;
  animation: hue 6s linear infinite;
}
body[data-theme="party"]::after { background: none; animation: none; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

/* ---------- beach ---------- */
body[data-theme="beach"] { --panel-border: #ff9f1c; --g1: #fff6d5; --g2: #ffd166; --g3: #f4a259; --stroke: #5a3212; --shadow: #8a5a2b; }
body[data-theme="beach"]::before {
  background:
    url("img/beach.svg") repeat,
    radial-gradient(circle at 86% 11%, #fff7c2 0 46px, rgba(255, 214, 102, 0.45) 47px 100px, transparent 101px),
    linear-gradient(180deg, #4fc1f0 0%, #bdeeff 33%, #36b6d8 35%, #1a8fbc 55%, #f7e0a3 57%, #efc57a 100%);
  background-size: 300px 300px, auto, auto;
}
body[data-theme="beach"]::after { background: none; animation: none; }

/* ---------- space ---------- */
body[data-theme="space"] { --panel-border: #39d0ff; --g1: #f2fbff; --g2: #a9dcff; --g3: #6f9dff; --stroke: #0a0f2e; --shadow: #3a2a7a; }
body[data-theme="space"]::before {
  background:
    url("img/space.svg") repeat,
    radial-gradient(ellipse at 20% 30%, rgba(160, 60, 255, 0.55), transparent 60%),
    radial-gradient(ellipse at 80% 72%, rgba(0, 160, 255, 0.45), transparent 55%),
    #03030f;
  background-size: 340px 340px, auto, auto, auto;
}
body[data-theme="space"]::after { background: url("img/stars-a.svg") repeat; animation: drift 40s linear infinite; }
@keyframes drift { to { background-position: -300px 300px; } }

/* ---------- christmas ---------- */
body[data-theme="christmas"] { --panel-border: #e63946; --g1: #ffffff; --g2: #ffe3e3; --g3: #e63946; --stroke: #0b3d17; --shadow: #3a0a0a; }
body[data-theme="christmas"]::before {
  background:
    url("img/christmas.svg") repeat,
    linear-gradient(180deg, #0b2e13 0%, #14532d 62%, #7a1010 100%);
  background-size: 300px 300px, auto;
}
body[data-theme="christmas"]::after { background: url("img/snow.svg") repeat; animation: snow 12s linear infinite; }
@keyframes snow { to { background-position: 60px 400px; } }

/* ---------- love ---------- */
body[data-theme="love"] { --panel-border: #ff4f9a; --g1: #fff0f6; --g2: #ff9cc7; --g3: #e0245e; --stroke: #4a0020; --shadow: #7a1040; }
body[data-theme="love"]::before {
  background:
    url("img/love.svg") repeat,
    linear-gradient(160deg, #ffb3d9 0%, #ff5fa2 55%, #c2185b 100%);
  background-size: 300px 300px, auto;
}
body[data-theme="love"]::after { background: url("img/hearts.svg") repeat; animation: float-up 14s linear infinite; }
@keyframes float-up { to { background-position: 0 -400px; } }

/* ---------- frutiger aero: sky, aurora, glossy hills, bubbles, glass ---------- */
body[data-theme="aero"] { --panel-border: rgba(255, 255, 255, 0.85); --g1: #ffffff; --g2: #c9f6ff; --g3: #4fc3f7; --stroke: #0b4f7a; --shadow: rgba(0, 40, 80, 0.45); }
body[data-theme="aero"]::before {
  background:
    radial-gradient(ellipse 60% 35% at 70% 22%, rgba(120, 255, 200, 0.5), transparent 70%),
    radial-gradient(ellipse 50% 30% at 25% 34%, rgba(190, 255, 120, 0.4), transparent 70%),
    url("img/aero-hills.svg") no-repeat center bottom / 100% 32%,
    linear-gradient(180deg, #0b6fc2 0%, #39a8f0 35%, #9fe0ff 70%, #e6fbff 100%);
}
body[data-theme="aero"]::after { background: url("img/bubbles.svg") repeat; animation: float-up 22s linear infinite; }

/* On bright wallpapers, text on the page itself gets a dark backing */
body:not([data-theme="serious"]) :is(.deck-msg, .note, .crate-note, .pages):not(:empty),
body:not([data-theme="serious"]) .crate-title:not(:empty) {
  background: rgba(0, 0, 0, 0.78);
  padding: 3px 8px;
}
body:not([data-theme="serious"]) .down-arrow { filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.85)); }

a { color: #f0f; }
a:hover { background-color: #0f0; color: #000; }
:focus-visible { outline: 2px solid #0f0; outline-offset: 2px; }

.banner {
  background: #ff0;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 10px 16px;
}
.banner code { background: #000; color: #0f0; padding: 1px 5px; }

/* ---------- Header: glitter comic letters in theme colours ---------- */
#header { text-align: center; padding: 18px 16px 6px; }
#header h1 { margin: 0; font-weight: normal; display: grid; justify-items: center; }
.glitter {
  display: block;
  font-family: "Luckiest Guy", "Impact", "Arial Black", sans-serif;
  font-size: clamp(26px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: skewX(-7deg);
  color: transparent;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 0.8px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.8) 0 0.8px, transparent 1.4px) 3px 2px / 9px 9px,
    linear-gradient(180deg, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 2px var(--stroke);
  filter: drop-shadow(3px 3px 0 var(--shadow));
  animation: sparkle 1.6s steps(3) infinite;
}
.glitter.small { font-size: clamp(20px, 3.4vw, 40px); }
@keyframes sparkle {
  0% { background-position: 0 0, 3px 2px, 0 0; }
  100% { background-position: 7px 4px, -6px 7px, 0 0; }
}

/* ---------- Decks ---------- */
#decks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 18px auto 0;
  padding-inline: 16px;
  align-items: start;
}

.deck { --deck-gap: 10px; display: grid; gap: var(--deck-gap); min-width: 0; }

.screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
  border: 1px solid #333;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Before consent: no YouTube request at all, just a button where the video will be */
.gate {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-align: center;
  background: #000;
}
.gate p { margin: 0; max-width: 36ch; font-size: 12.5px; color: #ccc; }
.gate-go { font-size: 18px; padding: 8px 18px; }

/* ---------- About & credits: a pop-up behind the round ABOUT button ---------- */
#about {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100% - 48px);
  padding: 0;
  overflow: auto;
  background: rgba(0, 0, 0, 0.94);
  border: 2px solid var(--panel-border);
  color: #ddd;
  font-size: 14px;
}
#about::backdrop { background: rgba(0, 0, 0, 0.6); }
.about-inner { position: relative; padding: 18px 22px 20px; }
.about-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 18px;
  line-height: 1;
  padding: 4px 10px;
}
#about h2 {
  margin: 16px 0 4px;
  font: bold 13px Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f0;
}
#about #about-title { margin-top: 0; padding-right: 48px; }
#about p { margin: 0; max-width: 68ch; }
#about ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
#about a { word-break: break-word; }
#about .fine { margin-top: 16px; font-size: 12px; color: #999; }
body[data-theme="aero"] #about {
  background: rgba(20, 90, 150, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  text-shadow: 0 1px 2px rgba(0, 40, 80, 0.7);
}
body[data-theme="aero"] #about h2 { color: #eaffff; }
body[data-theme="aero"] #about .fine { color: #eaf8ff; }

/* Status lines stay in the accessibility tree when empty (so screen readers announce them) but take no space */
.deck-msg { margin: 0; color: #ff0; font-weight: bold; }
.deck-msg:empty { height: 0; overflow: hidden; margin-top: calc(-1 * var(--deck-gap)); }

.selector { display: flex; gap: 6px; margin-top: 5px; }
.selector input {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 350px;
  font-size: 20px;
  padding: 2px 4px;
  border: 2px inset #ccc;
  background: #fff;
  color: #000;
}

/* 2009 default-ish grey buttons */
button, .theme-select {
  font: bold 13px Arial, Helvetica, sans-serif;
  color: #000;
  background: linear-gradient(#fdfdfd, #d9d9d9);
  border: 1px solid #8a8a8a;
  border-radius: 3px;
  padding: 4px 9px;
  cursor: pointer;
}
button:hover { background: linear-gradient(#fff, #e9e9e9); }
button:active, button.held { background: linear-gradient(#cfcfcf, #eee); }
.selector button { font-size: 15px; padding: 3px 12px; }

.crate { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 0; }
.crate:empty { display: none; }
.crate-vid { display: block; line-height: 0; border: 2px solid transparent; }
.crate-vid:hover, .crate-vid:focus-visible, .crate-vid.playing { border-color: #0f0; background: transparent; }
.crate-vid img { width: 64px; height: 48px; object-fit: cover; display: block; }
.crate-title { color: #fff; font-weight: bold; text-transform: uppercase; min-height: 1.4em; }
.crate-note { color: #fff; font-size: 14px; margin: 0; }
.pages { color: #fff; padding: 10px 0 0; width: 100%; }
.pages .page { padding: 5px; color: #f0f; cursor: pointer; background: none; border: 0; font: inherit; text-decoration: underline; }
.pages .page:hover { background-color: #0f0; color: #000; }
.pages .page[disabled] { color: #777; text-decoration: none; cursor: default; background: none; }

/* ---------- Crossfader column ---------- */
.middle { display: grid; justify-items: center; align-content: start; gap: 0; padding-top: 10px; }
.down-arrow { width: 110px; height: 110px; }

#crossfader {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  max-width: 200px;
  height: 14px;
  margin-top: 50px;
  background: #e6e6e6;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
}
#crossfader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 26px;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  background: linear-gradient(#fff, #d5d5d5);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#crossfader::-moz-range-thumb {
  width: 22px;
  height: 26px;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  background: linear-gradient(#fff, #d5d5d5);
}
#crossfader::-moz-range-track { background: transparent; }

.note { color: #ff0; font-size: 13px; text-align: center; margin: 14px 0 0; }

/* ---------- Drawer toggles ---------- */
.toggles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-inline: 16px; }
.toggles button { font-size: 14px; }

.panel {
  background: rgba(0, 0, 0, 0.82);
  border: 2px solid var(--panel-border);
  padding: 12px 14px;
}

/* ---------- Sound effect pads ---------- */
#fx {
  max-width: 760px;
  margin: 14px auto 0;
  display: grid;
  gap: 12px;
}
#fx { margin-inline: max(16px, calc((100% - 760px) / 2)); }
.pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pads .pad {
  position: relative;
  min-height: 64px;
  padding: 10px 6px 18px;
  font: bold 14px/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 48%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 100%),
    var(--pad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 0 rgba(0, 0, 0, 0.45);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
.pads .pad:hover { filter: brightness(1.1); }
.pads .pad:active, .pads .pad.hit {
  transform: translateY(2px);
  filter: brightness(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(0, 0, 0, 0.45), 0 0 18px var(--pad);
}
.pad kbd {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- More knobs ---------- */
#extras {
  max-width: 1200px;
  margin: 14px auto 0;
  padding-inline: 16px;
  display: grid;
  gap: 16px;
}

.extras-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
}

.knobs, .settings { display: grid; gap: 8px; align-content: start; }
.knobs h2 {
  margin: 4px 0 2px;
  font: bold 13px Arial, Helvetica, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f0;
}
.knob-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lbl { font-weight: bold; text-transform: uppercase; font-size: 12px; letter-spacing: 0.05em; min-width: 5.8em; }
.lcd {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  color: #0f0;
  background: #031a03;
  border: 1px solid #0a4a0a;
  padding: 2px 6px;
  min-width: 4.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.key-out { margin: 2px 0 0; text-align: left; min-width: 0; }
.key-out.good { color: #0f0; }
.key-out.bad { color: #ff5b5b; border-color: #5a1010; background: #1d0404; }
.knobs input[type="number"] { width: 5.2em; font-size: 14px; padding: 2px 4px; }
#api-key { flex: 1 1 260px; font-size: 14px; padding: 3px 5px; min-width: 0; }
.knobs select { font-size: 14px; padding: 2px; max-width: 100%; }
.trim { flex: 1 1 120px; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.knob-msg { margin: 0; color: #ff0; font-size: 13px; }
.knob-msg:empty { height: 0; overflow: hidden; margin-top: -8px; }
.hint { margin: 0; color: #bbb; font-size: 12.5px; }
kbd { border: 1px solid #777; border-bottom-width: 2px; border-radius: 3px; padding: 0 4px; font-size: 12px; background: #111; }

/* Theme chips under "more knobs": each one previews its own theme */
.theme-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-chips .chip {
  color: #fff;
  border: 2px solid #555;
  border-radius: 12px;
  padding: 4px 10px;
  text-shadow: 0 1px 2px #000;
}
.theme-chips .chip[aria-pressed="true"] { border-color: #0f0; box-shadow: 0 0 8px #0f0; }
.theme-chips .chip[data-theme-pick="serious"] { background: #000 url("img/stars-a.svg") 0 0 / 150px; }
.theme-chips .chip[data-theme-pick="party"] { background: linear-gradient(90deg, #ff4fd8, #ffe14f, #4fffb0, #4fb3ff); }
.theme-chips .chip[data-theme-pick="beach"] { background: linear-gradient(180deg, #4fc1f0 0 45%, #1a8fbc 45% 60%, #efc57a 60%); }
.theme-chips .chip[data-theme-pick="space"] { background: radial-gradient(circle at 30% 40%, #7a3cff, #03030f 75%); }
.theme-chips .chip[data-theme-pick="christmas"] { background: linear-gradient(135deg, #14532d 50%, #b3121f 50%); }
.theme-chips .chip[data-theme-pick="love"] { background: linear-gradient(160deg, #ffb3d9, #e0245e); }
.theme-chips .chip[data-theme-pick="aero"] { background: linear-gradient(180deg, #39a8f0 0 60%, #5ccc45 60%); }

/* ---------- Corner buttons ---------- */
.theme-box { position: fixed; left: 5px; bottom: 5px; z-index: 5; display: flex; gap: 6px; align-items: stretch; }
#party { font-size: 18px; }
.theme-select { font-size: 14px; padding: 4px 6px; }
#rec {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a8a, #d10000 60%, #7a0000);
  border: 3px solid #ddd;
  color: #fff;
  font: bold 12px Arial, Helvetica, sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
#rec:hover { background: radial-gradient(circle at 35% 30%, #ffb0b0, #ff1a1a 60%, #8a0000); color: #fff; }
#about-btn {
  position: fixed;
  right: 8px;
  top: 8px;
  z-index: 5;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9cc8ff, #1f5fd6 60%, #0b2f73);
  border: 3px solid #ddd;
  color: #fff;
  font: bold 11px Arial, Helvetica, sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
#about-btn:hover { background: radial-gradient(circle at 35% 30%, #c4deff, #3a7bf0 60%, #0e3a8a); }

/* ---------- Frutiger aero: glassy panels, glossy aqua buttons ---------- */
body[data-theme="aero"] :is(button, .theme-select):not(.pad):not(.page):not(.chip):not(#about-btn) {
  color: #06365a;
  border: 1px solid #2a7fb8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4fdff 0%, #c9f1ff 48%, #7fd3f7 50%, #aeeaff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 50, 90, 0.35);
}
body[data-theme="aero"] :is(button, .theme-select):not(.pad):not(.page):not(.chip):not(#about-btn):hover { filter: brightness(1.06); }
body[data-theme="aero"] .panel {
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(0, 40, 90, 0.25);
  text-shadow: 0 1px 2px rgba(0, 40, 80, 0.7);
}
body[data-theme="aero"] .knobs h2 { color: #eaffff; }
body[data-theme="aero"] .hint { color: #eaf8ff; }
body[data-theme="aero"] .pads .pad { border-radius: 14px; }

/* ---------- Phones (portrait) and small windows: stack everything ---------- */
@media (max-width: 880px) {
  #header { padding: 10px 12px 0; }
  .glitter { font-size: clamp(18px, 6.2vw, 40px); }
  .glitter.small { font-size: clamp(14px, 4.4vw, 28px); }
  #decks { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 10px; }
  .deck { --deck-gap: 6px; }
  .screen { min-height: 0; }
  .crate-title { min-height: 0; }
  .selector { margin-top: 0; }
  .selector input { max-width: none; font-size: 18px; }
  .middle { padding-top: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
  .down-arrow { width: 34px; height: 34px; }
  #crossfader { margin-top: 0; max-width: none; }
  .note { grid-column: 1 / -1; margin-top: 4px; }
  .extras-grid { grid-template-columns: minmax(0, 1fr); }
  .toggles { margin-top: 18px; }
}

/* ---------- Phones in landscape: decks side by side, fader between, small header ---------- */
@media (orientation: landscape) and (max-height: 500px) {
  #header { padding: 4px 12px 0; }
  .glitter { font-size: clamp(16px, 5.5vh, 26px); }
  .glitter.small { display: none; }
  #decks { grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr); gap: 10px; margin-top: 6px; }
  .screen { min-height: 0; }
  .middle { grid-template-columns: none; padding-top: 0; }
  .down-arrow { width: 40px; height: 40px; }
  #crossfader { margin-top: 8px; max-width: none; }
  .selector input { font-size: 16px; }
  .extras-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Corner buttons would cover the decks on a phone, so there they sit at the end of the page */
@media (max-width: 880px), (orientation: landscape) and (max-height: 500px) {
  body { padding-bottom: 0; }
  #corners { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 16px; }
  .theme-box, #rec, #about-btn { position: static; }
}

@media (max-width: 520px) {
  .pads { gap: 8px; }
  .pads .pad { font-size: 12px; min-height: 60px; letter-spacing: 0.02em; }
}

/* ---------- Touch screens: bigger targets, no zoom-on-focus, no long-press menus ---------- */
@media (pointer: coarse) {
  #crossfader { height: 22px; }
  #crossfader::-webkit-slider-thumb { width: 38px; height: 44px; }
  #crossfader::-moz-range-thumb { width: 38px; height: 44px; }
  button, .knobs select, .theme-select { min-height: 40px; touch-action: manipulation; }
  #extras input, #extras select, #fx input, #api-key, .theme-select { font-size: 16px; }
  .pages .page { min-height: 0; padding: 8px; }
  .crate-vid img { width: 72px; height: 54px; }
}
.hold { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }

@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .glitter { animation: none !important; }
}
