.game-root { min-height: 36rem; }

.order-num {
  display: inline-block;
  min-width: 2ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.order-go {
  min-width: 8.6rem;
  white-space: nowrap;
}

.order-stage {
  width: min(100%, 28rem);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  user-select: none;
}

.order-status {
  min-height: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  text-align: center;
}

.order-line,
.order-note {
  margin: 0;
  line-height: 1.35;
  min-height: 1.35em;
}

.order-line { color: #f4f0e8; }

.order-note {
  color: #d5ddd6;
  font-size: 0.95rem;
}

.order-note.is-good { color: #e0b948; }

.order-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  padding: 0.7rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 42%),
    #14241e;
  box-shadow:
    inset 0 0 0 1px rgba(232, 217, 168, 0.38),
    inset 0 12px 24px rgba(0, 0, 0, 0.25);
}

.order-board.is-live {
  box-shadow:
    inset 0 0 0 1px rgba(224, 185, 72, 0.75),
    inset 0 12px 24px rgba(0, 0, 0, 0.25);
}

.order-cell {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 10px;
  aspect-ratio: 1;
  min-width: 0;
  min-height: var(--tap-min);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.65rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #1d2433;
  background: #fffdf7;
  box-shadow:
    inset 0 0 0 1px rgba(184, 146, 58, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: default;
  touch-action: manipulation;
}

.order-cell:disabled { opacity: 1; color: #1d2433; }

.order-cell:focus-visible {
  outline: 3px solid #e0b948;
  outline-offset: 2px;
}

.order-cell.is-empty {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.order-cell.is-open { cursor: pointer; }

.order-cell.is-open:hover {
  box-shadow:
    inset 0 0 0 2px rgba(224, 185, 72, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.order-cell.is-found {
  box-shadow:
    inset 0 0 0 2px rgba(184, 146, 58, 0.8),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.order-cell.is-next {
  box-shadow:
    inset 0 0 0 3px #e0b948,
    0 0 0 2px rgba(224, 185, 72, 0.85);
}

.order-cell.is-miss {
  background: #f6e4e1;
  box-shadow: inset 0 0 0 3px #a3302f;
}
