@import url('/tools/zt/eng/random/work.css');

.cf-layout {
  grid-template-areas: 'display controls' 'display tally';
  grid-template-rows: auto 1fr;
}
.cf-stage {
  justify-items: center;
  text-align: center;
}
.cf-coin {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  width: fit-content;
}
.cf-coin svg {
  width: clamp(7rem, 15vw, 9rem);
  aspect-ratio: 1;
  fill: var(--ws);
  stroke: var(--ws-ink);
  stroke-width: 2.5px;
}
.cf-coin text {
  fill: var(--ws-ink);
  stroke: none;
  font-size: 52px;
  font-weight: 600;
}
.cf-coin .cf-edge {
  stroke-dasharray: 2 3;
  stroke-width: 2px;
}
.cf-coin .cf-inset,
.cf-coin .cf-mark {
  stroke-width: 1.5px;
}
.cf-score {
  grid-area: tally;
  border-top: 1px solid var(--ws-line);
  padding-top: 12px;
}
.cf-score dl {
  margin: 6px 0 0;
}
.cf-score dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ws-line);
  gap: 8px;
  padding-block: 8px;
}
.cf-score dd {
  margin: 0;
  font-weight: 600;
}
.cf-batch {
  width: 100%;
  border-top: 1px solid var(--ws-line);
  text-align: left;
  font-size: .875rem;
}
.cf-batch summary {
  min-height: 44px;
  align-content: center;
}
.cf-batch ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.cf-batch li {
  min-width: 2ch;
  padding: 2px 5px;
  border-radius: var(--r-xs);
  background: var(--ws);
  text-align: center;
}
.cf-batch-result {
  font-size: clamp(1.125rem, 1rem + 1vw, 1.625rem);
}
@media (max-width: 800px) {
  .cf-layout {
    grid-template-areas: 'controls' 'display' 'tally';
    grid-template-rows: auto;
  }
  .cf-coin {
    grid-auto-flow: column;
    align-items: center;
  }
  .cf-coin svg {
    width: 76px;
  }
}
