:root {
  --color-bg: #0f172a;
  --color-surface: rgba(15, 23, 42, 0.92);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-accent: #fbbf24;
  --color-accent-strong: #f59e0b;
  --color-danger: #f87171;
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.35);
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--color-text);
  background:
    radial-gradient(circle at top, rgba(251, 191, 36, 0.1), transparent 65%), var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.view {
  padding: 1.5rem;
}

.home-view {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3vw + 1rem, 3rem) 1.5rem;
}

.home { 
  width: min(520px, 100%);
  display: grid;
  gap: clamp(1.75rem, 2.5vw, 2.75rem);
  padding: clamp(2rem, 2.5vw + 1rem, 3rem);
  border-radius: 32px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.home__title {
  margin: 0;
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standby-view {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3vw + 1rem, 3rem) 1.5rem;
}

.standby {
  width: min(720px, 100%);
  display: grid;
  gap: clamp(1.75rem, 2.5vw, 2.5rem);
  padding: clamp(2rem, 2.5vw + 1rem, 3rem);
  border-radius: 32px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.standby__title {
  margin: 0;
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standby__subtitle {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.standby__content {
  display: grid;
  gap: clamp(1.5rem, 2vw, 2rem);
}

.standby__fieldset {
  margin: 0;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.4);
}

.standby__legend {
  padding: 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standby__players {
  display: grid;
  gap: 1.25rem;
}

.standby-player {
  display: grid;
  gap: 0.6rem;
}

.standby-player__label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.standby-player__role {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.standby-player__input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: var(--color-text);
  font-size: 1rem;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.standby-player__input::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.standby-player__input:focus {
  outline: none;
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.25);
  background: rgba(15, 23, 42, 0.65);
}

.standby__first-player-status {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.standby__first-player-options {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.standby__first-player-options .button {
  width: 100%;
  justify-content: center;
}

.standby__first-player-button.is-selected {
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.25);
}

.standby__initial-status {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.standby-seed-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
}

.standby-seed-toggle__input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-accent);
}

.standby-seed-toggle__label {
  font-weight: 600;
  color: var(--color-text);
}

.standby-seed-toggle__status {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.standby__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.standby__actions .button {
  min-width: 140px;
  justify-content: center;
}

.standby-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3vw + 1rem, 3rem) 1.5rem;
  background: rgba(15, 23, 42, 0.92);
  z-index: 40;
}

.standby-overlay.is-active {
  display: flex;
}

.standby-overlay__panel {
  width: min(520px, 100%);
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.75rem);
  padding: clamp(2rem, 2.5vw + 1.25rem, 2.75rem);
  border-radius: 32px;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.standby-overlay__title {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standby-overlay__message {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.7;
}

.standby-overlay__message:empty {
  display: none;
}

.standby-overlay__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.standby-overlay__actions .button {
  min-width: 140px;
  justify-content: center;
}

.standby-overlay--in-progress .standby-overlay__actions {
  display: none;
}

.scout-view {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 3vw + 1rem, 3rem) 1.5rem;
}

.scout {
  width: min(960px, 100%);
  display: grid;
  gap: clamp(1.75rem, 2.5vw, 2.5rem);
  padding: clamp(2rem, 2.5vw + 1rem, 3rem);
  border-radius: 32px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
}

.scout__title {
  margin: 0;
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scout-hand {
  display: grid;
  gap: 1.25rem;
}

.scout-hand__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.scout-hand__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scout-hand__count {
  font-size: 0.95rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.scout-hand__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.scout-hand__item {
  display: flex;
  justify-content: center;
}

.scout-hand__card-button {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: inherit;
  cursor: pointer;
  appearance: none;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease,
    background 120ms ease;
}

.scout-hand__card-button:hover:not(:disabled) {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(15, 23, 42, 0.65);
}

.scout-hand__card-button:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.55);
  outline-offset: 3px;
}

.scout-hand__card-button.is-selected {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 16px 36px rgba(251, 191, 36, 0.18);
  transform: translateY(-4px);
  background: rgba(251, 191, 36, 0.12);
}

.scout-hand__card-button.is-selected .card {
  border-color: rgba(251, 191, 36, 0.85);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

.scout-hand__card {
  transition: box-shadow 120ms ease, border-color 120ms ease;
}

.scout-hand__empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.45);
  color: var(--color-muted);
  text-align: center;
  font-size: 0.95rem;
}

.scout-recent {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
}

.scout-recent__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scout-recent__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scout-recent__item {
  display: flex;
}

.scout-recent__card {
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.35);
}

.scout-recent__empty {
  font-size: 0.95rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

.scout-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.scout-actions__button {
  min-width: min(100%, 160px);
}

.scout-actions__button--secondary {
  order: 0;
}

.scout-actions__button--primary {
  order: 1;
}

.scout-complete {
  display: grid;
  gap: 1.25rem;
  padding: 0.5rem 0;
  text-align: center;
}

.scout-complete__message {
  margin: 0;
  font-weight: 600;
  line-height: 1.6;
}

.scout-complete__preview {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.scout-complete__caption {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scout-complete__card {
  width: 96px;
  height: 138px;
  font-size: 1.5rem;
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 18px 36px rgba(251, 191, 36, 0.22);
}

.home__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw + 0.5rem, 1.1rem);
  line-height: 1.7;
}

.home__actions {
  display: grid;
  gap: 1rem;
}

.home__action {
  display: grid;
  gap: 0.75rem;
}

.home__button {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
  padding-block: 0.85rem;
}

.home__resume-details {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(148, 163, 184, 0.12);
  text-align: left;
}

.home__resume-summary {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.home__resume-saved {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.home-history {
  display: grid;
  gap: 1rem;
  color: var(--color-text);
}

.home-history__description {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.home-history__body {
  max-height: min(55vh, 420px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.home-history__empty {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--color-muted);
}

.home-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.home-history__item {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
}

.home-history__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.home-history__summary {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}

.home-history__timestamp {
  font-size: 0.8rem;
  color: var(--color-muted);
  white-space: nowrap;
}

.home-history__detail {
  margin: 0;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.55);
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.home-history__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-history__action {
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease;
}

.home-history__action:hover {
  background: rgba(148, 163, 184, 0.2);
}

.home-history__action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.home-history__action--danger {
  border-color: rgba(248, 113, 113, 0.55);
  color: #fecaca;
}

.home-history__action--danger:hover {
  background: rgba(248, 113, 113, 0.2);
  color: #fee2e2;
}

.view__headline {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  filter: grayscale(0.3);
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
}

.button.is-busy {
  cursor: wait;
  pointer-events: none;
  opacity: 0.85;
  transform: none;
  box-shadow: none;
}

.button::after {
  content: '';
  display: none;
}

.button.is-busy::after {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.25);
  border-top-color: currentColor;
  animation: button-spinner 600ms linear infinite;
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.modal-root {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 40;
}

.modal-root.is-active {
  display: flex;
}

.modal {
  width: min(480px, 100%);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.modal__title {
  font-size: clamp(1.25rem, 1.6vw + 1rem, 1.75rem);
  margin-bottom: 1rem;
}

.modal__body {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.modal__footer {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.gate-modal {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

.gate-modal__message {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text);
}

.gate-modal__notes {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.gate-modal__notes li {
  position: relative;
  padding-left: 1.25rem;
  text-align: left;
}

.gate-modal__notes li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.toast-root {
  position: fixed;
  inset-inline: 0;
  bottom: 1.5rem;
  display: grid;
  justify-content: center;
  gap: 0.75rem;
  pointer-events: none;
  z-index: 30;
}

.toast {
  min-width: min(340px, 90vw);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  pointer-events: auto;
}

.toast--info {
  border-left: 4px solid var(--color-accent);
}

.toast--success {
  border-left: 4px solid #4ade80;
}

.toast--warning {
  border-left: 4px solid #facc15;
}

.toast--danger {
  border-left: 4px solid var(--color-danger);
}

.gate-view {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
}

.gate-view__panel {
  width: min(560px, 100%);
  padding: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.gate-view__title {
  font-size: clamp(1.75rem, 2vw + 1.2rem, 2.3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.gate-view__subtitle {
  margin: 0 auto 1.5rem;
  max-width: 38ch;
  color: var(--color-muted);
  line-height: 1.7;
}

.gate-view__hints {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.gate-view__hints li {
  position: relative;
  padding: 0.75rem 0.75rem 0.75rem 2.25rem;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.6;
}

.gate-view__hints li::before {
  content: '\27A4';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
}

.card {
  width: 72px;
  height: 104px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.card--face-down {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
  border-color: rgba(71, 85, 105, 0.7);
}

.placeholder {
  margin-top: 25vh;
  text-align: center;
  color: var(--color-muted);
}

.placeholder__title {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  margin-bottom: 0.5rem;
}

.placeholder__subtitle {
  font-size: 1rem;
}

.placeholder__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.board-check {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.board-check__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.board-check__tab {
  flex: 1 1 120px;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease;
}

.board-check__tab.is-active {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(245, 158, 11, 0.18));
  border-color: rgba(251, 191, 36, 0.65);
  color: var(--color-text);
}

.board-check__tab:focus-visible {
  outline: 3px solid rgba(251, 191, 36, 0.65);
  outline-offset: 2px;
}

.board-check__panels {
  position: relative;
}

.board-check__panel {
  display: block;
}

.board-check__content {
  display: grid;
  gap: 1.5rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.board-check__section {
  display: grid;
  gap: 0.75rem;
}

.board-check__section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.board-check__definition {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.board-check__definition dt {
  font-weight: 600;
  color: var(--color-text);
}

.board-check__definition dd {
  margin: 0;
  color: var(--color-muted);
}

.board-check__stats {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem 1rem;
}

.board-check__card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.board-check__card-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.board-check__card-details {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}

.board-check__empty {
  margin: 0;
  color: var(--color-muted);
  font-style: italic;
}

.board-check__stage-pair {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
}

.board-check__stage-pair-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.board-check__stage-meta {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}

.board-check__stage-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  align-items: start;
}

.board-check__stage-card-label {
  font-weight: 600;
  color: var(--color-text);
}

.board-check__stage-card-content {
  display: grid;
  gap: 0.75rem;
}

.board-check__stage-card-details {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem 1rem;
}

.board-check__score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.board-check__score-table th,
.board-check__score-table td {
  padding: 0.5rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.board-check__score-table th:first-child {
  text-align: left;
}

.board-check__score-table tbody tr:last-child th,
.board-check__score-table tbody tr:last-child td {
  border-bottom: none;
}

@keyframes button-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
