/* Front-door improvements; existing games and utility layouts keep their rules. */
header #main-nav{gap:3px}
header #main-nav a{min-height:44px;display:flex;align-items:center}
.quick-nav{background:#edf0e8;border-bottom:1px solid var(--line);gap:0 24px;padding:3px 16px}
.quick-nav a{min-height:44px;display:inline-flex;align-items:center;font-size:13px}
.quick-nav a[aria-current]{text-decoration-thickness:3px;text-underline-offset:5px}
.ad-hero-copy>p:not(.eyebrow){max-width:34ch}
.ad-choice-links a{min-width:0}
.ad-play-spread{background:#e2e7dd}
#new-game.home-photo-game{display:grid;grid-template-columns:minmax(110px,.75fr) minmax(0,1.25fr);gap:12px 18px;max-width:570px}
#new-game.home-photo-game>.ad-demo-heading{grid-column:1/-1;grid-row:1;margin:0}
#new-game.home-photo-game>.hairold-companion{grid-column:1;grid-row:2;margin:0 -8px 0 0;display:block;width:auto;border:0;background:transparent;box-shadow:none;transform:none;align-self:center;z-index:0}
#new-game.home-photo-game>.hairold-companion img{display:block;width:100%;height:235px;object-fit:cover;object-position:50% 40%;border-radius:48% 48% 8px 8px}
#new-game.home-photo-game>.hairold-companion figcaption{padding:8px 0 0;font-size:13px}
#new-game.home-photo-game .companion-label{display:none}
#new-game.home-photo-game>#play-board{grid-column:2;grid-row:2;align-self:center;margin:0;width:100%;max-width:none;border-width:6px;gap:5px}
#new-game.home-photo-game>.game-toolbar,#new-game.home-photo-game>#new-status,#new-game.home-photo-game>#new-stats,#new-game.home-photo-game>#new-best,#new-game.home-photo-game>[data-score-card]{grid-column:1/-1;margin:0}
#new-game.home-photo-game .game-toolbar{margin-top:6px}
#new-game.home-photo-game #play-board button{min-height:44px;font-size:14px}
@media(max-width:900px){header #main-nav:not(.open){display:none}header #main-nav.open{display:flex}.quick-nav{gap:0 18px}.ad-play-spread{grid-template-columns:1fr;gap:22px}.ad-play-copy h2{font-size:clamp(2.3rem,5vw,3.4rem)}.ad-play-copy p:not(.eyebrow){max-width:50ch}}
@media(max-width:700px){.quick-nav{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:4px 22px}.quick-nav a{font-size:13px;justify-content:center}.ad-home-hero{padding-top:24px}.ad-hero-copy h1{font-size:clamp(3.1rem,12vw,4.5rem)}.ad-hero-photo{height:280px}.ad-choose{padding-block:28px}.ad-choose h2{font-size:2.3rem}.ad-choice-links a{font-size:17px;min-height:76px}.ad-play-spread{padding:28px 22px 34px}.ad-play-copy h2{font-size:2.3rem;margin:12px 0}.ad-play-copy p{margin-bottom:14px}#new-game.home-photo-game{grid-template-columns:minmax(88px,.65fr) minmax(0,1.35fr);gap:10px 12px;max-width:430px}#new-game.home-photo-game>.hairold-companion img{height:190px}#new-game.home-photo-game>.hairold-companion figcaption{font-size:12px;line-height:1.35}#new-game.home-photo-game>#play-board{border-width:5px;gap:4px}#new-game.home-photo-game #play-board button{min-height:44px;font-size:12px}#new-game.home-photo-game .btn{min-height:46px;padding:10px 15px;font-size:15px}}
@media print{.quick-nav{display:none!important}}

/* Text enlargement and short mobile viewports must not trap navigation. */
#new-game.home-photo-game{min-width:0}
#new-game.home-photo-game>*{min-width:0}
#new-game.home-photo-game>#play-board{aspect-ratio:auto}
#new-game.home-photo-game #play-board button{font-size:.875rem;line-height:1.25;overflow-wrap:anywhere;min-height:48px;padding:4px 2px}
#new-game.home-photo-game>.hairold-companion figcaption{font-size:.875rem;overflow-wrap:anywhere}
#new-game.home-photo-game .game-toolbar{flex-wrap:wrap}
#new-game.home-photo-game .game-toolbar .btn{white-space:normal;font-size:1rem}
@media(max-width:900px){header #main-nav.open{max-height:70vh;max-height:70dvh;overflow-y:auto;overscroll-behavior-y:contain}header #main-nav a{flex-shrink:0;white-space:normal;overflow-wrap:anywhere}header .menu{min-height:44px}.quick-nav a{white-space:normal;text-align:center}}
/* Shared directories: readable titles and specific next actions, without extra cards. */
.ad-directory-entry,.ad-game-card,.ad-mast-copy{min-width:0}
.ad-directory-entry h3,.ad-game-card h3{overflow-wrap:anywhere;text-wrap:pretty}
.ad-directory-entry .eyebrow{font-size:.75rem;margin-bottom:0}
.ad-directory-entry h3{font-size:clamp(1.3rem,2.2vw,1.65rem);line-height:1.2}
.ad-guide-directory .ad-directory-entry:first-child h3{font-size:clamp(1.8rem,2.8vw,2.6rem)}
.ad-guide-directory .ad-directory-entry:first-child .ad-entry-number{font-size:2.25rem}
.ad-directory-entry strong,.ad-game-card>strong{font-size:.9375rem;min-height:44px;display:flex;align-items:center}
.hub-return{padding-top:12px;padding-bottom:12px;font-size:.9375rem}
.hub-return a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.ad-reading .article{overflow-wrap:anywhere}
.ad-reading .article p,.ad-reading .article li{max-width:65ch}
.ad-reading .article h2{scroll-margin-top:20px}
.related-links .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.related-links .activity-card{background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:20px 0 0;box-shadow:none}
.related-links h2{font-size:1.8rem}
.related-links .activity-card h3{font-size:1.3rem}
.related-links .activity-card strong{min-height:44px;display:flex;align-items:center}
@media(max-width:820px){.ad-directory{grid-template-columns:1fr}.ad-guide-directory .ad-directory-entry:first-child{grid-row:auto;margin-bottom:0}.ad-directory-entry p{max-width:60ch}}
@media(max-width:600px){.art-directed #game-catalog{grid-template-columns:1fr}.related-links .activity-grid{grid-template-columns:1fr;gap:12px}.ad-mast-copy>p:last-child{font-size:1rem}.hub-return{padding-top:4px;padding-bottom:4px}}
@media(max-width:480px){.art-directed .ad-directory-entry{grid-template-columns:28px minmax(0,1fr);column-gap:12px;padding-block:20px}.ad-entry-number{font-size:1.35rem}.ad-directory-entry p{font-size:1rem}.ad-guide-directory .ad-directory-entry:first-child{padding:22px}.ad-guide-directory .ad-directory-entry:first-child p{font-size:1rem}}
@media print{.hub-return{display:none!important}}

/* Direct routes to useful tasks, using existing destinations. */
.task-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-top:24px;padding-bottom:4px}
.task-routes a{display:flex;flex-direction:column;gap:8px;justify-content:center;min-width:0;min-height:76px;padding:14px 0;border-bottom:2px solid var(--teal);text-decoration:none;overflow-wrap:anywhere}
.task-routes span{font-size:.875rem;color:var(--muted)}
.task-routes strong{font-size:1.125rem;line-height:1.35}
.task-routes a:hover strong{text-decoration:underline;text-underline-offset:4px}
#site-search{font-size:1rem;min-height:48px;width:100%;max-width:100%}
.search-results a{min-height:48px;overflow-wrap:anywhere}
header #main-nav a,.quick-nav a,header .menu{min-height:48px}
@media(max-width:700px){.task-routes{grid-template-columns:1fr;gap:0;padding-top:10px;padding-bottom:0}.task-routes a{min-height:72px;padding-block:12px;gap:4px}.task-routes strong{font-size:1.0625rem}}
/* Eight clear destinations may wrap with enlarged text without overflowing. */
header #main-nav{flex-wrap:wrap;min-width:0}header .top>.brand{flex-shrink:0}
@media(max-width:900px){header #main-nav.open{flex-wrap:nowrap}header #main-nav a{width:100%}}
