/* Заглушка для мобильных браузеров — см. mobile-stub.js */

html.ms-open, html.ms-open body {
    height: 100%;
    overflow: hidden;
}

.ms-root {
    --ms-accent: #108f9f;
    --ms-accent-dark: #0b6f7b;
    --ms-text: #1f2a2e;
    --ms-muted: #5f6b70;
    --ms-card: #f4f8f9;
    --ms-bg: #ffffff;
    --ms-border: #d9e2e4;
    --ms-warning: #d32f2f;

    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.4;
}

.ms-page {
    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom));
}

.ms-logo {
    width: 100%;
    height: 48px;
    background: url('stub-logo.png') no-repeat center / contain;
}

.ms-title {
    margin: 16px 0 8px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.ms-subtitle {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--ms-muted);
    text-align: center;
}

.ms-app {
    margin: 0 0 16px;
    padding: 16px;
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: 16px;
}

.ms-app-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ms-app-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

.ms-app-icon-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ms-accent);
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}

.ms-app-name {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.ms-app-desc {
    margin: 12px 0 0;
    font-size: 15px;
}

.ms-app-features {
    margin: 8px 0 0;
    padding-left: 20px;
    font-size: 14px;
    color: var(--ms-muted);
}

.ms-app-features li + li {
    margin-top: 2px;
}

.ms-stores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* уже — текст кнопки не влезает в строку */
    gap: 12px;
    margin-top: 16px;
}

.ms-store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--ms-border);
    border-radius: 12px;
}

.ms-qr {
    box-sizing: content-box;
    width: 112px;
    height: 112px;
    padding: 6px;
    background: #fff;
}

.ms-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.ms-store-label {
    font-size: 13px;
    color: var(--ms-muted);
}

.ms-btn {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 10px;
    background: var(--ms-accent);
    white-space: nowrap;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.ms-btn:active {
    background: var(--ms-accent-dark);
}

.ms-soon {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px dashed var(--ms-border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--ms-muted);
    text-align: center;
}

.ms-footer {
    margin-top: 24px;
    text-align: center;
}

.ms-continue {
    width: 100%;
    min-height: 48px;
    padding: 8px 16px;
    border: 1px solid var(--ms-accent);
    border-radius: 10px;
    background: transparent;
    color: var(--ms-accent);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.ms-note {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ms-warning);
}
