/* Where the page really runs (loaded last, over app.css):
   - a phone browser: no mock Telegram capsules, the top bar starts at the top of the page;
   - a desktop browser (560 px and wider) and recordings: the phone frame with the mock capsules;
   - inside Telegram (html.tg-on, set by js/tg.js): edge to edge, clear of Telegram's own buttons
     and of the system insets (--tg-top / --tg-bottom come from the Telegram SDK). */
#device { --top: 0px; --bot: 0px; }
#device .tg { display: none; }
.topbar { top: var(--top); }
.screens { top: calc(var(--top) + 56px); }
.toasts { top: calc(var(--top) + 62px); }
.nav { bottom: calc(12px + var(--bot)); }
.screen { padding-bottom: calc(110px + var(--bot)); }
.sheet { bottom: calc(80px + var(--bot)); max-height: calc(100% - 102px - var(--top) - var(--bot)); }
@media (min-width: 560px) {
  html:not(.tg-on) #device { --top: 48px; }
  html:not(.tg-on) #device .tg { display: flex; }
}
html.rec #device { --top: 48px; }
html.rec #device .tg { display: flex; }

html.tg-on { padding: 0 !important; }
html.tg-on body { display: block; padding: 0; background: var(--bg); }
html.tg-on #device { --top: var(--tg-top, 0px); --bot: var(--tg-bottom, 0px); width: 100%; max-width: 520px; height: 100%; border-radius: 0; box-shadow: none; }

/* demo mark by the logo: the balance is test GRAM until real payments are connected */
.logo { margin-right: 0; }
.demo-chip { margin-right: auto; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--fg2); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; }
.demo-note { padding: 10px 12px; border-radius: 12px; background: rgba(255,195,55,.1); box-shadow: inset 0 0 0 1px rgba(255,195,55,.22); color: #ffd98a; font-size: 13px; font-weight: 600; line-height: 1.4; }

/* the player's Telegram photo in the profile */
.pav { overflow: hidden; }
.pav img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* tag on the lobby tiles of the newest games (js/kit.js NEW_GAMES) */
.tile .tile-new { position: absolute; left: 5cqw; top: 5cqw; z-index: 2; height: 15cqw; padding: 0 6cqw; border-radius: 4cqw; background: #d4ff3a; color: #12131a; font-size: 8.4cqw; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
