.home-match { display: grid; gap: 14px; }
.home-match h2, .home-match p { margin: 0; }
.home-match-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-match > .btn { justify-self: start; }
.home-match-actions > .match-needs-action,
.bracket-page .match-chat-button.match-needs-action {
    position: relative;
    border-color: #ffd77b !important;
}
.home-match-actions > .match-needs-action::after,
.bracket-page .match-chat-button.match-needs-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 36%, #ffe4a040 49%, transparent 63%) 100% 0 / 220% 100% no-repeat;
    box-shadow: inset 0 0 0 1px #ffdc8b, inset 0 0 16px #ffc35488, 0 0 15px #ffbd54aa;
    opacity: .8;
}
@media (prefers-reduced-motion: no-preference) {
    .home-match-actions > .match-needs-action::after,
    .bracket-page .match-chat-button.match-needs-action::after {
        animation: match-action-glow 2.2s ease-in-out infinite;
    }
}
@keyframes match-action-glow {
    0%, 100% { opacity: .55; background-position: 100% 0; }
    50% { opacity: 1; }
    85% { background-position: 0 0; }
}

.home-match.card {
    padding: clamp(16px, 2vw, 26px);
    border-inline-start: 3px solid #73b8bc;
    background: linear-gradient(112deg, #15343a, #0b1c20 64%, #09171b);
}
.home-match-public { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.home-match-phase { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.home-match-phase > .eyebrow { flex-basis: 100%; }
.home-match-phase h2, .home-match-player h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.home-match-live { color: #b3e2d0; border: 1px solid #42766d; padding: 3px 8px; }
.home-match-player.card {
    box-sizing: border-box;
    width: 100%;
    justify-self: stretch;
    padding: 0;
    gap: 0;
    background: #0b1c20;
}
.home-match-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: baseline;
    padding: 10px 18px;
    background: repeating-linear-gradient(118deg, #153439 0 3px, #122d32 3px 7px);
    color: #9dd6d7;
}
.home-match-banner strong { color: #f3d075; }
.home-match-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}
.home-match-details.has-start { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-match-details > div { min-width: 0; padding: 12px; background: #10262b; }
.home-match-opponent { overflow-wrap: anywhere; color: #ecf8f8; }
.home-match-start time, .home-match-status strong { display: block; font-size: 1.15rem; }
.home-match-start strong { color: #a5d8d9; font-variant-numeric: tabular-nums; }
.home-match-details > .home-match-urgent { background: #302024; }
.home-match-urgent strong { color: #ffabab; }
.home-match-status strong { color: #f3d075; }
.home-match-status[data-ready="yes"] strong { color: #a5dfc4; }
.home-match-status p { margin-top: 4px; overflow-wrap: anywhere; }
.home-match-player .home-match-actions { padding: 0 12px 12px; }
.home-match-actions > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 9rem;
    text-align: center;
}
.home-match-player .home-match-outcome { margin: 12px 18px 0; }
.home-match-player > .btn { margin: 12px 18px; }
@media (max-width: 680px) {
    .home-match-public, .home-match-details, .home-match-details.has-start { grid-template-columns: minmax(0, 1fr); }
    .home-match-player .home-match-actions > .btn { flex: 1 1 auto; }
}

#match-schedule-slots .match-schedule-day {
    margin-block: .55rem;
}
#match-schedule-slots .match-schedule-day > summary {
    cursor: pointer;
    padding: .65rem .8rem;
    border: 1px solid #38585d;
    background: #13292e;
    color: #e0f4f5;
    font-weight: 700;
}
.match-schedule-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: .5rem;
    margin-top: .5rem;
}
#match-schedule-slots .match-schedule-day-grid > [data-match-slot-card] {
    margin: 0;
    min-width: 0;
    min-height: 4rem;
    padding: .65rem .75rem !important;
    border-radius: .35rem;
}
#match-schedule-slots .match-schedule-day-grid > [data-match-slot-card]::after {
    position: static;
    transform: none;
    display: inline-block;
    max-width: 100%;
    margin-top: .35rem;
}
#match-schedule-slots .match-schedule-day-grid .match-schedule-slot-time {
    font-size: 1.2rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #eefbfb;
}
#match-schedule-slots .match-schedule-day-grid .phase5c-slot-badge {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}
