/* One screen, three featured games, with the original portal artwork. */
html:has(body.home){height:100%;overflow:hidden}
body.home{height:100svh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.home>header{flex:0 0 auto}
body.home main{flex:1 1 auto;min-height:0;width:100%;padding:0 clamp(12px,3vw,48px);display:flex;align-items:flex-end}
body.home .home-featured{margin:0 auto;width:100%;max-width:1400px;min-height:0}
body.home .section-heading{margin:0 0 10px;padding:0 4px;gap:12px;flex-wrap:nowrap}
body.home .section-heading h2{font-size:clamp(12px,1.2vw,16px);white-space:nowrap}
body.home .browse-link{font-size:clamp(11px,1.1vw,14px);padding:9px 16px;white-space:nowrap}
html[data-layout] body.home .featured-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-radius:16px}
body.home .game-card{min-width:0}
body.home .featured-list .game-card+.game-card{border-left:1px solid var(--line);border-top:0}
body.home .featured-game{display:flex;flex-direction:column;gap:9px;padding:clamp(8px,1vw,14px);height:100%;min-width:0}
body.home .featured-art{min-width:0;overflow:hidden;border-radius:9px}
body.home .featured-art .cover{display:block;width:100%;height:clamp(54px,13dvh,136px);aspect-ratio:auto;border-radius:9px;object-fit:cover}
body.home .featured-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
body.home .featured-caption h2{margin:0;font:600 clamp(14px,1.75vw,24px)/1.15 Outfit,system-ui,sans-serif;color:var(--text)}
body.home .featured-play{flex:0 0 auto;font-size:12px;color:#f5d48b;white-space:nowrap}
body.home .featured-play span{padding-left:3px}
body.home .featured-game:is(:hover,:focus-visible){background:#18324a99;outline-offset:-4px}
body.home .featured-game:is(:hover,:focus-visible) h2{color:var(--gold)}
body.home>footer{flex:0 0 auto;width:94%;margin:9px auto;padding:0 4px;gap:12px;line-height:1.3;font-size:10px;flex-wrap:nowrap}
@media(max-width:700px){
 body.home>header{padding:10px 14px!important;gap:8px!important}
 body.home>header nav{gap:8px!important}
 body.home>header nav a{font-size:12px}
 body.home .layout-controls{padding:3px;font-size:11px}
 body.home .layout-controls button{min-height:30px!important;padding:6px 9px}
 body.home .section-heading{gap:8px;margin-bottom:8px}
 body.home .browse-link{padding:8px 11px}
 body.home .featured-game{padding:7px;gap:7px}
 body.home .featured-caption{flex-direction:column;align-items:flex-start;gap:5px}
 body.home .featured-caption h2{font-size:clamp(12px,3.4vw,18px);min-height:2.3em;display:flex;align-items:center}
 body.home .featured-play{font-size:11px}
 body.home>footer{font-size:9px;gap:6px;align-items:center}
 body.home>footer>a:last-child{font-size:0}
 body.home>footer>a:last-child::after{content:'Support';font-size:9px}
}
@media(max-height:520px){
 body.home>header{padding-top:6px!important;padding-bottom:6px!important;row-gap:5px!important}
 body.home .brand{font-size:20px}
 body.home .logo-icon{height:30px}
 body.home .layout-controls button{min-height:28px!important;padding-top:4px;padding-bottom:4px}
 body.home .featured-game{padding:6px;gap:5px}
 body.home .featured-art .cover{height:clamp(35px,10dvh,54px)}
 body.home .featured-caption h2{font-size:14px;min-height:0}
 body.home .featured-caption{flex-direction:row;align-items:center}
 body.home .featured-play{font-size:10px}
 body.home .section-heading{margin-bottom:6px}
 body.home .browse-link{padding:6px 12px}
 body.home>footer{margin:5px auto}
}

/* Keep the portal link compatible with page-wide HTML link handling. */
body.home .portal-link{position:absolute;inset:0;pointer-events:none}
body.home .portal-hit{pointer-events:all}
