/* ============================================
   Swiss Schulte Grid — 舒尔特方格
   ============================================ */

#card-schulte { min-height: 360px; }

.schulte-view {
  width: min(100%, 680px);
  margin: 0 auto;
}

.schulte-view-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 650;
}

.schulte-status {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.schulte-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.schulte-size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}

.schulte-size-btn {
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--bg-warm);
  color: var(--text-secondary);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.schulte-size-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.schulte-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.schulte-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--text-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.schulte-grid {
  display: grid;
  gap: 4px;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-warm);
}

.schulte-cell {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}

.schulte-cell:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-light);
}

.schulte-cell:disabled { cursor: default; }

.schulte-cell.done {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.schulte-cell.wrong {
  border-color: #C94B40;
  background: #FFF1EF;
  color: #B43A32;
}

.schulte-grid[data-size="7"] .schulte-cell,
.schulte-grid[data-size="8"] .schulte-cell { font-size: 13px; }

.schulte-grid[data-size="9"] .schulte-cell { font-size: 11px; }

.schulte-grid[data-size="10"] .schulte-cell { font-size: 10px; }

.schulte-help {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 10px;
  text-align: center;
}

.schulte-reward {
  min-height: 16px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 480px) {
  #card-schulte { min-height: 0; }

  .schulte-toolbar { align-items: flex-start; flex-direction: column; }
  .schulte-view { width: 100%; }
  .schulte-size-picker { width: 100%; }
  .schulte-size-btn { flex: 1 1 0; min-width: 0; }
  .schulte-actions { width: 100%; }
  .schulte-actions .btn { flex: 1; }
  .schulte-grid { gap: 3px; }
  .schulte-cell { font-size: 13px; }
  .schulte-grid[data-size="7"] .schulte-cell,
  .schulte-grid[data-size="8"] .schulte-cell { font-size: 11px; }
  .schulte-grid[data-size="9"] .schulte-cell { font-size: 10px; }
  .schulte-grid[data-size="10"] .schulte-cell { font-size: 9px; }
}
