* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.2;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero {
    background: linear-gradient(135deg, #1a472a, #0e2a1a);
    padding: 12px 0 8px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 1.6rem;
}

.hero .subtitle {
    color: #6ba5c9;
    font-size: 0.85rem;
    margin-top: 3px;
}

.stats-banner {
    background: #3a6b8c;
    color: white;
    padding: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.challenges-box {
    background: #f4f6f8;
    border-left: 5px solid #2c3e2f;
    padding: 12px 18px;
    margin: 10px 0 6px 0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    color: #1e2a2a;
}

.challenges-box p {
    margin: 5px 0;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #1e2a2a;
}

.challenges-box strong {
    color: #1a472a;
    font-weight: 700;
}

.challenges-highlight {
    font-weight: bold;
    background: #e8f0e8;
    display: inline-block;
    padding: 0px 5px;
    border-radius: 10px;
    color: #1a472a;
}

.lotofoot-nav {
    background: transparent;
    padding: 8px 0 4px 0;
    text-align: center;
}

.lotofoot-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.lotofoot-btn {
    background: #1a472a;
    color: #6ba5c9;
    border: 2px solid #3a6b8c;
    padding: 5px 18px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.lotofoot-btn:hover {
    background: #3a6b8c;
    color: white;
    transform: scale(1.05);
}

.lotofoot-btn.active {
    background: #3a6b8c;
    color: white;
    box-shadow: 0 0 10px rgba(58,107,140,0.5);
}

.main-content {
    display: flex;
    gap: 20px;
    margin: 8px 0 0 0;
}

.matches-section {
    background: white;
    flex: 1.2;
    padding: 8px 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-section {
    background: white;
    flex: 2;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.matches-section h2, .info-section h2 {
    color: #1a472a;
    border-left: 4px solid #3a6b8c;
    padding-left: 8px;
    margin-bottom: 6px;
    font-size: 1rem;
}

.info-section h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.matches-table td {
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

.match-num {
    width: 28px;
    text-align: center;
    font-weight: bold;
    color: #1a472a;
    font-size: 0.7rem;
    padding: 0 2px;
}

.team-home {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 4px;
    font-size: 0.7rem;
}

.grid-cell {
    text-align: center;
    white-space: nowrap;
    padding: 0 2px;
}

.team-away {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    padding-left: 4px;
    font-size: 0.7rem;
}

.grid-buttons-compact {
    display: inline-flex;
    gap: 2px;
    background: #f5f5f5;
    padding: 1px 3px;
    border-radius: 6px;
}

.grid-btn-compact {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: white;
    font-weight: bold;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: monospace;
}

.grid-btn-compact:hover {
    transform: scale(1.02);
    background: #e0e0e0;
}

.grid-btn-compact.selected-1, .grid-btn-compact.selected-n, .grid-btn-compact.selected-2 {
    background: #1a472a;
    color: #6ba5c9;
    border-color: #1a472a;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444;
}

.info-text p {
    margin-bottom: 12px;
}

.info-text h3 {
    color: #1a472a;
    font-size: 1rem;
    margin: 12px 0 6px 0;
}

.info-text ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.info-text li {
    margin: 4px 0;
}

.expertise-box {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-left: 4px solid #3a6b8c;
    padding: 10px 15px;
    border-radius: 10px;
    margin: 0 0 15px 0;
    text-align: center;
}

.expertise-box strong {
    color: #1a472a;
    font-size: 1.1rem;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 12px 0;
}

.warning-box strong {
    color: #856404;
    font-size: 0.9rem;
}

.warning-box p {
    margin: 2px 0 0 0;
    padding: 0;
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.3;
}

.compatibility-note {
    background: #f8f9fa;
    border-left: 4px solid #1a472a;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 0.8rem;
    text-align: center;
    color: #555;
}

.edition-selector {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.edition-selector label {
    font-size: 0.7rem;
    font-weight: bold;
    color: #1a472a;
}

.edition-selector select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    font-size: 0.75rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

nav {
    background: #2c3e2a;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: bold;
    font-size: 0.8rem;
}

nav a:hover {
    color: #6ba5c9;
}

.section-performance {
    background: white;
    margin: 15px 0;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.section-performance h2 {
    color: #1a472a;
    border-left: 5px solid #3a6b8c;
    padding-left: 12px;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.section-performance > p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 0.75rem;
}

.result-table th {
    background: #1a472a;
    color: white;
    padding: 6px 8px;
    text-align: center;
    font-size: 0.75rem;
}

.result-table td {
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.result-table tr:hover {
    background: #f5f5f5;
}

.winning-badge {
    background: #3a6b8c;
    color: white;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7rem;
    display: inline-block;
}

.gain-amount {
    background: #1a472a;
    color: #6ba5c9;
    padding: 2px 6px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.7rem;
    display: inline-block;
    white-space: nowrap;
}

.download-table-btn {
    background: linear-gradient(135deg, #1a472a, #0e2a1a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.7rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.download-table-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(26,71,42,0.3);
}

.contact-section {
    background: white;
    margin: 15px 0;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-section h2 {
    color: #1a472a;
    border-left: 5px solid #3a6b8c;
    padding-left: 12px;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-container {
    display: flex;
    gap: 25px;
}

.contact-left {
    flex: 1;
}

.contact-right {
    flex: 1;
}

.info-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.info-box h3 {
    color: #1a472a;
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-box ul {
    margin-left: 18px;
    font-size: 0.75rem;
    line-height: 1.3;
}

.info-box li {
    margin: 4px 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
}

.contact-form button {
    background: #1a472a;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: #0e2a1a;
    transform: scale(1.02);
}

.social-share {
    text-align: center;
    margin: 20px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 12px;
}

.social-share h3 {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #1a472a;
}

.social-share a {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 14px;
    background: #1a472a;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: 0.3s;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: pointer;
}

.social-share a:hover {
    background: #0e2a1a;
    transform: scale(1.02);
}

.social-share p {
    margin-top: 8px;
    font-size: 0.7rem;
    color: #666;
}

footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 20px;
    margin-top: 25px;
    font-size: 0.65rem;
}

.live-counter {
    text-align: center;
    font-size: 0.75rem;
    color: #3a6b8c;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    font-weight: bold;
}

@media (max-width: 750px) {
    .main-content { flex-direction: column; }
    .team-home, .team-away { white-space: normal; }
    .grid-btn-compact { width: 20px; height: 20px; font-size: 0.65rem; }
    .download-table-btn { padding: 3px 8px; font-size: 0.65rem; }
    .social-share a { padding: 5px 10px; font-size: 0.7rem; margin: 0 4px; }
    .contact-container { flex-direction: column; }
    .result-table { font-size: 0.65rem; }
    .result-table th, .result-table td { padding: 4px 5px; }
    .lotofoot-btn { padding: 4px 12px; font-size: 0.7rem; }
    .challenges-box p { font-size: 0.75rem; }
}