.fan-match-centre {
    width: min(1320px, 100%);
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.replay-recovery-page {
    display: grid;
    gap: 1rem;
}

.replay-recovery-summary {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 0.65rem;
    margin: 1rem 0;
}

.replay-recovery-summary > div {
    display: grid;
    gap: 0.15rem;
    padding: 0.8rem;
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.7rem;
    background: var(--surface, #fff);
}

.replay-recovery-summary strong {
    font-size: 1.3rem;
}

.replay-recovery-summary span,
.replay-recovery-table small {
    display: block;
    color: var(--muted, #64748b);
}

.replay-recovery-table td {
    vertical-align: top;
    min-width: 135px;
}

.replay-recovery-table td:last-child {
    min-width: 230px;
}

.replay-status {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}

.replay-status-stale,
.replay-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

.replay-status-processing {
    background: #dbeafe;
    color: #1d4ed8;
}

.replay-status-waiting_source,
.replay-status-queued {
    background: #fef3c7;
    color: #92400e;
}

.replay-status-cancelled {
    background: #e5e7eb;
    color: #4b5563;
}

.replay-job-error {
    max-width: 34rem;
    margin: 0.45rem 0 0;
    color: #991b1b;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.replay-recovery-actions {
    display: grid;
    gap: 0.4rem;
}

.replay-recovery-actions details {
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.5rem;
    padding: 0.45rem 0.55rem;
}

.replay-recovery-actions summary {
    cursor: pointer;
    font-weight: 700;
}

.replay-recovery-actions form {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.replay-recovery-actions textarea {
    width: 100%;
    resize: vertical;
}

.replay-intervention-log {
    margin-top: 1.5rem;
}

@media (max-width: 980px) {
    .replay-recovery-summary {
        grid-template-columns: repeat(3, minmax(90px, 1fr));
    }
}

@media (max-width: 560px) {
    .replay-recovery-summary {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }
}

.closure-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
}

.closure-page > section {
    padding: 1rem;
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.75rem;
    background: var(--surface, #ffffff);
}

.match-operation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
}

.closure-checklist {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.closure-check {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem;
    border-left: 5px solid #64748b;
    border-radius: 0.55rem;
    background: #f8fafc;
}

.closure-check-pass {
    border-left-color: #15803d;
    background: #f0fdf4;
}

.closure-check-fail {
    border-left-color: #b91c1c;
    background: #fef2f2;
}

.closure-check-warning {
    border-left-color: #b45309;
    background: #fffbeb;
}

.closure-page .stacked-form {
    max-width: 48rem;
}

.closure-page .stacked-form textarea {
    width: 100%;
    max-width: 100%;
    resize: vertical;
}

.fan-hero {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fan-hero h2,
.judge-header h2 {
    margin: 0;
    color: #fff;
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

.fan-hero p:last-child,
.judge-header p:last-child,
.fan-muted,
.judge-last {
    max-width: 840px;
    margin: 0;
    color: var(--color-muted);
    font-weight: 800;
    line-height: 1.45;
}

.fan-scoreboard-shell {
    position: sticky;
    top: calc(var(--header-height) + 0.75rem);
    z-index: 20;
    margin-bottom: 0.8rem;
    padding: 0.75rem;
    background: linear-gradient(180deg, #1c2429 0%, #101417 100%);
    border: 1px solid rgba(216, 185, 90, 0.72);
    border-radius: 8px;
    box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.8), var(--shadow-tight);
}

.review-item-restricted {
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.faceoff-live-queue-card {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.faceoff-live-queue-card h3,
.faceoff-live-queue-card p {
    margin: 0;
}

.faceoff-live-queue-card .btn {
    justify-self: start;
}

.live-faceoff-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 0.7rem;
    margin: 0 0 0.85rem;
    padding: clamp(0.75rem, 2vw, 1.05rem);
    color: #fff;
    background:
        linear-gradient(110deg, rgba(11, 91, 170, 0.36), transparent 42%),
        linear-gradient(250deg, rgba(215, 25, 32, 0.3), transparent 42%),
        #11171b;
    border: 1px solid rgba(216, 185, 90, 0.66);
    border-radius: 9px;
    box-shadow: var(--shadow-tight);
}

.live-faceoff-card[hidden] {
    display: none;
}

.live-faceoff-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 49.8%, rgba(216, 185, 90, 0.24) 50%, transparent 50.2%);
    pointer-events: none;
}

.live-faceoff-heading,
.live-faceoff-matchup {
    position: relative;
    z-index: 1;
}

.live-faceoff-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.live-faceoff-heading p,
.live-faceoff-heading h3 {
    margin: 0;
}

.live-faceoff-heading h3 {
    margin-top: 0.1rem;
    font-size: clamp(1rem, 2vw, 1.35rem);
    text-transform: uppercase;
}

.live-faceoff-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.live-faceoff-meta strong {
    color: var(--color-gold-bright);
    font-family: "Courier New", monospace;
    font-size: 1.25rem;
}

.live-faceoff-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(0.65rem, 2vw, 1.25rem);
    align-items: center;
}

.live-faceoff-team {
    display: grid;
    min-width: 0;
}

.live-faceoff-team-away {
    text-align: right;
}

.live-faceoff-team-name {
    color: var(--color-dim);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-faceoff-player {
    overflow: hidden;
    font-size: clamp(1.05rem, 3vw, 1.8rem);
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-faceoff-number {
    color: var(--color-gold-bright);
    font-weight: 900;
}

.live-faceoff-versus {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    color: #151515;
    background: var(--color-gold-bright);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    box-shadow: 0 0 0 5px rgba(216, 185, 90, 0.12);
}

.live-faceoff-is-entering {
    animation: live-faceoff-enter 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.live-faceoff-is-updating {
    animation: live-faceoff-update 320ms ease-out both;
}

.live-faceoff-is-leaving {
    animation: live-faceoff-leave 360ms cubic-bezier(0.7, 0, 0.84, 0) both;
}

@keyframes live-faceoff-enter {
    from { opacity: 0; transform: translateY(-18px) scale(0.985); filter: blur(7px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes live-faceoff-update {
    0% { box-shadow: var(--shadow-tight); }
    45% { box-shadow: 0 0 0 3px rgba(216, 185, 90, 0.45), var(--shadow-tight); }
    100% { box-shadow: var(--shadow-tight); }
}

@keyframes live-faceoff-leave {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-14px); }
}

.virtual-scoreboard {
    display: grid;
    grid-template-columns: minmax(120px, 0.9fr) minmax(110px, 0.75fr) minmax(170px, 1fr) minmax(110px, 0.75fr) minmax(120px, 0.9fr);
    gap: 0.45rem;
    min-height: 170px;
    padding: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, #28323a 0%, #151a1f 55%, #2b3438 100%);
    border: 1px solid rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.78);
}

.scoreboard-team,
.scoreboard-centre,
.scoreboard-aux {
    display: grid;
    align-content: start;
    gap: 0.42rem;
}

.scoreboard-team-label,
.scoreboard-aux-labels,
.scoreboard-period span,
.scoreboard-sog span {
    color: #f8f8ff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 1px 0 #000, 0 0 4px rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

.scoreboard-team-name {
    min-height: 1.7rem;
    overflow: hidden;
    color: #c9d3d8;
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.scoreboard-score,
.scoreboard-clock,
.scoreboard-period strong,
.scoreboard-sog strong,
.scoreboard-penalty-grid span {
    display: grid;
    place-items: center;
    color: #ff4262;
    background: #15171d;
    border: 2px solid rgba(0, 0, 0, 0.85);
    border-radius: 3px;
    font-family: "Courier New", monospace;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 5px rgba(255, 40, 80, 0.95), 0 0 12px rgba(255, 40, 80, 0.55);
}

.scoreboard-score {
    min-height: 78px;
    font-size: 4.6rem;
}

.scoreboard-clock {
    min-height: 54px;
    font-size: 3.5rem;
}

.scoreboard-period {
    display: grid;
    grid-template-columns: 1fr 70px 1fr;
    gap: 0.35rem;
    align-items: center;
}

.scoreboard-period span {
    grid-column: 1 / -1;
}

.scoreboard-period strong {
    grid-column: 2;
    min-height: 48px;
    font-size: 2rem;
}

.scoreboard-sog {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
}

.scoreboard-sog strong {
    width: min(120px, 100%);
    min-height: 32px;
    font-size: 1.18rem;
}

.scoreboard-aux-labels,
.scoreboard-penalty-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.scoreboard-penalty-grid {
    grid-auto-rows: 34px;
}

.scoreboard-penalty-grid span {
    min-height: 34px;
    overflow: hidden;
    font-size: 1rem;
    white-space: nowrap;
}

.fan-layer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.55rem;
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.fan-layer-nav a,
.fan-layer-heading a,
.fan-stat-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.52rem 0.7rem;
    color: #000;
    background: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.fan-layer-nav a:hover,
.fan-layer-nav a:focus-visible,
.fan-layer-heading a:hover,
.fan-layer-heading a:focus-visible,
.fan-stat-card a:hover,
.fan-stat-card a:focus-visible {
    color: #000;
    background: #fff;
    border-color: #fff;
    outline: none;
}

.fan-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 1rem;
    align-items: start;
}

.fan-layer-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.15rem;
    color: #fff;
    background: var(--color-panel);
    border: 1px solid rgba(216, 185, 90, 0.7);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
}

.fan-layer-card-large {
    grid-row: span 5;
}

.fan-layer-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.fan-layer-heading h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
}

.fan-layer-heading > span {
    color: var(--color-gold);
    font-weight: 900;
    text-transform: uppercase;
}

.fan-layer-question {
    margin: 0;
    color: #f2f2f2;
    font-weight: 800;
}

.fan-event-feed {
    display: grid;
    gap: 0.65rem;
}

.fan-period-marker {
    display: grid;
    place-items: center;
    padding: 0.85rem;
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    font-weight: 900;
    text-transform: uppercase;
}

.fan-event-card {
    overflow: hidden;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
}

.fan-event-card[open] {
    border-color: rgba(216, 185, 90, 0.7);
}

.fan-event-goal {
    background: linear-gradient(90deg, #b80000 0%, #d50000 62%, #8d0000 100%);
    border-color: rgba(255, 255, 255, 0.25);
    border-left-color: #fff;
}

.fan-event-card summary {
    display: grid;
    grid-template-columns: 74px 58px minmax(0, 1fr) 24px;
    gap: 0.75rem;
    align-items: center;
    min-height: 72px;
    padding: 0.78rem;
    cursor: pointer;
    list-style: none;
}

.fan-event-card summary::-webkit-details-marker {
    display: none;
}

.fan-event-time {
    display: grid;
    place-items: center;
    color: #000;
    background: #fff;
    border-radius: 6px;
    padding: 0.35rem;
}

.fan-event-goal .fan-event-time {
    color: var(--color-red);
}

.fan-event-time strong,
.fan-event-time em {
    font-style: normal;
    font-weight: 900;
    line-height: 1.1;
}

.fan-event-time em {
    font-size: 0.74rem;
}

.fan-team-token {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #000;
    background: var(--color-gold);
    border-radius: 50%;
    font-size: 0.86rem;
    font-weight: 900;
}

.fan-event-main {
    min-width: 0;
}

.fan-event-main strong,
.fan-event-main em {
    display: block;
}

.fan-event-main strong {
    font-size: 1rem;
    font-weight: 900;
}

.fan-event-main em {
    overflow: hidden;
    color: #e8e8e8;
    font-style: normal;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fan-event-goal .fan-event-main em {
    color: #fff;
}

.fan-event-chevron {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
}

.fan-event-chevron::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 3px solid var(--color-gold);
    border-bottom: 3px solid var(--color-gold);
    transform: rotate(45deg);
}

.fan-event-goal .fan-event-chevron::before {
    border-color: #fff;
}

.fan-event-details {
    padding: 0 0.85rem 0.85rem 147px;
    color: #f2f2f2;
}

.fan-event-details p {
    margin: 0 0 0.65rem;
    font-weight: 700;
}

.fan-event-details dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
}

.fan-event-details div {
    min-width: 110px;
}

.fan-event-details dt {
    color: var(--color-gold);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fan-event-details dd {
    margin: 0.2rem 0 0;
    font-weight: 800;
}

.fan-event-clip {
    display: inline-flex;
    align-items: center;
    margin-top: 0.85rem;
    padding: 0.58rem 0.82rem;
    color: #000;
    background: var(--color-gold);
    border-radius: 5px;
    border: 0;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.fan-event-clip:hover,
.fan-event-clip:focus-visible {
    background: var(--color-gold-bright);
}

.fan-empty-state,
.fan-message-preview li,
.control-list li,
.stat-grid li,
.external-stat-grid article {
    padding: 0.82rem;
    color: #e8e8e8;
    background: rgba(255, 255, 255, 0.055);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    font-weight: 800;
}

.fan-message-preview,
.control-list,
.stat-grid,
.fan-match-centre > ul {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fan-match-centre > ul li {
    padding: 0.9rem;
    color: #e8e8e8;
    background: rgba(255, 255, 255, 0.055);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    font-weight: 800;
}

.fan-match-centre > ul a {
    display: inline-flex;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.fan-stat-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.fan-stat-card div {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.055);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
}

.fan-stat-card span,
.stat-grid span {
    display: block;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.fan-stat-card p,
.stat-grid p {
    margin: 0.35rem 0 0;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fan-stat-card a {
    grid-column: 1 / -1;
    justify-self: start;
}

#active-poll h4,
#active-poll h5 {
    margin: 0 0 0.75rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

#active-poll form {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 0.8rem;
}

#active-poll button {
    width: auto;
}

#active-poll ul {
    margin: 0;
    padding-left: 1.1rem;
}

.fan-question-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fan-answer-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

#active-poll .fan-answer-buttons button {
    min-height: 52px;
    display: grid;
    gap: 0.15rem;
    padding: 0.72rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    text-transform: none;
}

#active-poll .fan-answer-buttons button:hover,
#active-poll .fan-answer-buttons button:focus-visible,
#active-poll .fan-answer-buttons button[aria-pressed="true"] {
    color: #000;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.fan-answer-buttons small {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
}

.fan-answer-field {
    display: grid;
    gap: 0.25rem;
}

.fan-saved-answer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin: 0.75rem 0;
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.fan-saved-answer > span {
    padding: 0.2rem 0.4rem;
    color: #061006;
    background: var(--color-good);
    border-radius: 999px;
    font-size: 0.64rem;
    text-transform: uppercase;
}

.fan-saved-answer strong {
    color: #fff;
}

.engagement-error {
    color: #ffb1b8;
    font-weight: 900;
}

@media (max-width: 520px) {
    .fan-answer-buttons {
        grid-template-columns: 1fr;
    }

    #active-poll .fan-answer-buttons button {
        width: 100%;
    }
}

.fan-subpage-heading {
    display: grid;
    gap: 0.75rem;
}

.fan-subpage-heading .btn {
    justify-self: start;
}

.shot-filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--color-panel);
    border: 1px solid rgba(216, 185, 90, 0.65);
    border-radius: 8px;
    box-shadow: var(--shadow-tight);
}

.shot-filter-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shot-map-card {
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.48);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.rink-shell {
    width: min(980px, 100%);
    margin: 0 auto;
}

.rink-surface {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: #f8fbff;
    opacity: 1;
    border-radius: 6px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.rink-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    opacity: 1;
    pointer-events: none;
}

.rink-line,
.rink-net {
    opacity: 0;
}

.rink-picker-target {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
    padding: 0;
    opacity: 0;
    cursor: crosshair;
}

.shot-marker {
    --shot-marker-color: #000;
    --shot-marker-background: #fff;
    --shot-marker-border: rgba(255, 255, 255, 0.92);
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    color: var(--shot-marker-color);
    background: var(--shot-marker-background);
    border: 2px solid var(--shot-marker-border);
    border-radius: 50%;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.32);
}

button.shot-marker {
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-transform: none;
    transition: none;
}

button.shot-marker:hover {
    color: var(--shot-marker-color);
    background: var(--shot-marker-background);
    border-color: var(--shot-marker-border);
    outline: none;
    transform: translate(-50%, -50%);
}

button.shot-marker:focus-visible {
    z-index: 6;
    color: var(--shot-marker-color);
    background: var(--shot-marker-background);
    border-color: var(--shot-marker-border);
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
    transform: translate(-50%, -50%);
}

.heatmap-marker {
    position: absolute;
    z-index: 5;
    display: block;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%) scale(var(--heat-scale, 1));
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 20, 40, 0.75), rgba(255, 190, 0, 0.45) 45%, rgba(255, 190, 0, 0) 72%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.heatmap-marker-legend {
    position: static;
    width: 28px;
    height: 28px;
    transform: none;
}

.shot-marker-goal {
    --shot-marker-color: #fff;
    --shot-marker-background: var(--color-red);
    --shot-marker-border: #fff;
}

.shot-marker-saved {
    --shot-marker-color: #151515;
    --shot-marker-background: var(--color-gold-bright);
}

.shot-marker-missed {
    --shot-marker-color: #151515;
    --shot-marker-background: #fff;
}

.shot-marker-blocked {
    --shot-marker-color: #fff;
    --shot-marker-background: #242424;
    --shot-marker-border: var(--color-gold-bright);
}

.shot-marker-selected {
    --shot-marker-color: #fff;
    --shot-marker-background: var(--color-blue);
    --shot-marker-border: #fff;
}

.shot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.9rem;
    color: #f2f2f2;
    font-weight: 800;
}

.shot-legend-title {
    align-self: center;
    color: var(--color-gold-bright);
    text-transform: uppercase;
}

.shot-legend-help {
    padding-left: 0.85rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

.shot-legend span {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
}

.shot-legend .shot-marker {
    position: static;
    transform: none;
}

.shot-replay-dialog {
    width: min(880px, calc(100% - 2rem));
    padding: 1rem;
    color: #fff;
    background: #101010;
    border: 1px solid rgba(216, 185, 90, 0.75);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}

.shot-replay-dialog::backdrop {
    background: rgba(0, 0, 0, 0.78);
}

.shot-replay-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.shot-replay-heading h3,
.shot-replay-heading p {
    margin: 0;
}

.shot-replay-close {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.shot-replay-media {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
    isolation: isolate;
}

.shot-replay-dialog video {
    display: block;
    width: 100%;
    max-height: 70vh;
    background: #000;
}

.viewer-watermark {
    --watermark-tilt: 0deg;
    position: absolute;
    left: 50%;
    top: 20%;
    z-index: 20;
    max-width: 72%;
    transform: translate(-50%, -50%) rotate(var(--watermark-tilt));
    opacity: 0.11;
    color: #fff;
    font-family: "Courier New", monospace;
    font-size: clamp(0.65rem, 1.2vw, 0.88rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88);
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    transition:
        left 1.15s ease-in-out,
        top 1.15s ease-in-out,
        transform 1.15s ease-in-out;
}

.custom-video-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 42px auto minmax(80px, 1fr) auto 42px minmax(60px, 90px) 42px;
    gap: 0.55rem;
    align-items: center;
    padding: 2.25rem 0.75rem 0.65rem;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
}

.custom-video-controls .video-control-button {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    text-transform: none;
}

.custom-video-controls .video-control-button:hover,
.custom-video-controls .video-control-button:focus-visible {
    color: #111;
    background: var(--color-gold-bright);
    border-color: var(--color-gold-bright);
}

.video-time {
    min-width: 2.7rem;
    font-family: "Courier New", monospace;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: center;
}

.custom-video-controls input[type="range"] {
    width: 100%;
    min-height: 22px;
    margin: 0;
    padding: 0;
    accent-color: var(--color-gold-bright);
    background: transparent;
    cursor: pointer;
}

.video-seek {
    background: linear-gradient(
        90deg,
        var(--color-gold-bright) 0 var(--video-progress, 0%),
        rgba(255, 255, 255, 0.4) var(--video-progress, 0%) 100%
    );
}

@media (max-width: 620px) {
    .custom-video-controls {
        grid-template-columns: 38px auto minmax(60px, 1fr) auto 38px;
        gap: 0.35rem;
        padding-inline: 0.45rem;
    }

    .video-volume,
    [data-video-mute] {
        display: none !important;
    }
}

.shot-replay-media:fullscreen,
.shot-replay-media:-webkit-full-screen {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    background: #000;
    border-radius: 0;
}

.shot-replay-media:fullscreen video,
.shot-replay-media:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.external-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.external-stat-grid h4 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 1.12rem;
    font-weight: 900;
    text-transform: uppercase;
}

.external-stat-grid dl {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.external-stat-grid div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.external-stat-grid dt {
    color: var(--color-gold);
    font-weight: 900;
    text-transform: uppercase;
}

.external-stat-grid dd {
    margin: 0;
    font-weight: 900;
}

.stats-table-wrap {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    scrollbar-color: var(--color-gold) rgba(255, 255, 255, 0.08);
}

#live-game-stats {
    display: grid;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 1rem;
}

#live-game-stats > .fan-layer-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

#live-game-stats .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#live-game-stats .stat-grid li {
    min-width: 0;
    border-left-width: 3px;
}

#live-game-stats .stat-grid span {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.stats-section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.stats-section-nav {
    position: sticky;
    top: calc(var(--header-height) + 0.5rem);
    z-index: 15;
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.6rem;
    background: rgba(16, 16, 16, 0.96);
    border: 1px solid rgba(216, 185, 90, 0.55);
    border-radius: 8px;
    box-shadow: var(--shadow-tight);
    scrollbar-width: thin;
}

.stats-section-nav a {
    flex: 0 0 auto;
    padding: 0.5rem 0.7rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.stats-section-nav a:hover,
.stats-section-nav a:focus-visible {
    color: #111;
    background: var(--color-gold-bright);
    outline: none;
}

#live-game-stats .stats-table-wrap table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    margin-bottom: 0;
}

#live-game-stats .stats-table-wrap th,
#live-game-stats .stats-table-wrap td {
    padding: 0.68rem 0.75rem;
}

#live-game-stats .stats-table-wrap td {
    min-width: 90px;
}

.match-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.match-detail-grid div {
    min-width: 0;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.match-detail-grid dt {
    margin-bottom: 0.35rem;
    color: var(--color-gold-bright);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.match-detail-grid dd {
    margin: 0;
    color: #fff;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.stats-comparison-table {
    width: 100%;
}

.stats-comparison-table th:not(:first-child),
.stats-comparison-table td:not(:first-child) {
    text-align: center;
}

.stats-comparison-table tbody th {
    color: var(--color-gold-bright);
}

#match-timeline table th:nth-child(5),
#match-timeline table td:nth-child(5) {
    min-width: 280px;
    white-space: normal;
}

.roster-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.roster-grid > article {
    min-width: 0;
    max-width: 100%;
}

.roster-grid h4 {
    margin: 0 0 0.75rem;
    color: #fff;
    text-transform: uppercase;
}

.player-detail-table {
    width: max-content !important;
    min-width: 2550px !important;
    max-width: none !important;
}

.player-detail-table th,
.player-detail-table td {
    min-width: 68px !important;
    white-space: nowrap;
}

.player-detail-table th:first-child,
.player-detail-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 54px !important;
    background: #151515;
}

.player-detail-table th:nth-child(2),
.player-detail-table td:nth-child(2) {
    position: sticky;
    left: 54px;
    z-index: 3;
    min-width: 170px !important;
    background: #151515;
}

.stats-feed-note {
    margin: 0;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: max-content;
    padding: 0.35rem 0.55rem;
    color: #000;
    background: var(--color-gold);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-badge::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.66;
}

.status-badge-clip_failed,
.status-badge-invalid {
    color: #fff;
    background: var(--color-red-dark);
}

.status-badge-pending_clip {
    color: #fff;
    background: var(--color-red-dark);
}

.status-badge-pending_review {
    color: #07140b;
    background: var(--color-good);
}

.status-badge-awaiting_restart {
    color: #fff;
    background: var(--color-blue);
}

.status-badge-approved {
    background: var(--color-good);
}

.judge-page {
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.judge-header {
    display: grid;
    gap: 0.7rem;
}

.judge-header h2 {
    font-size: 4rem;
}

.judge-error {
    margin: 0;
    padding: 0.85rem 1rem;
    color: #fff;
    background: var(--color-red-dark);
    border-radius: 6px;
    font-weight: 900;
}

.judge-score-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}

.judge-score-strip div {
    padding: 1rem;
    background: var(--color-panel);
    border-left: 4px solid var(--color-gold);
    border-radius: 6px;
    box-shadow: var(--shadow-tight);
}

.judge-score-strip span {
    display: block;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.judge-score-strip p {
    margin: 0.35rem 0 0;
    color: var(--color-gold);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.judge-shot-form {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.judge-shot-button {
    min-height: 46vh;
    color: #fff;
    background: var(--color-red);
    border-color: #fff;
    font-size: 5.5rem;
}

.judge-shot-button:hover,
.judge-shot-button:focus-visible {
    color: #fff;
    background: #f0222a;
}

.judge-undo-button {
    min-height: 64px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.45);
}

.judge-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.faceoff-form {
    margin: 0;
    padding: 1rem;
}

.faceoff-rink {
    position: relative;
    aspect-ratio: 2 / 1;
    margin-bottom: 1rem;
    overflow: hidden;
    background: #f8fbff url("../img/rink-full.5f42723a60e8.svg") center / 100% 100% no-repeat;
    opacity: 1;
    border-radius: 6px;
    box-shadow: var(--shadow-tight);
}

.faceoff-spot,
.faceoff-map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.faceoff-spot {
    width: 40px;
    height: 40px;
    min-height: 0;
    padding: 0;
    background: rgba(216, 25, 32, 0.82);
    border: 3px solid #fff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.faceoff-spot-selected {
    background: var(--color-blue);
}

.faceoff-spot:hover,
.faceoff-spot:focus-visible {
    background: rgba(216, 25, 32, 0.95);
    border-color: var(--color-gold-bright);
    outline: 3px solid var(--color-gold-bright);
    outline-offset: 3px;
    transform: translate(-50%, -50%) scale(1.08);
}

.faceoff-spot-selected:hover,
.faceoff-spot-selected:focus-visible {
    background: var(--color-blue);
}

.faceoff-winner-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.faceoff-winner-buttons button {
    min-height: 76px;
}

.faceoff-map-rink {
    margin: 0;
}

.faceoff-map-marker {
    background: var(--color-blue);
    border: 3px solid #fff;
}

.faceoff-map-away {
    background: var(--color-red);
}

/* Fan faceoff intelligence */
.faceoff-filter-form {
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto auto;
}

.faceoff-clear-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 0.85rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.faceoff-clear-filters:hover,
.faceoff-clear-filters:focus-visible {
    color: #111;
    background: #fff;
    border-color: #fff;
    outline: none;
}

.faceoff-score-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(130px, 0.38fr) minmax(0, 1fr);
    align-items: stretch;
    margin-bottom: 1rem;
    overflow: hidden;
    color: #fff;
    background: #0b0e11;
    border: 1px solid rgba(216, 185, 90, 0.7);
    border-radius: 8px;
    box-shadow: var(--shadow-panel);
}

.faceoff-score-team,
.faceoff-score-total {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: clamp(0.85rem, 2vw, 1.3rem);
}

.faceoff-score-team {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.1rem 1rem;
}

.faceoff-score-home {
    background: linear-gradient(100deg, rgba(74, 132, 255, 0.35), transparent);
    border-left: 5px solid var(--color-blue);
}

.faceoff-score-away {
    text-align: right;
    background: linear-gradient(260deg, rgba(215, 25, 32, 0.34), transparent);
    border-right: 5px solid var(--color-red);
}

.faceoff-score-label {
    overflow: hidden;
    font-size: clamp(0.82rem, 1.5vw, 1.05rem);
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.faceoff-score-team strong {
    grid-row: span 2;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.85;
}

.faceoff-score-team small,
.faceoff-score-total small {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.faceoff-score-total {
    justify-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-inline: 1px solid rgba(255, 255, 255, 0.12);
}

.faceoff-score-total span {
    color: var(--color-gold-bright);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.faceoff-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(330px, 0.8fr);
    gap: 1rem;
    align-items: stretch;
}

.faceoff-rink-card,
.faceoff-matchups-card,
.faceoff-player-card,
.faceoff-log-card {
    margin-bottom: 1rem;
}

.faceoff-dashboard-grid > .fan-layer-card {
    margin-bottom: 1rem;
}

.faceoff-section-heading-public {
    align-items: flex-end;
}

.faceoff-section-heading-public .eyebrow,
.faceoff-log-card .eyebrow {
    margin: 0 0 0.15rem;
}

.faceoff-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: -0.25rem 0 0.9rem;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.faceoff-map-legend span {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
}

.faceoff-map-legend span::before {
    content: "";
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
}

.faceoff-legend-home::before {
    background: var(--color-blue);
}

.faceoff-legend-away::before {
    background: var(--color-red);
}

.faceoff-legend-tied::before {
    background: #3d454d;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.faceoff-summary-rink {
    aspect-ratio: 2.035 / 1;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 12% / 24%;
}

.faceoff-spot-summary {
    position: absolute;
    z-index: 2;
    display: grid;
    place-content: center;
    width: clamp(48px, 6.2vw, 76px);
    height: clamp(48px, 6.2vw, 76px);
    padding: 0.25rem;
    transform: translate(-50%, -50%);
    color: #fff;
    background: #26313a;
    border: 3px solid #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

.faceoff-spot-summary strong,
.faceoff-spot-summary small {
    display: block;
    line-height: 1;
}

.faceoff-spot-summary strong {
    font-size: clamp(0.95rem, 1.7vw, 1.35rem);
    font-weight: 900;
}

.faceoff-spot-summary small {
    margin-top: 0.22rem;
    font-size: clamp(0.55rem, 0.8vw, 0.7rem);
    font-weight: 900;
    text-transform: uppercase;
}

.faceoff-spot-home {
    background: #185bb3;
    box-shadow: 0 6px 18px rgba(24, 91, 179, 0.45);
}

.faceoff-spot-away {
    background: #b80e23;
    box-shadow: 0 6px 18px rgba(184, 14, 35, 0.42);
}

.faceoff-spot-tied {
    background: #333b42;
}

.faceoff-spot-empty {
    color: #5f6870;
    background: rgba(245, 247, 249, 0.92);
    border-color: rgba(95, 104, 112, 0.28);
    box-shadow: none;
}

.faceoff-map-note {
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.faceoff-matchup-list {
    display: grid;
    gap: 0.75rem;
}

.faceoff-matchup-card {
    padding: 0.85rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 7px;
}

.faceoff-matchup-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.faceoff-matchup-rank {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    color: #111;
    background: var(--color-gold-bright);
    border-radius: 50%;
}

.faceoff-matchup-players {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.faceoff-matchup-player {
    display: grid;
    min-width: 0;
}

.faceoff-matchup-player-away {
    text-align: right;
}

.faceoff-matchup-player small {
    overflow: hidden;
    color: var(--color-dim);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.faceoff-matchup-player strong {
    margin: 0.18rem 0;
    overflow: hidden;
    font-size: 0.9rem;
    line-height: 1.08;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.faceoff-matchup-player strong b,
.faceoff-player-identity b {
    color: var(--color-gold-bright);
}

.faceoff-matchup-player span {
    color: var(--color-muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.faceoff-matchup-vs {
    color: var(--color-gold-bright);
    font-size: 0.62rem;
    font-weight: 900;
}

.faceoff-matchup-bar {
    height: 6px;
    margin-top: 0.75rem;
    overflow: hidden;
    background: var(--color-red);
    border-radius: 999px;
}

.faceoff-matchup-bar span {
    display: block;
    height: 100%;
    background: var(--color-blue);
}

.faceoff-empty-state {
    display: grid;
    gap: 0.3rem;
    min-height: 120px;
    place-content: center;
    padding: 1rem;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    text-align: center;
}

.faceoff-empty-state strong {
    color: #fff;
    text-transform: uppercase;
}

.faceoff-empty-state p {
    max-width: 470px;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
}

.faceoff-player-table {
    width: 100%;
    min-width: 720px;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.faceoff-player-table tbody th {
    color: #fff;
    background: transparent;
    font-size: 0.9rem;
    text-transform: none;
}

.faceoff-player-table th:not(:first-child),
.faceoff-player-table td:not(:first-child) {
    text-align: center;
}

.faceoff-player-table tbody tr:last-child th,
.faceoff-player-table tbody tr:last-child td {
    border-bottom: 0;
}

.faceoff-player-identity {
    display: inline-flex;
    gap: 0.35rem;
    align-items: baseline;
}

.faceoff-team-pill {
    display: inline-block;
    max-width: 190px;
    overflow: hidden;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.faceoff-team-pill-home {
    color: #d9eaff;
    background: rgba(74, 132, 255, 0.2);
    border: 1px solid rgba(74, 132, 255, 0.45);
}

.faceoff-team-pill-away {
    color: #ffdadd;
    background: rgba(215, 25, 32, 0.2);
    border: 1px solid rgba(215, 25, 32, 0.45);
}

.faceoff-player-percentage {
    display: grid;
    grid-template-columns: 52px 72px;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.faceoff-player-percentage strong {
    color: #fff;
}

.faceoff-player-percentage i {
    display: block;
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.faceoff-player-percentage i b {
    display: block;
    height: 100%;
    background: var(--color-gold-bright);
}

.faceoff-log-card {
    padding: 0;
    overflow: hidden;
}

.faceoff-log-card summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    min-height: 74px;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.faceoff-log-card summary::-webkit-details-marker {
    display: none;
}

.faceoff-log-card summary span {
    display: grid;
}

.faceoff-log-card summary strong {
    font-size: 1.15rem;
    text-transform: uppercase;
}

.faceoff-log-card summary > b {
    color: var(--color-gold);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.faceoff-log-card[open] summary {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.faceoff-log-card .control-list {
    padding: 0.85rem;
}

.faceoff-log-card .control-list li {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(220px, auto);
    gap: 0.8rem;
    align-items: center;
}

.faceoff-log-card .control-list li > span,
.faceoff-log-card .control-list li > small {
    color: var(--color-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.faceoff-log-card .control-list li > strong {
    color: #fff;
}

.faceoff-log-card .control-list em {
    color: var(--color-gold);
    font-size: 0.65rem;
    font-style: normal;
    text-transform: uppercase;
}

.app-staff_games main > form p,
.app-games main > form p {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 0.55rem 0.9rem;
    align-items: center;
}

/* Keyboard-first shot review */
.app-staff_games main:has(> .review-queue-page),
.app-staff_games main:has(> .shot-review-workspace) {
    padding-top: clamp(1rem, 2vw, 1.5rem);
    padding-bottom: clamp(1rem, 2vw, 1.5rem);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.review-queue-page {
    width: min(1440px, 100%);
    margin: 0 auto;
}

.review-queue-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(120deg, rgba(216, 185, 90, 0.13), transparent 48%),
        linear-gradient(145deg, #20272d, #0d1114);
    border: 1px solid rgba(216, 185, 90, 0.62);
    border-radius: 12px 12px 0 0;
    box-shadow: var(--shadow-panel);
}

.review-queue-header::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -8rem;
    width: 22rem;
    height: 22rem;
    background: radial-gradient(circle, rgba(215, 25, 32, 0.2), transparent 66%);
    pointer-events: none;
}

.review-queue-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
}

.review-queue-header p:last-child {
    max-width: 650px;
    margin: 0.8rem 0 0;
    color: var(--color-muted);
    font-weight: 700;
}

.review-queue-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.review-queue-count {
    display: grid;
    min-width: 98px;
    padding: 0.6rem 1rem;
    color: #151515;
    background: var(--color-gold-bright);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.review-queue-count strong {
    font-size: 2rem;
    line-height: 1;
}

.review-queue-count span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-queue-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    color: var(--color-dim);
    background: rgba(0, 0, 0, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.review-queue-statusbar p {
    margin: 0;
}

.review-queue-table-shell {
    overflow: hidden;
    background: rgba(11, 14, 16, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-panel);
}

.review-queue-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.review-queue-table th {
    padding: 0.8rem 1rem;
    color: var(--color-dim);
    background: rgba(255, 255, 255, 0.035);
    border-bottom-color: rgba(255, 255, 255, 0.12);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.review-queue-table td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.review-queue-table tbody tr {
    transition: background 0.16s ease;
}

.review-queue-table tbody tr:hover {
    background: rgba(216, 185, 90, 0.07);
}

.review-queue-table tbody tr[data-review-kind="faceoff"] {
    box-shadow: inset 4px 0 0 rgba(216, 185, 90, 0.82);
}

.review-kind-badge {
    display: inline-flex;
    margin-right: 0.4rem;
    padding: 0.24rem 0.42rem;
    color: #fff;
    background: var(--color-blue);
    border-radius: 4px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.review-kind-faceoff {
    color: #151515;
    background: var(--color-gold-bright);
}

.review-kind-stoppage {
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
}

.stoppage-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 1.25rem;
}

.stoppage-review-clip video {
    display: block;
    width: 100%;
    max-height: 65vh;
    background: #000;
}

.stoppage-reason-form {
    align-self: start;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: var(--panel, #111827);
}

.stoppage-reason-form label {
    font-weight: 700;
}

.stoppage-reason-form input {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.6rem;
    font: inherit;
}

.stoppage-reason-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stoppage-reason-options button {
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.stoppage-reason-options button:hover,
.stoppage-reason-options button:focus-visible {
    border-color: currentColor;
}

@media (max-width: 850px) {
    .stoppage-review-grid {
        grid-template-columns: 1fr;
    }
}

.review-shot-id,
.review-clock {
    color: var(--color-gold-bright);
    font-size: 1.05rem;
    font-weight: 900;
}

.review-clock {
    font-family: "Courier New", monospace;
}

.review-game-name {
    color: var(--color-muted);
}

.review-faceoff-matchup strong,
.review-faceoff-matchup span,
.review-faceoff-matchup small {
    display: block;
}

.review-faceoff-matchup span {
    color: var(--color-dim);
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.review-faceoff-matchup small {
    margin-top: 0.15rem;
    color: var(--color-gold-bright);
    font-weight: 800;
}

.review-queue-action {
    text-align: right;
}

.review-shot-button {
    gap: 0.65rem;
    min-width: 130px;
}

.review-queue-empty td {
    padding: 3.5rem 1rem;
    text-align: center;
}

.review-queue-empty strong,
.review-queue-empty span {
    display: block;
}

.review-queue-empty strong {
    color: #fff;
    font-size: 1.5rem;
}

.review-queue-empty span {
    margin-top: 0.25rem;
    color: var(--color-muted);
}

.shot-review-workspace,
.faceoff-review-workspace {
    width: min(1500px, 100%);
    min-height: calc(100vh - var(--header-height) - 3rem);
    margin: 0 auto;
}

.shot-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.shot-review-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.shot-review-header p {
    margin: 0.15rem 0 0;
}

.shot-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.shot-review-meta span {
    padding: 0.3rem 0.55rem;
    color: var(--color-muted);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.shot-review-meta strong {
    color: #fff;
}

.shot-review-links,
.shot-outcome-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.shot-review-form {
    display: grid;
    gap: 0.65rem;
    padding: 0.7rem;
    background: linear-gradient(150deg, rgba(26, 33, 38, 0.98), rgba(10, 13, 15, 0.98));
    border: 1px solid rgba(216, 185, 90, 0.58);
    border-radius: 10px;
    box-shadow: var(--shadow-panel);
}

.shot-review-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
    gap: 0.75rem;
    min-height: 0;
}

.shot-review-clip,
.shot-location-panel {
    min-width: 0;
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.review-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.review-panel-heading small {
    padding: 0.25rem 0.5rem;
    color: #8fe0a9;
    background: rgba(59, 177, 96, 0.12);
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0;
}

.review-panel-heading small.is-warning {
    color: #ffb3ba;
    background: rgba(215, 25, 32, 0.14);
}

.shot-review-clip video,
.faceoff-review-clip video {
    display: block;
    width: 100%;
    max-height: min(32vh, 280px);
    background: #000;
    border-radius: 6px;
}

.shot-review-no-clip {
    display: grid;
    place-items: center;
    min-height: 150px;
    color: var(--color-muted);
    background: #090b0d;
    border-radius: 6px;
    text-align: center;
}

.shot-review-no-clip strong {
    color: #fff;
}

.review-panel-heading small.is-live {
    color: #07140b;
    background: var(--color-good);
}

.faceoff-matchup-fields {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.faceoff-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.faceoff-section-heading strong {
    color: #fff;
    font-weight: 900;
}

.faceoff-section-heading > div > span {
    display: block;
    margin-top: 0.2rem;
    color: var(--color-muted);
    font-size: 0.75rem;
}

.faceoff-autosave-status {
    padding: 0.28rem 0.5rem;
    color: #8fe0a9;
    background: rgba(59, 177, 96, 0.12);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.faceoff-autosave-status[data-state="pending"],
.faceoff-autosave-status[data-state="saving"] {
    color: var(--color-gold-bright);
    background: rgba(216, 185, 90, 0.12);
}

.faceoff-autosave-status[data-state="error"] {
    color: #ffb3ba;
    background: rgba(215, 25, 32, 0.14);
}

.faceoff-team-field {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) 90px minmax(150px, 1fr);
    gap: 0.55rem;
    align-items: center;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
}

.faceoff-team-home {
    border-left: 4px solid var(--color-blue);
}

.faceoff-team-away {
    border-left: 4px solid var(--color-red);
}

.faceoff-team-field input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.faceoff-team-field label,
.faceoff-team-field label span,
.faceoff-team-field label small {
    display: block;
}

.faceoff-team-field label span {
    color: #fff;
    font-weight: 900;
}

.faceoff-team-field label small,
.faceoff-player-match {
    color: var(--color-muted);
    font-size: 0.72rem;
}

.faceoff-team-field input {
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
}

.faceoff-player-match[data-state="matched"] {
    color: #8fe0a9;
}

.faceoff-player-match[data-state="error"] {
    color: #ff8f9a;
}

.faceoff-save-matchup {
    justify-self: end;
}

.faceoff-review-rink {
    width: 100%;
    margin: 0;
}

.faceoff-spot-panel {
    display: grid;
    align-content: start;
}

.faceoff-live-entry-note {
    margin: 0.7rem 0 0;
    padding: 0.65rem;
    color: var(--color-muted);
    background: rgba(11, 91, 170, 0.1);
    border-left: 4px solid var(--color-blue);
    border-radius: 5px;
    font-size: 0.78rem;
    line-height: 1.4;
}

.faceoff-live-entry-note strong {
    display: block;
    color: #fff;
    text-transform: uppercase;
}

.review-fields {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.55rem;
}

.review-field {
    display: grid;
    grid-template-columns: minmax(140px, 0.65fr) minmax(90px, 0.35fr) minmax(180px, 1fr);
    gap: 0.5rem;
    align-items: center;
    color: #fff;
    padding: 0.38rem;
    background: rgba(255, 255, 255, 0.025);
    border-radius: 6px;
    font-weight: 800;
}

.review-field[hidden] {
    display: none;
}

.review-field-blocker {
    border: 1px solid rgba(242, 213, 107, 0.5);
    background: rgba(216, 185, 90, 0.08);
}

.review-field b,
.shot-type-picker legend b,
.shot-location-heading b,
.shot-outcomes > span b,
.faceoff-section-heading b {
    display: inline-grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    margin-right: 0.3rem;
    color: #151515;
    background: var(--color-gold-bright);
    border-radius: 50%;
    font-size: 0.78rem;
}

.review-field em {
    display: block;
    color: var(--color-muted);
    font-size: 0.7rem;
    font-style: normal;
}

.review-field input {
    min-height: 42px;
    padding: 0.45rem 0.65rem;
    font-size: 1.25rem;
    font-weight: 900;
    text-align: center;
}

.review-field small {
    color: var(--color-muted);
    line-height: 1.2;
}

.review-field small[data-state="matched"] {
    color: #8fe0a9;
}

.review-field small[data-state="error"],
.errorlist {
    color: #ff8f9a;
}

.shot-type-picker {
    min-width: 0;
    margin: 0;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}

.shot-type-picker:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

.shot-type-picker legend {
    padding: 0 0.25rem;
    color: #fff;
    font-weight: 800;
}

.shot-type-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
}

.shot-type-option {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    min-height: 38px;
    padding: 0.35rem;
    color: #eee;
    background: #252c31;
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    text-transform: none;
}

.shot-type-option kbd,
.shot-outcomes kbd,
.shot-review-help kbd {
    display: inline-grid;
    place-items: center;
    min-width: 1.55rem;
    min-height: 1.55rem;
    padding: 0.12rem;
    color: #151515;
    background: #fff;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 900;
}

.shot-type-option.is-selected {
    color: #151515;
    background: var(--color-gold-bright);
    border-color: #fff;
}

.shot-location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.shot-location-heading strong,
.shot-outcomes > span {
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
}

.shot-location-heading span {
    display: block;
    margin-top: 0.15rem;
    color: var(--color-muted);
    font-size: 0.78rem;
}

.shot-location-panel .rink-shell {
    width: 100%;
}

.shot-location-panel .rink-surface {
    max-height: min(59vh, 520px);
}

.shot-outcomes {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: center;
    padding: 0.65rem;
    background: rgba(12, 15, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.shot-outcome-buttons {
    justify-content: flex-end;
}

.shot-outcome-buttons button {
    min-height: 46px;
    padding: 0.55rem 0.8rem;
}

.shot-outcome-buttons .outcome-goal {
    background: var(--color-red);
}

.shot-outcome-buttons .outcome-saved {
    color: #151515;
    background: var(--color-gold-bright);
}

.shot-outcome-buttons .outcome-blocked {
    border-color: var(--color-gold-bright);
}

.review-form-errors {
    color: #fff;
    background: rgba(194, 24, 49, 0.24);
    border-left: 4px solid var(--color-red);
}

.shot-review-help {
    width: min(980px, 100%);
    margin: 0 auto;
}

.shot-review-help > section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--color-panel);
    border: 1px solid rgba(216, 185, 90, 0.45);
    border-radius: 8px;
}

.shot-review-help li {
    margin-bottom: 0.55rem;
}

.shot-descriptor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.shot-descriptor-list > div {
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.shot-descriptor-list dt {
    color: #fff;
    font-weight: 900;
}

.shot-descriptor-list dd {
    margin: 0.35rem 0 0;
    color: var(--color-muted);
}

@media (max-width: 1040px) {
    .review-queue-header {
        align-items: flex-start;
    }

    .shot-review-grid {
        grid-template-columns: 1fr;
    }

    .shot-review-workspace {
        min-height: 0;
    }

    .fan-overview-grid {
        grid-template-columns: 1fr;
    }

    .fan-layer-card-large {
        grid-row: auto;
    }

    .virtual-scoreboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: auto;
    }

    .scoreboard-aux {
        display: none;
    }

    .scoreboard-team-home {
        grid-column: 1;
        grid-row: 1;
    }

    .scoreboard-team-away {
        grid-column: 2;
        grid-row: 1;
    }

    .scoreboard-centre {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scoreboard-clock {
        grid-column: 1 / -1;
    }

    .scoreboard-period,
    .scoreboard-sog {
        grid-template-columns: 1fr;
    }

    .scoreboard-period strong {
        grid-column: 1;
        justify-self: center;
        width: 80px;
    }

    .fan-scoreboard-shell {
        top: calc(var(--header-height) + 0.5rem);
    }

    .scoreboard-score {
        min-height: 58px;
        font-size: 3.5rem;
    }

    .scoreboard-clock {
        min-height: 48px;
        font-size: 2.75rem;
    }
}

.faceoff-review-actions button:disabled {
    cursor: not-allowed;
    filter: grayscale(0.75);
    opacity: 0.48;
}

.faceoff-review-actions .faceoff-winner-home {
    color: #151515;
    background: var(--color-gold-bright);
}

.faceoff-review-actions .faceoff-winner-away {
    color: #fff;
    background: var(--color-red);
}

@media (max-width: 680px) {
    .fan-scoreboard-shell {
        top: 0.5rem;
    }
}

@media (max-width: 760px) {
    .live-faceoff-heading {
        display: grid;
    }

    .live-faceoff-meta {
        justify-content: space-between;
    }

    .live-faceoff-matchup {
        gap: 0.55rem;
    }

    .live-faceoff-player {
        font-size: 1rem;
        white-space: normal;
    }

    .live-faceoff-versus {
        width: 2rem;
        height: 2rem;
    }

    .review-queue-header,
    .review-queue-actions,
    .review-queue-statusbar {
        align-items: stretch;
    }

    .review-queue-header,
    .review-queue-actions {
        flex-direction: column;
    }

    .review-queue-statusbar > span {
        display: none;
    }

    .review-queue-table,
    .review-queue-table tbody,
    .review-queue-table tr,
    .review-queue-table td {
        display: block;
        width: 100%;
    }

    .review-queue-table thead {
        display: none;
    }

    .review-queue-table tr {
        padding: 0.8rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .review-queue-table td {
        display: grid;
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 0.7rem;
        padding: 0.35rem 0;
        border: 0;
    }

    .review-queue-table td::before {
        content: attr(data-label);
        color: var(--color-dim);
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .review-queue-table .review-queue-action {
        display: block;
        margin-top: 0.6rem;
    }

    .review-shot-button {
        width: 100%;
    }

    .shot-review-header,
    .shot-outcomes {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .shot-review-header {
        display: grid;
    }

    .review-field,
    .shot-descriptor-list,
    .faceoff-team-field {
        grid-template-columns: 1fr;
    }

    .faceoff-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .faceoff-autosave-status {
        align-self: flex-start;
    }

    .faceoff-save-matchup {
        justify-self: stretch;
        width: 100%;
    }

    .shot-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shot-outcome-buttons {
        justify-content: stretch;
    }

    .shot-outcome-buttons button {
        flex: 1 1 42%;
    }

    .fan-hero h2,
    .judge-header h2 {
        font-size: 2.7rem;
    }

    .fan-layer-nav {
        position: sticky;
        bottom: 0.5rem;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        box-shadow: var(--shadow-panel);
    }

    .fan-layer-nav a {
        width: 100%;
        min-height: 42px;
        padding: 0.5rem 0.35rem;
        font-size: 0.72rem;
    }

    .shot-filter-form {
        grid-template-columns: 1fr;
    }

    #live-game-stats .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #live-game-stats .fan-layer-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .stats-section-nav {
        top: 0.5rem;
    }

    .external-stat-grid,
    .match-detail-grid,
    .roster-grid,
    .judge-score-strip,
    .faceoff-winner-buttons,
    .fan-stat-card,
    .app-staff_games main > form p,
    .app-games main > form p {
        grid-template-columns: 1fr;
    }

    .rink-surface {
        min-height: 220px;
    }

    .fan-event-card summary {
        grid-template-columns: 64px 42px minmax(0, 1fr) 18px;
        gap: 0.55rem;
    }

    .fan-team-token {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .fan-event-details {
        padding-left: 0.85rem;
    }

    .fan-event-main em {
        white-space: normal;
    }

    .judge-shot-button {
        min-height: 38vh;
        font-size: 4rem;
    }

    .faceoff-score-strip {
        grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
    }

    .faceoff-score-team {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .faceoff-score-team strong {
        grid-row: auto;
        font-size: 2rem;
    }

    .faceoff-score-away {
        justify-items: end;
    }

    .faceoff-score-label {
        max-width: 100%;
        font-size: 0.7rem;
    }

    .faceoff-score-total span {
        font-size: 1.5rem;
    }

    .faceoff-score-total small {
        font-size: 0.56rem;
    }

    .faceoff-section-heading-public {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .faceoff-log-card .control-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 1080px) {
    .faceoff-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .faceoff-matchup-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .faceoff-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faceoff-matchup-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .faceoff-filter-form {
        grid-template-columns: 1fr;
    }

    .faceoff-clear-filters {
        width: 100%;
    }

    .faceoff-score-team,
    .faceoff-score-total {
        padding: 0.75rem 0.55rem;
    }

    .faceoff-score-team small {
        font-size: 0.6rem;
    }

    .faceoff-summary-rink {
        min-height: 190px;
    }

    .faceoff-spot-summary {
        width: 44px;
        height: 44px;
        border-width: 2px;
    }

    .faceoff-spot-summary strong {
        font-size: 0.86rem;
    }

    .faceoff-spot-summary small {
        margin-top: 0.1rem;
        font-size: 0.48rem;
    }

    .faceoff-log-card summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Post-game reconciliation */
.reconciliation-page {
    display: grid;
    gap: 1.25rem;
    width: min(1320px, 100%);
    margin: 0 auto;
}

.reconciliation-header form,
.reconciliation-discrepancies .section-heading form {
    margin: 0;
}

.reconciliation-runs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem;
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.75rem;
    background: var(--surface, #fff);
    overflow-x: auto;
}

.reconciliation-runs strong,
.reconciliation-runs a {
    flex: 0 0 auto;
}

.reconciliation-runs a {
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
}

.reconciliation-runs a[aria-current="page"] {
    background: #172554;
    color: #fff;
}

.reconciliation-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(105px, 1fr));
    gap: 0.65rem;
}

.reconciliation-summary > div {
    display: grid;
    gap: 0.15rem;
    padding: 0.85rem;
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.75rem;
    background: var(--surface, #fff);
}

.reconciliation-summary strong {
    font-size: 1.3rem;
}

.reconciliation-summary span,
.reconciliation-source-state,
.reconciliation-discrepancy > header p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 0.82rem;
}

.reconciliation-sources,
.reconciliation-discrepancies {
    display: grid;
    gap: 1rem;
}

.reconciliation-source-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.reconciliation-source-card,
.reconciliation-discrepancy {
    border: 1px solid var(--border, #d8dee8);
    border-radius: 0.85rem;
    background: var(--surface, #fff);
}

.reconciliation-source-card {
    padding: 1rem;
}

.reconciliation-source-card[data-available="false"] {
    border-color: #dc2626;
    background: #fff7f7;
}

.reconciliation-source-card h4,
.reconciliation-discrepancy h4,
.reconciliation-discrepancy h5 {
    margin: 0;
}

.reconciliation-source-card dl {
    display: grid;
    grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1.4fr);
    gap: 0.4rem 0.6rem;
    margin: 0.85rem 0;
    font-size: 0.82rem;
}

.reconciliation-source-card dt {
    color: var(--muted, #64748b);
    font-weight: 700;
}

.reconciliation-source-card dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.reconciliation-source-card summary,
.reconciliation-decision-form summary,
.reconciliation-decision-history summary {
    cursor: pointer;
    font-weight: 700;
}

.reconciliation-source-card pre,
.reconciliation-discrepancy pre {
    max-width: 100%;
    margin: 0.55rem 0 0;
    padding: 0.65rem;
    border-radius: 0.55rem;
    background: #0f172a;
    color: #e2e8f0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.75rem;
}

.reconciliation-gate {
    margin: 0;
}

.reconciliation-complete {
    margin: 0;
    padding: 0.75rem;
    border: 1px solid #86efac;
    border-radius: 0.65rem;
    background: #f0fdf4;
    color: #166534;
}

.reconciliation-discrepancy-list {
    display: grid;
    gap: 0.85rem;
}

.reconciliation-discrepancy {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-left-width: 5px;
}

.reconciliation-discrepancy-critical {
    border-left-color: #dc2626;
}

.reconciliation-discrepancy-advisory {
    border-left-color: #d97706;
}

.reconciliation-discrepancy > header,
.reconciliation-discrepancy > header > div {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.reconciliation-discrepancy > header {
    justify-content: space-between;
}

.reconciliation-badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reconciliation-badge-critical {
    background: #fee2e2;
    color: #991b1b;
}

.reconciliation-badge-advisory {
    background: #fef3c7;
    color: #92400e;
}

.reconciliation-badge-status {
    background: #e2e8f0;
    color: #334155;
}

.reconciliation-discrepancy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

.reconciliation-decision-form,
.reconciliation-decision-history {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border, #d8dee8);
}

.reconciliation-decision-form form {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(240px, 1fr) auto;
    align-items: end;
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.reconciliation-decision-form label {
    grid-row: 1;
    font-weight: 700;
}

.reconciliation-decision-form select,
.reconciliation-decision-form textarea,
.reconciliation-decision-form button {
    grid-row: 2;
}

.reconciliation-decision-form textarea {
    resize: vertical;
}

.reconciliation-decision-history ol {
    display: grid;
    gap: 0.55rem;
    margin: 0.65rem 0 0;
    padding-left: 1.4rem;
}

.reconciliation-decision-history p {
    margin: 0.2rem 0 0;
}

@media (max-width: 980px) {
    .reconciliation-summary {
        grid-template-columns: repeat(3, minmax(100px, 1fr));
    }

    .reconciliation-source-grid,
    .reconciliation-discrepancy-grid {
        grid-template-columns: 1fr;
    }

    .reconciliation-decision-form form {
        grid-template-columns: 1fr;
    }

    .reconciliation-decision-form label,
    .reconciliation-decision-form select,
    .reconciliation-decision-form textarea,
    .reconciliation-decision-form button {
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .reconciliation-summary {
        grid-template-columns: repeat(2, minmax(90px, 1fr));
    }

    .reconciliation-discrepancy > header,
    .reconciliation-discrepancy > header > div {
        align-items: flex-start;
        flex-direction: column;
    }
}
