.starter-sudoku-guide {
  --starter-ink: #1c2831;
  --starter-paper: #faefda;
  --starter-grain: url("/assets/riddle-desk-paper.webp");
  background: var(--starter-grain) center top / 650px auto repeat, var(--starter-paper);
  background-blend-mode: luminosity;
}
.starter-hero { box-shadow: 0 10px 0 -4px #697a53; }
.starter-hero-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); align-items: center; gap: 24px; padding-block: clamp(20px,3.2vw,46px); }
.starter-back { color: #294634; font-weight: 720; text-decoration: none; }
.starter-back:hover { text-decoration: underline; }
.starter-hero h1 { margin: .25em 0 .22em; max-width: 20ch; color: var(--starter-ink); font: 700 clamp(2.55rem,6.4vw,5.6rem)/.98 var(--font-editorial); letter-spacing: -.046em; }
.starter-hero h1::after { display: block; width: min(57%, 260px); height: 8px; margin-top: 9px; border-top: 4px solid var(--brand-action); border-radius: 47%; transform: rotate(-3deg); content: ""; }
.starter-intro { margin: 0 0 .8rem; font-size: clamp(.95rem, 1.55vw, 1.16rem); }
.starter-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.starter-illustration { width: min(100%, 305px); height: auto; align-self: center; justify-self: center; }
.starter-lesson { padding-block-start: clamp(24px,4vw,54px); }
.starter-lesson .article > h2:first-child { margin-top: 0; }
.starter-lesson .article h2, #sudoku-first-square { scroll-margin-top: calc(var(--header-h) + 24px); }
.starter-rules { margin-bottom: 16px; }
.starter-paper {
  display: grid;
  justify-items: stretch;
  width: min(100%, 34rem);
  padding: clamp(12px,2.6vw,28px);
  border: 1px solid #bd9a72;
  border-radius: 18px 10px 23px 12px;
  background: var(--starter-grain) center / 590px auto, #edd1a7;
  background-blend-mode: luminosity;
  box-shadow: 4px 5px #ad8a6d55;
}
#starter-sudoku table { border-collapse: collapse; table-layout: fixed; width: 100%; aspect-ratio: 1; color: var(--starter-ink); background: #fdf4df; }
#starter-sudoku tr { height: 25%; }
#starter-sudoku td { position: relative; width: 25%; padding: 0; text-align: center; font: 700 clamp(1.55rem,7vw,3.15rem)/1 var(--font-editorial); border: 1px solid #736b52; }
#starter-sudoku tr:nth-child(odd) td { border-top: 3px solid var(--starter-ink); }
#starter-sudoku td:nth-child(odd) { border-left: 3px solid var(--starter-ink); }
#starter-sudoku tr:last-child td { border-bottom: 3px solid var(--starter-ink); }
#starter-sudoku td:last-child { border-right: 3px solid var(--starter-ink); }
#starter-sudoku input { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: #fff9ed; color: #244f3f; text-align: center; font: inherit; }
#starter-sudoku input::placeholder { color: #913821; opacity: 1; }
#starter-sudoku input[data-selected] { box-shadow: inset 0 0 0 3px #a9482e; background: #fcdfbd; }
#starter-sudoku input[aria-invalid="true"] { outline: 3px dashed #9b2a24; outline-offset: -5px; }
#starter-sudoku input:focus-visible { z-index: 1; outline: 3px solid #0d5266; outline-offset: -5px; }
.starter-keys { display: grid; grid-template-columns: repeat(4,1fr) 1.45fr; gap: 6px; margin-block: 12px; }
.starter-keys .btn { min-width: 0; min-height: 44px; padding: 0 4px; border: 1px solid #8c795a; border-radius: 9px; background: #fff8e5; color: var(--starter-ink); font: 700 1.3rem/1 var(--font-editorial); }
.starter-keys .starter-clear { font: 720 .84rem/1 var(--font-ui); }
.starter-paper .btn[type="submit"], .starter-print, .starter-next { width: 100%; min-height: 44px; }
.starter-status { margin: .35em 0; color: #234b3d; }
.starter-status:empty { display: none; }
.starter-paper .starter-print { margin-top: 9px; border-color: #294c3c; background: #fff9ed; }
.starter-print-a4 { justify-self: center; padding: .35em 0; font-size: .9rem; }
#starter-sudoku .starter-next[hidden] { display: none; }
#starter-sudoku.is-solved table { animation: starter-check .35s ease-out; }
@keyframes starter-check { from { box-shadow: 0 0 0 6px #698e6a; } to { box-shadow: none; } }
@media (min-width: 721px) and (max-width: 1080px) {
  .starter-hero-layout { grid-template-columns: minmax(0,1.6fr) minmax(0,.8fr); }
  .starter-hero h1 { font-size: clamp(2.6rem,5vw,4rem); }
  .starter-illustration { max-width: 235px; }
  .starter-lesson .article-layout { grid-template-columns: minmax(0, 12rem) minmax(0,1fr); gap: 18px; }
  .starter-lesson .article-aside { grid-template-columns: 1fr; }
  .starter-lesson .toc { display: block; background: #e7e9cf; border-color: #afb38c; }
  .starter-lesson .toc h2 { font: 700 1.2rem var(--font-editorial); }
  .starter-lesson .toc a { padding: 8px 0; border: 0; background: none; white-space: normal; }
}
@media (max-width: 720px) {
  .starter-hero { box-shadow: none; }
  .starter-hero-layout { grid-template-columns: minmax(0,1fr); padding-block: 14px 5px; }
  .starter-hero-actions, .starter-illustration, .starter-lesson .article > h2:first-child { display: none; }
  .starter-hero h1 { margin-bottom: 0; font-size: clamp(2.18rem,9.1vw,3.45rem); }
  .starter-intro { margin: .4rem 0 0; }
  .starter-lesson { padding-block-start: 10px; }
  .starter-rules { margin-block: 5px 10px; font-size: .97rem; line-height: 1.46; }
  .starter-lesson .article-layout { display: block; }
  .starter-lesson .article-aside { margin-top: 25px; }
  .starter-paper { width: 100%; max-width: 29rem; margin-inline: auto; }
}
@media (max-width: 360px) {
  .starter-hero h1 { font-size: 2.18rem; }
  .starter-rules { font-size: .93rem; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { #starter-sudoku.is-solved table { animation: none; } }
.force-reduced-motion #starter-sudoku.is-solved table { animation: none; }
