


.gc_wrap {
  --gc-bg:      var(--color-paper);
  --gc-tile-2:  var(--color-silver);
  --gc-ink:     var(--color-ink);
  --gc-fg:      var(--color-paper);
  --gc-fg-dim:  var(--color-muted);
  --gc-ink-dim: var(--color-muted);
  --gc-focus:   rgba(16, 16, 16, 0.3);
  --gc-margin:  clamp(20px, 2.8vw, 48px);
  --gc-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.gc_wrap {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--gc-bg, var(--color-paper));
  color: var(--gc-ink, var(--color-ink));
  font-family: var(--gc-sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.gc_stage {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 var(--gc-margin);
}

/* The field is the positioning box: JS lays every chip and the tray out
   inside it as absolute rectangles and sets its height. */
.gc_field {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 52px;
}

/* Goo layer: transient MASS only, seeded from the live rectangles at the
   start of an action and wiped at both ends. Sits under the tray and the
   chips, which are the crisp things you actually see. */
.gc_goo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gc_filter_svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.gc_goo_shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: var(--gc-ink, var(--color-ink));
  opacity: 0;
  border-radius: 999px;
  /* centre origin: a chip's mass scales with the chip (press, squash) and
     must stay under it */
  transform-origin: 50% 50%;
  will-change: transform, width, height;
}

.gc_tray {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 52px;
  border-radius: 999px;
  background-color: var(--gc-ink, var(--color-ink));
}

/* the tray's resting content: lives inside the bar at its left end, so it
   travels with the tray for free and the chips fill in to its right */
.gc_results {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.gc_results_num {
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gc-fg, var(--color-paper));
  font-variant-numeric: tabular-nums;
}

.gc_results_label {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--gc-fg-dim, var(--color-muted));
}

/* outside the tray on its left; JS positions it and fades it with the
   first / last member */
.gc_clear {
  position: absolute;
  top: 0;
  left: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--gc-ink-dim, var(--color-muted));
  cursor: pointer;
  outline: none;
  opacity: 0;
  visibility: hidden;
  transition: color 0.2s cubic-bezier(0.3, 0.9, 0.1, 1);
}

.gc_clear:hover {
  color: var(--gc-ink, var(--color-ink));
}

.gc_clear:focus-visible {
  outline: 1px solid var(--gc-focus, rgba(16, 16, 16, 0.3));
  outline-offset: 2px;
}

.gc_chip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--gc-ink, var(--color-ink));
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.gc_chip[aria-pressed="true"],
.gc_chip.is-leaving {
  color: var(--gc-fg, var(--color-paper));
}

.gc_chip:focus-visible {
  outline: 1px solid var(--gc-focus, rgba(16, 16, 16, 0.3));
  outline-offset: 2px;
}

/* the chip's own pill: visible for every flight, bare only once it sits
   inside the tray (the tray's surface carries it from then on) */
.gc_chip_bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: var(--gc-tile-2, var(--color-silver));
  transition: opacity 0.18s cubic-bezier(0.3, 0.9, 0.1, 1);
}

.gc_chip[aria-pressed="true"] .gc_chip_bg,
.gc_chip.is-leaving .gc_chip_bg {
  background-color: var(--gc-ink, var(--color-ink));
}

.gc_chip.is-bare .gc_chip_bg {
  opacity: 0;
}

.gc_chip_label {
  position: relative;
}

/* clip-path rather than overflow: an inline-block whose overflow isn't
   visible reports its bottom margin edge as its baseline, sitting the
   "results" label low next to it */
.gc_digit_wrap {
  position: relative;
  display: inline-block;
  clip-path: inset(0 -0.2em);
  height: 1em;
  /* the glyph's own advance, not a padded box - a wider column reads as a
     gap between the digits at display size */
  width: 0.54em;
  margin-right: -0.03em;
  line-height: 1;
  vertical-align: baseline;
}

.gc_digit_wrap::before {
  content: "0";
  visibility: hidden;
}

.gc_digit_roller {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  /* exactly ten lines, so a digit's percentage offset lands on its line */
  height: 10em;
}

.gc_digit_roller span {
  display: block;
  height: 1em;
  line-height: 1;
}

@media (max-width: 767px) {
  .gc_wrap {
    --gc-margin: 20px;
  }
}

.gc_wrap,.gc_stage { min-height: 0; overflow: visible; background: transparent; }
.gc_stage { justify-content: flex-start; padding: 0; }
.gc_field { max-width: 760px; }
.gc_wrap { margin: 40px 0 64px; }
.gc_results_label { color: var(--color-silver); }
.gc_clear { color: var(--color-slate); min-height: 44px; }
.gc_chip:focus-visible { outline-color: var(--color-purple); }
@media(max-width:767px) { .gc_chip { padding: 0 12px; } .gc_wrap { margin: 32px 0 48px; } }
