/* CricScroll inside cricwords.com: the shared CricWords top bar is fixed above the game. Layers fixed to the screen move
   down by its height; the feed and its cards start below it, so things placed inside a card no longer add the phone's top
   safe area (the top bar already covers it). Loaded after the game's own stylesheets; body.cs-cw scopes every rule. */
body.cs-cw { --cs-top: calc(var(--cw-top-h, 56px) + env(safe-area-inset-top, 0px)); }
body.cs-cw .cw-top { position: fixed; top: 0; left: 0; right: 0; font-family: var(--cw-text); font-size: 17px; line-height: 1.55; }   /* the site's own type, not the game's Poppins */
body.cs-cw .hud { top: var(--cs-top); padding-top: 10px; }
body.cs-cw .feed { height: calc(100dvh - var(--cs-top)); margin-top: var(--cs-top); }
body.cs-cw .card { height: calc(100dvh - var(--cs-top)); }
body.cs-cw .card .inner { padding-top: 58px; }
body.cs-cw.invite-open .card .inner { padding-top: 156px; }
body.cs-cw .mult { top: 60px; }
body.cs-cw .goldedge { top: 54px; }
body.cs-cw .toast, body.cs-cw .minvite { top: calc(var(--cs-top) + 58px); }
body.cs-cw .rhlayer { top: var(--cs-top); }
body.cs-cw .rhlayer .feed { margin-top: 0; height: calc(100dvh - var(--cs-top)); }
body.cs-cw .rhclose { top: calc(var(--cs-top) + 12px); }
/* 8 Nov 2026: CricScroll's sheets (daily gift, wallet, hints, ad breaks) open below the CricWords top bar, and the bar with its
   streak and coins popovers sits above them, so Games, Stories and Play always respond to a tap. */
body.cs-cw .cw-top { z-index: 60; }
body.cs-cw .modal { top: var(--cs-top); }
