/* Play screen spacing (pairs with play-grid.js). Every card is the same size with the same rounded corners. */
html body.gm-open .gm-screen .gm-grid .gm-tile{width:100%!important;height:100%!important;scale:none!important;border-radius:20%!important}
html body.gm-open .gm-screen .gm-grid .gm-tile .gm-icon{width:100%!important;height:100%!important;border-radius:20%!important;overflow:hidden!important}
html body.gm-open .gm-screen .gm-grid .gm-tile .gm-icon img.gm-card-picture{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:20%!important}
/* Featured: a ring drawn inside the card, so Studio is exactly the same size as the others */
html body.gm-open .gm-screen .gm-grid .gm-tile.gm-studio .gm-icon img.gm-card-picture{box-shadow:none!important}
html body.gm-open .gm-screen .gm-grid .gm-tile.gm-studio .gm-icon::after{content:'';position:absolute;inset:0;border-radius:20%;box-shadow:inset 0 0 0 3px #ffe18d,inset 0 0 0 5px #fffdf4;pointer-events:none}
html body.gm-open .gm-screen .gm-grid .gm-tile.gm-studio .gm-icon{position:relative}
/* One label style: same width, height and distance from the bottom on every card */
html body.ui2.gm-open .gm-screen .gm-grid .gm-name{left:12%!important;right:12%!important;bottom:6%!important;min-height:0!important;height:calc(var(--pg-cell,110px) * .16)!important;padding:0 4px!important;font-size:clamp(10px,calc(var(--pg-cell,110px) * .105),18px)!important;line-height:1!important}
/* Locked games: a small corner chip, so the picture stays visible */
html body.ui2.gm-open .gm-screen .gm-unlock-progress{top:5%!important;right:5%!important;left:auto!important;transform:none!important;padding:2px 6px!important;gap:3px!important;font-size:clamp(9px,calc(var(--pg-cell,110px) * .085),14px)!important;border-radius:999px!important;line-height:1.1!important}
html body.ui2.gm-open .gm-screen .gm-unlock-progress svg{width:1em!important;height:1em!important}
/* Town decorations (seasonal pumpkins) stay in town, not on top of the games */
html body.gm-open .v2l-decor{visibility:hidden!important}
/* Top bar: the calendar matches the other icons */
html body.ui2 .ui2-bar .v2q-today img.v2q-tb{width:34px!important;height:34px!important;object-fit:contain}
html body.ui2.gm-open .gm-screen .gm-unlock-progress small{display:none!important}
html body.ui2.gm-open .gm-screen .gm-unlock-progress>span{white-space:nowrap!important;font-size:1em!important;line-height:1.1!important}
/* The live name label covers the label baked into the picture completely (it used to sit a little off and let
   the baked pill's ends show around it), and the Featured badge sits inside the yellow ring. */
html body.ui2.gm-open .gm-screen .gm-grid .gm-name{left:10%!important;right:10%!important;bottom:4%!important;height:15%!important;background:#fffaf2!important;border:1.5px solid #fff!important;box-shadow:0 2px 4px #6b4a3a22!important;border-radius:999px!important}
html body.ui2.gm-open .gm-screen .gm-tile.gm-studio::before{top:8%!important;left:9%!important;font-size:clamp(8px,calc(var(--pg-cell,110px) * .075),13px)!important;padding:2px 7px!important;line-height:1.3!important}
/* Bonus games shelf (2026-10-17): the 12 stay in the grid; claw, dash and bowl sit in a small row underneath and open as kids collect */
html body .gm-screen:has(.gm-unlocks){flex-direction:column!important;align-items:center!important;gap:14px}
html body .gm-screen .gm-unlocks{flex:none;width:max-content!important;display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,22px);padding:8px 16px;border-radius:999px;background:#ffffffb8;box-shadow:0 4px 14px #6b4a6522;max-width:100%}
html body .gm-screen .gm-unlocks-key{font-size:clamp(18px,4vw,26px);opacity:.75}
html body .gm-screen .gm-unlocks .gm-tile.gm-bonus{position:relative;width:clamp(64px,min(17vw,10vh),104px)!important;height:clamp(64px,min(17vw,10vh),104px)!important;aspect-ratio:1;padding:0;border:0;background:none;cursor:pointer}
html body .gm-screen .gm-unlocks .gm-bonus .gm-icon{display:block;width:100%;height:100%}
html body .gm-screen .gm-unlocks .gm-bonus .gm-icon img{width:100%;height:100%;object-fit:contain;border-radius:22%}
html body .gm-screen .gm-unlocks .gm-bonus-emoji{display:grid;place-items:center;width:100%;height:100%;border-radius:22%;background:#fff;font-size:clamp(30px,8vw,50px);box-shadow:0 3px 8px #6b4a6530}
html body .gm-screen .gm-unlocks .gm-bonus.gm-locked .gm-icon{filter:grayscale(.85) brightness(1.08);opacity:.75}
html body .gm-screen .gm-unlocks .gm-bonus.gm-new{animation:gm-bonus-pop 1.4s ease-in-out 3}
@keyframes gm-bonus-pop{0%,100%{scale:1}40%{scale:1.14;filter:drop-shadow(0 0 12px #ffd76a)}}
@media(prefers-reduced-motion:reduce){html body .gm-screen .gm-unlocks .gm-bonus.gm-new{animation:none}}
/* phones: a slimmer shelf so the 3 x 4 grid keeps big cards */
@media(max-width:699px) and (orientation:portrait){html body .gm-screen .gm-unlocks{padding:5px 12px;gap:10px}html body .gm-screen .gm-unlocks .gm-tile.gm-bonus{width:clamp(50px,min(14vw,7.5vh),64px)!important;height:clamp(50px,min(14vw,7.5vh),64px)!important}html body .gm-screen:has(.gm-unlocks){gap:8px}}
/* nothing locked (or testing): no padlock; keep the shelf centered */
html body .gm-screen .gm-unlocks:not(:has(.gm-locked)) .gm-unlocks-key{display:none}
html body .gm-screen .gm-unlocks{margin-inline:auto!important;align-self:center!important}
