/* Jam Week's board: a studio after hours. A navy record chart (the standings), a setlist with a
   small cream drum machine (the map), paper taped to the wall (the catches and the rules). One
   look, light or dark. Every section's studio name has its plain one under it, and the directions
   come first. */

@font-face {
  font-family: "Anton";
  src: url("fonts/anton-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("fonts/special-elite-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Walter Turncoat";
  src: url("fonts/walter-turncoat-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --desk: #0e111e;
  --panel: #1d2335;
  --panel-2: #283049;
  --edge: #3d4769;
  --silk: #9aa3c2;
  --ink: #eef0f8;
  --soft: #b9c0d8;
  --lavender: #c9b8f2;
  --violet: #8f7fd6;
  --plum: #8a3a5c;
  --red: #ff5a4d;
  --amber: #f3b54a;
  --mint: #7be0c3;
  --pink: #ff7ab8;
  --paper: #f4ecd8;
  --paper-ink: #2a2433;
  --tape: #e6dcb8;
  --well: #080a12;
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
dt {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

:is(a, button):focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
}

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

.board {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(70% 520px at 82% 0%, #2c3760 0%, transparent 70%),
    radial-gradient(
      50% 600px at 0% 420px,
      rgb(138 58 92 / 0.28),
      transparent 70%
    ),
    radial-gradient(
      60% 700px at 100% 1500px,
      rgb(143 127 214 / 0.14),
      transparent 70%
    ),
    var(--desk);
}

/* Grain, over everything and under every click. */
.board::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Without the key: one line, and nothing else. */
.locked-note {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  color: var(--silk);
  font: 400 clamp(22px, 4vw, 34px) / 1.2 var(--display);
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
}

.locked-note[hidden],
.board[hidden] {
  display: none;
}

.inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.silk {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silk);
}

/* A recessed window with a seven-segment number in it. */
.window {
  display: inline-flex;
  align-items: baseline;
  padding: 0.3em 0.36em 0.24em;
  border-radius: 0.28em;
  background: var(--well);
  box-shadow:
    inset 0 2px 6px rgb(0 0 0 / 0.9),
    0 1px 0 rgb(255 255 255 / 0.1);
  --seg-on: var(--red);
}

.seg {
  display: inline-flex;
  gap: 0.1em;
  height: 1em;
  filter: drop-shadow(
    0 0 0.14em color-mix(in srgb, var(--seg-on) 75%, transparent)
  );
}

.seg svg {
  width: auto;
  height: 1em;
}

.seg polygon {
  fill: color-mix(in srgb, var(--seg-on) 11%, transparent);
}

.seg polygon.on {
  fill: var(--seg-on);
}

/* Label-maker tape: the section names. */
.dymo {
  flex: none;
  display: inline-block;
  padding: 10px 12px 9px 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ea4a3e 0%, #cf3227 55%, #b9281e 100%);
  color: #fff;
  font:
    800 17px/1 "Inter",
    sans-serif;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgb(0 0 0 / 0.25),
    0 0 1px rgb(255 255 255 / 0.9);
  transform: rotate(-1.6deg);
  box-shadow:
    0 3px 0 rgb(0 0 0 / 0.35),
    inset 0 1px 0 rgb(255 255 255 / 0.35),
    inset 0 -1px 0 rgb(0 0 0 / 0.25);
}

.dymo.blue {
  background: linear-gradient(180deg, #4b7df0, #2f5fd0 55%, #264fb3);
  transform: rotate(1.1deg);
}

.dymo.black {
  background: linear-gradient(180deg, #3a3a42, #1c1c22 55%, #111);
  transform: rotate(-0.8deg);
}

.dymo.small {
  padding: 6px 6px 5px 11px;
  font-size: 10px;
}

/* A catch's size, stamped. */
.stamp {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 400 15px/1 var(--display);
  transform: rotate(-8deg);
}

.stamp.stops {
  color: var(--red);
}
.stamp.works {
  color: var(--works-ink, var(--amber));
}
.stamp.looks {
  color: var(--looks-ink, var(--lavender));
}
.stamp.plain {
  color: currentColor;
}
.stamp.none {
  opacity: 0.7;
}

/* The top: the name, then the cover. */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
}

.mark {
  font: 400 22px/1 var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mark b {
  font-weight: 400;
}

.mark span {
  margin-left: 8px;
  color: var(--lavender);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

nav a {
  color: var(--silk);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--lavender);
}

/* The cover: the title, and beside it the round's host at the decks, once the page has them. */
.top {
  padding-bottom: 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  padding-top: 48px;
}

.hero.hosted {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.78fr);
}

.headline {
  align-self: center;
  padding-bottom: 64px;
}

.host {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 480px;
  margin: 0;
}

.host[hidden] {
  display: none;
}

/* The glow of the booth behind them. */
.host::before {
  content: "";
  position: absolute;
  inset: 6% -14% 0;
  background: radial-gradient(
    closest-side,
    rgb(201 184 242 / 0.34),
    rgb(138 58 92 / 0.2) 55%,
    transparent 76%
  );
  filter: blur(12px);
}

.host img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.55));
  animation: step-up 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes step-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Who it is, in marker on masking tape, stuck on at an angle. */
.host figcaption {
  position: absolute;
  top: 60%;
  left: -14px;
  padding: 7px 14px 4px;
  background: linear-gradient(180deg, #efe6c6, var(--tape));
  color: var(--paper-ink);
  font:
    400 19px/1.2 "Walter Turncoat",
    "Comic Sans MS",
    cursive;
  white-space: nowrap;
  transform: rotate(-6deg);
  clip-path: polygon(
    0 8%,
    3% 0,
    6% 10%,
    100% 0,
    97% 50%,
    100% 100%,
    5% 92%,
    2% 100%,
    0 88%,
    3% 50%
  );
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
}

.pill {
  display: inline-block;
  margin-bottom: 22px;
  padding: 5px 12px;
  border: 1.5px solid var(--lavender);
  border-radius: 999px;
  color: var(--lavender);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  font: 400 clamp(64px, 10.4vw, 152px) / 0.9 var(--display);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-shadow: 0.045em 0.045em 0 var(--plum);
}

h1 span {
  display: block;
  color: var(--lavender);
}

.lede {
  margin-top: 28px;
  max-width: 40ch;
  color: #d5d9e6;
  font-size: 19px;
  line-height: 1.5;
}

/* The rack of counters beside the title, with a sticker someone slapped on it. */
/* The rack of counters under the cover: the host's decks sit on it. */
.rack {
  position: relative;
  z-index: 2;
  margin-top: -22px;
  padding: 24px 30px 26px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow:
    0 40px 80px -30px rgb(0 0 0 / 0.8),
    inset 0 1px 0 rgb(255 255 255 / 0.12);
}

/* Its four screws. */
.rack::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    radial-gradient(
        circle at 4px 4px,
        #8d96b5 0 2px,
        #171b2b 2.5px 4px,
        transparent 4.5px
      )
      0 0 / 8px 8px no-repeat,
    radial-gradient(
        circle at 4px 4px,
        #8d96b5 0 2px,
        #171b2b 2.5px 4px,
        transparent 4.5px
      )
      100% 0 / 8px 8px no-repeat,
    radial-gradient(
        circle at 4px 4px,
        #8d96b5 0 2px,
        #171b2b 2.5px 4px,
        transparent 4.5px
      )
      0 100% / 8px 8px no-repeat,
    radial-gradient(
        circle at 4px 4px,
        #8d96b5 0 2px,
        #171b2b 2.5px 4px,
        transparent 4.5px
      )
      100% 100% / 8px 8px no-repeat;
}

.readouts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 18px;
}

.readouts div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.readouts .window {
  font-size: clamp(40px, 4.6vw, 62px);
}

.readouts div:nth-child(2) .window {
  --seg-on: var(--amber);
}
.readouts div:nth-child(3) .window {
  --seg-on: var(--mint);
}
.readouts div:nth-child(4) .window {
  --seg-on: var(--lavender);
}

.of {
  align-self: flex-end;
  margin-left: 0.2em;
  color: var(--silk);
  font: 400 0.42em/1 var(--display);
}

.sticker {
  position: absolute;
  right: -14px;
  bottom: -36px;
  padding: 10px 16px 8px;
  border: 2px solid #16110a;
  border-radius: 7px;
  background: var(--amber);
  color: #16110a;
  font: 400 19px/1.05 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transform: rotate(4.5deg);
  box-shadow: 0 8px 18px rgb(0 0 0 / 0.5);
}

.sticker b {
  font-weight: 400;
  color: #b3271c;
}

/* A second sticker: what there is to win, and the way down to it. */
.sticker.pool {
  right: auto;
  left: -14px;
  background: var(--mint);
  text-decoration: none;
  transform: rotate(-3.5deg);
}

.sticker.pool:hover {
  transform: rotate(-3.5deg) scale(1.04);
}

.sticker.pool b {
  color: #0d5f52;
}

/* A section: its label and a line about it, then the thing. */
section {
  padding: 0 0 96px;
  scroll-margin-top: 24px;
}

.heading {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-bottom: 30px;
}

/* The label: the studio name on tape, and under it what the section is in plain words. */
.heading h2 {
  flex: none;
  display: grid;
  justify-items: start;
  gap: 14px;
  font: inherit;
}

.plain {
  max-width: 21ch;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.heading .brief {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.5;
}

/* Numbered steps: the directions, and how to run a mission. */
.guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.guide[hidden] {
  display: none;
}

.guide li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 8px 16px;
  padding: 22px 22px 24px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.guide .n {
  grid-row: 1 / span 2;
  min-width: 0.9em;
  color: var(--red);
  font: 400 52px/0.9 var(--display);
}

.guide li:nth-child(2) .n {
  color: var(--amber);
}
.guide li:nth-child(3) .n {
  color: var(--lavender);
}
.guide li:nth-child(4) .n {
  color: var(--mint);
}

/* The way in: the sign-up link and what to know, and beside it the test cards as a ticket stub. */
.getin {
  scroll-margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 28px 44px;
  margin-top: 16px;
  padding: 30px 32px 32px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgb(138 58 92 / 0.34), rgb(111 95 174 / 0.22)),
    var(--panel);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1);
}

.getin h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.getin .words > p {
  margin-top: 12px;
  color: #d5d9e6;
  font-size: 16px;
  line-height: 1.55;
}

.getin .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 20px;
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6f63, #d93a2e);
  color: #fff;
  font: 400 22px/1 var(--display);
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    0 5px 0 #8f1f17,
    0 10px 16px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.cta:active {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #8f1f17,
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.ghost {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.ghost:hover {
  color: var(--lavender);
}

.getin .heads-up {
  padding: 12px 14px;
  border: 1.5px dashed rgb(243 181 74 / 0.6);
  border-radius: 10px;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.heads-up b {
  margin-right: 6px;
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stub {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border-radius: 16px;
  background: linear-gradient(120deg, #8a3a5c, #6f5fae);
  color: #fff;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}

.part {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 22px;
}

.part + .part {
  border-left: 2px dashed rgb(255 255 255 / 0.4);
}

.part .label {
  color: rgb(255 255 255 / 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.part .number {
  font: 700 15px/1.2 var(--mono);
  white-space: nowrap;
}

.part.main .number {
  font-size: 20px;
}

.copy {
  appearance: none;
  justify-self: start;
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.copy:hover {
  background: rgb(255 255 255 / 0.28);
}

.card-note {
  margin-top: 14px;
  color: var(--soft);
  font-size: 13.5px;
}

.guide h3 {
  align-self: end;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.guide p {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.guide p b {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--well);
  color: var(--ink);
  font: 700 0.92em var(--mono);
  white-space: nowrap;
}

#beat-how {
  margin-bottom: 26px;
}

/* A plain note under a thing. */
.aside {
  max-width: 86ch;
  margin-top: 26px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.55;
}

.aside b {
  color: var(--ink);
}

/* The key to the desk's lights: a colour to each size of catch. */
.lights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 22px;
}

.lights li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--silk);
  font-size: 13.5px;
}

.lights b {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 600;
}

.lights i {
  flex: none;
  width: 22px;
  height: 9px;
  border-radius: 2px;
  background: var(--led);
  box-shadow: 0 0 8px var(--led);
}

.heading p {
  max-width: 78ch;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.5;
}

.heading b {
  color: var(--ink);
}

/* The charts: the standings as a record chart. A row a tester, the bar their points, one lit
   block for each thing that scored. Nothing on it moves: a row is a button, and it says so. */
.chart {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: linear-gradient(180deg, #2d3654 0%, #1d2335 90px, #171c2c 100%);
  box-shadow:
    0 50px 90px -30px rgb(0 0 0 / 0.85),
    inset 0 1px 0 rgb(255 255 255 / 0.14);
}

.nobody {
  padding: 34px 28px;
  color: var(--soft);
  font-size: 16px;
}

.entry + .entry {
  border-top: 1px solid rgb(255 255 255 / 0.06);
}

.entry button {
  appearance: none;
  display: grid;
  grid-template-columns: 54px 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 22px;
  width: 100%;
  padding: 16px 28px 15px 22px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.15s,
    opacity 0.2s;
}

.entry button:hover {
  background: rgb(255 255 255 / 0.04);
}

.entry button:focus-visible {
  outline-offset: -3px;
}

.entry.dimmed button {
  opacity: 0.36;
}

.entry.only button {
  background: rgb(243 181 74 / 0.09);
  box-shadow: inset 4px 0 0 var(--amber);
}

.rank {
  color: var(--silk);
  font: 400 34px/1 var(--display);
  text-align: center;
}

.first .rank {
  color: var(--amber);
  font-size: 46px;
  text-shadow: 0 0 18px rgb(243 181 74 / 0.45);
}

/* The name, in marker on masking tape. */
.tape {
  justify-self: start;
  max-width: 100%;
  padding: 5px 10px 3px;
  overflow: hidden;
  background: linear-gradient(180deg, #efe6c6, var(--tape));
  color: var(--paper-ink);
  font:
    400 17px/1.2 "Walter Turncoat",
    "Comic Sans MS",
    cursive;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: rotate(var(--tilt));
  clip-path: polygon(
    0 8%,
    3% 0,
    6% 10%,
    100% 0,
    97% 50%,
    100% 100%,
    5% 92%,
    2% 100%,
    0 88%,
    3% 50%
  );
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.4);
}

.tally {
  display: grid;
  gap: 8px;
  min-width: 0;
}

/* The bar: a dark well the width of the top score, lit as far as this score goes. */
.meter {
  display: block;
  padding: 4px;
  border-radius: 5px;
  background: var(--well);
  box-shadow:
    inset 0 1px 3px rgb(0 0 0 / 0.9),
    0 1px 0 rgb(255 255 255 / 0.07);
}

.blocks {
  display: flex;
  gap: 2px;
  width: var(--level);
  min-width: 0;
  height: 16px;
}

.blocks i {
  flex: var(--w) 0 0;
  min-width: 2px;
  border-radius: 2px;
  background: var(--led);
  box-shadow: 0 0 7px color-mix(in srgb, var(--led) 70%, transparent);
  animation: light 0.25s both;
  animation-delay: calc(var(--i) * 50ms + var(--n) * 14ms + 250ms);
}

.blocks .stops,
.lights .stops {
  --led: var(--red);
}
.blocks .works,
.lights .works {
  --led: var(--amber);
}
.blocks .looks,
.lights .looks {
  --led: var(--lavender);
}
.blocks .mission,
.lights .mission {
  --led: #6fa8ff;
}
.blocks .check,
.lights .check {
  --led: var(--mint);
}

@keyframes light {
  from {
    opacity: 0;
  }
}

.entry .detail {
  color: var(--silk);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.entry .window {
  justify-self: end;
  font-size: 30px;
}

.entry:nth-child(n + 2) .window {
  --seg-on: var(--amber);
}
.entry:nth-child(n + 4) .window {
  --seg-on: var(--lavender);
}

/* Under the chart: the round's totals, and who the page is showing when it is one person. */
.sum {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 28px;
  padding: 16px 28px 18px 22px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(0 0 0 / 0.22);
  color: var(--silk);
  font-size: 13.5px;
}

.sum b {
  color: var(--ink);
}

.only-note {
  color: var(--amber);
}

.only-note a {
  margin-left: 12px;
  color: var(--silk);
}

.only-note button {
  appearance: none;
  margin-left: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* The setlist: every mission by name under its part of the product. Nothing is behind a tap
   but what was found there. */
.sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 44px 0 16px;
}

.sub h3 {
  font-size: 19px;
  font-weight: 700;
}

.sub p {
  color: var(--silk);
  font-size: 14px;
}

.filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Its tick box. */
.filter::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--silk);
  border-radius: 4px;
}

.filter[aria-pressed="true"] {
  border-color: var(--mint);
}

.filter[aria-pressed="true"]::before {
  border-color: var(--mint);
  background: var(--mint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.6-5' fill='none' stroke='%230e111e' stroke-width='2'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Three to start on. */
.grabs .sub {
  margin-top: 36px;
}

.picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.picks li {
  padding: 20px 22px 22px;
  border: 1px solid var(--edge);
  border-top: 4px solid var(--hue);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
}

.kicker {
  color: var(--hue, var(--silk));
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.picks h4 {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.picks p:not(.kicker) {
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.picks b,
.more b {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--well);
  color: var(--ink);
  font: 700 0.92em var(--mono);
  white-space: nowrap;
}

/* The list: a card to each part of the product, a row to each mission. */
.setlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.area {
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2) 0, var(--panel) 70px);
}

.area h4 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  font: 400 23px/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.area h4::before {
  content: "";
  flex: none;
  align-self: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 8px var(--hue);
}

.area h4 .silk {
  margin-left: auto;
  font-family: "Inter", sans-serif;
  white-space: nowrap;
}

.area .mission + .mission {
  border-top: 1px solid rgb(255 255 255 / 0.05);
}

.mission[hidden] {
  display: none;
}

.mission > button {
  appearance: none;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px 11px 14px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.2s;
}

.mission > button:hover,
.mission.selected {
  background: rgb(255 255 255 / 0.05);
}

.mission > button:focus-visible {
  outline-offset: -3px;
}

.mission.dimmed > button {
  opacity: 0.38;
}

/* Its number, on a pad lit as far as its mission is done. */
.num {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(180deg, #403f4b, #24232c);
  color: rgb(255 255 255 / 0.75);
  font: 700 12px/1 var(--mono);
  box-shadow:
    0 2px 0 #131219,
    inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.mission[data-level="1"] .num {
  background: color-mix(in srgb, var(--hue) 45%, #24232c);
  color: #fff;
}

.mission[data-level="2"] .num {
  background: var(--hue);
  color: #16110a;
  box-shadow:
    0 2px 0 #131219,
    0 0 12px color-mix(in srgb, var(--hue) 70%, transparent);
}

.name {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
}

.name small {
  display: block;
  margin-top: 3px;
  color: var(--silk);
  font-size: 12px;
  font-weight: 400;
}

.tag {
  padding: 4px 8px 3px;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  color: var(--silk);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag.open {
  color: var(--mint);
}

.tag.half {
  color: var(--amber);
}

.tag.done {
  border-color: transparent;
  background: rgb(255 255 255 / 0.08);
}

.tag.done::before {
  content: "✓ ";
}

/* What a row opens to. */
.mission .more {
  display: grid;
  gap: 8px;
  padding: 2px 16px 16px 60px;
  color: var(--soft);
  font-size: 13.5px;
  line-height: 1.45;
}

.mission .more[hidden] {
  display: none;
}

.more ul {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.more ul li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.more .stamp {
  width: 24px;
  height: 24px;
  font-size: 13px;
}

.more em {
  color: var(--silk);
  font-style: normal;
}

.more em::before {
  content: "· ";
}

.dim {
  color: var(--silk);
}

.area .none {
  padding: 16px 18px;
  color: var(--silk);
  font-size: 13.5px;
}

.area .none[hidden] {
  display: none;
}

/* The drum machine, small: the same missions as a song, a pad each. */
.machine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 30px;
  padding: 22px 28px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #eee8d8 0%, #d8d0ba 100%);
  color: var(--paper-ink);
  box-shadow:
    0 50px 90px -30px rgb(0 0 0 / 0.85),
    inset 0 2px 0 rgb(255 255 255 / 0.75),
    inset 0 -7px 0 rgb(0 0 0 / 0.13);
  --silk: #7b745f;
}

.transport {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.play {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 132px;
  height: 54px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff6f63, #d93a2e);
  color: #fff;
  font: 400 24px/1 var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 5px 0 #8f1f17,
    0 10px 16px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.play:active,
.play[aria-pressed="true"] {
  transform: translateY(4px);
  box-shadow:
    0 1px 0 #8f1f17,
    inset 0 1px 0 rgb(255 255 255 / 0.4);
}

.play .icon {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}

.play[aria-pressed="true"] .icon {
  width: 15px;
  height: 15px;
  border: 0;
  background: #fff;
}

.whole {
  appearance: none;
  height: 54px;
  padding: 0 16px;
  border: 2px solid var(--paper-ink);
  border-radius: 12px;
  background: transparent;
  color: var(--paper-ink);
  font:
    800 12px/1 "Inter",
    sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.whole:hover {
  background: rgb(42 36 51 / 0.08);
}

.whole[aria-pressed="true"] {
  background: var(--paper-ink);
  color: var(--amber);
}

.gauges {
  display: flex;
  gap: 14px;
}

.gauge {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.gauge .window {
  font-size: 26px;
  --seg-on: var(--amber);
}

.gauge:first-of-type .window {
  --seg-on: var(--red);
}

.song {
  flex: 1 1 260px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.5;
}

.grid {
  flex: none;
  display: grid;
  gap: 4px;
}

.steps,
.row {
  display: grid;
  grid-template-columns: repeat(8, 30px);
  gap: 4px;
}

/* Where the song is, as it plays. */
.steps i {
  height: 4px;
  border-radius: 2px;
  background: rgb(42 36 51 / 0.14);
}

.steps i.on {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

/* A pad: dark rubber, with its light inside. */
.pad {
  appearance: none;
  position: relative;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #403f4b, #24232c);
  cursor: pointer;
  box-shadow:
    0 2px 0 #131219,
    inset 0 1px 0 rgb(255 255 255 / 0.18);
}

.pad::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  background: var(--hue);
  opacity: 0.06;
  transition: opacity 0.2s;
}

.pad[data-level="1"]::before {
  opacity: 0.45;
}

.pad[data-level="2"]::before {
  opacity: 1;
  box-shadow: 0 0 9px var(--hue);
}

/* The song finished: the dark pads show where their light would be. */
.grid.finished .pad[data-level="0"]::before {
  opacity: 0.3;
}

.pad:active {
  transform: translateY(2px);
}

.pad.hit {
  animation: hit 0.18s ease-out;
}

@keyframes hit {
  from {
    transform: translateY(2px) scale(0.94);
    filter: brightness(1.9);
  }
}

.pad.selected {
  outline: 2px solid var(--paper-ink);
  outline-offset: 1px;
}

/* Paper: the cue sheet and the rider, taped up. */
.sheet {
  position: relative;
  padding: 36px 40px 30px;
  border-radius: 3px;
  background:
    linear-gradient(rgb(42 36 51 / 0.05), transparent 40%), var(--paper);
  color: var(--paper-ink);
  font-family: "Special Elite", var(--mono);
  transform: rotate(-0.45deg);
  box-shadow: 0 40px 70px -25px rgb(0 0 0 / 0.8);
  --works-ink: #b06f00;
  --looks-ink: #6a55c8;
}

.sheet::before,
.sheet::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 112px;
  height: 30px;
  background: rgb(230 220 184 / 0.82);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.3);
}

.sheet::before {
  left: 46px;
  transform: rotate(-4deg);
}

.sheet::after {
  right: 54px;
  transform: rotate(3deg);
}

.sheet-title {
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper-ink);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cues li {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) 74px 30px;
  align-items: center;
  gap: 14px;
  padding: 10px 0 8px;
  border-bottom: 1px dashed rgb(42 36 51 / 0.3);
  font-size: 14.5px;
  line-height: 1.3;
}

.when,
.key {
  font-size: 12.5px;
  opacity: 0.75;
}

.key {
  text-align: right;
}

/* Who caught it, in blue pen. */
.who {
  color: #1d3fae;
  font:
    400 18px/1 "Walter Turncoat",
    cursive;
}

.fixed {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px 1px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  color: #1b7a55;
  font:
    800 9px/1 "Inter",
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.sheet .more {
  margin-top: 16px;
  font-size: 14.5px;
  opacity: 0.85;
}

/* Someone put a mug down. */
.ring {
  position: absolute;
  top: 8px;
  right: 150px;
  width: 112px;
  height: 106px;
  border: 5px solid rgb(118 74 30 / 0.15);
  border-radius: 50%;
  pointer-events: none;
  transform: rotate(18deg);
  box-shadow:
    inset 0 0 0 2px rgb(118 74 30 / 0.07),
    0 0 0 1px rgb(118 74 30 / 0.06);
  mask: conic-gradient(#000 0 62%, transparent 70% 78%, #000 86%);
}

.rider {
  max-width: 860px;
  transform: rotate(0.4deg);
}

.rider table {
  width: 100%;
  border-collapse: collapse;
}

.rider caption {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--paper-ink);
  font-size: 22px;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.rider th {
  width: 46px;
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.rider td {
  padding: 13px 0 10px;
  font-size: 14.5px;
  line-height: 1.4;
}

.rider tr + tr :is(th, td) {
  border-top: 1px dashed rgb(42 36 51 / 0.3);
}

/* The prizes: a gift card each, laid out on the desk. */
.prizes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}

/* What wins it takes the room, so "Right now" sits on one line across the four. */
.prizes li {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.giftcard {
  position: relative;
  display: grid;
  align-content: end;
  aspect-ratio: 1.586;
  margin-bottom: 22px;
  padding: 16px 18px 15px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--from), var(--to));
  color: var(--on, #fff);
  transform: rotate(var(--tilt));
  box-shadow:
    0 26px 44px -18px rgb(0 0 0 / 0.85),
    inset 0 1px 0 rgb(255 255 255 / 0.4),
    inset 0 -3px 0 rgb(0 0 0 / 0.18);
}

/* The light across it. */
.giftcard::before {
  content: "";
  position: absolute;
  inset: -40% 35% -40% -20%;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgb(255 255 255 / 0.2) 50%,
    transparent 70%
  );
  transform: rotate(8deg);
}

/* The hole it hangs from in a shop. */
.giftcard .chip {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 11px;
  border-radius: 999px;
  background: var(--desk);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.6);
}

.amount {
  position: relative;
  font: 400 clamp(54px, 5.4vw, 78px) / 0.9 var(--display);
  letter-spacing: 0.01em;
  text-shadow: 0.04em 0.04em 0 rgb(0 0 0 / 0.22);
}

.kind {
  position: relative;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.prizes .prize-top {
  --from: #f6cf74;
  --to: #c98a1c;
  --on: #2a1c05;
}
.prizes .prize-catch {
  --from: #ff6f63;
  --to: #8a3a5c;
}
.prizes .prize-tour {
  --from: #5d8df5;
  --to: #3a3f9c;
}
.prizes .prize-encore {
  --from: #7be0c3;
  --to: #2f8f8a;
  --on: #062421;
}

.prizes .prize-top .amount,
.prizes .prize-encore .amount {
  text-shadow: 0.04em 0.04em 0 rgb(255 255 255 / 0.3);
}

.prizes h3 {
  font: 400 28px/1 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prizes p {
  margin-top: 8px;
  color: var(--soft);
  font-size: 14.5px;
  line-height: 1.45;
}

.prizes .now {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed var(--edge);
  color: var(--ink);
  font-weight: 600;
}

.now b {
  display: block;
  margin-bottom: 3px;
  color: var(--amber);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outro {
  padding: 0 0 72px;
}

.thanks {
  font: 400 clamp(48px, 8vw, 104px) / 0.95 var(--display);
  text-transform: uppercase;
}

.thanks span {
  color: var(--lavender);
}

.liner {
  margin-top: 16px;
  color: var(--silk);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .hero,
  .getin {
    grid-template-columns: minmax(0, 1fr);
  }

  .prizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero.hosted {
    grid-template-columns: minmax(0, 1fr);
  }

  .headline {
    padding-bottom: 8px;
  }

  .host {
    max-width: 380px;
  }

  .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .sticker {
    right: 8px;
  }

  .sticker.pool {
    left: 8px;
  }
}

@media (max-width: 640px) {
  /* Only the sides: a page's own top and bottom spacing (the bar's, the cover's) stays. */
  .inner {
    padding-inline: 16px;
  }

  .bar {
    padding-top: 22px;
  }

  .readouts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav {
    display: none;
  }

  .hero {
    padding-top: 36px;
  }

  .entry button {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px 12px;
    padding: 14px 16px 14px 12px;
  }

  .rank {
    font-size: 26px;
  }

  .first .rank {
    font-size: 34px;
  }

  .tally {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .entry .window {
    font-size: 24px;
  }

  .sum {
    padding-inline: 16px;
  }

  .setlist {
    grid-template-columns: minmax(0, 1fr);
  }

  .getin {
    padding: 22px 18px 24px;
  }

  .stub {
    grid-template-columns: minmax(0, 1fr);
  }

  .part + .part {
    border-top: 2px dashed rgb(255 255 255 / 0.4);
    border-left: 0;
  }

  .filter {
    margin-left: 0;
  }

  .machine {
    padding: 18px 16px 20px;
  }

  .sheet {
    padding: 30px 18px 22px;
  }

  .cues li {
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 2px 10px;
  }

  .cues .what {
    grid-column: 1;
  }

  .cues .when,
  .cues .key {
    display: none;
  }

  .cues .stamp {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .prizes {
    gap: 26px 16px;
  }

  /* Two stickers don't fit side by side: the prizes' goes under the other. */
  .top {
    padding-bottom: 124px;
  }

  .sticker.pool {
    bottom: -84px;
  }

  .giftcard {
    padding: 12px 13px 11px;
  }

  .kind {
    font-size: 9px;
    letter-spacing: 0.1em;
  }

  .prizes h3 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .host img,
  .blocks i,
  .pad.hit {
    animation: none;
  }
}
