* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Chivo Mono", monospace;
    background: #f4f4f4;
    color: #111;
}

.calendar-shell {
    max-width: 90%;
    margin: 0 auto;
    padding: 32px;
}

.calendar-header {
    margin-bottom: 24px;
}

.calendar-header h1,
.calendar-header p {
    margin: 0;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #666;
}

.calendar-grid {
    display: grid;
    gap: 14px;
}

.date-group {
    border-radius: 16px;
}

.date-heading {
    margin: 0;
    font-size: 18px;

    width: fit-content;
    border: solid 2px #000;
    border-bottom: none;
    border-radius: 6px;
    padding: 6px 8px;

    background: #e3e3e3;
}

.matchup-cell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    padding: 10px;
    background-color: #e3e3e3;
    border: solid 2px #000;
    border-radius: 6px;
}

.matchup-cell {
    border: 2px solid #111;
    border-radius: 14px;
    background: #fff;
    padding: 8px;
    cursor: pointer;
    width: 140px;
}

.matchup-cell:hover {
    transform: translateY(-2px);
}

.team-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    font-style: italic;
}

.team-line.home {
    justify-content: flex-end;
}

.team-color-box {
    width: 20px;
    height: 20px;
    border: 1px solid #111;
    border-radius: 3px;
    flex: 0 0 auto;
}

.at-line {
    padding-left: 42px;
    font-size: 11px;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
}

.selected-game-panel {
    margin-top: 24px;
    border: 2px solid #111;
    border-radius: 16px;
    background: white;
    padding: 18px;
}

.viewer-actions {
    margin-top: 14px;
}

.viewer-actions button {
    padding: 10px 14px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    gap: 14px;
}

.calendar-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
}

.calendar-day-column {
    min-height: 90px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
    background: white;
    padding: 8px;
}

.day-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.day-name {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.day-date {
    font-size: 10px;
    color: #666;
}

.day-games {
    display: grid;
    gap: 6px;
}

.compact-matchup-cell {
    width: 100%;
    border: 2px solid #111;
    border-radius: 9px;
    background: #fafafa;
    padding: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    font-style: italic;
    text-transform: uppercase;
}

.compact-matchup-cell:hover {
    background: #f0f0f0;
}

.compact-team {
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.1;
}

.compact-team.away {
    justify-content: flex-start;
}

.compact-team.home {
    justify-content: flex-end;
}

.compact-at {
    display: block;
    margin: 2px 0 2px 17px;
    font-size: 9px;
    color: #666;
    text-transform: uppercase;
}

.compact-matchup-cell.is-final {
    border-color: #111;
    background: #f7f7f7;
}

.final-label {
    display: inline-flex;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    background: #111;
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.winner-team {
    transform: scale(1.05);
    font-weight: 900;
}

.winner-team-box {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.team-score {
    display: block;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}
