/* Pickle Arcade: Glide, the eighth cabinet.
 *
 * arcade.css carries the site register and the --arc-* tokens on
 * body[data-app="minigame"]; arena.css carries the pieces every cabinet shares
 * (.arc-band, .arc-tube, .arc-pending, .arc-lamp). This sheet carries what
 * Glide alone asks for: the screen-and-rail table, the flight's graphics over
 * the canyon (the bug, the time in the air, the volatility stamp, the demo
 * label, the speed of this browser's wing beats), the canyon picker, the card
 * after a run and the rail's console. Every class here is prefixed gld- and
 * every class the markup uses must exist here or in a sheet that loads before
 * it, because tests/design-language.test.mjs walks both.
 *
 * COLOUR IS A GRAMMAR. Laser lime, --arc-glide, is the cabinet: its tube, the
 * canyon's lip, the brand mark, the picked card, the time in the air. The
 * weather's magenta and red are the market's, and only the volatility stamp
 * wears them. White is the reading. Amber, the estate's warn, is the demo
 * label, because a demo is shown only when no run of yours is in the air.
 *
 * THE ESTATE'S RADIUS IS 2px, AND SO IS EVERY CORNER HERE.
 *
 * MOTION IS A LAYER, NOT THE PICTURE. Every rule with a duration lives inside
 * @media (prefers-reduced-motion: no-preference) at the end of this file.
 */

/* ===================================================================== tokens */
.gld-band {
  --gld-light: var(--arc-glide);
  --gld-light-hi: var(--arc-glide-hi);
  --gld-faint: color-mix(in srgb, var(--arc-glide) 22%, transparent);
  --gld-ghost: color-mix(in srgb, var(--arc-glide) 8%, transparent);
  --gld-glass: rgb(5 6 10 / 78%);
  --gld-glass-hard: rgb(5 6 10 / 92%);
  --gld-magenta: #ff4fd8;
  --gld-red: #ff4a3a;
}

/* ====================================================================== table
 * The canyon and the rail, the whole viewport under the nav, as Stack. */
.gld-table {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 21rem;
  grid-template-rows: minmax(0, 1fr);
  height: max(34rem, calc(var(--arc-stage) - 1px));
}

.gld-stagebox {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: clip;
}

.gld-screen {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: clip;
  background: var(--arc-glass);
  user-select: none;
  -webkit-user-select: none;
}

.gld-screen.gld-live { cursor: pointer; touch-action: manipulation; }

/* A scrim at the top of the picture and a deeper one at its foot, so the
   words over the canyon read against the sky rather than through it. */
.gld-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(2 3 8 / 58%), transparent 22%, transparent 72%, rgb(2 3 8 / 62%));
}

.gld-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.gld-lost {
  position: absolute;
  inset: auto var(--pickle-space-4) calc(var(--pickle-space-8) + var(--pickle-space-4));
  z-index: 3;
  margin: 0;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

/* ======================================================================== bug
 * The corner graphic: the cabinet, the canyon, its price, and the demo label. */
.gld-bug {
  position: absolute;
  top: var(--pickle-space-5);
  left: var(--pickle-space-5);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--pickle-space-2);
  max-width: min(26rem, calc(100% - 16rem));
  pointer-events: none;
  text-shadow: 0 1px 14px rgb(0 0 0 / 85%);
}

.gld-bug-brand {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--pickle-space-2);
  color: var(--gld-light);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  font-weight: 500;
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-bug-mark {
  width: 9px;
  height: 9px;
  border-radius: 1px;
  background: var(--gld-light);
  box-shadow: 0 0 12px var(--gld-light);
}

.gld-bug-feed {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--pickle-space-3);
}

.gld-bug-sym {
  color: var(--pickle-text);
  font-family: var(--pickle-font-display);
  font-size: var(--pickle-text-lg);
  font-weight: 600;
  letter-spacing: -.01em;
}

.gld-bug-price {
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-md);
  font-variant-numeric: tabular-nums;
}

/* The demo's label: amber, on solid glass, with its reason beside it. */
.gld-demo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--pickle-space-2) var(--pickle-space-3);
  border: 1px solid var(--pickle-amber-line);
  border-left: 3px solid var(--pickle-amber);
  border-radius: 2px;
  background: var(--gld-glass-hard);
  text-shadow: none;
}

.gld-demo-tag {
  color: var(--pickle-amber);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  font-weight: 500;
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-demo-why {
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  line-height: 1.4;
}

/* ====================================================================== score
 * The time in the air: the one figure the eye goes to. */
.gld-score {
  position: absolute;
  top: var(--pickle-space-5);
  right: var(--pickle-space-5);
  z-index: 2;
  margin: 0;
  display: grid;
  justify-items: end;
  gap: var(--pickle-space-1);
  pointer-events: none;
  text-shadow: 0 2px 18px rgb(0 0 0 / 85%);
}

.gld-score-what,
.gld-score-unit {
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-score-n {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  color: var(--pickle-text);
}

/* A near miss flashes the figure in the cabinet's light. */
.gld-near .gld-score-n {
  color: var(--gld-light-hi);
  text-shadow: 0 0 22px var(--gld-light), 0 2px 18px rgb(0 0 0 / 85%);
}

/* ===================================================================== stamp
 * "VOLATILITY x4": the weather named, in the weather's own colour. */
.gld-stamp {
  --gld-stamp: var(--gld-magenta);
  position: absolute;
  top: var(--pickle-space-6);
  left: 50%;
  z-index: 2;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--pickle-space-3);
  padding: var(--pickle-space-2) var(--pickle-space-4);
  border: 2px solid var(--gld-stamp);
  border-radius: 2px;
  background: color-mix(in srgb, var(--gld-stamp) 14%, rgb(5 6 10 / 80%));
  box-shadow: 0 0 28px color-mix(in srgb, var(--gld-stamp) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--gld-stamp) 25%, transparent);
  color: var(--gld-stamp);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
  white-space: nowrap;
}

.gld-stamp-red { --gld-stamp: var(--gld-red); }
.gld-stamp-magenta { --gld-stamp: var(--gld-magenta); }

.gld-stamp-word {
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-sm);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.gld-stamp-n {
  font-family: var(--pickle-font-display);
  font-size: var(--pickle-text-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}

/* ================================================================ flight words */
.gld-hint,
.gld-wait {
  position: absolute;
  left: 50%;
  bottom: var(--pickle-space-8);
  z-index: 2;
  margin: 0;
  padding: var(--pickle-space-2) var(--pickle-space-4);
  border: 1px solid var(--gld-faint);
  border-radius: 2px;
  background: var(--gld-glass);
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  letter-spacing: .04em;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.gld-wait { bottom: calc(var(--pickle-space-8) + 3rem); color: var(--pickle-muted); }

.gld-speed {
  position: absolute;
  left: var(--pickle-space-5);
  bottom: var(--pickle-space-5);
  z-index: 2;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--pickle-space-1) var(--pickle-space-2);
  max-width: calc(100% - 2 * var(--pickle-space-5));
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  pointer-events: none;
  text-shadow: 0 1px 10px rgb(0 0 0 / 90%);
}

.gld-speed-what,
.gld-speed-mini { color: var(--pickle-subtle); letter-spacing: .04em; }
.gld-speed-ms { color: var(--gld-light-hi); font-weight: 500; font-size: var(--pickle-text-sm); }

/* ===================================================================== picker
 * On a wide screen the cards stand along the foot of the canyon, so the demo
 * flight flies above them; on a phone they sit under it. */
.gld-picker {
  position: absolute;
  left: var(--pickle-space-5);
  right: var(--pickle-space-5);
  bottom: var(--pickle-space-5);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-3);
}

.gld-picker-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--pickle-space-1) var(--pickle-space-4);
  align-self: flex-start;
  max-width: 100%;
  padding: var(--pickle-space-2) var(--pickle-space-3);
  border-radius: 2px;
  background: var(--gld-glass);
}

.gld-picker-title {
  margin: 0;
  color: var(--pickle-text);
  font-family: var(--pickle-font-display);
  font-size: var(--pickle-text-md);
  font-weight: 600;
}

.gld-picker-line {
  margin: 0;
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

.gld-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--pickle-space-2);
}

.gld-card-li { display: block; min-width: 0; }

.gld-card {
  appearance: none;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: var(--pickle-space-1);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: var(--pickle-space-2) var(--pickle-space-3) var(--pickle-space-2);
  border: 1px solid var(--pickle-line);
  border-top: 2px solid var(--pickle-line);
  border-radius: 2px;
  background: var(--gld-glass-hard);
  color: var(--pickle-text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gld-card:hover:not(:disabled) { border-color: var(--gld-faint); }
.gld-card:focus-visible { outline: 2px solid var(--gld-light-hi); outline-offset: 1px; }

.gld-card.gld-picked {
  border-color: var(--gld-light);
  border-top-color: var(--gld-light);
  background: color-mix(in srgb, var(--arc-glide) 10%, var(--gld-glass-hard));
  box-shadow: 0 0 24px var(--gld-ghost), inset 0 1px 0 var(--gld-faint);
}

.gld-card.gld-shut { cursor: default; }
.gld-card.gld-shut .gld-card-price,
.gld-card.gld-shut .gld-card-sym { color: var(--pickle-muted); }

.gld-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--pickle-space-2);
  min-width: 0;
}

.gld-card-sym {
  font-family: var(--pickle-font-display);
  font-size: var(--pickle-text-sm);
  font-weight: 600;
  letter-spacing: .01em;
}

.gld-card-state {
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: .58rem;
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-card-state.gld-open { color: var(--gld-light); }
.gld-card-state.gld-state-demo { color: var(--pickle-amber); }

.gld-card-price {
  overflow: hidden;
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gld-spark {
  display: block;
  width: 100%;
  height: 26px;
  overflow: visible;
}

.gld-spark-line {
  fill: none;
  stroke: var(--gld-light);
  stroke-width: 1.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gld-spark-line.gld-down { stroke: var(--gld-magenta); }
.gld-shut .gld-spark-line { stroke: var(--pickle-subtle); }

.gld-card-move {
  color: var(--gld-light-hi);
  font-family: var(--pickle-font-mono);
  font-size: .6rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.gld-card-move.gld-down { color: var(--gld-magenta); }
.gld-shut .gld-card-move { color: var(--pickle-subtle); }

/* On a wide screen the rail carries the Fly button; the picker's own is the phone's. */
.gld-pick-foot { display: none; }

.gld-pick-why {
  margin: 0;
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

/* ====================================================================== fly */
.gld-fly-box,
.gld-pick-fly {
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-2);
}

.gld-fly,
.gld-again {
  width: 100%;
  min-height: calc(var(--pickle-tap) + 8px);
  font-family: var(--pickle-font-display);
  font-size: var(--pickle-text-md);
  font-weight: 600;
}

/* The cabinet's own button: lime, dark words, the canyon's lip as a lamp. */
.gld-fly.ex-btn.solid,
.gld-again.ex-btn.solid {
  border-color: var(--gld-light);
  background: var(--gld-light);
  color: #0a0b05;
  box-shadow: 0 0 22px var(--gld-ghost);
}

.gld-fly.ex-btn.solid:hover:not(:disabled),
.gld-again.ex-btn.solid:hover:not(:disabled) {
  border-color: var(--gld-light-hi);
  background: var(--gld-light-hi);
}

.gld-other {
  width: 100%;
  min-height: var(--pickle-tap);
}

.gld-fly-eth {
  margin: 0;
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  letter-spacing: .04em;
}

.gld-fly-why {
  margin: 0;
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  line-height: 1.45;
}

/* ===================================================================== result
 * The card after a run, over the canyon's last frame. */
.gld-result {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-3);
  width: min(24rem, calc(100% - 2 * var(--pickle-space-5)));
  padding: var(--pickle-space-5);
  border: 1px solid var(--pickle-line);
  border-top: 2px solid var(--gld-light);
  border-radius: 2px;
  background: var(--gld-glass-hard);
  box-shadow: 0 18px 60px rgb(0 0 0 / 55%);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gld-in-pick .gld-result {
  top: auto;
  bottom: 13.5rem;
  transform: translateX(-50%);
  width: min(22rem, calc(100% - 2 * var(--pickle-space-5)));
  padding: var(--pickle-space-4);
}

.gld-result.gld-result-back { border-top-color: var(--pickle-amber); }

.gld-result-kicker {
  margin: 0;
  color: var(--gld-light);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-result-back .gld-result-kicker { color: var(--pickle-amber); }

.gld-result-figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--pickle-space-2) var(--pickle-space-3);
}

.gld-result-n { font-size: clamp(2.6rem, 4.6vw, 3.6rem); }

.gld-result-unit {
  color: var(--pickle-muted);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-sm);
}

.gld-result-judging {
  flex-basis: 100%;
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
}

.gld-result-line {
  margin: 0;
  color: var(--pickle-muted);
  font-size: var(--pickle-text-sm);
  line-height: 1.45;
}

.gld-result-line:empty { display: none; }

.gld-chart {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-1);
}

.gld-chart-cap,
.gld-chart-axis {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--pickle-space-3);
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  letter-spacing: .03em;
}

.gld-chart-range { color: var(--pickle-muted); text-align: right; }

.gld-chart-svg {
  display: block;
  width: 100%;
  height: 5.5rem;
  border-bottom: 1px solid var(--pickle-line);
  overflow: visible;
}

.gld-chart-fill { fill: var(--gld-ghost); stroke: none; }

.gld-chart-line {
  fill: none;
  stroke: var(--gld-light);
  stroke-width: 1.6;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.gld-chart-crash { fill: var(--gld-red); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.gld-chart-end { fill: var(--pickle-amber); stroke: none; }

.gld-result-do {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--pickle-space-2);
}

.gld-result-do:empty { display: none; }
.gld-result-do .gld-other { width: auto; }

/* ======================================================================= rail */
.gld-rail {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  background: var(--pickle-bg);
  border-left: 1px solid var(--pickle-line);
}

.gld-cabin,
.gld-room,
.gld-how {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--pickle-space-3);
  padding: var(--pickle-space-4);
  border-bottom: 1px solid var(--pickle-line);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-xs);
  color: var(--pickle-muted);
  flex: 0 0 auto;
}

.gld-how { border-bottom: 0; }

.gld-label,
.gld-h {
  margin: 0;
  color: var(--pickle-subtle);
  font-family: var(--pickle-font-mono);
  font-size: var(--pickle-text-2xs);
  font-weight: 500;
  letter-spacing: var(--pickle-tracking-caps);
  text-transform: uppercase;
}

.gld-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--pickle-space-3);
}

.gld-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--pickle-space-1);
  min-width: 0;
}

.gld-figure-n { font-size: var(--arc-figure); color: var(--gld-light-hi); }

.gld-figure-m {
  color: var(--pickle-text);
  font-family: var(--pickle-font-mono);
  font-size: var(--arc-figure);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  line-height: .9;
}

.gld-figure-unit {
  overflow: hidden;
  color: var(--pickle-subtle);
  font-size: var(--pickle-text-2xs);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gld-pot {
  margin: calc(var(--pickle-space-2) * -1) 0 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--pickle-space-2) var(--pickle-space-3);
}

.gld-pot-n { font-size: var(--arc-figure); }
.gld-pot-n.gld-idle { color: var(--pickle-subtle); }
.gld-pot-eth { color: var(--pickle-subtle); }

.gld-note {
  margin: 0;
  color: var(--pickle-muted);
  font-family: var(--pickle-font);
  font-size: var(--pickle-text-xs);
  line-height: 1.55;
}

.gld-rail-fly:empty { display: none; }

.gld-purse {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--pickle-space-2);
}

.gld-purse-what { color: var(--pickle-subtle); }
.gld-purse-sum { color: var(--pickle-text); font-weight: 500; }
.gld-purse-eth { color: var(--pickle-subtle); }
.gld-purse a { margin-left: auto; }

.gld-leaders {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.gld-leader {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr) 3rem auto;
  align-items: baseline;
  gap: var(--pickle-space-2);
  padding: var(--pickle-space-1) 0;
  border-bottom: 1px solid var(--pickle-line);
}

.gld-leader:last-child { border-bottom: 0; }
.gld-leader-at { color: var(--pickle-subtle); }
.gld-leader-who { overflow: hidden; color: var(--pickle-muted); text-overflow: ellipsis; white-space: nowrap; }
.gld-leader-feed { color: var(--gld-light); letter-spacing: .04em; }
.gld-leader-s { color: var(--pickle-text); font-weight: 500; font-variant-numeric: tabular-nums; }
.gld-leader.gld-me .gld-leader-who { color: var(--gld-light-hi); }

.gld-empty,
.gld-best {
  margin: 0;
  color: var(--pickle-muted);
  line-height: 1.5;
}

.gld-best { color: var(--gld-light-hi); }

/* ================================================================ mid widths */
@media (max-width: 1279px) and (min-width: 1024px) {
  .gld-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gld-in-pick .gld-result { bottom: 18rem; }
}

/* ===================================================================== phones */
@media (max-width: 1023px) {
  .gld-table {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    height: auto;
  }

  .gld-stagebox {
    height: auto;
    overflow: visible;
  }

  /* Tall enough for the canyon to be a picture, short enough that the cards
     under it are a thumb away. */
  .gld-screen {
    position: relative;
    inset: auto;
    height: min(var(--arc-stage-phone), 62dvh);
    min-height: 24rem;
  }

  .gld-bug { top: var(--pickle-space-3); left: var(--pickle-space-3); gap: var(--pickle-space-1); max-width: calc(100% - 9rem); }
  .gld-bug-sym { font-size: var(--pickle-text-md); }
  .gld-bug-price { font-size: var(--pickle-text-sm); }
  .gld-demo { padding: var(--pickle-space-1) var(--pickle-space-2); }
  .gld-demo-why { font-size: var(--pickle-text-2xs); }

  .gld-score { top: var(--pickle-space-3); right: var(--pickle-space-3); }
  .gld-score-n { font-size: 2.4rem; }

  .gld-stamp {
    top: auto;
    bottom: var(--pickle-space-8);
    gap: var(--pickle-space-2);
    padding: var(--pickle-space-1) var(--pickle-space-3);
  }

  .gld-stamp-word { font-size: var(--pickle-text-2xs); }
  .gld-stamp-n { font-size: var(--pickle-text-xl); }

  .gld-hint,
  .gld-wait {
    bottom: var(--pickle-space-4);
    max-width: calc(100% - 2 * var(--pickle-space-3));
    white-space: normal;
    text-align: center;
    font-size: var(--pickle-text-2xs);
  }

  .gld-wait { bottom: calc(var(--pickle-space-4) + 2.6rem); }

  .gld-speed { left: var(--pickle-space-3); bottom: var(--pickle-space-3); }

  .gld-picker {
    position: static;
    padding: var(--pickle-space-3);
    border-top: 1px solid var(--pickle-line);
    background: var(--pickle-bg);
  }

  .gld-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Seven canyons on two columns: the last card takes the row, not half of it. */
  .gld-card-li:last-child:nth-child(odd) { grid-column: span 2; }
  .gld-card { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--pickle-bg); }
  .gld-card.gld-picked { background: color-mix(in srgb, var(--arc-glide) 8%, var(--pickle-bg)); }

  .gld-pick-foot {
    display: flex;
    flex-direction: column;
    gap: var(--pickle-space-2);
  }

  .gld-rail-fly { display: none; }

  .gld-result,
  .gld-in-pick .gld-result {
    top: auto;
    bottom: var(--pickle-space-3);
    transform: translateX(-50%);
    width: calc(100% - 2 * var(--pickle-space-3));
    padding: var(--pickle-space-3) var(--pickle-space-4);
    gap: var(--pickle-space-2);
  }

  .gld-result-n { font-size: 2.2rem; }
  .gld-chart-svg { height: 3.4rem; }

  .gld-rail {
    height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--pickle-line);
  }
}

/* ===================================================================== motion */
@media (prefers-reduced-motion: no-preference) {
  /* The stamp lands like a rubber stamp: large, then pressed flat, once per
     new multiple (the page keys it on the multiple). */
  .gld-stamp { animation: gld-stamp-in 420ms cubic-bezier(.2, 1.4, .4, 1) both; }
  .gld-near .gld-score-n { transition: color 60ms linear; }
  .gld-score-n { transition: color 380ms ease-out, text-shadow 380ms ease-out; }
  .gld-result { animation: gld-rise 360ms var(--pickle-ease, ease-out) both; }
  .gld-bug-mark { animation: gld-pulse 1.6s ease-in-out infinite; }
  .gld-hint { animation: gld-breathe 1.8s ease-in-out infinite; }
  .gld-card { transition: border-color 160ms ease, background-color 160ms ease, box-shadow 200ms ease; }

  @keyframes gld-stamp-in {
    from { opacity: 0; transform: translateX(-50%) rotate(-9deg) scale(1.9); }
    60% { opacity: 1; transform: translateX(-50%) rotate(-2deg) scale(.94); }
    to { opacity: 1; transform: translateX(-50%) rotate(-3deg) scale(1); }
  }

  @keyframes gld-rise {
    from { opacity: 0; margin-top: 12px; }
    to { opacity: 1; margin-top: 0; }
  }

  @keyframes gld-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
  }

  @keyframes gld-breathe {
    0%, 100% { opacity: .65; }
    50% { opacity: 1; }
  }
}
