/* ===== Games Page ===== */
.games-page {
  min-height: 100vh;
}

.games-header {
  text-align: center;
  padding: 0.3rem 1.5rem 0.5rem;
  background: linear-gradient(180deg, #162536 0%, var(--bg) 100%);
}

.games-title-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.games-title-row h1 {
  grid-column: 2;
}

.games-title-row .starter-tagline {
  grid-column: 1;
  justify-self: end;
  margin-right: 1.25rem;
}

.games-title-row .starter-challenge {
  grid-column: 3;
  justify-self: start;
  margin-left: 0.5rem;
}

.games-header h1 {
  line-height: 1;
  margin: 0;
}

.games-logo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}


.games-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.25rem 1.5rem 1.5rem;
}

/* ===== Sudoku Section ===== */
.sudoku-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.sudoku-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sudoku-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.sudoku-difficulty {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--warm);
  background: rgba(255, 183, 77, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.sudoku-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Board ===== */
.sudoku-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.sudoku-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-template-rows: repeat(9, 1fr);
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 4px;
  overflow: hidden;
}

.sudoku-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
  position: relative;
  user-select: none;
}

/* Thick borders for 3x3 boxes */
.sudoku-cell[data-col="2"],
.sudoku-cell[data-col="5"] {
  border-right: 2px solid var(--accent);
}

.sudoku-cell[data-row="2"],
.sudoku-cell[data-row="5"] {
  border-bottom: 2px solid var(--accent);
}

/* Given (pre-filled) cells */
.sudoku-cell.given {
  color: var(--text-muted);
  background: rgba(26, 39, 52, 0.8);
  cursor: default;
}

/* User-entered cells */
.sudoku-cell.user-entered {
  color: var(--accent);
}

/* Selected cell */
.sudoku-cell.selected {
  background: var(--accent-dim);
}

/* Highlight same number (matching cells + selected cell) */
.sudoku-cell.highlight-num,
.sudoku-cell.highlight-num.given,
.sudoku-cell.highlight-self {
  background: rgba(76, 175, 80, 0.3);
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

/* Highlight same row/col/box */
.sudoku-cell.highlight-peer {
  background: rgba(255, 255, 255, 0.04);
}

/* Error state */
.sudoku-cell.error {
  color: var(--danger);
  background: rgba(239, 83, 80, 0.1);
}

/* Correct / Wrong feedback indicator */
.cell-feedback {
  position: absolute;
  top: -2px;
  right: 1px;
  font-size: 0.7rem;
  font-weight: 700;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cell-feedback.feedback-correct {
  color: #4caf50;
}

.cell-feedback.feedback-wrong {
  color: var(--danger);
}

.cell-feedback.feedback-fade {
  opacity: 0;
  transform: translateY(-10px);
}

/* Notes (pencil marks) */
.sudoku-cell .notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.sudoku-cell .note {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1;
}

/* ===== Controls ===== */
.sudoku-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 450px;
}

.sudoku-numpad {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.35rem;
  width: 100%;
}

.num-btn {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.num-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.num-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.num-btn.completed {
  opacity: 0.3;
  cursor: default;
}

.sudoku-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.action-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.action-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.action-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.action-btn.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.sudoku-timer {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ===== Message ===== */
.sudoku-message {
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  min-height: 1.5rem;
}

.sudoku-message.win {
  color: #4caf50;
}

.sudoku-message.error-msg {
  color: var(--danger);
}

/* ===== Footer ===== */
.games-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: #4caf50;
  font-size: 0.8rem;
}

.games-footer a {
  color: var(--accent);
  text-decoration: none;
}

.games-footer a:hover {
  text-decoration: underline;
}

.games-credit {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.credit-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.games-credit p {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}


/* ===== Cribbage Section ===== */
.cribbage-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.cribbage-header {
  display: none;
}

.cribbage-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.cribbage-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toolbar: Undo | Starter Card | Restart */
.cribbage-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.cribbage-toolbar .starter-action-btn:first-child {
  margin-right: auto;
  margin-left: 6rem;
}

.cribbage-toolbar .starter-action-btn:last-child {
  margin-left: auto;
  margin-right: 6rem;
}

.starter-tagline {
  flex: 1;
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  color: var(--warm);
}

.starter-card-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.starter-challenge {
  flex: 1;
  text-align: center;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 0.75rem;
  white-space: nowrap;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}

.starter-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.starter-action-btn {
  padding: 0.55rem 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.starter-action-btn:hover {
  background: var(--accent);
  color: #fff;
}

.starter-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 48px;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 2px solid var(--warm);
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Day Toggle */
.day-toggle {
  display: flex;
  justify-content: center;
  margin: -0.75rem 0 0.4rem;
}

.day-toggle-btn {
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.day-toggle-btn:first-child {
  border-radius: 12px 0 0 12px;
}

.day-toggle-btn:last-child {
  border-radius: 0 12px 12px 0;
}

.day-toggle-btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.day-toggle-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.day-toggle-btn:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--text);
}

/* Grid Layout */
.cribbage-grid-area {
  display: grid;
  grid-template-columns: 220px 500px auto;
  grid-template-rows: auto auto auto;
  gap: 0 0.4rem;
  margin-bottom: 0;
  justify-content: center;
}

.cribbage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  grid-column: 2;
  grid-row: 2;
  border: 3px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
}

.crib-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  font-size: 1.4rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.1s;
  user-select: none;
  position: relative;
}

/* Thick borders for 3x2 boxes */
.crib-cell[data-col="2"] {
  border-right: 3px solid var(--accent);
}

.crib-cell[data-row="1"],
.crib-cell[data-row="3"] {
  border-bottom: 3px solid var(--accent);
}

/* Grayed-out cells */
.crib-cell.gray {
  background: #d5dbe1;
  cursor: default;
}

/* Active empty cell */
.crib-cell.active-empty:hover {
  background: #d6eeff;
}

/* Selected cell */
.crib-cell.selected {
  background: #bde0f7;
  box-shadow: inset 0 0 0 3px var(--accent);
}

/* Pre-placed (given) cards */
.crib-cell.given-card {
  cursor: default;
}

.crib-cell.given-card .card-text {
  opacity: 0.65;
}

/* Player-placed cards */
.crib-cell.player-card {
  cursor: pointer;
  background: #eef8ff;
}

/* Card text inside cells */
.card-text {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  line-height: 1;
}

.card-rank {
  font-size: 1.45rem;
}

.card-suit {
  font-size: 1.5rem;
}

/* Suit colors */
.suit-heart, .suit-diamond {
  color: #d32f2f;
}

.suit-spade, .suit-club {
  color: #1a1a1a;
}

/* Box score badge (bottom-right corner of each box) */
.box-score-badge {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #111;
  min-width: 20px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 4px;
  padding: 0 4px;
  pointer-events: none;
}

.box-score-badge.score-partial {
  color: #ef9a9a;
}

.box-score-badge.score-complete {
  color: #a5d6a7;
}

.box-score-badge.no-score {
  background: #111;
}

/* Row Scores (right side of grid) */
.cribbage-row-scores {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
}

.row-score {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.row-score.score-partial {
  color: #ef9a9a;
}

.row-score.score-complete {
  color: #a5d6a7;
}

/* Column Scores (below grid, aligned to grid columns) */
.cribbage-col-scores {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.col-score {
  text-align: center;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.col-score.score-partial {
  color: #ef9a9a;
}

.col-score.score-complete {
  color: #a5d6a7;
}

/* Total Score */
/* Card Pool + Total */
.cribbage-pool {
  text-align: center;
  margin: 0.4rem 0;
}

.cribbage-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--warm);
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.pool-suit-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.pool-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 42px;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: grab;
  transition: all 0.15s;
  user-select: none;
}

.pool-card:active {
  cursor: grabbing;
}

.pool-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(79,195,247,0.25);
}

.pool-card.selected {
  background: #d6eeff;
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(79,195,247,0.4);
}

.pool-card.placed {
  opacity: 0.15;
  pointer-events: none;
}

/* Cribbage Actions */
.cribbage-actions {
  display: flex;
  gap: 0.5rem;
  margin: 0 auto;
}

.cribbage-timer {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.cribbage-message {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  min-height: 1.5rem;
}

.cribbage-message.win {
  color: #4caf50;
}

/* Leaderboard (left side of grid) */
.cribbage-leaderboard {
  grid-column: 1;
  grid-row: 2 / 4;
  align-self: start;
  padding-right: 0.75rem;
}

.cribbage-leaderboard h3 {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.cribbage-leaderboard table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cribbage-leaderboard th {
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cribbage-leaderboard th:first-child {
  width: 1.5rem;
  text-align: center;
}

.cribbage-leaderboard td {
  padding: 0.3rem 0.4rem;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cribbage-leaderboard td:first-child {
  text-align: center;
  color: var(--warm);
  font-weight: 700;
}

.cribbage-leaderboard td:nth-child(3) {
  font-weight: 700;
  color: var(--accent);
}

/* Name Entry Modal */
.cribbage-name-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.cribbage-name-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  max-width: 340px;
  width: 90%;
}

.cribbage-name-dialog h3 {
  color: #4caf50;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.cribbage-name-dialog p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.cribbage-name-dialog input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.cribbage-name-dialog input:focus {
  outline: none;
  border-color: var(--accent);
}

.cribbage-name-dialog button {
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cribbage-name-dialog button:hover {
  opacity: 0.85;
}

.cribbage-name-dialog button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ===== SEO Content Section ===== */
.seo-content {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  color: var(--text);
  line-height: 1.7;
  font-size: 0.95rem;
}

.seo-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.seo-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.seo-content p {
  margin: 0 0 1rem;
}

.seo-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.seo-content li {
  margin-bottom: 0.4rem;
}

.seo-content a {
  color: var(--accent);
  text-decoration: none;
}

.seo-content a:hover {
  text-decoration: underline;
}

/* ===== Site Navigation ===== */
.seo-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seo-nav a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.seo-nav a:hover {
  text-decoration: underline;
}

/* ===== Content Pages (How to Play, Rules, etc.) ===== */
.content-page {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.content-article {
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--text);
}

.content-article h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.content-article h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
}

.content-article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.content-article p {
  margin: 0 0 1rem;
}

.content-article ul, .content-article ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.content-article li {
  margin-bottom: 0.4rem;
}

.content-article a {
  color: var(--accent);
  text-decoration: none;
}

.content-article a:hover {
  text-decoration: underline;
}

.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.content-article th,
.content-article td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content-article th {
  background: var(--surface);
  font-weight: 600;
}

.content-article strong {
  color: var(--accent);
}

.blog-post-preview {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-post-preview h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  border: none;
  padding: 0;
}

.blog-post-preview p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.blog-post-preview time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 500px) {
  /* --- Header: logo full-width on top, quotes stacked below --- */
  .games-title-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .games-title-row h1 {
    order: -1;
    width: 100%;
  }

  .games-logo {
    max-width: 100%;
    width: 100%;
  }

  .games-title-row .starter-tagline,
  .games-title-row .starter-challenge {
    margin: 0;
    text-align: center;
    font-size: 0.8rem;
  }

  .games-header {
    padding: 0.3rem 0.75rem 0.5rem;
  }

  .games-container {
    padding: 0.5rem;
  }

  /* --- Hide "Cribbage Grid" heading and date on mobile --- */
  .cribbage-header {
    display: none;
  }

  .cribbage-section {
    padding: 0.75rem;
  }

  /* --- Toolbar: smaller undo/restart buttons --- */
  .cribbage-toolbar {
    gap: 0.4rem;
  }

  .cribbage-toolbar .starter-action-btn:first-child {
    margin-left: 0;
  }

  .cribbage-toolbar .starter-action-btn:last-child {
    margin-right: 0;
  }

  .starter-action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
    border-width: 1px;
    letter-spacing: 0;
  }

  .starter-label {
    font-size: 0.75rem;
  }

  .starter-card {
    min-width: 48px;
    height: 36px;
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
  }

  /* --- Grid --- */
  .crib-cell {
    min-height: 58px;
  }

  .card-rank {
    font-size: 1.15rem;
  }

  .card-suit {
    font-size: 1.2rem;
  }

  .row-score {
    min-height: 58px;
  }

  .pool-card {
    min-width: 46px;
    height: 38px;
    font-size: 1rem;
  }

  .cribbage-grid-area {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto auto;
  }

  .cribbage-leaderboard {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-right: 0;
    margin-bottom: 0.5rem;
  }

  .cribbage-grid {
    grid-column: 1;
    grid-row: 3;
  }

  .cribbage-row-scores {
    grid-column: 2;
    grid-row: 3;
  }

  .cribbage-col-scores {
    grid-column: 1;
    grid-row: 4;
  }

  /* --- Sudoku (unchanged) --- */
  .sudoku-section {
    padding: 1rem;
  }

  .sudoku-cell {
    font-size: 1.1rem;
  }

  .sudoku-cell .note {
    font-size: 0.45rem;
  }

  .num-btn {
    font-size: 1rem;
  }

  .sudoku-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
