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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(10, 10, 30, 0.3), rgba(10, 10, 30, 0.45)),
                url('msg-theater.png') center top / cover no-repeat;
    color: white;
    text-align: center;
    padding: 120px 24px 100px;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6.5rem;
    font-weight: 400;
    letter-spacing: 6px;
    color: #F58426;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.6);
    -webkit-text-stroke: 1px rgba(245, 132, 38, 0.8);
    margin-bottom: 8px;
}

.hero .subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: #006BB6;
    font-weight: 400;
    letter-spacing: 4px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.5px rgba(0, 107, 182, 0.8);
    margin-bottom: 12px;
}

.hero .tagline {
    font-size: 1.2rem;
    color: #a8b2d1;
    max-width: 600px;
    margin: 0 auto;
}

.hero .tagline em {
    color: #53cf8a;
    font-style: normal;
    font-weight: 700;
}

.section-img {
    display: block;
    max-width: 500px;
    width: 100%;
    margin: 0 auto 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Explainer */
.explainer {
    padding: 60px 24px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.explainer h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.explainer p {
    font-size: 1.05rem;
    color: #444;
    max-width: 800px;
    margin-bottom: 24px;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    max-width: 800px;
}

.problem-list li {
    padding: 6px 0;
    font-size: 1.02rem;
    color: #444;
    line-height: 1.5;
}

.problem-list li::before {
    content: "→ ";
    color: #e94560;
    font-weight: 700;
}

/* Pitch Box */
.pitch-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    border-radius: 12px;
    padding: 28px 32px;
    margin: 28px 0 32px;
}

.pitch-box h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 14px;
    color: #F58426;
}

.pitch-ewing {
    display: block;
    width: 160px;
    border-radius: 10px;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pitch-box ul {
    list-style: none;
    padding: 0;
}

.pitch-box li {
    padding: 6px 0;
    font-size: 1.02rem;
    color: #ccd6f6;
    line-height: 1.5;
}

.pitch-box li::before {
    content: "→ ";
    color: #53cf8a;
    font-weight: 700;
}

.pitch-box li strong.orange {
    color: #F58426;
}

.pitch-box li strong.blue {
    color: #4DA3E0;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.rule-card {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: white;
}

.rule-card.tier1 { background: linear-gradient(135deg, #2d6a4f, #40916c); }
.rule-card.tier2 { background: linear-gradient(135deg, #e76f51, #f4a261); }
.rule-card.tier3 { background: linear-gradient(135deg, #e94560, #c23152); }

.tier-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
    margin-bottom: 4px;
}

.tier-rank {
    font-size: 1rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.tier-points {
    font-size: 1.3rem;
}

.rules-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 16px;
}

/* Sections */
.comparison-section,
.timeline-section,
.summary-section {
    padding: 60px 24px;
}

.comparison-section { background: #f8f9fa; }
.timeline-section { background: white; }
.summary-section { background: #f8f9fa; }

section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

section > .container > p {
    color: #666;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.controls label {
    font-weight: 600;
    color: #1a1a2e;
}

.controls select {
    padding: 8px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 160px;
}

.controls select:focus {
    outline: none;
    border-color: #0f3460;
}

/* Tables */
.comparison-table-wrapper,
.summary-table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

thead th {
    background: #1a1a2e;
    color: white;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}

tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid #e8e8e8;
}

tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

tbody tr:hover {
    background: rgba(15, 52, 96, 0.06);
}

td.ewing-col { color: #e94560; }
td.record-col { color: #2d6a4f; }
td.actual-col { color: #0f3460; }

thead th.ewing-col { background: #c23152; }
thead th.record-col { background: #2d6a4f; }
thead th.actual-col { background: #0f3460; }

td.pick-num {
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
}

td.highlight-up {
    background: rgba(83, 207, 138, 0.15);
}

td.highlight-down {
    background: rgba(233, 69, 96, 0.1);
}

/* Sortable headers */
thead th.sortable {
    cursor: pointer;
    user-select: none;
}

thead th.sortable:hover {
    background: #3a1a3e;
}

/* Charts */
#ewing-bar-chart,
#timeline-chart,
#tier-chart,
#all-seasons-chart {
    margin-top: 24px;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #a8b2d1;
    padding: 32px 24px;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #e94560;
    text-decoration: none;
}

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

/* Proof Section */
.proof-section {
    padding: 60px 24px;
    background: white;
}

.proof-story {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #e0e0e0;
}

.proof-story:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.proof-story h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.proof-subtitle {
    font-size: 1.05rem;
    color: #e94560;
    font-weight: 600;
    margin-bottom: 16px;
}

.proof-story p {
    font-size: 1.02rem;
    color: #444;
    max-width: 800px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.proof-table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
}

.proof-table {
    max-width: 800px;
}

/* Tank Analysis Section */
.tank-section {
    padding: 60px 24px;
    background: #f8f9fa;
}

.tank-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.tank-section h3 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.tank-section .table-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 12px;
}

#tank-scatter-chart {
    margin-top: 24px;
    margin-bottom: 40px;
}

.tank-tables-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.tank-table-wrapper {
    overflow-x: auto;
}

.tank-table-wrapper table {
    font-size: 0.88rem;
}

.tank-table-wrapper thead th {
    padding: 10px 12px;
}

.tank-table-wrapper tbody td {
    padding: 8px 12px;
}

td.delta-negative {
    color: #e94560;
    font-weight: 700;
}

td.delta-positive {
    color: #2d6a4f;
    font-weight: 700;
}

.bucket-heading {
    margin-top: 0;
    margin-bottom: 16px;
}

.win-bucket-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.bucket-card {
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.bucket-card .bucket-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bucket-card .bucket-delta {
    font-size: 1.5rem;
    font-weight: 800;
}

.bucket-card .bucket-count {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero .subtitle { font-size: 1.1rem; }
    .rules-grid { grid-template-columns: 1fr; }
    table { font-size: 0.85rem; }
    thead th, tbody td { padding: 8px 10px; }
    .win-bucket-bar { grid-template-columns: repeat(2, 1fr); }
}
