/* Стартовая страница: «Играть с главного экрана» (ярлык PWA). */
.pwa-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 14px 0 0;
}
.pwa-offer[hidden] { display: none; }

.pwa-offer__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 5px 12px 5px 6px;
    border-radius: 999px;
    border: 1px solid rgba(190, 169, 121, 0.28);
    background: rgba(20, 24, 32, 0.55);
    color: rgba(242, 223, 180, 0.86);
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease;
}
.pwa-offer__chip:hover,
.pwa-offer__chip:focus-visible {
    border-color: rgba(242, 210, 132, 0.55);
    color: #fff3c7;
    outline: none;
}
.pwa-offer__icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    flex: 0 0 auto;
}
.pwa-offer__hide {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: rgba(242, 223, 180, 0.45);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}
.pwa-offer__hide:hover,
.pwa-offer__hide:focus-visible { color: rgba(242, 223, 180, 0.85); outline: none; }

/* Нижняя шторка с пояснением */
.pwa-sheet {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pwa-sheet[hidden] { display: none; }
.pwa-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 9, 0.62);
}
.pwa-sheet__panel {
    position: relative;
    width: min(440px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 18px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(190, 169, 121, 0.3);
    border-bottom: 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 55%),
        rgba(10, 12, 18, 0.97);
    color: rgba(255, 244, 216, 0.92);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
    animation: pwa-sheet-in 180ms ease-out;
}
@keyframes pwa-sheet-in {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .pwa-sheet__panel { animation: none; }
}
@media (min-width: 700px) and (min-height: 520px) {
    .pwa-sheet { align-items: center; }
    .pwa-sheet__panel { border-radius: 16px; border-bottom: 1px solid rgba(190, 169, 121, 0.3); }
}
.pwa-sheet__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.pwa-sheet__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex: 0 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.pwa-sheet__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
    color: #fff3c7;
}
.pwa-sheet__sub {
    margin-top: 3px;
    font-size: 12px;
    color: rgba(242, 223, 180, 0.55);
}
.pwa-sheet__facts {
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.4;
}
.pwa-sheet__facts li {
    position: relative;
    padding-left: 18px;
    margin: 0 0 6px;
    color: rgba(255, 244, 216, 0.8);
}
.pwa-sheet__facts li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(242, 210, 132, 0.75);
}
.pwa-sheet__how[hidden] { display: none; }
.pwa-sheet__steps {
    margin: 0 0 14px;
    padding: 10px 12px 10px 32px;
    border-radius: 10px;
    border: 1px solid rgba(190, 169, 121, 0.2);
    background: rgba(255, 255, 255, 0.03);
    font-size: 14px;
    line-height: 1.45;
}
.pwa-sheet__steps li { margin: 2px 0; }
.pwa-sheet__steps b { color: #fff3c7; font-weight: 600; }
.pwa-sheet__glyph {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    color: #7fb6ff;
}
.pwa-sheet__panel .btnx {
    display: block;
    width: 100%;
    margin: 0 0 8px;
}
.pwa-sheet__later { margin-bottom: 0 !important; }
