/* CSS Variables */
:root {
    --primary-dark: #1a1a2e;
    --primary-blue: #0f3460;
    --accent-orange: #f39c12;
    --accent-orange-dark: #e67e22;
    --success: #27ae60;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;
    --text: #333;
    --text-light: #888;
    --bg-light: #f5f5f5;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: var(--primary-blue);
}

main {
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Info pages (Privacy, Terms, Rules, Help) */
.info-page {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    background: #fafafa;
    min-height: 70vh;
}

.info-content {
    max-width: 800px;
    width: 100%;
}

.info-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 8px;
}

.info-updated {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0 0 32px;
}

.info-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 32px 0 12px;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 8px;
}

.info-content p {
    color: #555;
    line-height: 1.8;
    margin: 0 0 12px;
}

.info-content ul {
    color: #555;
    line-height: 2;
    padding-left: 24px;
    margin: 0 0 16px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-intro {
    background: #fff;
    border-left: 4px solid #f39c12;
    padding: 16px 20px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 28px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-footer {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.info-footer a {
    color: #f39c12;
    text-decoration: none;
}

.info-footer a:hover {
    text-decoration: underline;
}

.rules-highlight {
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
    box-shadow: 0 4px 16px rgba(243,156,18,0.15);
}

.rules-highlight p {
    margin: 0 0 12px;
    color: #1a1a2e;
}

.rules-highlight p:last-child {
    margin-bottom: 0;
}

.rules-highlight strong {
    color: #e67e22;
}

@media (max-width: 768px) {
    .info-page { padding: 48px 16px; }
    .info-content h1 { font-size: 1.6rem; }
    .info-content h2 { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .info-page { padding: 32px 12px; }
    .info-content h1 { font-size: 1.3rem; }
    .faq-item { padding: 16px; }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
