.classic-ui { width: min(720px, calc(100vw - 1.7rem)); max-width: 100%; }
.classic-ui button, .classic-ui input[type="button"], .classic-ui input[type="submit"] {
  min-height: 44px;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 2px solid #1a5c36;
  background: #1a5c36;
  color: #fff;
  font: inherit;
  font-weight: 700;
}
.classic-ui input[type="text"], .classic-ui input[type="number"], .classic-ui select {
  min-height: 40px;
  border: 2px solid #1a5c36;
  border-radius: 8px;
  padding: .3rem .45rem;
  font: inherit;
}
.classic-status { min-height: 1.4em; font-weight: 800; color: #1a5c36; }
.classic-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: .4rem 0 .8rem; }
.click-grid, .dot-grid, .check-grid { display: grid; gap: 4px; width: min(100%, 420px); }
.click-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.dot-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
.check-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(100%, 320px); }
.click-grid button, .dot-grid button, .check-grid button {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  padding: 0;
}
.click-grid button {
  background: #fff;
  color: #1a5c36;
  border: 2px solid #1a5c36;
}
.click-grid button.is-on {
  background: #1a5c36;
  color: #fff;
  box-shadow: inset 0 0 0 4px #f4de6d;
}
.check-grid button.is-on, .dot-grid button.is-on { background: #f4de6d; color: #1a2744; }
.simon-board { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 420px; }
.simon-board button.pad {
  width: 88px; height: 52px; border-radius: 8px; background: #6a3d86; border-color: #6a3d86;
}
.simon-board button.pad.is-lit { background: #f4de6d; }
.pair-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; width: min(100%, 420px); }
.pair-grid button { min-width: 0; width: 100%; padding: 0; background: #fff; border-radius: 6px; }
.pair-grid img { width: 100%; height: auto; display: block; }
.tic-board { display: grid; grid-template-columns: repeat(3, 72px); gap: 6px; }
.tic-board button { width: 72px; height: 72px; font-size: 2rem; background: #fff; color: #1a5c36; border-radius: 10px; }
.c4 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; width: min(100%, 420px); background: #1a2744; padding: 4px; }
.c4 button { min-width: 0; width: 100%; padding: 0; background: transparent; border: 0; min-height: 0; }
.c4 img { width: 100%; height: auto; display: block; }
.ball-grid { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 1px; width: min(100%, 480px); }
.ball-grid button { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; min-height: 0; }
.ball-grid img { width: 100%; height: auto; display: block; }
.slide-grid { display: grid; gap: 4px; width: min(100%, 320px); }
.slide-grid button { min-width: 0; aspect-ratio: 1; border-radius: 8px; font-size: 1.3rem; }
.slide-grid button.is-blank { visibility: hidden; }
.ship-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.ship-grid { line-height: 0; max-width: 100%; }
.ship-grid button { display: inline-block; width: auto; min-height: 0; min-width: 0; padding: 0; border: 0; background: transparent; vertical-align: top; }
.ship-grid img { display: inline-block; width: 18px; height: 18px; max-width: none; vertical-align: top; }
.squares {
  display: grid;
  width: min(100%, 340px);
  gap: 0;
}
.squares .dot {
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  color: #1a2744;
}
.squares button.h, .squares button.v {
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 3px;
  padding: 0;
  border-radius: 3px;
  background: #d7eadc;
}
.squares button.took-you { background: #9b1c1c; }
.squares button.took-pc { background: #1a5c36; }
.squares .box {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  color: #1a2744;
}
.escape-field { position: relative; width: min(100%, 420px); aspect-ratio: 1; background: #12351f; touch-action: none; overflow: hidden; border: 3px solid #1a2744; }
.escape-you, .escape-them { position: absolute; border-radius: 4px; }
.escape-you { width: 28px; height: 28px; background: #f4de6d; }
.escape-them { width: 34px; height: 34px; background: #c45c12; }
.psr-picks img, .psr-play img { width: 88px; height: auto; }
.psr-picks { display: flex; flex-wrap: wrap; gap: .6rem; }
.psr-picks button { background: #fff; color: #1a5c36; }
@media (max-width: 640px) {
  .ship-grid img { width: 16px; height: 16px; }
  .ball-grid { width: min(100%, 100%); }
}