  /* ── Homepage-specific ── */
  .hero { text-align: center; padding: 72px 0 64px; position: relative; }
  .hero h1 { font-size: clamp(48px, 6.4vw, 82px); letter-spacing: -0.015em; }
  .hero h1 em { font-style: normal; position: relative; display: inline-block; }
  .hero h1 em::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: 7px; height: 16px; background: oklch(0.70 0.14 75 / 0.55); z-index: -1; border-radius: 8px; }
  .hero > p { font-size: 20px; font-weight: 600; color: var(--muted); max-width: 560px; margin: 24px auto 32px; }
  .herobtns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .hero .sticker { position: absolute; }
  .hero .st1 { left: 10px; top: 64px; transform: rotate(-7deg); }
  .hero .st2 { right: 20px; top: 44px; transform: rotate(6deg); }
  .hero .st3 { left: 70px; bottom: 30px; transform: rotate(5deg); }
  .hero .st4 { right: 80px; bottom: 50px; transform: rotate(-5deg); }
  @media (max-width: 1040px) { .hero .sticker { display: none; } }

  .pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; padding-bottom: 90px; }
  .pcard {
    background: var(--paper); border: var(--bd); border-radius: var(--r);
    padding: 22px 20px 20px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    text-decoration: none; transform: rotate(var(--rot, 0deg));
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .pcard:hover { transform: translate(-2px, -2px) rotate(0deg); box-shadow: 8px 8px 0 var(--c); }
  .pcard .art { height: 96px; display: grid; place-items: center; }
  .pcard h3 { font-size: 22px; }
  .pcard .tag { font-size: 14.5px; line-height: 1.45; font-weight: 600; color: var(--muted); }
  .pcard .go { font-family: var(--display); font-size: 14px; font-weight: 700; color: #fff; background: var(--c); border: 2px solid var(--ink); padding: 4px 14px; border-radius: 99px; margin-top: 4px; }

  .quiz {
    background: var(--c-logic); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow-lg);
    padding: 50px 56px; display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
    color: var(--paper); margin-bottom: 90px; transform: rotate(-0.6deg);
  }
  .quiz h2 { font-size: clamp(30px, 3.4vw, 40px); }
  .quiz p { font-size: 17.5px; font-weight: 600; margin-top: 12px; color: rgba(255, 249, 239, 0.85); }
  .quizleft { flex: 1.3; min-width: 320px; }
  .quizright { display: flex; flex-direction: column; gap: 16px; align-items: center; flex: 1; }
  .qmini { display: flex; gap: 10px; }
  .qmini i { width: 30px; height: 30px; border-radius: 10px; border: var(--bd); display: block; }

  .ggrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding-bottom: 90px; }
  .gcard { background: var(--paper); border: var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s ease; display: block; }
  .gcard:hover { transform: translate(-2px, -2px); }
  .gcard .ph { height: 165px; border-bottom: var(--bd); background: repeating-linear-gradient(45deg, #f3ead8 0 10px, #ecdfc6 10px 20px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--faded); }
  .gcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
  .gcard h3 { font-size: 21px; line-height: 1.25; }
  .gcard .meta { font-size: 14px; font-weight: 700; color: var(--faded); }
  body { --c: var(--c-sudoku); }
  .crumbs { font-size: 14.5px; font-weight: 700; color: var(--faded); padding-top: 26px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs .sep { margin: 0 8px; }

  .idx-hero { padding: 36px 0 30px; max-width: 720px; }
  .idx-hero h1 { font-size: clamp(44px, 5.4vw, 64px); letter-spacing: -0.01em; }
  .idx-hero p { font-size: 18.5px; font-weight: 600; color: var(--muted); margin-top: 14px; }

  /* source strip */
  .sources { display: flex; gap: 16px; flex-wrap: wrap; padding: 6px 0 34px; }
  .srccard { display: flex; align-items: center; gap: 14px; background: var(--paper); border: var(--bd); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 12px 18px 12px 12px; text-decoration: none; transition: transform 0.13s ease; }
  .srccard:hover { transform: translate(-2px, -2px); }
  .srccard .dot { width: 40px; height: 40px; border-radius: 12px; border: var(--bd); background: var(--sc); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; color: #fff; flex-shrink: 0; }
  .srccard h3 { font-size: 16.5px; line-height: 1.2; }
  .srccard span { display: block; font-size: 13px; font-weight: 700; color: var(--faded); margin-top: 1px; }

  /* filter bar */
  .filterbar { position: sticky; top: 0; z-index: 50; background: var(--cream); border-top: var(--bd); border-bottom: var(--bd); }
  .filterbar .inner { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; }
  .frow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .frow .lbl { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faded); width: 78px; flex-shrink: 0; }
  .chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip { font-family: var(--display); font-weight: 700; font-size: 14.5px; padding: 4px 15px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); cursor: pointer; transition: background 0.12s ease; }
  .chip:hover { background: color-mix(in oklch, var(--c) 20%, white); }
  .chip.on { background: var(--c); color: #fff; }

  /* results */
  .results { padding: 40px 0 90px; }
  .rescount { font-size: 15px; font-weight: 700; color: var(--faded); margin-bottom: 22px; }
  .plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }

  .pzcard { background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
  .pzcard:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
  .pzcard .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pzcard .src { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; }
  .pzcard .src i { width: 14px; height: 14px; border-radius: 5px; border: 2px solid var(--ink); background: var(--sc); }
  .pzcard time { font-size: 13px; font-weight: 700; color: var(--faded); }
  .pzcard h3 { font-size: 21px; line-height: 1.2; }
  .pzcard .desc { font-size: 14.5px; font-weight: 600; color: var(--muted); flex: 1; }
  .pzcard .rule-links { display: flex; gap: 7px; flex-wrap: wrap; align-content: flex-start; flex: 1; }
  .pzcard .rule-link { --c: var(--c-sudoku); }
  .pzcard .rule-link:hover { background: color-mix(in oklch, var(--c-sudoku) 55%, white); }
  .pzcard .tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .pzcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
  .pzcard .game-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
  .pzcard .go { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--ink); background: var(--c-wordsearch); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); padding: 6px 16px; border-radius: 12px; text-decoration: none; transition: transform 0.13s ease, box-shadow 0.13s ease; }
  .pzcard .go:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
  .pzcard .completion-form { display: inline-flex; flex: 0 0 auto; margin: 0; }
  .pzcard .complete-icon { width: 38px; height: 37px; display: inline-grid; flex: 0 0 38px; place-items: center; padding: 0; cursor: pointer; font-family: var(--body); font-size: 23px; font-weight: 900; line-height: 1; }
  .pzcard .complete-icon.is-complete { background: var(--c-sudoku); color: #fff; }
  .pzcard .fmt { font-size: 12.5px; font-weight: 800; color: var(--faded); }
  .pill.diff-gentle { --c: var(--c-sudoku); }
  .pill.diff-starter { --c: var(--c-sudoku); }
  .pill.diff-moderate { --c: var(--c-wordsearch); }
  .pill.diff-tricky { --c: var(--c-jigsaw); }
  .pill.diff-fiendish { --c: var(--c-logic); }
  .pill.diff-extreme { --c: var(--c-cryptic); }
  .badge-today { font-size: 12px; font-weight: 900; letter-spacing: 0.03em; color: #fff; background: var(--c-cryptic); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; }

  .empty { text-align: center; padding: 70px 0; }
  .empty .m-cryptic { margin: 0 auto 18px; }
  .empty h3 { font-size: 24px; }
  .empty p { font-size: 16px; font-weight: 600; color: var(--muted); margin-top: 6px; }

  .suggest { margin: 0 0 90px; background: color-mix(in oklch, var(--c) 16%, white); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 40px 48px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; transform: rotate(-0.4deg); }
  .suggest .txt { flex: 1.4; min-width: 300px; }
  .suggest h2 { font-size: clamp(26px, 3vw, 34px); }
  .suggest p { font-size: 16.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
  body { --c: var(--c-wordsearch); }
  .crumbs { font-size: 14.5px; font-weight: 700; color: var(--faded); padding-top: 26px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs .sep { margin: 0 8px; }

  .shop-hero { padding: 36px 0 14px; max-width: 700px; }
  .shop-hero h1 { font-size: clamp(44px, 5.4vw, 64px); letter-spacing: -0.01em; }
  .shop-hero p { font-size: 18.5px; font-weight: 600; color: var(--muted); margin-top: 14px; }
  .disclosure { font-size: 13.5px; font-weight: 600; color: var(--faded); padding-bottom: 28px; max-width: 700px; }

  .gamebar { position: sticky; top: 0; z-index: 50; background: var(--cream); border-top: var(--bd); border-bottom: var(--bd); }
  .gamebar .inner { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
  .gamebar .lbl { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faded); flex-shrink: 0; }
  .gchips { display: flex; gap: 8px; flex-wrap: wrap; }
  .gchip { font-family: var(--display); font-weight: 700; font-size: 14.5px; padding: 4px 15px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.12s ease; }
  .gchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--gc, var(--c)); border: 1.5px solid var(--ink); }
  .gchip:hover { background: color-mix(in oklch, var(--gc, var(--c)) 20%, white); }
  .gchip.on { background: var(--gc, var(--c)); color: #fff; }
  .gchip.on i { background: #fff; }

  .shopsec { padding: 44px 0 0; scroll-margin-top: 80px; }
  .shopsec:last-of-type { padding-bottom: 90px; }
  .shopsec > h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 6px; }
  .shopsec > .sub { font-size: 16.5px; font-weight: 600; color: var(--muted); margin-bottom: 28px; max-width: 620px; }

  .prodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
  .prod { background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
  .prod .ph { height: 170px; border-bottom: var(--bd); background: repeating-linear-gradient(45deg, #f3ead8 0 10px, #ecdfc6 10px 20px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--faded); position: relative; }
  .prod .flag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.03em; color: #fff; background: var(--c-jigsaw); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 11px; }
  .prod .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
  .prod h3 { font-size: 20px; line-height: 1.22; }
  .prod .why { font-size: 14.5px; font-weight: 600; color: var(--muted); flex: 1; }
  .prod .why strong { color: var(--ink); }

  .prices { border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; margin-top: 4px; }
  .prow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; text-decoration: none; font-size: 14.5px; font-weight: 700; background: #fff; transition: background 0.12s ease; }
  .prow + .prow { border-top: 2px solid var(--ink); }
  .prow:hover { background: color-mix(in oklch, var(--c) 18%, white); }
  .prow .store { display: flex; align-items: center; gap: 8px; }
  .prow .store i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 1.5px solid var(--ink); }
  .prow .price { font-family: var(--display); font-weight: 800; font-size: 15.5px; white-space: nowrap; }
  .prow.best { background: color-mix(in oklch, var(--c-sudoku) 20%, white); }
  .prow.best .price::after { content: ' · best'; font-size: 11.5px; font-weight: 900; color: var(--c-sudoku); }
  .prow .price small { font-weight: 700; color: var(--faded); }

  .howwe { margin: 72px 0 90px; background: color-mix(in oklch, var(--c) 20%, white); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 40px 48px; transform: rotate(0.4deg); }
  .howwe h2 { font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 16px; }
  .howwe ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 32px; }
  .howwe li { font-size: 15.5px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; }
  .howwe li::before { content: '✓'; font-weight: 900; color: var(--ink); }
  /* ── Sudoku hub ── */
  body { --c: var(--c-sudoku); }

  .crumbs { font-size: 14.5px; font-weight: 700; color: var(--faded); padding-top: 26px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs .sep { margin: 0 8px; }

  .hub-hero { display: flex; align-items: center; gap: 56px; padding: 40px 0 56px; flex-wrap: wrap; }
  .hub-hero .txt { flex: 1.4; min-width: 340px; }
  .hub-hero .kicker { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 16px; margin-bottom: 18px; }
  .hub-hero h1 { font-size: clamp(52px, 6vw, 76px); letter-spacing: -0.01em; }
  .hub-hero .what { font-size: 19.5px; font-weight: 600; color: var(--muted); margin: 18px 0 24px; max-width: 560px; }
  .hub-hero .what strong { color: var(--ink); }
  .facts { display: flex; gap: 10px; flex-wrap: wrap; }
  .fact { font-size: 14px; font-weight: 800; background: color-mix(in oklch, var(--c) 22%, white); border: 2px solid var(--ink); border-radius: 99px; padding: 5px 14px; }
  .hub-hero .art { flex: 1; min-width: 280px; display: grid; place-items: center; }
  .hub-hero .art .sticker { transform: rotate(4deg); padding: 22px; }
  .hub-hero .art .m-sudoku { transform: scale(1.75); transform-origin: center; margin: 32px; }

  /* sticky section chips */
  .pagenav { position: sticky; top: 0; z-index: 50; background: var(--cream); border-top: var(--bd); border-bottom: var(--bd); }
  .pagenav .row { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; }
  .pagenav a { font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); transition: background 0.12s ease; }
  .pagenav a:hover { background: color-mix(in oklch, var(--c) 25%, white); }

  .hubsec { padding: 72px 0 0; scroll-margin-top: 80px; }
  .hubsec > h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 8px; }
  .hubsec > .sub { font-size: 17px; font-weight: 600; color: var(--muted); margin-bottom: 32px; max-width: 640px; }

  /* How to start — 3 numbered cards */
  .startgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
  .startcard { background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 24px; transform: rotate(var(--rot, 0deg)); }
  .startcard .num { display: inline-grid; place-items: center; width: 44px; height: 44px; font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 14px; margin-bottom: 14px; }
  .startcard h3 { font-size: 21px; margin-bottom: 8px; }
  .startcard p { font-size: 15.5px; font-weight: 600; color: var(--muted); }
  .startcard p a { font-weight: 800; }

  /* Rules — grid demo + rule list */
  .rules { display: flex; gap: 48px; align-items: flex-start; flex-wrap: wrap; }
  .rules .demo { flex: 1; min-width: 320px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .rules .rlist { flex: 1.1; min-width: 320px; display: flex; flex-direction: column; gap: 18px; }

  .sgrid { display: grid; grid-template-columns: repeat(3, auto); gap: 5px; background: var(--ink); border: var(--bd); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  .sgrid .box { display: grid; grid-template-columns: repeat(3, 34px); gap: 2px; }
  .sgrid b { width: 34px; height: 34px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
  .sgrid b.hr { background: color-mix(in oklch, var(--c-sudoku) 38%, white); }
  .sgrid b.hb { background: color-mix(in oklch, var(--c-wordsearch) 45%, white); }
  .legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; font-weight: 700; color: var(--muted); }
  .legend span { display: inline-flex; align-items: center; gap: 8px; }
  .legend i { width: 16px; height: 16px; border: 2px solid var(--ink); border-radius: 4px; display: inline-block; }

  .rule { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: var(--bd); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
  .rule .rnum { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 12px; }
  .rule h4 { font-size: 17.5px; }
  .rule p { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 2px; }

  .tech { margin-top: 48px; }
  .tech h3 { font-size: 26px; margin-bottom: 18px; }
  .techgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
  .techcard { background: var(--paper); border: var(--bd); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-sm); }
  .techcard .lvl { font-size: 12.5px; font-weight: 900; letter-spacing: 0.02em; color: var(--ink); background: color-mix(in oklch, var(--c) 30%, white); border: 2px solid var(--ink); border-radius: 99px; padding: 2px 10px; display: inline-block; margin-bottom: 10px; }
  .techcard h4 { font-size: 18px; margin-bottom: 6px; }
  .techcard p { font-size: 14.5px; font-weight: 600; color: var(--muted); }
  .technote { margin-top: 18px; font-size: 15px; font-weight: 700; }

  /* Mistakes */
  .mistakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 18px; }
  .mistake { display: flex; gap: 16px; align-items: flex-start; background: var(--paper); border: var(--bd); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
  .mistake .x { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; font-weight: 900; font-size: 17px; color: #fff; background: var(--c-jigsaw); border: 2px solid var(--ink); border-radius: 50%; }
  .mistake h4 { font-size: 17.5px; }
  .mistake p { font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 2px; }

  /* Gear */
  .gear { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
  .gearcard { background: var(--paper); border: var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
  .gearcard .ph { height: 150px; border-bottom: var(--bd); background: repeating-linear-gradient(45deg, #f3ead8 0 10px, #ecdfc6 10px 20px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--faded); }
  .gearcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
  .gearcard h3 { font-size: 20px; }
  .gearcard p { font-size: 15px; font-weight: 600; color: var(--muted); flex: 1; }
  .gearcard .btn { font-size: 15px; padding: 8px 18px; }
  .disclosure { margin-top: 20px; font-size: 13.5px; font-weight: 600; color: var(--faded); }

  /* First month ladder */
  .ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: end; }
  .rung { background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px 22px; }
  .rung.w1 { margin-top: 72px; }
  .rung.w2 { margin-top: 48px; }
  .rung.w3 { margin-top: 24px; }
  .rung .wk { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 14px; margin-bottom: 12px; }
  .rung h3 { font-size: 20px; margin-bottom: 10px; }
  .rung ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .rung li { font-size: 14.5px; font-weight: 600; color: var(--muted); display: flex; gap: 10px; }
  .rung li::before { content: ''; flex-shrink: 0; width: 9px; height: 9px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--ink); margin-top: 7px; }
  @media (max-width: 1080px) { .rung { margin-top: 0 !important; } }

  /* next-hub cross-promo */
  .nexthub { margin: 84px 0 90px; background: color-mix(in oklch, var(--c) 16%, white); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 44px 52px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; transform: rotate(0.5deg); }
  .nexthub h2 { font-size: clamp(26px, 3vw, 34px); }
  .nexthub p { font-size: 16.5px; font-weight: 600; color: var(--muted); margin-top: 8px; }
  .nexthub .txt { flex: 1.4; min-width: 300px; }


/* Rails-backed additions */
.flash { margin: 18px auto 0; padding: 12px 18px; border: var(--bd); border-radius: 12px; background: var(--c-wordsearch); font-weight: 800; }
.guide-body { padding-bottom: 72px; }
.guide-body > *:first-child { margin-top: 0; }
.html-content a { text-decoration-thickness: 2px; }
.pzcard .thumb, .prod .thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-bottom: var(--bd); }
.guide-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; padding: 20px 0 90px; }
.guide-card { background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.guide-card h2 { font-size: 24px; margin: 10px 0 8px; }
.guide-card a { color: inherit; text-decoration: none; }
.guide-card p { color: var(--muted); font-weight: 600; }
.product-show { max-width: 820px; padding: 40px 0 90px; }
.product-show .prices { margin: 30px 0; }
.filterbar form { display: flex; flex-direction: column; gap: 8px; }

/* ── Login ── */
.auth-page { min-height: 62vh; display: grid; place-items: center; padding-top: 48px; padding-bottom: 88px; }
.auth-card { width: min(100%, 480px); background: var(--paper); border: var(--bd); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 42px; }
.auth-card .eyebrow { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faded); }
.auth-card h1 { font-size: clamp(34px, 5vw, 48px); margin: 5px 0 8px; }
.auth-card > p:not(.eyebrow, .auth-message) { color: var(--muted); font-weight: 600; }
.auth-form { display: grid; gap: 18px; margin-top: 28px; }
.auth-form div { display: grid; gap: 6px; }
.auth-form label { font-weight: 800; }
.auth-form input { width: 100%; padding: 12px 14px; border: var(--bd); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.auth-form input:focus { outline: 3px solid color-mix(in oklch, var(--c-sudoku) 40%, transparent); outline-offset: 2px; }
.auth-form .btn { justify-content: center; width: 100%; }
.auth-message { margin-top: 20px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: color-mix(in oklch, var(--c-sudoku) 15%, white); font-weight: 700; }
.auth-message.error { background: color-mix(in oklch, #d95151 20%, white); }
.nav .button_to { display: inline-flex; }
.nav-auth { white-space: nowrap; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 42px 0 6px; flex-wrap: wrap; }
.page-link { min-width: 42px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font-family: var(--display); font-weight: 700; text-align: center; text-decoration: none; }
.page-link:hover { background: var(--c-wordsearch); }
.page-link.current { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip-link { text-decoration: none; color: inherit; }
.pzcard a.pill { color: inherit; text-decoration: none; }
.pzcard .author { font-size: 13.5px; font-weight: 700; color: var(--faded); }
.pzcard .author a { color: inherit; font-weight: 800; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { align-items: flex-start; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; width: 46px; height: 42px; padding: 9px; flex-direction: column; justify-content: center; gap: 5px; border: var(--bd); border-radius: 12px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
  .nav-toggle span { display: block; width: 100%; height: 2.5px; border-radius: 2px; background: var(--ink); }
  .nav-toggle:focus-visible { outline: 3px solid var(--c-sudoku); outline-offset: 3px; }
  .nav-menu { display: none; width: 100%; order: 3; flex-direction: column; align-items: stretch; gap: 18px; padding: 16px 0 4px; }
  .nav-menu.is-open { display: flex; }
  .navlinks { width: 100%; flex-direction: column; gap: 4px; font-size: 17px; }
  .navlinks > a, .navdrop > a, .navdrop-label { display: block; padding: 9px 0; }
  .dropmenu { display: block; position: static; transform: none; padding: 0 0 6px 14px; }
  .dropmenu .inner { min-width: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .dropmenu a { padding: 7px 10px; }
  .nav-actions { width: 100%; flex-wrap: wrap; gap: 12px; }
  .nav-actions .button_to { display: inline-flex; }
  .hero { padding-top: 48px; }
  .suggest { padding: 28px 24px; }
  .frow .lbl { width: 100%; }
  .prod { grid-template-columns: 1fr; }
}

/* Daily puzzle controls and cards need a little more breathing room on tablets. */
@media (min-width: 761px) and (max-width: 1180px) {
  .filterbar .wrap,
  .results.wrap { padding-inline: clamp(36px, 6vw, 64px); }
}

/* Guide library and article templates (new2puzzles (1).zip) */
  body { --c: var(--c-crosswords); }
  .crumbs { font-size: 14.5px; font-weight: 700; color: var(--faded); padding-top: 26px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs .sep { margin: 0 8px; }

  .ghero { padding: 36px 0 14px; max-width: 720px; }
  .ghero h1 { font-size: clamp(44px, 5.4vw, 64px); letter-spacing: -0.01em; }
  .ghero p { font-size: 18.5px; font-weight: 600; color: var(--muted); margin-top: 14px; }

  /* topic filter */
  .gfilter { position: sticky; top: 0; z-index: 50; background: var(--cream); border-top: var(--bd); border-bottom: var(--bd); margin-top: 26px; }
  .gfilter .row { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; }
  .gfilter button { font-family: var(--display); font-weight: 700; font-size: 14.5px; white-space: nowrap; padding: 5px 16px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.12s ease; }
  .gfilter button i { width: 10px; height: 10px; border-radius: 50%; background: var(--gc, var(--c)); border: 1.5px solid var(--ink); }
  .gfilter button:hover { background: color-mix(in oklch, var(--gc, var(--c)) 20%, white); }
  .gfilter button.on { background: var(--gc, var(--c)); color: #fff; }
  .gfilter button.on i { background: #fff; }

  /* featured */
  .feat { display: flex; gap: 44px; align-items: stretch; background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; margin: 46px 0 8px; }
  .feat .ph { flex: 1; min-width: 280px; border-right: var(--bd); background: repeating-linear-gradient(45deg, #f3ead8 0 10px, #ecdfc6 10px 20px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--faded); }
  .feat .body { flex: 1.3; padding: 40px 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .feat .flag { font-size: 12px; font-weight: 900; letter-spacing: 0.04em; color: #fff; background: var(--c-jigsaw); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 13px; }
  .feat h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.14; }
  .feat p { font-size: 16.5px; font-weight: 600; color: var(--muted); }
  .feat .meta { font-size: 14px; font-weight: 700; color: var(--faded); }

  .glist { padding: 46px 0 90px; }
  .glist h3.rowhead { font-size: 15px; font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faded); margin-bottom: 22px; }
  .ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
  .gcard { background: var(--paper); border: var(--bd); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform 0.15s ease; display: flex; flex-direction: column; }
  .gcard:hover { transform: translate(-2px, -2px); }
  .gcard .ph { height: 158px; border-bottom: var(--bd); background: repeating-linear-gradient(45deg, #f3ead8 0 10px, #ecdfc6 10px 20px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 12px; color: var(--faded); }
  .gcard .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex: 1; }
  .gcard h3 { font-size: 20px; line-height: 1.25; }
  .gcard .meta { font-size: 14px; font-weight: 700; color: var(--faded); margin-top: auto; }
  .gcard[hidden] { display: none; }
  body { --c: var(--c-sudoku); }
  .crumbs { font-size: 14.5px; font-weight: 700; color: var(--faded); padding-top: 26px; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }
  .crumbs .sep { margin: 0 8px; }

  .arthead { max-width: 760px; padding: 34px 0 30px; }
  .arthead .pill { margin-bottom: 18px; }
  .arthead h1 { font-size: clamp(38px, 4.8vw, 58px); letter-spacing: -0.01em; line-height: 1.06; }
  .arthead .standfirst { font-size: 20px; font-weight: 600; color: var(--muted); margin-top: 18px; }
  .byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14.5px; font-weight: 700; color: var(--faded); flex-wrap: wrap; }
  .byline .av { width: 38px; height: 38px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink); flex-shrink: 0; }
  .byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faded); }
  .byline strong { color: var(--ink); }

  .artcover { height: clamp(220px, 34vw, 380px); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); background: repeating-linear-gradient(45deg, #f3ead8 0 12px, #ecdfc6 12px 24px); display: grid; place-items: center; font-family: ui-monospace, monospace; font-size: 13px; color: var(--faded); margin-bottom: 8px; }

  .artwrap { display: flex; gap: 56px; align-items: flex-start; padding: 52px 0 90px; }
  .toc { position: sticky; top: 24px; flex-shrink: 0; width: 220px; border-left: 3px solid color-mix(in oklch, var(--ink) 15%, transparent); padding-left: 20px; display: flex; flex-direction: column; gap: 11px; }
  .toc span.lbl { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faded); margin-bottom: 2px; }
  .toc a { font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .toc a:hover { color: var(--ink); }
  @media (max-width: 900px) { .artwrap { flex-direction: column; gap: 0; } .toc { display: none; } }

  .prose { max-width: 720px; }
  .prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 44px 0 14px; scroll-margin-top: 20px; }
  .prose h2:first-child { margin-top: 0; }
  .prose h3 { font-size: 21px; margin: 30px 0 10px; }
  .prose p { font-size: 17.5px; line-height: 1.62; font-weight: 500; color: #40372b; margin-bottom: 16px; }
  .prose p strong { color: var(--ink); font-weight: 800; }
  .prose a { font-weight: 700; }
  .prose ul { margin: 0 0 18px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .prose ul li { font-size: 17px; line-height: 1.55; font-weight: 500; color: #40372b; display: flex; gap: 12px; }
  .prose ul li::before { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--ink); margin-top: 8px; }

  .callout { background: color-mix(in oklch, var(--c) 16%, white); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 24px 28px; margin: 28px 0; }
  .callout .tag { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.03em; color: #fff; background: var(--c); border: 2px solid var(--ink); border-radius: 99px; padding: 3px 13px; display: inline-block; margin-bottom: 12px; }
  .callout p { font-size: 16.5px; margin-bottom: 0; }

  figure.fig { margin: 30px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  figure.fig .sgrid { display: grid; grid-template-columns: repeat(3, auto); gap: 5px; background: var(--ink); border: var(--bd); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  figure.fig .box { display: grid; grid-template-columns: repeat(3, 34px); gap: 2px; }
  figure.fig b { width: 34px; height: 34px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); }
  figure.fig b.hl { background: var(--c); color: #fff; }
  figure.fig figcaption { font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; max-width: 420px; }

  .artfoot { max-width: 720px; margin: 8px 0 0; border-top: var(--bd); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
  .artfoot .tags { display: flex; gap: 8px; flex-wrap: wrap; }
  .nextread { max-width: 720px; margin: 56px 0 90px; background: var(--paper); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
  .nextread .lbl { font-family: ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faded); }
  .nextread h3 { font-size: 22px; margin-top: 4px; }


.gfilter a { color: inherit; text-decoration: none; }
.feat { color: inherit; text-decoration: none; }
.artcover img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 2px); }
@media (max-width: 700px) {
  .feat { flex-direction: column; gap: 0; }
  .feat .ph { min-width: 0; min-height: 190px; border-right: 0; border-bottom: var(--bd); }
  .feat .body { padding: 28px 24px; }
}
