:root {
  color-scheme: light;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.65);
  --text: #111111;
  --subtext: #6b7280;
  --accent: #111111;
  --accent-green: #16a34a;
  --accent-blue: #2563eb;
  --accent-orange: #ea580c;
  --accent-red: #dc2626;
  --grid-thin: rgba(17, 17, 17, 0.08);
  --grid-bold: rgba(17, 17, 17, 0.35);
  --grid-border: rgba(17, 17, 17, 0.12);
  --shadow-soft: 0 24px 60px rgba(17, 17, 17, 0.12);
  --shadow-pill: 0 18px 40px rgba(17, 17, 17, 0.08);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-pill: 22px;
  --accent-color: #2563eb;
  --accent-strong: rgba(37, 99, 235, 0.1);
  --accent-peer: rgba(37, 99, 235, 0.025);
  --accent-same: rgba(37, 99, 235, 0.045);
  --accent-board-bg: #ffffff;
  --accent-board-border: rgba(37, 99, 235, 0.08);
  --accent-contrast: #ffffff;
  --accent-keypad: rgba(37, 99, 235, 0.7);
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(140deg, rgba(245, 245, 247, 0.95), rgba(229, 231, 235, 0.6));
  color: var(--text);
}

.seo-page {
  background: linear-gradient(140deg, rgba(245, 245, 247, 0.9), rgba(229, 231, 235, 0.4));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
}

.view {
  width: min(520px, 100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.view--hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  position: absolute;
  inset: 0;
}

.home {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 12vh;
}

.home__branding {
  text-align: center;
}

.home__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.home__subtitle {
  margin: 6px 0 0;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: rgba(17, 17, 17, 0.55);
}



.home__cta-button:hover,
.home__cta-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.mode-toggle {
  display: flex;
  padding: 6px;
  background: var(--surface);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(17, 17, 17, 0.05);
  gap: 8px;
}

.mode-toggle__button {
  flex: 1;
  border: none;
  border-radius: 14px;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 10px;
  color: rgba(17, 17, 17, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.mode-toggle__button.is-selected {
  background: var(--text);
  color: white;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-large);
  padding: 28px 24px;
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.panel.is-hidden {
  display: none;
}

.panel__caption {
  color: var(--subtext);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.daily-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 24px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.32);
  isolation: isolate;
}

.daily-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/daily-challenge-background.png');
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: saturate(1.1);
  z-index: -3;
}

.daily-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(10, 10, 15, 0.72) 0%, rgba(10, 10, 15, 0.45) 55%, rgba(8, 8, 12, 0.52) 100%),
    linear-gradient(120deg, rgba(17, 17, 17, 0.25), transparent 45%);
  z-index: -2;
}

.daily-card > * {
  position: relative;
  z-index: 1;
}

.daily-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.daily-card__headline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-card__eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.daily-card__title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.daily-card__date {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.daily-card__link {
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.daily-card__link:hover {
  background: rgba(255, 255, 255, 0.24);
}

.daily-card__link:active {
  transform: translateY(1px);
}

.daily-card__play {
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
  backdrop-filter: blur(4px);
}

.daily-card__play:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
}

.daily-card__play:active {
  transform: translateY(1px);
}

.daily-card__play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.daily-card__primary {
  font-weight: 600;
  font-size: 1.05rem;
}

.daily-card__secondary {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

.daily-card__play-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.25);
}

.daily-card__meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
}

.daily-card__streak {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.daily-card__streak.is-hidden {
  display: none;
}

.daily-card__streak-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 159, 67, 0.25);
  color: #ff9f43;
  box-shadow: 0 10px 22px rgba(255, 159, 67, 0.22);
}

.daily-card__streak-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daily-card__streak-copy strong {
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}

.daily-card__streak-copy span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.daily-card__streak.is-empty .daily-card__streak-icon {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

.daily-card__streak.is-empty .daily-card__streak-copy strong {
  color: rgba(255, 255, 255, 0.85);
}

.daily-card__leaderboard {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daily-leaderboard {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.daily-leaderboard__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
}

.daily-leaderboard__item.is-highlighted {
  color: #ffffff;
  font-weight: 600;
}

.daily-leaderboard__item.is-placeholder {
  visibility: hidden;
}

.daily-leaderboard__name {
  flex: 1;
}

.daily-leaderboard__time {
  margin-left: 12px;
}

.daily-leaderboard__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.76);
  pointer-events: none;
}

.daily-card__user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.daily-card__user-line {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  gap: 4px;
}

.daily-card__user-line strong {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.daily-card__signout {
  border: none;
  background: rgba(255, 255, 255, 0.78);
  color: #0b0b10;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.daily-card__signout:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.daily-card__signout:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.daily-card__auth {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.daily-card__button {
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.daily-card__button:hover {
  background: rgba(255, 255, 255, 0.98);
}

.daily-card__button:active {
  transform: translateY(1px);
}

.daily-card__button--outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.daily-card__button--outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.pill-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pill {
  border: none;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.pill.is-selected {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02));
  border-color: var(--accent-color);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.12);
  color: var(--accent-color);
}

.pill:active {
  transform: translateY(1px);
}

.pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.06);
  font-size: 1.3rem;
}

.pill__title {
  flex: 1;
}

.pill__subtitle {
  flex-basis: 100%;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--subtext);
  margin-top: 2px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--subtext);
}

.panel__label {
  font-size: 0.95rem;
  font-weight: 500;
}

.panel__value {
  font-weight: 600;
  color: var(--text);
}

.home__seo {
  background: var(--surface);
  border-radius: var(--radius-large);
  padding: 28px 24px;
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(17, 17, 17, 0.05);
  display: flex;
  flex-direction: column;
  gap: 16px;
  line-height: 1.6;
  color: var(--subtext);
}

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

.seo-links a {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  text-decoration: none;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.92rem;
}

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

.printable-cta {
  border-radius: var(--radius-medium);
  border: 1px solid rgba(17, 17, 17, 0.05);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), rgba(17, 17, 17, 0.02));
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.printable-cta__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.printable-cta__button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  color: var(--accent-color);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.printable-cta__button:hover,
.printable-cta__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.printable-cta__note {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.55);
  margin: 0;
}

.printable-page .printable-content {
  gap: 24px;
}

.printable-tools {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(17, 17, 17, 0.03));
  border-radius: var(--radius-large);
  border: 1px solid rgba(17, 17, 17, 0.06);
  padding: 28px;
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow-pill);
}

.printable-tools__intro h2 {
  margin: 0 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
}

.printable-controls {
  display: grid;
  gap: 14px;
}

.printable-controls__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.8);
}

.printable-controls__select {
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  padding: 12px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.08);
}

.printable-buttons {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.printable-button {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-color);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.printable-button:hover,
.printable-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
}

.printable-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.12);
}

.printable-button--accent {
  background: var(--accent-color);
  color: var(--accent-contrast);
}

.printable-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.printable-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.1);
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #ffffff;
}

.printable-figure figcaption {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.6);
  text-align: center;
  max-width: 340px;
}

.printable-controls__hint {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.6);
  margin: 0;
}

.printable-controls__status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.65);
}

.printable-controls__status[data-variant='success'] {
  color: #15803d;
}

.printable-controls__status[data-variant='error'] {
  color: #b91c1c;
}

.seo-toc {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
  display: grid;
  gap: 10px;
}

.seo-toc h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.seo-toc ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 1.1rem;
}

.seo-toc a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.seo-toc a:hover,
.seo-toc a:focus-visible {
  text-decoration: underline;
}

.practice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 0.95rem;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.08);
}

.practice-table th,
.practice-table td {
  border: 1px solid rgba(17, 17, 17, 0.08);
  padding: 12px 14px;
  text-align: left;
}

.practice-table thead {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
  font-weight: 600;
}

.practice-table tbody tr:nth-child(even) {
  background: rgba(17, 17, 17, 0.03);
}

.practice-table a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.practice-table a:hover,
.practice-table a:focus-visible {
  text-decoration: underline;
}

.printable-faq {
  display: grid;
  gap: 18px;
}

.printable-faq__item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.printable-faq__item h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--text);
}

.home__seo h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  color: var(--text);
  margin: 0;
}

.home__seo h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 12px 0 0;
}

.home__seo ul {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 8px;
}

.home__seo li {
  list-style: disc;
}

.game-header {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  padding: 12px 18px;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-pill);
  margin-bottom: 18px;
}

.game-header__back,
.game-header__clear {
  border: none;
  background: rgba(17, 17, 17, 0.06);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--accent-color);
}

.game-header__back {
  font-size: 1.8rem;
}

.game-header__title {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.game-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--subtext);
  margin-bottom: 16px;
  font-weight: 500;
}

.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);
}

.sudoku-board--mini {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 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);
}

.cell__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  font-size: clamp(0.45rem, 1.4vw, 0.65rem);
  font-weight: 500;
  color: rgba(17, 17, 17, 0.5);
}

.cell__note {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sudoku-board--mini .cell__notes {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.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--mini::before {
  background:
    repeating-linear-gradient(
      to right,
      transparent 0 calc(100% / 4 - 0.5px),
      var(--grid-thin) calc(100% / 4 - 0.5px) calc(100% / 4),
      transparent calc(100% / 4) calc(100% / 4 + 0.5px)
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 calc(100% / 4 - 0.5px),
      var(--grid-thin) calc(100% / 4 - 0.5px) calc(100% / 4),
      transparent calc(100% / 4) calc(100% / 4 + 0.5px)
    );
}

.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;
}

.sudoku-board--mini::after {
  background:
    linear-gradient(
      to right,
      transparent calc(50% - 2px),
      var(--grid-bold) calc(50% - 2px) calc(50% + 2px),
      transparent calc(50% + 2px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 2px),
      var(--grid-bold) calc(50% - 2px) calc(50% + 2px),
      transparent calc(50% + 2px)
    );
}

.tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tool {
  flex: 1;
  padding: 14px 0;
  border: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-pill);
  font-size: 1.1rem;
  cursor: pointer;
}

.tool.is-hidden {
  display: none !important;
}

.tool.is-active {
  background: var(--accent-color);
  color: var(--accent-contrast);
}

.keypad {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.keypad--mini {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.keypad button {
  border: none;
  padding: 14px 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-keypad, rgba(17, 17, 17, 0.72));
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.12);
  cursor: pointer;
}

.keypad button.is-hidden {
  display: none;
}

.game-actions {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 16px;
}

.button {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 16px;
  background: var(--accent-color);
  color: var(--accent-contrast);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-pill);
}

.button--danger {
  background: var(--accent-red);
  color: #ffffff;
}

.button--danger:disabled {
  background: rgba(220, 38, 38, 0.7);
  cursor: not-allowed;
}

.status {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow-pill);
}

.status__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--subtext);
}

.status__subtext {
  font-size: 0.85rem;
}

#overlay-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: all;
  z-index: 100;
}

.overlay__card {
  width: min(440px, 100%);
  background: var(--surface);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.overlay__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  margin: 0;
}

.overlay__text {
  color: var(--subtext);
  font-size: 0.98rem;
  line-height: 1.5;
}

.overlay__text--accent {
  color: #f97316;
  font-weight: 600;
}

.overlay__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay__code {
  font-size: 1.4rem;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 12px 18px;
  background: rgba(17, 17, 17, 0.05);
  border-radius: 16px;
}

.overlay__badge {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.1);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.overlay__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay__buttons button {
  border: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.overlay__buttons button.primary {
  background: var(--text);
  color: white;
}

.overlay__buttons button.secondary {
  background: rgba(17, 17, 17, 0.08);
}

.overlay__buttons button.destructive {
  background: var(--accent-red);
  color: white;
}

.overlay__link {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.75);
  text-decoration: none;
}

.overlay__link:hover,
.overlay__link:focus-visible {
  text-decoration: underline;
}

.overlay__footer {
  font-size: 0.85rem;
  color: var(--subtext);
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

.auth-form__field span {
  color: var(--subtext);
  font-weight: 600;
}

.auth-form__field input {
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.auth-form__submit {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--text);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.auth-form__toggle {
  border: none;
  background: none;
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.auth-form__error {
  margin: -4px 0 0;
  color: var(--accent-red);
  font-size: 0.85rem;
}

.leaderboard-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
}

.leaderboard-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.04);
  font-size: 0.95rem;
}

.leaderboard-list__item.is-highlighted {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-color);
  font-weight: 600;
}

.leaderboard-list__name {
  flex: 1;
}

.leaderboard-list__time {
  font-variant-numeric: tabular-nums;
  margin-left: 12px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, 0.9);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.22);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  margin-top: 32px;
  padding: 32px 20px 48px;
  background: rgba(17, 17, 17, 0.05);
  color: rgba(17, 17, 17, 0.65);
}

.site-footer__content {
  width: min(640px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(17, 17, 17, 0.75);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .home {
    margin-top: 8vh;
  }

  .panel {
    padding: 24px 18px;
  }

  .tools {
    flex-wrap: wrap;
  }

  .tool {
    flex: calc(50% - 6px);
  }

  .home__seo {
    padding: 24px 18px;
  }
}

.seo-header {
  padding: 24px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.seo-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.seo-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.seo-nav a {
  color: rgba(17, 17, 17, 0.7);
  text-decoration: none;
  font-weight: 600;
}

.seo-nav a:hover,
.seo-nav a:focus-visible {
  color: var(--accent-color);
}

.seo-content {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.seo-content h1 {
  font-size: clamp(2rem, 6vw, 2.4rem);
  margin-bottom: 8px;
}

.seo-lead {
  font-size: 1.1rem;
  color: rgba(17, 17, 17, 0.68);
}

.seo-content section {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-pill);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.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-status strong {
  display: block;
  font-size: 0.95rem;
}

.tutorial-status__detail {
  display: block;
  margin-top: 4px;
  color: rgba(17, 17, 17, 0.7);
}

.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 ol {
  margin: 12px 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.tutorial-notes a {
  color: var(--accent-color);
  font-weight: 600;
}

.cell.is-hint {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.sudoku-board.is-complete {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 20px 44px rgba(34, 197, 94, 0.25);
}

.seo-content ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.strategy-activation {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 255, 0.85));
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.strategy-activation__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: rgba(17, 17, 17, 0.6);
  margin: 0;
}

.strategy-activation__list {
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.strategy-activation__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strategy-activation__meta {
  font-size: 0.9rem;
  color: rgba(17, 17, 17, 0.6);
  margin: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 22px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 26px 46px rgba(15, 23, 42, 0.12);
}

.cta-card--primary {
  background: linear-gradient(135deg, #2563eb, #6366f1);
  color: #fff;
  border: none;
}

.cta-card--secondary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.cta-card--outline {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.cta-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.25);
}

.cta-card--secondary .cta-card__icon,
.cta-card--outline .cta-card__icon {
  background: rgba(17, 24, 39, 0.08);
}

.cta-card--primary .cta-card__icon {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.cta-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-card__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.cta-card--primary .cta-card__eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.cta-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.cta-card__detail {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.7);
}

.cta-card--primary .cta-card__detail {
  color: rgba(255, 255, 255, 0.85);
}

.cta-card__arrow {
  font-size: 1.4rem;
  color: inherit;
  transition: transform 0.2s ease;
}

.cta-card:hover .cta-card__arrow,
.cta-card:focus-visible .cta-card__arrow {
  transform: translateX(4px);
}

.strategy-highlight {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.strategy-highlight__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.strategy-highlight__grid article {
  background: rgba(17, 24, 39, 0.04);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.strategy-highlight__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.strategy-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: linear-gradient(125deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
  border-radius: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.strategy-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(17, 17, 17, 0.55);
  margin-bottom: 6px;
}

.strategy-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.strategy-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.strategy-hero__stats article {
  background: rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strategy-hero__stats strong {
  font-size: 1.6rem;
  color: var(--accent-color);
}

.strategy-hero__stats span {
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.65);
}

.strategy-hero__guarantee {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(17, 17, 17, 0.6);
}

.strategy-hub {
  background: #fff;
  border: 1px solid rgba(11, 18, 43, 0.08);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 25px 70px rgba(33, 41, 69, 0.06);
}

.strategy-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.strategy-hub__card {
  border: 1px solid rgba(11, 18, 43, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  background: #fdfdfd;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.strategy-hub__card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.strategy-hub__card p {
  margin: 0;
  color: rgba(11, 18, 43, 0.8);
}

.strategy-hub__cta {
  margin-top: auto;
  color: #2b4eff;
  font-weight: 600;
  text-decoration: none;
}

.strategy-hub__cta:hover {
  text-decoration: underline;
}

.playthrough-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.playthrough-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.playthrough-frames {
  flex: 1;
}

.strategy-playthrough {
  border: 1px solid rgba(11, 18, 43, 0.08);
  border-radius: 20px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(14, 165, 233, 0.03));
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  margin-bottom: 32px;
}

.strategy-playthrough__head {
  max-width: 640px;
  margin-bottom: 24px;
}

.strategy-playthrough__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: rgba(17, 17, 17, 0.55);
  margin-bottom: 4px;
}

.playthrough-frames {
  position: relative;
}

.playthrough-frame {
  display: none;
  gap: 24px;
  align-items: center;
}

.playthrough-frame.is-active {
  display: flex;
  flex-direction: column;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 3), minmax(30px, 44px));
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(11, 18, 43, 0.08);
  background: rgba(255, 255, 255, 0.95);
  width: min(520px, 100%);
  margin: 0 auto;
}

.mini-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  padding: 4px;
}

.mini-grid__cell.is-given {
  background: #ffffff;
}

.mini-grid__cell.is-note {
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  background: rgba(15, 23, 42, 0.02);
}

.mini-grid__cell.is-highlight {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.mini-grid__cell.is-target {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.6);
}

.mini-grid__cell.is-eliminated {
  color: rgba(15, 23, 42, 0.4);
  border-style: dashed;
  background: rgba(15, 23, 42, 0.02);
}

.mini-grid__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(10px, 1fr));
  gap: 3px;
  width: 100%;
  font-size: 0.6rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: rgba(15, 23, 42, 0.75);
}

.mini-grid__notes span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 4px;
  padding: 1px 0;
}

.mini-grid[data-grid-size='9'] {
  --grid-cols: 9;
  gap: 4px;
  padding: 18px;
}

.mini-grid[data-grid-size='9'] .mini-grid__cell {
  min-height: 32px;
  font-size: 0.95rem;
}

.mini-grid[data-grid-size='9'] .mini-grid__notes {
  font-size: 0.52rem;
  gap: 2px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid rgba(11, 18, 43, 0.08);
  padding: 0.85rem 1rem;
  text-align: left;
}

.comparison-table th {
  background: rgba(37, 99, 235, 0.08);
  font-weight: 600;
}

.comparison-table tr:nth-child(even) {
  background: rgba(11, 18, 43, 0.02);
}

.comparison-footnote {
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.6);
  margin-top: 0.5rem;
}

.seo-cta__aside {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.75);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.faq-list dt {
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-list dd {
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
}

.playthrough-frame__copy h3 {
  margin: 6px 0;
}

.playthrough-frame__copy p {
  margin: 0;
}

.playthrough-step {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: rgba(17, 17, 17, 0.55);
  margin: 0;
}

.playthrough-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.playthrough-button {
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  background: #fff;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.playthrough-button:hover:enabled {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
}

.playthrough-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.playthrough-status {
  font-weight: 600;
  color: rgba(15, 23, 42, 0.8);
  margin: 0;
}


.strategy-proof {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.strategy-proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.strategy-proof__grid article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(14, 116, 144, 0.06);
  border: 1px solid rgba(14, 116, 144, 0.12);
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.08);
}

.strategy-proof__quote {
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 8px;
}

.strategy-proof__author {
  margin: 0;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.7);
}

.strategy-proof__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.seo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 14px;
  background: var(--accent-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.seo-footer {
  padding: 32px 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(17, 17, 17, 0.6);
}

.seo-footer a {
  color: inherit;
}

@media (max-width: 720px) {
  .seo-nav {
    display: none;
  }

  .seo-content section {
    padding: 20px;
  }

  .tutorial-keypad {
    grid-template-columns: repeat(3, minmax(60px, 1fr));
  }

  .tutorial-actions {
    flex-direction: column;
  }

  .tutorial-actions button {
    width: 100%;
  }

  .strategy-highlight__cta {
    flex-direction: column;
  }

  .strategy-hub {
    padding: 1.75rem;
  }

  .strategy-playthrough {
    padding: 24px;
  }

  .mini-grid {
    grid-template-columns: repeat(var(--grid-cols, 3), minmax(22px, 32px));
  }
}

@media (min-width: 960px) {
  .tutorial-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .tutorial-notes {
    max-width: 320px;
    width: auto;
  }

  .strategy-activation {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }

  .strategy-activation__copy,
  .strategy-activation__actions {
    flex: 1;
  }

  .strategy-activation__actions {
    align-items: flex-start;
  }

  .strategy-activation__actions .cta-card {
    width: 100%;
  }

  .strategy-hero {
    flex-direction: row;
    align-items: center;
    gap: 36px;
  }

  .strategy-hero__copy,
  .strategy-hero__stats {
    flex: 1;
  }

  .playthrough-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
  }

  .playthrough-visual {
    flex: 0 0 auto;
  }

  .playthrough-frames {
    flex: 1;
  }

  .playthrough-frame.is-active {
    flex-direction: row;
  }

  .mini-grid {
    flex-shrink: 0;
  }

  .strategy-hero__actions .cta-card {
    width: auto;
  }
}

.home__cta-button--apple {
  align-self: center;
  margin-top: 28px;
  padding: 14px 28px;
}

.home__cta-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.home__cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.home__cta-eyebrow {
  font-size: 0.72rem;
  opacity: 0.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home__cta-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.home__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.multiplayer-step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.multiplayer-step.is-hidden {
  display: none;
}

.panel__header--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel__header--actions .panel__label {
  font-size: 0.85rem;
  color: var(--subtext);
}

.panel__header--actions .panel__value {
  font-weight: 600;
}

.panel__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: rgba(17, 17, 17, 0.05);
  color: var(--subtext);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.panel__back span[aria-hidden] {
  font-size: 1rem;
}

.panel__back:hover,
.panel__back:focus-visible {
  background: rgba(17, 17, 17, 0.1);
  color: var(--accent-color);
}
.pill.is-selected .pill__title {
  color: var(--accent-color);
}

.pill.is-selected .pill__subtitle {
  color: rgba(37, 99, 235, 0.75);
}

.pill.is-selected .pill__icon {
  background: rgba(37, 99, 235, 0.12);
}
