/* Mogi home page (layout v8 "Top picks", 3 Nov 2026, like the big game sites): Top picks for you (two big tiles),
   Featured games, New games, then a row for each kind of game. Every row is one line of up to six, no game shows twice,
   no badges; a game's name shows over its picture when pointed at. Loaded after site.css and shared/side.css on the home
   page only; written by tools/seo/site.py. */
.home{--gap:12px;--spring:cubic-bezier(.34,1.56,.64,1);--ease:cubic-bezier(.2,.8,.2,1)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- game cards: the picture is the card; the name sits on a soft shade at its foot ---------- */
.home .tile{position:relative;display:block;aspect-ratio:16/10;border-radius:12px;overflow:hidden;isolation:isolate;background:var(--surface);
  box-shadow:0 0 0 1px #ffffff0d,0 8px 18px -12px #000c;transition:transform .25s var(--spring),box-shadow .25s}
.home .tile .thumb,.home .tile:hover .thumb{position:absolute;inset:0;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none;transform:none}
.home .tile img{width:100%;height:100%;object-fit:cover;display:block}
.home .tile .card-clip{height:100%;aspect-ratio:auto}
.home .tile h3{position:absolute;left:0;right:0;bottom:0;z-index:3;margin:0;padding:24px 10px 8px;font:700 13px var(--text);color:#fff;
  background:linear-gradient(180deg,transparent,#000b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;transform:translateY(6px);transition:opacity .2s var(--ease),transform .2s var(--ease)}
.home .tile:hover,.home .tile:focus-visible{transform:scale(1.04);z-index:4;box-shadow:0 0 0 3px var(--c,var(--mogi)),0 18px 34px -14px #000;
  outline:0}
.home .tile:hover h3,.home .tile:focus-visible h3{opacity:1;transform:none}
.home .tile .tag{z-index:3;top:8px;left:8px;padding:4px 8px;font-size:10.5px}
.home .tile[hidden]{display:none}
/* a cover with the name painted on: the name stays in the page for search and screen readers, not on top of the picture */
.home .tile.named h3,.home .tile.named:hover h3{opacity:0;transform:none;background:none}

/* ---------- rows: the title (› when it opens a page) over one line of cards ---------- */
.home .row{margin-top:30px;scroll-margin-top:90px}
.home .row:first-of-type,.home .search-results + .row,.home #recentRow[hidden] + .row{margin-top:6px}
.rh{display:inline-flex;align-items:center;gap:8px;margin-bottom:14px}
.rh h2{margin:0;font:800 clamp(22px,1.9vw,28px)/1.1 var(--display);letter-spacing:-.025em}
.rh span{font:700 26px/1 var(--text);color:var(--muted);transition:transform .2s var(--ease),color .2s}
a.rh:hover span{transform:translateX(3px);color:var(--ink)}
a.rh:focus-visible{outline:3px solid var(--cyan);outline-offset:4px;border-radius:8px}
.six{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap)}
/* the upgraded games under Top picks: 6 across, 3 rows; two big tiles corner to corner, two wide ones, six small */
.bento{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row dense;gap:var(--gap)}
.bento .tile.big-a,.bento .tile.big-b,.bento .tile.wide-a,.bento .tile.wide-b{aspect-ratio:auto}
.bento .tile.wide-a img,.bento .tile.wide-b img{object-position:50% 100%}   /* keep the painted name at the foot */
.bento .tile.big-a{grid-column:1/3;grid-row:1/3}
.bento .tile.wide-a{grid-column:5/7;grid-row:1}
.bento .tile.big-b{grid-column:5/7;grid-row:2/4}
.bento .tile.wide-b{grid-column:1/3;grid-row:3}
.bento .tile.big-a:not(.named) h3,.bento .tile.big-b:not(.named) h3{font-size:18px;padding:34px 14px 12px;opacity:1;transform:none}

/* Top picks for you: the first and last are big (two rows high), four small ones between them */
.picks{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-flow:row dense;gap:var(--gap)}
.picks .tile.big{aspect-ratio:auto;grid-row:1/3}
.picks .tile.big:first-child{grid-column:1/3}
.picks .tile.big:last-child{grid-column:5/7}
.picks .tile.big h3{font-size:18px;padding:34px 14px 12px;opacity:1;transform:none}

/* Recently played sits on top when this browser has played something (site.js fills it) */
.home #recentRow .rh{margin-bottom:10px}

/* search results: every game in a grid while something is typed */
.home .search-results .grid{gap:var(--gap)}

/* ---------- the seasonal panel (Spooky season in October; its look is in site.css): a shelf you scroll sideways ---------- */
.home .row.season{margin-top:36px}
.shelf-head{display:flex;align-items:flex-end;gap:12px;margin-bottom:4px;position:relative}
.shelf-head h2{margin:0;padding-bottom:4px;font:800 22px var(--display);letter-spacing:-.02em;display:flex;align-items:center;gap:10px}
.shelf-head .sub{padding-bottom:7px;color:var(--muted);font-size:13px;font-weight:600}
.shelf-head .see{margin-left:auto;padding:8px 12px;border-radius:10px;font-weight:700;font-size:13.5px;color:var(--muted);white-space:nowrap}
.shelf-head .see:hover{background:var(--surface);color:var(--ink)}
.home .row.season .shelf-head h2{color:#FFB15C}
.arrows{display:flex;gap:6px;padding-bottom:4px}
.arrows button{width:34px;height:34px;border-radius:12px;border:0;background:var(--surface);color:var(--ink);font-size:18px;line-height:1;cursor:pointer;
  transition:transform .2s var(--spring)}
.arrows button:hover{background:var(--surface-2);transform:translateY(-2px)}
.arrows button:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.track{position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 5*var(--gap))/6);gap:var(--gap);overflow-x:auto;
  scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:10px 4px 16px;scrollbar-width:none}
.track::-webkit-scrollbar{display:none}
.track .tile{scroll-snap-align:start}

.home .about{margin-top:48px}

@media (max-width:1200px){
  .track{grid-auto-columns:calc((100% - 3*var(--gap))/4)}
}
@media (max-width:760px){
  .home{--gap:8px}
  .six,.bento{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bento .tile.big-a,.bento .tile.big-b,.bento .tile.wide-a,.bento .tile.wide-b{grid-column:span 2;grid-row:auto;aspect-ratio:16/10}
  .picks{grid-template-columns:repeat(2,minmax(0,1fr))}
  .picks .tile.big:first-child,.picks .tile.big:last-child{grid-column:span 2;grid-row:auto;aspect-ratio:16/10}
  .rh h2{font-size:21px}
  .rh span{font-size:22px}
  .track{grid-auto-columns:58%}
  .arrows{display:none}
  .shelf-head{flex-wrap:wrap}
}
@media (hover:none){.home .tile h3{opacity:1;transform:none}}     /* phones and tablets: no pointing, so names always show */
@media (prefers-reduced-motion:reduce){
  .home .tile,.home .tile h3,.rh span,.arrows button{transition:none}
  .track{scroll-behavior:auto}
}
