/* iOS-style reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh; /* dynamic viewport – adapts when Safari toolbar collapses */
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #fff;
    touch-action: none;
    -webkit-text-size-adjust: 100%;
    -ms-touch-action: none;
    position: fixed;
    top: 0;
    left: 0;
    overscroll-behavior: none;
}

button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* PWA install prompt */
#install-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.install-prompt-content {
    background: #1c1c1e;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    max-width: 320px;
    width: 100%;
}

.install-prompt-content .install-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.install-prompt-content p {
    font-size: 15px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 12px;
}

.install-prompt-content .install-steps {
    font-size: 14px;
    color: #ababab;
    margin-bottom: 20px;
}

.install-dismiss-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
    color: #0a84ff;
}
