html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#loading-spinner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading-spinner[hidden],
#unsupported-browser[hidden] {
    display: none !important;
}

body.unsupported {
    overflow: auto;
    height: auto;
    min-height: 100%;
    background: #f5f5f7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
}

#unsupported-browser {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
    box-sizing: border-box;
}

.unsupported-card {
    max-width: 560px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    text-align: center;
}

.unsupported-card h1 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 16px;
    font-weight: 600;
}

.unsupported-card h2 {
    font-size: 16px;
    line-height: 1.4;
    margin: 32px 0 16px;
    font-weight: 600;
    color: #424245;
}

.unsupported-card p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #424245;
}

.unsupported-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 24px;
}

.unsupported-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    background: #0071e3;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.unsupported-button:hover {
    background: #0077ed;
}

.unsupported-button:active {
    background: #006edb;
}

.unsupported-hint {
    font-size: 13px;
    color: #6e6e73;
    margin-top: 16px;
}
