/*
 * Genio — "Un clic / One click" card animation.
 * Drops into a carousel card's .visual slot and draws straight onto the card,
 * in the card's own ink. Everything is sized in container units (cqw), so it
 * scales with the card at any size.
 */

.gc {
  --gc-ink: currentColor;
  /* The button's label is knocked out of the ink, in the card's paper colour. */
  --gc-paper: #f7f5ef;
  --gc-alert: #d42a3c;
  --gc-mono-font: "DM Mono", ui-monospace, monospace;

  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
  color: inherit;
}

/* Tuned for each card colour of the site, as in the privacy card. */
.card-coral .gc,
.card-rose .gc,
.card-violet .gc {
  --gc-alert: #a4001d;
}

.card-blue .gc {
  --gc-paper: #1747e8;
  --gc-alert: #ff7b7b;
}

/* Recording indicator, top right, mirroring the card number on the left. */
.gc-live {
  position: absolute;
  top: clamp(1rem, 7.2cqw, 2.4rem);
  right: clamp(1rem, 7.2cqw, 2.4rem);
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--gc-mono-font);
  font-size: clamp(0.6rem, 3.1cqw, 1.05rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
}

.gc-live i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--gc-alert);
}

.gc-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gc-pill {
  fill: var(--gc-ink);
}

.gc-finish {
  fill: var(--gc-ink);
  stroke: var(--gc-ink);
}

.gc-art line {
  stroke: var(--gc-ink);
  stroke-linecap: round;
}

.gc-ripple {
  fill: none;
  stroke: var(--gc-ink);
  opacity: 0;
}

/* Placed by oneclick.js, by their centre. */
.gc-at {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  font-family: var(--gc-mono-font);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gc-label {
  color: var(--gc-paper);
  font-size: 4cqw;
  letter-spacing: 0.1em;
}

.gc-finish-label {
  font-size: 3.6cqw;
  letter-spacing: 0.1em;
}

.gc-done {
  gap: 0.7em;
  font-size: 4.4cqw;
  letter-spacing: 0.1em;
}

.gc-done svg {
  width: 1.15em;
  height: 1.15em;
  overflow: visible;
}

.gc-done circle,
.gc-done path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

/* Cancel the trailing letter-space so labels sit optically centred. */
.gc-label span,
.gc-finish-label span,
.gc-done span {
  margin-right: -0.1em;
}

.gc-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: block;
  width: 5.4cqw;
  height: 5.4cqw;
  opacity: 0;
  filter: drop-shadow(0 0.25cqw 0.35cqw rgba(0, 0, 0, 0.28));
}

.gc-cursor svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gc-arrow path {
  fill: #111;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.gc-hand path {
  fill: #fff;
  stroke: #111;
  stroke-linejoin: round;
  stroke-width: 1.15;
}

.gc-hand .gc-hand-lines {
  fill: none;
  stroke-linecap: round;
  stroke-width: 0.9;
}

.gc-hand,
.gc-cursor.is-hand .gc-arrow {
  visibility: hidden;
}

.gc-cursor.is-hand .gc-hand {
  visibility: visible;
}
