.solver-card {
  margin-top: 28px;
}

.solver-keypad {
  margin-top: 6px;
}

.solver-keypad button[data-value="clear"] {
  grid-column: span 3;
  background: rgba(17, 24, 39, 0.1);
}

.solver-keypad button[data-value="clear"]:hover,
.solver-keypad button[data-value="clear"]:focus-visible {
  background: rgba(220, 38, 38, 0.2);
  color: #fff;
}

.solver-actions {
  margin-top: 10px;
}

.solver-actions button {
  flex: 1 1 140px;
}

.solver-actions .solver-primary {
  background: var(--accent-color);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.8);
}

.solver-actions .solver-primary:hover,
.solver-actions .solver-primary:focus-visible {
  color: #fff;
}

.solver-notes ul {
  padding-left: 20px;
  margin: 12px 0 20px;
}

.solver-notes li {
  margin-bottom: 6px;
}

.solver-mini-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(17, 24, 39, 0.04);
}

.solver-mini-card a {
  display: inline-flex;
  margin-top: 4px;
  font-weight: 600;
}

.solver-cell:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: -2px;
}

.solver-cell--solved {
  color: var(--accent-color);
}

.solver-status--error {
  background: rgba(220, 38, 38, 0.12);
  color: #991b1b;
}

.solver-status--success {
  background: rgba(16, 185, 129, 0.18);
  color: #064e3b;
}

.solver-tips {
  margin-top: 40px;
}

.solver-tips ul {
  padding-left: 20px;
  margin: 12px 0 0;
}

.solver-tips li {
  margin-bottom: 8px;
}

.solver-tips h2 {
  margin: 0 0 10px;
}

.solver-tips p {
  margin: 0 0 12px;
  color: rgba(17, 17, 17, 0.75);
  line-height: 1.55;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.seo-links a {
  padding: 12px 18px;
  border-radius: 999px;
  background: #e5e7eb;
  text-decoration: none;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.78);
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.seo-links a:hover,
.seo-links a:focus-visible {
  background: rgba(37, 99, 235, 0.12);
  color: #1f4bdd;
}

.seo-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
}

.seo-cta a {
  text-decoration: none;
  font-weight: 700;
  color: #2563eb;
}

.seo-cta .seo-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.18);
  color: #0b55f0;
  box-shadow: 0 20px 38px rgba(37, 99, 235, 0.28);
  font-size: 1.05rem;
}

.seo-cta .seo-primary:hover,
.seo-cta .seo-primary:focus-visible {
  background: rgba(37, 99, 235, 0.22);
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.app-store-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.app-store-overline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.app-store-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
  background: #111;
}

/* Core board/layout styles pulled from original site */
.board-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.sudoku-board {
  position: relative;
  width: min(92vw, 520px);
  aspect-ratio: 1;
  background: var(--accent-board-bg, #ffffff);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--accent-board-border, rgba(17, 17, 17, 0.12));
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
}

.cell {
  position: relative;
  border: 0.5px solid rgba(17, 17, 17, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease, color 0.2s ease;
  background: rgba(255, 255, 255, 0.98);
  color: rgba(17, 24, 39, 0.85);
}

.cell.is-given {
  font-weight: 500;
  color: rgba(17, 24, 39, 0.5);
}

.cell.is-selected {
  background: var(--accent-strong, rgba(37, 99, 235, 0.1));
  color: #fff;
  text-shadow: 0 1px 2px rgba(17, 17, 17, 0.3);
}

.cell.is-peer {
  background: var(--accent-peer, rgba(37, 99, 235, 0.025));
}

.cell.is-same-value {
  background: var(--accent-same, rgba(37, 99, 235, 0.045));
}

.cell.is-conflict {
  background: rgba(220, 38, 38, 0.12);
}

.sudoku-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 calc(100% / 9 - 0.5px),
      var(--grid-thin) calc(100% / 9 - 0.5px) calc(100% / 9),
      transparent calc(100% / 9) calc(100% / 9 + 0.5px)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(100% / 9 - 0.5px),
      var(--grid-thin) calc(100% / 9 - 0.5px) calc(100% / 9),
      transparent calc(100% / 9) calc(100% / 9 + 0.5px)
    );
  pointer-events: none;
}

.sudoku-board::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      transparent calc(100% / 3 - 2px),
      var(--grid-bold) calc(100% / 3 - 2px) calc(100% / 3 + 2px),
      transparent calc(100% / 3 + 2px)
    ),
    linear-gradient(
      to right,
      transparent calc(200% / 3 - 2px),
      var(--grid-bold) calc(200% / 3 - 2px) calc(200% / 3 + 2px),
      transparent calc(200% / 3 + 2px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(100% / 3 - 2px),
      var(--grid-bold) calc(100% / 3 - 2px) calc(100% / 3 + 2px),
      transparent calc(100% / 3 + 2px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(200% / 3 - 2px),
      var(--grid-bold) calc(200% / 3 - 2px) calc(200% / 3 + 2px),
      transparent calc(200% / 3 + 2px)
    );
  pointer-events: none;
}

.tutorial-card {
  border-radius: 24px;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 255, 0.98));
  box-shadow: var(--shadow-soft);
}

.tutorial-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tutorial-board {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tutorial-board__label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.6);
  font-weight: 600;
}

.tutorial-keypad {
  display: grid;
  grid-template-columns: repeat(9, minmax(34px, 1fr));
  gap: 8px;
}

.tutorial-keypad button {
  border: none;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.06);
  padding: 10px 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.tutorial-keypad button:hover,
.tutorial-keypad button:focus-visible {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-1px);
}

.tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tutorial-actions button {
  flex: 1 1 140px;
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.18);
  background: #fff;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tutorial-actions button:last-child {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
}

.tutorial-actions button:hover,
.tutorial-actions button:focus-visible {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.tutorial-status {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.06);
  font-size: 0.95rem;
  line-height: 1.4;
}

.tutorial-notes {
  flex: 0 0 280px;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  background: rgba(17, 24, 39, 0.04);
  width: 100%;
}

.tutorial-notes ul {
  margin: 12px 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
