/* Secondary identity from the supplied mark. No changes to operator branding. */
:root {
  --chip-ink: #161614;
  --chip-yellow: #eff500;
  --chip-mark: url("./assets/brand/chip.svg");
  --chip-rim: url("./assets/brand/chip-rim.svg");
  --chip-spade: url("./assets/brand/spade.svg");
  --chip-press: 120ms cubic-bezier(.16, 1, .3, 1);
}

/* One cropped rim in desktop whitespace, not behind text or directory rows. */
@media (min-width: 1101px) {
  .directory-page .intro {
    position: relative;
    isolation: isolate;
  }
  .directory-page .intro::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset-block: 0;
    right: 14rem;
    width: 15rem;
    background: var(--chip-rim) center -2.5rem / 15rem auto no-repeat;
    opacity: .065;
  }
}

/* The mark identifies the publication, not an endorsement of an operator. */
.learning-hero > .eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.learning-hero > .eyebrow::before {
  content: "";
  width: 1.375rem;
  height: 1.375rem;
  flex: 0 0 1.375rem;
  background: var(--chip-mark) center / contain no-repeat;
}
.footer-bottom > p:first-child {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.footer-bottom > p:first-child::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  background: var(--chip-mark) center / contain no-repeat;
}

/* One small spade per offer panel. The amount and conditions stay dominant. */
.offer-ticket .ticket-top {
  background: var(--chip-ink);
  color: var(--white);
}
.ticket-top > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.ticket-top > span:first-child::before {
  content: "";
  width: .875rem;
  height: 1rem;
  flex: 0 0 .875rem;
  background: var(--chip-yellow);
  -webkit-mask: var(--chip-spade) center / contain no-repeat;
  mask: var(--chip-spade) center / contain no-repeat;
}
.ticket-top > span:last-child {
  color: var(--chip-yellow);
}
.numbered-steps > li::before {
  border: 0;
  border-radius: 0;
  background: var(--chip-rim) center / contain no-repeat;
  color: var(--chip-ink);
  font-size: var(--text-xs);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* Receipts, not prizes. Keep deposits, bonus funds and possible returns distinct. */
.tool-output {
  background: var(--white);
  border-radius: var(--radius-sm);
  border-color: var(--chip-ink);
  border-top-width: 3px;
}
.tool-output > .section-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
}
.tool-output > .section-kicker::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 1.25rem;
  background: var(--chip-rim) center / contain no-repeat;
}
.tool-output > div {
  border-bottom-style: dashed;
}
#deposit-match .tool-output > div:has([data-result="total"]),
#wagering .tool-output > div:has([data-result="stakes"]) {
  margin-top: var(--space-2);
  padding-inline: var(--space-3);
  background: var(--soft-accent);
  border-block: 1px solid var(--line);
}
.tool-output .calculator-advice {
  border-top: 1px dashed var(--line);
  padding-top: var(--space-4);
}
.calculator-results {
  background: var(--white);
  border-radius: 0;
  border-block: 1px dashed var(--line);
}
.calculator-results > div:has(#calculated-total) {
  background: var(--soft-accent);
  padding: var(--space-2);
}
.calculator-results > div:has(#calculated-bonus) {
  padding: var(--space-2);
}

/* No animation of monetary totals. Motion belongs only to the pressed control. */
.copy-code,
.copy-url {
  transition: transform var(--chip-press), background-color var(--chip-press),
    border-color var(--chip-press);
}
.copy-code:active,
.copy-url:active {
  transform: translateY(1px);
}
.copy-code.copied,
.offer-ticket .copy-code.copied,
.copy-url.copied {
  background: var(--chip-yellow);
  border-color: var(--chip-ink);
  border-style: solid;
}
.copy-code.copied + .copy-state {
  color: var(--chip-ink);
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .copy-code,
  .copy-url {
    transition: none;
  }
  .copy-code:active,
  .copy-url:active {
    transform: none;
  }
}
@media (forced-colors: active) {
  .directory-page .intro::before,
  .learning-hero > .eyebrow::before,
  .footer-bottom > p:first-child::before,
  .ticket-top > span:first-child::before,
  .tool-output > .section-kicker::after {
    display: none;
  }
  .numbered-steps > li::before {
    background: none;
    color: CanvasText;
    border: 1px solid CanvasText;
    border-radius: 50%;
  }
}
