/* Dedicated tablet layout. Mobile (<768px) and desktop (>=1024px) keep their existing layout. */
@media (min-width: 768px) and (max-width: 1023.98px) {
    .module-home .module-home-container { padding-top: 32px; }
    .module-home .module-home-container > * + * { margin-top: 28px; }
    .module-home .module-home-hero { gap: 24px; padding-bottom: 24px; }
    .module-home .module-home-intro { width: auto; flex: 1; }
    .module-home .module-home-intro h1 { font-size: 2.5rem; line-height: 1.1; }
    .module-home .module-home-demo { width: 220px; max-width: 220px; }

    .module-home .module-home-daily {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }
    .module-home [data-daily-challenge] { margin-bottom: 0; justify-content: center; }
    .module-home [data-daily-streak] { border-top: 0; border-left: 1px solid #f1f5f9; padding-top: 0; padding-left: 24px; }
    .module-home .module-home-levels { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
    .module-home .module-home-levels > a { padding: 12px 8px; min-height: 96px; }
    .module-home .module-home-levels h3,
    .module-home .module-home-levels h4 { font-size: 14px; letter-spacing: normal; text-align: center; overflow-wrap: anywhere; }

    .module-home .module-home-reading { gap: 24px; }
    .module-home #puzzle-info { order: 1; }
    .module-home [data-expanded-guide] { order: 2; }
    .module-home .module-home-books { order: 3; }
    .module-home .module-home-reading [data-home-section-counter] { display: none; }
    .module-home .module-home-instructions,
    .module-home [data-expanded-guide] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .module-home .module-home-instructions > *,
    .module-home .module-home-instructions > :not([hidden]) ~ :not([hidden]) { margin-top: 0; margin-bottom: 0; }
    .module-home .module-home-reading article { padding: 24px; min-width: 0; }
    .module-home .module-home-reading article h3 { font-size: 20px; line-height: 1.4; }
    .module-home .module-home-reading article[data-tablet-wide="true"] { grid-column: 1 / -1; }
}

/* Keep single-level games aligned with the standard difficulty cards. */
.module-home .module-home-levels:has(> a:only-child) {
    grid-template-columns: minmax(0, 180px);
}
