/* The mix board (/mixes/). Same colours and chunky ink outlines as the homepage's Pizza Mixer. */
:root {
  --pink: #ff2d9b;
  --deep-pink: #b20a68;
  --yellow: #ffe73c;
  --cyan: #20c9e6;
  --ink: #111;
  --cream: #fffaf0;
  --paper: #fff;
  --shade: #f1e7d6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font: 400 16px/1.4 "Roboto Condensed", helvetica, sans-serif;
  /* the old melting-pizza wallpaper, washed pink so the cards read on top of it */
  background: linear-gradient(rgba(255, 45, 155, 0.82), rgba(255, 45, 155, 0.82)), url(/files/pizza.gif) 0 0 / 156px 198px repeat var(--pink);
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.mx {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px 16px calc(48px + env(safe-area-inset-bottom));
}
.mx-head { text-align: center; }
.mx-logo { display: block; width: min(300px, 70%); margin: 0 auto; }
.mx-logo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 6px var(--cream)) drop-shadow(0 0 2px var(--cream)); }
.mx h1 {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 18px 6px;
  rotate: -2deg;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  font: italic 800 clamp(30px, 8vw, 44px)/1.1 "Bitter", georgia, serif;
}
.mx-lede { max-width: 30em; margin: 18px auto 0; font-size: 18px; font-weight: 700; color: var(--ink); text-shadow: 0 0 8px var(--cream), 0 0 2px var(--cream); }

.mx-status {
  position: sticky; top: 8px; z-index: 5;
  width: fit-content; max-width: 100%; min-height: 0;
  margin: 12px auto 0; padding: 6px 14px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--yellow);
  font-weight: 700; font-size: 14px; text-align: center;
}
.mx-status:empty { visibility: hidden; }

.mx-section { margin-top: 22px; }
.mx-section > h2, .mx-board-head h2 {
  margin: 0;
  font: italic 800 24px/1.2 "Bitter", georgia, serif;
  text-shadow: 0 0 8px var(--cream), 0 0 2px var(--cream);
}
.mx-board-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.mx-sort { display: flex; gap: 6px; }

.mx-list { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.mx-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
}
.mx-card.is-playing { background: #e3f8fd; }
.mx-card--big { margin-top: 10px; padding: 18px; }
.mx-rank { grid-column: 1; min-width: 1.4em; font: italic 800 22px/1 "Bitter", georgia, serif; text-align: center; }
.mx-play {
  grid-column: 2;
  width: 52px; height: 52px; padding: 0;
  border: 3px solid var(--ink); border-radius: 50%;
  background: var(--pink); color: #fff;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 20px; line-height: 1;
}
.mx-card--big .mx-play { width: 68px; height: 68px; font-size: 26px; }
.mx-card.is-playing .mx-play { background: var(--ink); color: var(--yellow); font-size: 16px; letter-spacing: -2px; }
.mx-text { grid-column: 3; min-width: 0; }
.mx-title { margin: 0; font: 800 19px/1.2 "Roboto Condensed", helvetica, sans-serif; overflow-wrap: anywhere; }
.mx-card--big .mx-title { font: italic 800 clamp(22px, 6vw, 30px)/1.15 "Bitter", georgia, serif; }
.mx-by { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mx-by strong { font-weight: 700; }
.mx-badge { padding: 1px 8px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.mx-seek { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.mx-seek input { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--deep-pink); }
.mx-time { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mx-chip, a.mx-chip {
  display: inline-block;
  padding: 7px 12px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 700 13px/1 "Roboto Condensed", helvetica, sans-serif;
  text-decoration: none; white-space: nowrap;
}
.mx-chip[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.mx-report { opacity: 0.75; }  /* there when it's needed, quieter than play and share */
.mx-report:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
.mx-report[data-armed="1"] { opacity: 1; background: var(--yellow); }
.mx-link { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 1px solid #777; border-radius: 8px; background: var(--paper); font: 13px/1.2 ui-monospace, Menlo, monospace; }
.mx-vote {
  grid-column: 4;
  display: grid; justify-items: center; gap: 2px;
  min-width: 54px; padding: 8px 10px;
  border: 3px solid var(--ink); border-radius: 14px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
  font: 800 13px/1 "Roboto Condensed", helvetica, sans-serif;
}
.mx-vote b { font-size: 18px; font-variant-numeric: tabular-nums; }
.mx-vote[aria-pressed="true"] { background: var(--yellow); }
.mx-vote:disabled { opacity: 0.6; cursor: default; }
.mx-play:active, .mx-chip:active, .mx-vote:active:not(:disabled), .mx-button:active { translate: 1px 1px; box-shadow: 1px 1px 0 var(--ink); }
.mx :focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.mx-note { margin: 10px 0 0; padding: 14px 16px; border: 3px dashed var(--ink); border-radius: 18px; background: var(--cream); font-weight: 700; text-align: center; }
.mx-plain { margin: 10px 0 0; padding: 14px 16px; border: 3px solid var(--ink); border-radius: 18px; background: var(--cream); list-style: none; }
.mx-plain audio { width: 100%; margin-top: 6px; }
.mx-button, a.mx-button {
  display: inline-block;
  padding: 10px 18px;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 15px/1 "Roboto Condensed", helvetica, sans-serif;
  text-decoration: none;
}
.mx-more { display: block; margin: 14px auto 0; }
.mx-cta { margin: 30px 0 0; text-align: center; }
a.mx-button--big { padding: 14px 26px; background: var(--yellow); font-size: 19px; }
.mx-foot { max-width: 30em; margin: 14px auto 0; font-size: 14px; font-weight: 700; text-align: center; text-shadow: 0 0 8px var(--cream), 0 0 2px var(--cream); }
.mx-foot a { color: var(--ink); }

@media (max-width: 480px) {
  .mx-card { gap: 4px 10px; padding: 10px 12px; }
  .mx-rank { font-size: 18px; min-width: 1.1em; }
  .mx-play { width: 46px; height: 46px; }
  .mx-vote { min-width: 48px; padding: 8px 6px; }
}
