* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

header {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 16px 24px;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0B2137;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0B2137;
    color: white;
    transition: background 0.15s;
}

.github-link:hover {
    background: #333;
}

.github-link svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.season-selector label {
    font-size: 0.9rem;
    margin-right: 6px;
    color: #666;
}

.season-selector select {
    font-size: 0.9rem;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
}

#visualization-container {
    width: 100%;
    max-width: 700px;
}

#parity-chart {
    width: 100%;
    height: auto;
    display: block;
}

#info-panel {
    text-align: center;
    margin-top: 16px;
    max-width: 600px;
}

#chain-status {
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

#missing-teams {
    font-size: 0.85rem;
    color: #999;
}

footer {
    text-align: center;
    padding: 16px;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #eee;
}

footer a {
    color: #666;
}

.tooltip {
    position: fixed;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 6px;
    font-size: 0.85rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 1000;
    white-space: nowrap;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.tooltip.visible {
    opacity: 1;
}
