.crypto-stage {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 58rem;
  margin: 1.25rem 0 1.75rem;
  border: 1px solid #c9cabb;
  border-radius: .65rem;
  background: #faf8f4;
  color: #263d3b;
  font: .95rem/1.45 system-ui, sans-serif;
}
.crypto-stage *, .crypto-stage *::before { box-sizing: border-box; }
.crypto-stage [hidden] { display: none !important; }
.cg-intro, .cg-controls, .cg-result { padding: 1rem clamp(.875rem, 3vw, 1.6rem); }
.crypto-stage p { margin: 0; }
.crypto-stage .cg-kicker { color: #47665e; font: 650 .72rem/1.5 ui-monospace, monospace; letter-spacing: .045em; }
.crypto-stage h2 { margin: .2rem 0 .45rem; color: #203a37; font: 600 clamp(1.5rem, 3.2vw, 2rem)/1.15 Georgia, serif; }
.cg-intro > p:last-child { max-width: 70ch; }
.cg-figure { --cg-aspect: 3.4; border-block: 1px solid #d8d7c9; background: #faf8f4; }
.cg-figure canvas { display: block; width: 100%; height: auto; aspect-ratio: var(--cg-aspect); }
.cg-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; width: min(calc(100% - 24px), calc(220.5% / var(--cg-aspect))); margin-inline: auto; padding-bottom: .9rem; }
.cg-labels span { justify-self: center; min-width: 0; max-width: 100%; padding: .15rem .5rem; border: 1px solid #bfc6ba; border-radius: 1rem; font-size: .78rem; font-weight: 600; text-align: center; }
.cg-current { color: #174d40; background: #e2ede3; }
.cg-controls { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.cg-controls label { display: grid; flex: 1 1 10rem; gap: .2rem; max-width: 19rem; min-width: 0; font-size: .8rem; font-weight: 650; }
.cg-controls select, .cg-actions button { min-height: 44px; margin: 0; border: 1px solid #788e81; border-radius: .25rem; background: #fffdf9; color: #263d3b; font: 500 .9rem/1.3 system-ui, sans-serif; }
.cg-controls select { min-width: 0; max-width: 100%; width: 100%; padding: .4rem; }
.cg-result { display: grid; gap: .8rem; padding-top: .1rem; }
.cg-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cg-actions button { padding: .45rem 1rem; cursor: pointer; }
.cg-actions button:last-child { color: #fff; background: #245849; border-color: #245849; }
.cg-actions button:disabled { color: #69716a; background: #eeefe8; border-color: #b4bcb1; cursor: default; }
.crypto-stage :is(select, button):focus-visible { outline: 3px solid #a45828; outline-offset: 2px; }
@media (max-width: 600px) {
  .cg-figure { --cg-aspect: 2.6; }
  .cg-controls { gap: .6rem; }
  .cg-controls label { flex-basis: 11rem; }
}
