/* Site round 7 (2026-11-13): calm dialogs. They cover the whole screen, the page behind never shows or moves,
   nothing slides or turns in 3D, and focus rings appear only for the keyboard, in the site's colour. */
@keyframes r7-fade{from{opacity:0}to{opacity:1}}

/* Ticket: the page colour replaces the page behind. */
.cg-store .cg-ticket-dialog::backdrop{background:#f0f5f6;-webkit-backdrop-filter:none;backdrop-filter:none}
.cg-store .game-sheet.cg-ticket-dialog{animation:r7-fade .18s ease-out}
.cg-store .cg-ticket-back,.cg-store .cg-ticket-front{animation:r7-fade .16s ease-out}
.cg-store .cg-ticket-dialog,.cg-store .cg-back-main-inner{overscroll-behavior:contain}

/* Ticket back: the words sit in the middle of the paper, not in a pile at the top with a hole under them. */
.cg-store .cg-back-main-inner{display:flex;flex-direction:column}
.cg-store .cg-back-main-inner>.cg-back-title{margin-top:auto}
.cg-store .cg-back-main-inner>.cg-live-details{margin-bottom:auto}

/* Shop: one full screen, including the strip under the phone browser's bar. */
.cg-store dialog.tk-shop{height:100vh;height:100lvh;max-height:none;padding-bottom:max(30px,env(safe-area-inset-bottom,0px));padding-bottom:calc(max(30px,env(safe-area-inset-bottom,0px)) + 100lvh - 100dvh);animation:r7-fade .18s ease-out;overscroll-behavior:contain}
.cg-store dialog.tk-shop::backdrop,.cg-store dialog.cg-join::backdrop{background:#f0f5f6;-webkit-backdrop-filter:none;backdrop-filter:none}
.cg-store dialog.tk-shop{background-color:var(--paper);background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22230%22%20height%3D%22230%22%20fill%3D%22none%22%20stroke%3D%22%23005f6b%22%20stroke-opacity%3D%22.09%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20transform%3D%22translate(16%2026)%20rotate(-11)%22%3E%3Cpath%20d%3D%22M0%200H66V13a6%206%200%200%200%200%2012V38H0V25a6%206%200%200%200%200-12Z%22%2F%3E%3Cpath%20d%3D%22M46%204V34%22%20stroke-dasharray%3D%223%205%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(140%2014)%20rotate(12)%22%3E%3Crect%20width%3D%2240%22%20height%3D%2240%22%20rx%3D%228%22%2F%3E%3Cg%20fill%3D%22%23005f6b%22%20fill-opacity%3D%22.09%22%20stroke%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2228%22%20cy%3D%2228%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2220%22%20cy%3D%2220%22%20r%3D%223%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(26%20112)%20rotate(7)%22%3E%3Crect%20width%3D%2230%22%20height%3D%2254%22%20rx%3D%226%22%2F%3E%3Cpath%20d%3D%22M11%2046H19%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(142%20104)%20rotate(-5)%22%3E%3Crect%20width%3D%2266%22%20height%3D%2242%22%20rx%3D%225%22%2F%3E%3Cpath%20d%3D%22M33%2042V52M20%2053H46%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(96%2084)%22%3E%3Cpath%20d%3D%22M9%2026C2%2020%200%2015%200%2011A11%2011%200%200%201%2022%2011C22%2015%2020%2020%2013%2026ZM8%2031H14%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(92%20176)%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%2218%22%2F%3E%3Cpath%20d%3D%22M18%2018V6M18%2018%2029%2024M18%2018%207%2024%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(176%20180)%20rotate(-8)%22%3E%3Cpath%20d%3D%22M0%2028%2012%2018%2020%2022%2036%202%22%2F%3E%3Cpath%20d%3D%22M26%202H36V12%22%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate(24%20192)%22%3E%3Cpath%20d%3D%22M0%206Q6-4%2014%202T9%2016Q5%2020%206%2025%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M112%2040l4%204-4%204-4-4ZM68%2092l3%203-3%203-3-3ZM208%2090l3%203-3%203-3-3ZM70%20168l3%203-3%203-3-3Z%22%2F%3E%3C%2Fsvg%3E")!important;background-size:230px 230px;background-repeat:repeat;background-position:center 160px}
.cg-store .tk-shop .tk-head{position:relative;z-index:1}

/* Focus: a dialog opens focused on itself; buttons ring in petroleum for the keyboard only. */
.cg-store dialog:focus{outline:none}
.cg-store .tk-shop button:focus-visible,.cg-store .tk-shop a:focus-visible,.cg-store .tk-shop summary:focus-visible,
.cg-store .game-sheet button:focus-visible,.cg-store .game-sheet summary:focus-visible{outline-color:var(--acc)}
.cg-store .tk-shop .tk-pack:has(input:focus-visible){outline-color:var(--acc)}
@media (prefers-reduced-motion:reduce){.cg-store .game-sheet.cg-ticket-dialog,.cg-store .cg-ticket-back,.cg-store .cg-ticket-front,.cg-store dialog.tk-shop{animation:none}}
