.simulator-page {
  box-sizing: border-box;
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(12px, 2vw, 32px) clamp(6px, 1vw, 18px);
  color: #142f29;
  container-type: inline-size;
}

.simulator-page h1 {
  margin: 0 0 .8em;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.simulator-page .controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .5rem;
}

.simulator-page .hand-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, .8fr)) repeat(3, minmax(0, 1fr)) minmax(0, 1.15fr) repeat(2, minmax(0, .8fr));
}

.simulator-page .controls label {
  display: grid;
  align-content: end;
  gap: .25rem;
  min-width: 0;
  font-size: .9rem;
  font-weight: 600;
}

.simulator-page select,
.simulator-page button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 2.25rem;
  padding: .35rem;
  border: 1px solid #697d73;
  border-radius: 4px;
  background: #fff;
  color: #172f29;
  font: inherit;
}

.simulator-page select { width: 100%; }
.simulator-page button { padding-inline: .65rem; cursor: pointer; }
.simulator-page button:disabled,
.simulator-page select:disabled { color: #53625d; background: #edf0ed; cursor: default; }
.simulator-page .hint { text-align: start; }
.simulator-page .hint:empty,
.simulator-page #mcMode { display: none; }

.simulator-page .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.25rem;
}

.simulator-page .stats > div {
  padding: .65rem;
  border: 1px solid #697d73;
  border-radius: 6px;
  background: #77e6d3;
  text-align: center;
}

.simulator-page .stats strong {
  display: block;
  margin-top: .35rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

@container (max-width: 710px) {
  .simulator-page .hand-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (max-width: 370px) {
  .simulator-page .hand-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .simulator-page .stats { grid-template-columns: 1fr; }
}

.simulator-page::after {
  content: "Hundred Percent Gambling";
  display: block;
  margin-top: .65rem;
  color: #53625d;
  font-size: .75rem;
  font-weight: 400;
  text-align: right;
}
