/* Sudoku assist (#assist in index.html); builds on index.css. */
.as-back { max-width: 1080px; margin: 0 auto 0.75rem; font-size: 0.85rem; }
.as-back a { color: var(--ponder); }
.as-puzzle-label { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.as-layout { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 300px); gap: 1.25rem; justify-content: center; align-items: start; margin: 0 auto 1rem; }
.as-board { cursor: pointer; outline: none; }
.as-board:focus-visible { box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.6); }
.as-side { display: flex; flex-direction: column; gap: 0.75rem; }
.as-card { background: var(--card); border-radius: 10px; padding: 0.75rem; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08); }
.as-card-title { font-family: 'Google Sans', sans-serif; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.as-or { margin-top: 0.75rem; }
.as-pad { width: 100%; max-width: 276px; aspect-ratio: 1; display: block; margin: 0 auto; border-radius: 6px; background: #0b0d12; touch-action: none; cursor: crosshair; }
.as-pad-buttons { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; }
.as-keys { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.as-keys .button { font-variant-numeric: tabular-nums; }
.as-hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }

.as-status { min-height: 5.5rem; font-size: 0.88rem; }
.as-line { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.45rem; line-height: 1.4; }
.as-line:last-child { margin-bottom: 0; }
.as-line .swatch { flex: none; margin-top: 0.1rem; }
.as-line.muted { color: var(--muted); }
.as-line.bad { color: #b91c1c; }
.as-timing { white-space: nowrap; }
.as-legend { margin-top: 0.5rem; }

@media (max-width: 860px) {
  .as-layout { grid-template-columns: minmax(0, 1fr); max-width: 540px; }
}
.as-moves { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.swatch.as-dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; margin: 3px; }

.as-board-card { transition: box-shadow 0.3s ease; }
.as-board-card.is-solved { box-shadow: 0 0 0 3px var(--repaired), 0 6px 24px rgba(34, 197, 94, 0.35); }
.as-board-card.is-broken { box-shadow: 0 0 0 3px var(--conflict); }
.as-result { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.45; animation: as-pop 0.35s ease-out; }
.as-result[hidden] { display: none; }
.as-result svg, .as-result i { flex: none; font-size: 1.25rem; margin-top: 0.1rem; }
.as-result.ok { background: #dcfce7; color: #166534; }
.as-result.bad { background: #fee2e2; color: #991b1b; }
@keyframes as-pop { from { transform: scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .as-result, .as-board-card { animation: none; transition: none; } }

.as-timer { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-timer.is-running { color: var(--ink); font-weight: 600; }
.as-timer.is-done { color: #166534; font-weight: 600; }
.as-challenge { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.8rem; padding: 0.6rem 0.75rem; border-radius: 8px; font-size: 0.9rem; line-height: 1.45; background: #e0f2fe; color: #075985; }
.as-challenge[hidden] { display: none; }
.as-challenge i { flex: none; font-size: 1.15rem; margin-top: 0.15rem; }
.as-share { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.as-share .button { margin-bottom: 0; }
