:root {
    --bg: #e0e5ec;
    --element: #e0e5ec;
    --highlight: #ffffff;
    --shadow: #bec5d1;
    --accent: #4facfe;
    --text: #2c3e50;
    --text-light: #5c728a;
    --radius: 28px;
    --shadow-out: 12px 12px 24px var(--shadow),
                  -12px -12px 24px var(--highlight);
    --shadow-in: inset 8px 8px 16px var(--shadow),
                 inset -8px -8px 16px var(--highlight);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header { text-align: center; margin-bottom: 35px; }
.branding {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(118, 75, 162, 0.2);
}
.sub-brand { font-size: 1rem; font-weight: 600; color: var(--text-light); letter-spacing: 2px; margin-top: 8px; }

.match-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 30px;
    padding: 16px 24px;
    border-radius: var(--radius);
    background: var(--element);
    box-shadow: var(--shadow-out);
    display: inline-block;
}

#player {
    width: 100%;
    max-width: 1080px;
    height: 56.25vw;
    max-height: 608px;
    margin: 0 auto 25px;
    border-radius: var(--radius);
    background: var(--element);
    box-shadow: var(--shadow-out);
    overflow: hidden;
    position: relative;
}

.quality-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 35px;
    font-weight: 500;
}

.container { width: 100%; max-width: 1080px; }

.neumo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 30px 0;
}

.btn {
    padding: 18px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: center;
    color: white;
    transition: all 0.35s ease;
    box-shadow: var(--shadow-out);
    background: linear-gradient(145deg, #667eea, #764ba2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #764ba2, #667eea);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(102, 126, 234, 0.35); }
.btn:active { box-shadow: var(--shadow-in); transform: translateY(-2px); }

.footer-text {
    text-align: center;
    margin-top: 50px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
}
.footer-text strong { color: #667eea; }

/* ===== PWA INSTALL POPUP CSS ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
    z-index: 350;
}
.popup-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.3s ease;
    color: #2c3e50;
}
.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f0f2f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: #2c3e50;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.popup-close-btn:hover {
    background: #e0e5ec;
    transform: rotate(90deg);
}
/* Utility classes for popup */
.max-w-sm { max-width: 24rem; }
.text-center { text-align: center; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.rounded-2xl { border-radius: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.w-full { width: 100%; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.text-gray-500 { color: #6b7280; }
.btn-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1em;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 8px 15px rgba(102,126,234,0.3);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(102,126,234,0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}
.not-now-btn {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: underline;
    transition: all 0.3s ease;
    padding: 5px 10px;
    font-family: 'Inter', sans-serif;
}
.not-now-btn:hover {
    color: #2c3e50;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}