.championship-trophy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 170px);
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.championship-trophy {
    margin: 0 auto;
    width: 100%;
    max-width: 170px;
    text-align: center;
}

.championship-trophy__preview {
    display: grid;
    gap: .35rem;
    font-weight: 700;
}

.championship-trophy__preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .4rem;
}

/* Isolate the viewer controls from the site's global red button theme. */
.championship-trophy-dialog {
    box-sizing: border-box;
    width: min(95vw, 46rem);
    height: 94vh;
    height: 94dvh;
    max-height: 94vh;
    max-height: 94dvh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    color: #f4f7fc;
    background: #10151e;
    border: 1px solid #3b4655;
    border-radius: .75rem;
    box-shadow: 0 1rem 3rem #0008;
}

.championship-trophy-dialog[open] {
    display: flex;
    flex-direction: column;
}

.championship-trophy-dialog::backdrop {
    background: rgba(5, 9, 15, .88);
}

.championship-trophy-dialog__header,
.championship-trophy-dialog__controls {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.championship-trophy-dialog__header {
    flex: 0 0 auto;
    justify-content: space-between;
    padding: .45rem .55rem .45rem .85rem;
    background: #1b2430;
    border-bottom: 1px solid #3b4655;
}

.championship-trophy-dialog .championship-trophy-dialog__header h2 {
    margin: 0;
    color: inherit;
    font-size: .95rem;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.championship-trophy-dialog__controls form {
    margin: 0 0 0 .25rem;
}

.championship-trophy-dialog .championship-trophy-dialog__controls button {
    appearance: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #f4f7fc;
    background: #293647;
    border: 1px solid #46556a;
    border-radius: .4rem;
    box-shadow: none;
    font: 600 1.15rem/1 system-ui, sans-serif;
    letter-spacing: normal;
    text-shadow: none;
    text-transform: none;
    cursor: pointer;
}

.championship-trophy-dialog .championship-trophy-dialog__controls button[data-trophy-fit] {
    font-size: .78rem;
}

.championship-trophy-dialog .championship-trophy-dialog__controls button:hover:not(:disabled) {
    background: #3e5066;
}

.championship-trophy-dialog .championship-trophy-dialog__controls button:disabled {
    opacity: .45;
    cursor: default;
}

.championship-trophy-dialog .championship-trophy-dialog__controls button:focus-visible,
.championship-trophy-dialog__image:focus-visible {
    outline: 2px solid #a9d3ff;
    outline-offset: -3px;
}

.championship-trophy-dialog__image {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: auto;
    overscroll-behavior: contain;
}

.championship-trophy-dialog__image img {
    display: block;
    flex: none;
    max-width: none;
    height: auto;
    margin: auto;
}

.championship-trophy-dialog__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (max-width: 600px) {
    .championship-trophy-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}
