/* Games screen on upright phones (pairs with games-phone.js): logo, Today's game card, two swipe pages, dots. */
html body .gm-screen.gm-paged{flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:var(--gp-gap,10px)!important;padding:10px 14px 8px!important}
html body .gm-screen.gm-paged .gm-art-heading{flex:none;display:flex;justify-content:center}
html body .gm-screen.gm-paged .gm-art-heading img{max-height:var(--gp-logo,70px)!important;width:auto!important;max-width:100%!important;height:auto!important}
/* Today's game */
html body .gm-screen.gm-paged .gm-hero{flex:none;align-self:center;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;width:calc(var(--gp-cell) * 3 + var(--gp-gap) * 2);height:calc(var(--gp-cell) * .8);padding:6px 12px 6px 6px;border:0;border-radius:calc(var(--gp-cell) * .2);background:linear-gradient(135deg,#fff6d8,#ffe0ef);box-shadow:inset 0 0 0 3px #ffe18d,0 6px 14px #6b4a6522;cursor:pointer;text-align:left;color:#4a2f63;font:inherit}
html body .gm-screen.gm-paged .gm-hero:active{translate:0 2px}
html body .gm-screen.gm-paged .gm-hero-art{height:100%;aspect-ratio:1;border-radius:22%;overflow:hidden;box-shadow:0 3px 8px #6b4a6530}
html body .gm-screen.gm-paged .gm-hero-art img{width:100%;height:100%;object-fit:cover;display:block}
html body .gm-screen.gm-paged .gm-hero-txt{display:grid;gap:2px;min-width:0}
html body .gm-screen.gm-paged .gm-hero-txt small{font-size:clamp(11px,3.2vw,14px);font-weight:900;color:#e0559a}
html body .gm-screen.gm-paged .gm-hero-txt b{font:900 clamp(17px,5.4vw,24px)/1.1 "Grandstander",ui-rounded,system-ui,sans-serif;overflow-wrap:anywhere}
html body .gm-screen.gm-paged .gm-hero-play{width:calc(var(--gp-cell) * .46);height:calc(var(--gp-cell) * .46);border-radius:50%;display:grid;place-items:center;background:linear-gradient(#ffd85c,#f4b62b);color:#fff;box-shadow:0 4px 0 #d0901a,0 6px 10px #b8801f55}
html body .gm-screen.gm-paged .gm-hero-play svg{width:52%;height:52%;margin-left:8%}
/* the swipe pages */
html body .gm-screen.gm-paged .gm-pages{flex:none;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 -14px;overscroll-behavior-x:contain}
html body .gm-screen.gm-paged .gm-pages::-webkit-scrollbar{display:none}
html body .gm-screen.gm-paged .gm-page{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;display:flex;justify-content:center;align-items:flex-start;height:calc(var(--gp-cell) * 3 + var(--gp-gap) * 2)}
html body .gm-screen.gm-paged .gm-page .gm-grid.gm-pgrid{flex:none!important;display:grid!important;width:auto!important;height:auto!important;padding:0!important;gap:var(--gp-gap)!important;grid-template-columns:repeat(3,var(--gp-cell))!important;grid-template-rows:repeat(var(--r,3),var(--gp-cell))!important;align-self:flex-start!important}
html body .gm-screen.gm-paged .gm-pgrid .gm-tile{width:var(--gp-cell)!important;height:var(--gp-cell)!important}
html body .gm-screen.gm-paged .gm-pgrid .gm-bonus .gm-bonus-emoji{display:grid;place-items:center;width:100%;height:100%;background:#fff;font-size:calc(var(--gp-cell) * .45)}
/* page dots */
html body .gm-screen.gm-paged .gm-dots{flex:none;display:flex;justify-content:center;gap:10px;padding:2px 0}
html body .gm-screen.gm-paged .gm-dots button{width:10px;height:10px;padding:0;border:0;border-radius:99px;background:#d9cbe8;cursor:pointer;transition:width .2s,background .2s}
html body .gm-screen.gm-paged .gm-dots button.on{width:26px;background:#9a7ad8}
/* Today's game replaces the Featured badge on phones */
html body.ui2.gm-open .gm-screen.gm-paged .gm-tile.gm-studio::before{display:none!important}
/* fixes: the hero keeps the grid's exact width; the old shelf marker never shows */
html body .gm-screen.gm-paged>.gm-hero{width:calc(var(--gp-cell) * 3 + var(--gp-gap) * 2)!important;max-width:100%!important;min-width:0!important;height:calc(var(--gp-cell) * .8)!important;margin:0 auto!important;flex:none!important;align-self:center!important}
html body .gm-screen.gm-paged .gm-unlocks{display:none!important}
/* real iPhone Safari: percentage heights inside the hero didn't resolve and the picture grew to its full size.
   Every hero part now has an explicit size from the card size, and nothing can spill out. */
html body .gm-screen.gm-paged>.gm-hero{overflow:hidden!important;grid-template-columns:calc(var(--gp-cell) * .8 - 12px) minmax(0,1fr) calc(var(--gp-cell) * .46)!important;padding:6px 12px 6px 6px!important;box-sizing:border-box!important}
html body .gm-screen.gm-paged .gm-hero-art{width:calc(var(--gp-cell) * .8 - 12px)!important;height:calc(var(--gp-cell) * .8 - 12px)!important;max-width:none!important;aspect-ratio:auto!important;position:relative!important;overflow:hidden!important}
html body .gm-screen.gm-paged .gm-hero-art img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important}
html body .gm-screen.gm-paged .gm-hero-txt b{font-size:clamp(16px,4.8vw,22px)!important;overflow-wrap:normal!important;word-break:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html body .gm-screen.gm-paged .gm-hero-play{width:calc(var(--gp-cell) * .46)!important;height:calc(var(--gp-cell) * .46)!important;flex:none!important}
/* wide screens (iPad sideways, computers; games-phone.js sets .gm-wide): Today's game is a tall poster on the left,
   the 3x3 swipe pages fill the right, the dots sit under the pages */
html body .gm-screen.gm-paged.gm-wide{display:grid!important;grid-template-columns:var(--gw-hero) calc(var(--gp-cell) * 3 + var(--gp-gap) * 2)!important;grid-template-rows:auto auto auto!important;column-gap:calc(var(--gp-gap) * 2.4)!important;row-gap:var(--gp-gap)!important;justify-content:center!important;align-content:center!important}
html body .gm-screen.gm-paged.gm-wide .gm-art-heading{grid-column:1/-1;grid-row:1}
html body .gm-screen.gm-paged.gm-wide>.gm-hero{grid-column:1;grid-row:2;width:var(--gw-hero)!important;height:calc(var(--gp-cell) * 3 + var(--gp-gap) * 2)!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr) auto!important;justify-items:center!important;align-items:center!important;text-align:center!important;gap:calc(var(--gp-cell) * .05)!important;padding:calc(var(--gp-cell) * .1)!important;border-radius:calc(var(--gp-cell) * .22)!important;box-shadow:inset 0 0 0 4px #ffe18d,0 10px 24px #6b4a6526!important}
html body .gm-screen.gm-paged.gm-wide .gm-hero-art{width:calc(var(--gw-hero) - var(--gp-cell) * .2)!important;height:calc(var(--gw-hero) - var(--gp-cell) * .2)!important;border-radius:20%!important;box-shadow:0 6px 16px #6b4a6533!important}
html body .gm-screen.gm-paged.gm-wide .gm-hero-txt{justify-items:center}
html body .gm-screen.gm-paged.gm-wide .gm-hero-txt small{font-size:clamp(13px,calc(var(--gp-cell) * .1),20px)!important}
html body .gm-screen.gm-paged.gm-wide .gm-hero-txt b{font-size:clamp(20px,calc(var(--gp-cell) * .19),38px)!important}
html body .gm-screen.gm-paged.gm-wide .gm-hero-play{width:calc(var(--gp-cell) * .5)!important;height:calc(var(--gp-cell) * .5)!important}
html body .gm-screen.gm-paged.gm-wide .gm-pages{grid-column:2;grid-row:2;margin:0!important;width:calc(var(--gp-cell) * 3 + var(--gp-gap) * 2)}
html body .gm-screen.gm-paged.gm-wide .gm-dots{grid-column:2;grid-row:3}
/* two pages, made obvious (Mac, 10/18): a white pager pill under the cards: back arrow, dots, next arrow */
html body .gm-screen.gm-paged .gm-dots{flex:none;align-self:center;justify-self:center;display:flex!important;align-items:center;gap:12px!important;padding:5px!important;margin:2px auto 0;border-radius:999px;background:#fffdf7;border:2px solid #fff;box-shadow:0 4px 0 #e6d6ef,0 8px 18px #6b4a6526}
html body .gm-screen.gm-paged .gm-dots .gm-dot{width:16px!important;height:16px!important;padding:0;border:0;border-radius:99px;background:#dccdee!important;box-shadow:inset 0 1px 2px #6b4a6533;cursor:pointer;transition:width .25s,background .25s}
html body .gm-screen.gm-paged .gm-dots .gm-dot.on{width:44px!important;background:#8a63d6!important}
html body .gm-screen.gm-paged .gm-dots .gm-arrow{width:var(--ga-size,44px);height:var(--ga-size,44px);padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#b99cf0,#8f6ddb);color:#fff;box-shadow:0 3px 0 #6f50b3;cursor:pointer;transition:opacity .25s,filter .25s}
html body .gm-screen.gm-paged .gm-dots .gm-arrow svg{width:56%;height:56%}
html body .gm-screen.gm-paged .gm-dots .gm-arrow:active{translate:0 2px;box-shadow:0 1px 0 #6f50b3}
/* the arrow for the page you're already on rests grey */
html body .gm-screen.gm-paged[data-page="0"] .gm-dots .gm-prev,html body .gm-screen.gm-paged.gm-on-last .gm-dots .gm-next{background:#e8def3;color:#b7a5cf;box-shadow:none;pointer-events:none}
html body .gm-screen.gm-paged:not(.gm-pages-seen)[data-page="0"] .gm-dots .gm-next{animation:gm-nudge 1.4s ease-in-out infinite}
@keyframes gm-nudge{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
@media(min-width:700px){html body .gm-screen.gm-paged{--ga-size:52px}}
@media(prefers-reduced-motion:reduce){html body .gm-screen.gm-paged .gm-next{animation:none!important}}
@media(max-width:699px){html body .gm-screen.gm-paged{--ga-size:34px}html body .gm-screen.gm-paged .gm-dots{padding:3px!important;gap:10px!important}html body .gm-screen.gm-paged .gm-dots .gm-dot{width:13px!important;height:13px!important}html body .gm-screen.gm-paged .gm-dots .gm-dot.on{width:34px!important}}
/* a lone card on the last row sits in the middle, not hanging off the left (page 2 has 7) */
html body .gm-screen.gm-paged .gm-pgrid>.gm-tile:last-child:nth-child(3n+1){grid-column:2!important}

/* the pages are ordered by age (easiest first), so each page dot is its level (Mac, 10/19): the open page reads "Level 2", the others just their number */
html body .gm-screen.gm-paged .gm-dots .gm-dot{width:auto!important;min-width:30px;height:30px!important;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;font:900 15px/1 "Grandstander",ui-rounded,"SF Pro Rounded",system-ui,sans-serif;color:#8a72b0;white-space:nowrap}
html body .gm-screen.gm-paged .gm-dots .gm-dot .gm-lv{display:none}
html body .gm-screen.gm-paged .gm-dots .gm-dot.on{width:auto!important;padding:0 14px;color:#fff;box-shadow:0 2px 0 #6f50b3}
html body .gm-screen.gm-paged .gm-dots .gm-dot.on .gm-lv{display:inline;white-space:pre}
/* iPad: a bigger level pager to match the bigger cards (Mac, 10/19) */
@media(min-width:700px){html body .gm-screen.gm-paged{--ga-size:62px}
 html body .gm-screen.gm-paged .gm-dots{gap:14px!important;padding:7px!important}
 html body .gm-screen.gm-paged .gm-dots .gm-dot{min-width:42px;height:42px!important;padding:0 12px;font-size:21px}
 html body .gm-screen.gm-paged .gm-dots .gm-dot.on{padding:0 20px}}
@media(min-width:700px) and (min-height:1000px){html body .gm-screen.gm-paged{--ga-size:72px}
 html body .gm-screen.gm-paged .gm-dots .gm-dot{min-width:50px;height:50px!important;font-size:25px}}

/* short wide windows (10/20): the logo stays inside its row (it spilled onto the top cards) and Today's picture leaves room for its words */
html body .gm-screen.gm-paged.gm-wide .gm-art-heading,html body.ui2.gm-open .gm-screen.gm-paged.gm-wide .gm-art-heading:has(.gm-logo-line){height:var(--gp-logo)!important;display:flex!important;justify-content:center!important;align-items:center!important;overflow:visible}
html body .gm-screen.gm-paged.gm-wide .gm-art-heading img,html body.ui2.gm-open .gm-screen.gm-paged.gm-wide .gm-art-heading img.gm-logo-line{height:var(--gp-logo)!important;max-height:var(--gp-logo)!important;width:auto!important;max-width:100%!important;object-fit:contain}
html body .gm-screen.gm-paged.gm-wide .gm-hero-art{width:min(calc(var(--gw-hero) - var(--gp-cell) * .2),calc(var(--gp-cell) * 1.45))!important;height:min(calc(var(--gw-hero) - var(--gp-cell) * .2),calc(var(--gp-cell) * 1.45))!important}
html body .gm-screen.gm-paged.gm-wide .gm-dots{justify-self:center}
