/*
 * SPDX-FileCopyrightText: 2026 dtwinuz and bitg contributors
 *
 * SPDX-License-Identifier: MIT OR Apache-2.0
 */

/* Faqat brauzer demosi: pastki o'ng burchakdagi belgi va demo xabarlari. Oynaning o'z ranglari ishlatiladi. */
.demo-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  padding: 7px 8px 7px 14px; border-radius: 999px;
  background: var(--qogoz); color: var(--siyoh); border: 1px solid var(--chiziq);
  box-shadow: 0 8px 24px -12px rgb(0 0 0 / .35);
  font: 500 12.5px/1.3 "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}
.demo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--firuza); flex: none; }
.demo-pill a {
  flex: none; padding: 4px 10px; border-radius: 999px; background: var(--lojuvard); color: #fff;
  text-decoration: none; font-weight: 600;
}
.demo-pill a:hover { filter: brightness(1.1); }
.demo-toast {
  position: fixed; left: 50%; bottom: 64px; z-index: 51; transform: translate(-50%, 8px);
  max-width: calc(100vw - 32px); padding: 9px 14px; border-radius: 8px;
  background: var(--siyoh); color: var(--qogoz); opacity: 0; pointer-events: none;
  font: 13px/1.4 "Segoe UI", system-ui, sans-serif; transition: opacity .2s, transform .2s;
}
.demo-toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 680px) {
  /* oynaning pastki menyusi ustida turadi */
  html body .demo-pill { left: 16px; right: 16px; bottom: 74px; justify-content: space-between; font-size: 11.5px; }
  .demo-toast { bottom: 126px; }
}
/* oyna 420px dan tor bo'lmaydi; telefon kengligida 10 ta tugma sig'sin */
@media (max-width: 440px) {
  html body .rail { padding: 6px 4px; }
  html body nav button { padding: 10px 4px; min-width: 0; }
}
