.tournament-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 123, 255, .2), transparent 25rem),
        linear-gradient(145deg, #f8fbff 0%, #fff 52%, #edf6ff 100%);
}

.tournament-hero::after {
    content: "";
    position: absolute;
    right: -8rem;
    bottom: -12rem;
    width: 28rem;
    aspect-ratio: 1;
    border: 3.5rem solid rgba(0, 123, 255, .055);
    border-radius: 50%;
}

.tournament-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.tournament-hero__copy h1 {
    max-width: 11ch;
}

.tournament-hero__tournaments-link {
    margin-top: 1.35rem;
}

.next-tournament {
    position: relative;
    padding: clamp(1.35rem, 3vw, 2.1rem);
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(173, 199, 224, .65);
    border-radius: var(--radius-lg);
    box-shadow: 0 1.5rem 4rem rgba(10, 27, 45, .13);
}

.next-tournament::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: .3rem;
    background: linear-gradient(90deg, var(--primary), #65b5ff);
}

.next-tournament.is-cancelled::before {
    background: #b5c0cb;
}

.next-tournament--ace::before {
    top: auto;
    right: -4.5rem;
    bottom: -5.5rem;
    left: auto;
    width: 11rem;
    height: 11rem;
    background: transparent;
    border: 1.8rem solid rgba(0, 123, 255, .055);
    border-radius: 50%;
}

.next-tournament--ace > * {
    position: relative;
    z-index: 1;
}

.next-tournament--ace .next-tournament__main {
    z-index: 3;
}

.next-tournament--ace .status-pill--next {
    color: #466600;
    background: #eef8d8;
}

.next-tournament__ace-logo {
    width: 4.9rem;
    height: auto;
}

.next-tournament__topline,
.tournament-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}

.next-tournament__topline {
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.next-tournament__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.next-tournament h2 {
    max-width: 18ch;
    margin-top: .65rem;
    font-size: clamp(1.7rem, 3.5vw, 2.55rem);
}

.next-tournament__main p {
    max-width: 48ch;
    margin: .8rem 0 0;
    color: var(--ink-soft);
}

.status-pill,
.type-badge,
.proximity-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: .33rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.status-pill--next,
.proximity-label {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.status-pill--past {
    color: #4f6174;
    background: #e9eef3;
}

.status-pill--cancelled {
    color: #a62222;
    background: #fdecec;
}

.type-badge {
    color: #41546a;
    background: #f0f4f8;
}

.type-badge--ace {
    color: #466600;
    background: #eef8d8;
}

.tournament-format {
    --format-color: #52677c;
    --format-soft: #edf2f6;
    --format-border: #cbd6df;
    --format-shadow: rgba(41, 61, 79, .25);
    position: relative;
    z-index: 3;
    display: inline-flex;
}

.tournament-format--americano {
    --format-color: #006ecf;
    --format-soft: #e8f4ff;
    --format-border: #afd5f8;
    --format-shadow: rgba(0, 110, 207, .28);
}

.tournament-format--team-americano {
    --format-color: #5146c8;
    --format-soft: #efedff;
    --format-border: #c9c3fa;
    --format-shadow: rgba(81, 70, 200, .28);
}

.tournament-format--mexicano {
    --format-color: #ad4e0a;
    --format-soft: #fff1e7;
    --format-border: #f2c7a5;
    --format-shadow: rgba(173, 78, 10, .28);
}

.tournament-format--king {
    --format-color: #a51f62;
    --format-soft: #fdebf4;
    --format-border: #f1b9d4;
    --format-shadow: rgba(165, 31, 98, .28);
}

.tournament-format--pairs {
    --format-color: #087665;
    --format-soft: #e7f7f3;
    --format-border: #aedfd4;
    --format-shadow: rgba(8, 118, 101, .27);
}

.tournament-format__badge {
    min-height: 1.8rem;
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .32rem .42rem .32rem .68rem;
    color: #fff;
    background: var(--format-color);
    border: 1px solid var(--format-color);
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .035em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.tournament-format[tabindex="0"],
.tournament-format[tabindex="0"] .tournament-format__badge {
    cursor: pointer;
}

.tournament-format__badge--static {
    padding-right: .68rem;
}

.tournament-format__info {
    width: 1.05rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--format-color);
    background: #fff;
    border-radius: 50%;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: .62rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: none;
}

.tournament-format__tooltip {
    position: absolute;
    bottom: calc(100% + .8rem);
    left: 0;
    z-index: 30;
    width: min(21rem, calc(100vw - 2rem));
    display: grid;
    gap: .6rem;
    padding: 1.05rem 1.1rem;
    color: #fff;
    background: var(--format-color);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem;
    box-shadow: 0 1.25rem 2.8rem var(--format-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(.45rem) scale(.98);
    transform-origin: left bottom;
    pointer-events: none;
    text-align: left;
    text-transform: none;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.tournament-format__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 1.25rem;
    width: 0;
    height: 0;
    border: .48rem solid transparent;
    border-top-color: var(--format-color);
}

.tournament-format__eyebrow {
    color: rgba(255, 255, 255, .72);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.tournament-format__tooltip > strong {
    font-size: 1.08rem;
    line-height: 1.15;
}

.tournament-format__description {
    color: rgba(255, 255, 255, .9);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.5;
}

.tournament-format__duration {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .72rem;
    margin-top: .15rem;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: .75rem;
}

.tournament-format__duration svg {
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tournament-format__duration > span {
    display: grid;
    gap: .12rem;
}

.tournament-format__duration small {
    color: rgba(255, 255, 255, .68);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tournament-format__duration strong {
    font-size: .8rem;
    line-height: 1.2;
}

.tournament-format:hover {
    z-index: 20;
}

.tournament-format:hover .tournament-format__badge {
    box-shadow: 0 .5rem 1.2rem var(--format-shadow);
    transform: translateY(-1px);
}

.tournament-format:hover .tournament-format__tooltip,
.tournament-format:focus .tournament-format__tooltip,
.next-tournament:focus-within .tournament-format__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.next-tournament .tournament-format__tooltip {
    top: calc(100% + .8rem);
    bottom: auto;
    transform: translateY(-.45rem) scale(.98);
    transform-origin: left top;
}

.next-tournament .tournament-format__tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--format-color);
}

.tournament-date {
    width: 5.6rem;
    min-height: 6.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .75rem .55rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 123, 255, .14);
    border-radius: 1.15rem;
    line-height: 1;
    text-align: center;
}

.tournament-date strong {
    font-size: 1.85rem;
    letter-spacing: -.06em;
}

.tournament-date span {
    margin-top: .35rem;
    font-size: .8rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tournament-date small {
    margin-top: .32rem;
    color: #59728c;
    font-size: .68rem;
    font-weight: 750;
}

.tournament-date--large {
    width: clamp(6rem, 12vw, 7.2rem);
    min-height: clamp(7rem, 14vw, 8rem);
}

.tournament-date--large strong {
    font-size: clamp(2rem, 4vw, 2.65rem);
}

.tournament-date--featured {
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(118, 196, 255, .42), transparent 3.8rem),
        linear-gradient(155deg, #0879df 0%, #0056ad 58%, #003f83 100%);
    border-color: rgba(0, 80, 166, .35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .3),
        0 .85rem 1.75rem rgba(0, 83, 172, .22);
}

.tournament-date--featured span {
    color: #fff;
}

.tournament-date--featured small {
    color: rgba(255, 255, 255, .8);
    font-size: .78rem;
    font-weight: 850;
}

.tournament-details {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: 1.25rem 0 0;
    margin: 1.25rem 0 0;
    border-top: 1px solid var(--line);
}

.tournament-details div {
    min-width: 7rem;
}

.tournament-details dt {
    color: #728297;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tournament-details dd {
    margin: .18rem 0 0;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 750;
}

.tournament-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
    margin-top: 1.35rem;
}

.tournament-action small,
.registration-note {
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 700;
}

.tournament-action--ace {
    justify-content: space-between;
    align-items: flex-end;
}

.ace-capacity {
    --capacity-hue: 142;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 3.15rem;
    padding: .45rem .65rem .45rem .5rem;
    color: hsl(var(--capacity-hue) 70% 27%);
    background: hsl(var(--capacity-hue) 78% 95%);
    border: 1px solid hsl(var(--capacity-hue) 55% 77%);
    border-radius: 999px;
    box-shadow: 0 .55rem 1.35rem hsl(var(--capacity-hue) 50% 35% / .08);
}

.ace-capacity__avatars {
    display: flex;
    align-items: center;
    padding-left: .35rem;
}

.ace-capacity__avatar {
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-left: -.35rem;
    color: hsl(var(--capacity-hue) 66% 31%);
    background: hsl(var(--capacity-hue) 65% 88%);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 .2rem .55rem rgba(15, 35, 54, .12);
}

.ace-capacity__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.ace-capacity__avatar > span {
    font-size: .62rem;
    font-weight: 900;
}

.ace-capacity__avatar svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ace-capacity__avatar--more {
    font-size: .63rem;
    font-weight: 850;
}

.ace-capacity__count {
    min-width: 4.7rem;
    display: grid;
    justify-items: end;
    line-height: 1;
}

.ace-capacity__count > span {
    font-size: .88rem;
    font-weight: 750;
}

.ace-capacity__count strong {
    font-size: 1.15rem;
    font-weight: 900;
}

.ace-capacity__count small {
    margin-top: .28rem;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.ace-capacity--fallback {
    --capacity-hue: 210;
}

.ace-capacity--fallback .ace-capacity__count {
    min-width: 0;
}

.ace-next-tournaments-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.8rem;
    color: var(--primary-dark);
    font-size: .9rem;
    font-weight: 850;
    text-decoration: none;
}

.ace-next-tournaments-link span:last-child {
    width: 1.8rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    border-radius: 50%;
    transition: transform 180ms ease;
}

.ace-next-tournaments-link:hover span:last-child {
    transform: translateY(3px);
}

.tournament-section__heading {
    align-items: end;
}

.tournament-section__heading > p {
    max-width: 31rem;
    margin: 0;
    color: var(--ink-soft);
}

.tournament-list {
    display: grid;
    gap: .8rem;
}

.tournament-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem 1.35rem;
    align-items: center;
    padding: clamp(1rem, 2.5vw, 1.4rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tournament-row:not(.tournament-row--past):hover {
    border-color: rgba(0, 123, 255, .3);
    box-shadow: 0 .8rem 2.5rem rgba(10, 27, 45, .075);
    transform: translateY(-2px);
}

.tournament-row__content {
    min-width: 0;
}

.tournament-row h3 {
    margin-top: .55rem;
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
}

.tournament-row__content > p {
    max-width: 56ch;
    margin: .65rem 0 0;
    color: var(--ink-soft);
}

.tournament-row .tournament-details {
    gap: .55rem 1.15rem;
    padding-top: .8rem;
    margin-top: .85rem;
}

.tournament-row .tournament-details div {
    min-width: 0;
}

.tournament-row__action {
    grid-column: 2;
    display: flex;
    justify-content: flex-start;
}

.tournament-history__year + .tournament-history__year {
    margin-top: 2.5rem;
}

.tournament-history__year > h3 {
    margin-bottom: .9rem;
    color: #65778b;
    font-size: 1rem;
    letter-spacing: .08em;
}

.tournament-row--past {
    background: rgba(255, 255, 255, .68);
    border-color: #dfe6ed;
}

.tournament-row--past .tournament-date {
    color: #5d6e80;
    background: #e9eef3;
    border-color: #dce3e9;
}

.tournament-row--past h3,
.tournament-row--past .tournament-details dd {
    color: #46586b;
}

.tournament-row--ace {
    border-left-color: rgba(99, 139, 0, .38);
}

.tournament-row.is-cancelled:not(.tournament-row--past) {
    border-style: dashed;
}

.ace-past-list {
    display: grid;
    gap: .72rem;
}

.ace-past-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: .5rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #dce6ee;
    border-radius: 1.1rem;
    box-shadow: 0 .55rem 1.45rem rgba(27, 47, 67, .055);
}

.ace-past-card.has-photo {
    grid-template-columns: clamp(18rem, 24vw, 23rem) minmax(0, 1fr);
    gap: 0;
    min-height: clamp(23rem, 30vw, 28.75rem);
    overflow: hidden;
    padding: 0;
    background: #fff;
    border-color: rgba(91, 119, 143, .28);
    box-shadow: 0 1.25rem 3.25rem rgba(20, 46, 68, .13);
    isolation: isolate;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ace-past-card.has-photo:hover {
    border-color: rgba(0, 111, 210, .34);
    box-shadow: 0 1.65rem 4rem rgba(13, 50, 78, .19);
    transform: translateY(-3px);
}

.ace-past-card__photo {
    position: relative;
    width: 100%;
    height: 100%;
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    overflow: hidden;
    margin: 0;
    background: #dfe8ef;
}

.ace-past-card__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 21, 35, .2), transparent 30%, transparent 72%, rgba(4, 21, 35, .16)),
        linear-gradient(90deg, transparent 82%, rgba(255, 255, 255, .11));
}

.ace-past-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    filter: saturate(.94) contrast(1.025);
    object-fit: cover;
    object-position: center 35%;
    transition: filter 420ms ease, transform 650ms cubic-bezier(.2, .75, .25, 1);
}

.ace-past-card.has-photo:hover .ace-past-card__photo img {
    filter: saturate(1.06) contrast(1.035);
    transform: scale(1.035);
}

.ace-past-card.has-photo .ace-past-card__date {
    z-index: 2;
    width: auto;
    min-height: 0;
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    flex-direction: row;
    gap: .38rem;
    margin: 1rem;
    padding: .72rem .82rem;
    background: rgba(8, 31, 49, .78);
    border-color: rgba(255, 255, 255, .3);
    border-radius: .8rem;
    box-shadow: 0 .65rem 1.5rem rgba(1, 16, 27, .2);
    backdrop-filter: blur(.7rem);
}

.ace-past-card.has-photo .ace-past-card__date strong {
    font-size: 1.45rem;
}

.ace-past-card.has-photo .ace-past-card__date span,
.ace-past-card.has-photo .ace-past-card__date small {
    margin: 0;
}

.ace-past-card.has-photo .ace-past-card__date small {
    color: rgba(255, 255, 255, .7);
}

.ace-past-card.has-photo .ace-past-card__body {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    padding: clamp(2.1rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 94% 8%, rgba(0, 123, 255, .1), transparent 12rem),
        radial-gradient(circle at 98% 100%, rgba(174, 254, 0, .08), transparent 13rem),
        #fff;
}

.ace-past-card.has-photo .ace-past-card__badges {
    gap: .55rem;
}

.ace-past-card.has-photo h3 {
    max-width: 42rem;
    margin-top: .85rem;
    color: #0c2335;
    font-size: clamp(1.65rem, 3vw, 2.65rem);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.ace-past-card.has-photo .ace-past-card__summary {
    align-items: flex-start;
    flex-direction: column;
    gap: .85rem;
    margin-top: 1.45rem;
}

.ace-past-card.has-photo .ace-past-card__participants {
    font-size: .88rem;
}

.ace-past-card.has-photo .ace-past-card__participants svg {
    width: 1.15rem;
    height: 1.15rem;
}

.ace-past-card.has-photo .ace-past-card__champions {
    max-width: min(100%, 32rem);
    gap: .7rem;
    padding: .72rem .9rem;
    border-radius: .9rem;
    box-shadow: 0 .45rem 1.1rem rgba(146, 103, 0, .08);
}

.ace-past-card.has-photo .ace-past-card__champions > svg {
    width: 1.45rem;
    height: 1.45rem;
}

.ace-past-card.has-photo .ace-past-card__champions small {
    font-size: .6rem;
}

.ace-past-card.has-photo .ace-past-card__champions strong {
    font-size: .88rem;
    line-height: 1.25;
}

.ace-past-card__date {
    width: 4.35rem;
    min-height: 6.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(180, 211, 236, .28), transparent 2.8rem),
        linear-gradient(155deg, #607f9d 0%, #405e79 58%, #304a63 100%);
    border: 1px solid rgba(48, 74, 99, .32);
    border-radius: .85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
    line-height: 1;
}

.ace-past-card__date strong {
    font-size: 1.42rem;
    letter-spacing: -.04em;
}

.ace-past-card__date span {
    margin-top: .22rem;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .07em;
}

.ace-past-card__date small {
    margin-top: .3rem;
    color: rgba(255, 255, 255, .72);
    font-size: .67rem;
    font-weight: 750;
}

.ace-past-card__body {
    min-width: 0;
    display: grid;
    align-content: center;
    padding: .35rem .55rem .35rem 0;
}

.ace-past-card__badges,
.ace-past-card__summary,
.ace-past-card__participants,
.ace-past-card__champions {
    display: flex;
    align-items: center;
}

.ace-past-card__badges {
    flex-wrap: wrap;
    gap: .4rem;
}

.ace-past-card h3 {
    margin: .48rem 0 0;
    color: #2d4357;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.ace-past-card__summary {
    flex-wrap: wrap;
    gap: .48rem .85rem;
    margin-top: .58rem;
}

.ace-past-card__participants {
    gap: .38rem;
    color: #60758a;
    font-size: .73rem;
    font-weight: 750;
}

.ace-past-card__participants svg {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ace-past-card__champions {
    gap: .5rem;
    padding: .36rem .58rem;
    color: #76550b;
    background: #fff8df;
    border: 1px solid #eedc9d;
    border-radius: .72rem;
}

.ace-past-card__champions > svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    stroke: #b17b00;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ace-past-card__champions > span {
    min-width: 0;
    display: grid;
    gap: .08rem;
}

.ace-past-card__champions small {
    color: #76550b;
    font-size: .52rem;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
}

.ace-past-card__champions strong {
    overflow-wrap: anywhere;
    font-size: .72rem;
    line-height: 1.15;
}

.ace-past-list__load-more {
    margin-top: 1.2rem;
}

.tournament-empty {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .72);
    border: 1px dashed #bdccda;
    border-radius: var(--radius-md);
}

.tournament-empty strong {
    display: block;
    margin-bottom: .4rem;
    color: var(--ink);
    font-size: 1.15rem;
}

.tournament-empty p {
    max-width: 36rem;
    margin: 0;
}

.tournament-empty--hero {
    min-height: 17rem;
    display: grid;
    align-content: center;
    justify-items: start;
    padding: clamp(2rem, 5vw, 3rem);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 1.4rem 3.5rem rgba(10, 27, 45, .09);
}

.tournament-empty__calendar {
    width: 3rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    color: var(--surface);
    background: var(--primary);
    border-radius: .9rem;
    font-size: 1.8rem;
    font-weight: 500;
}

@media (min-width: 54rem) {
    .tournament-hero__grid {
        grid-template-columns: minmax(0, .82fr) minmax(28rem, 1.18fr);
    }

    .tournament-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .tournament-row__action {
        grid-column: 3;
        grid-row: 1;
        justify-content: flex-end;
        padding-left: .75rem;
    }
}

@media (max-width: 42rem) {
    .tournament-hero {
        padding-top: 3.25rem;
    }

    .next-tournament__main {
        align-items: start;
    }

    .tournament-date--large {
        width: 5.7rem;
        min-height: 6.8rem;
    }

    .tournament-section__heading {
        display: grid;
    }

    .tournament-row {
        align-items: start;
    }

    .tournament-row .tournament-date {
        width: 4.8rem;
        min-height: 5.4rem;
    }

    .tournament-row .tournament-date strong {
        font-size: 1.55rem;
    }
}

@media (max-width: 31rem) {
    .next-tournament__main,
    .tournament-row {
        grid-template-columns: 1fr;
    }

    .next-tournament .tournament-date,
    .tournament-row .tournament-date {
        width: 100%;
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
        gap: .35rem;
        padding: .75rem 1rem;
    }

    .next-tournament .tournament-date strong,
    .tournament-row .tournament-date strong {
        font-size: 1.35rem;
    }

    .tournament-date span,
    .tournament-date small {
        margin: 0;
    }

    .tournament-row__action {
        grid-column: 1;
    }

    .tournament-action--ace {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .ace-capacity {
        justify-self: end;
    }

    .tournament-row__action .button,
    .tournament-action .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tournament-row {
        transition: none;
    }
}

.tournament-empty--ace img {
    width: 7.75rem;
    height: auto;
    margin-bottom: 1.25rem;
}

.tournament-empty--ace .text-link {
    margin-top: 1.1rem;
}

.ace-schedule {
    position: relative;
    overflow: hidden;
    background: #f3f7fb;
    border-top: 1px solid rgba(182, 202, 221, .48);
    border-bottom: 1px solid rgba(182, 202, 221, .48);
}

.ace-schedule::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 123, 255, .11) 1px, transparent 1px);
    background-position: 1rem 1rem;
    background-size: 1.35rem 1.35rem;
    opacity: .24;
    mask-image: linear-gradient(90deg, #000, transparent 35%);
}

.ace-schedule > .container {
    position: relative;
}

.ace-schedule__heading {
    display: grid;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: clamp(1.7rem, 4vw, 2.6rem);
}

.ace-schedule__copy h2 {
    margin-top: .35rem;
}

.ace-schedule__copy > p:last-child {
    max-width: 44rem;
    margin: .8rem 0 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.65;
}

.ace-community-link {
    min-width: min(100%, 19.5rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .9rem 1rem;
    color: #fff;
    background: #082031;
    border: 1px solid rgba(133, 194, 234, .22);
    border-radius: 1.15rem;
    box-shadow: 0 .9rem 2rem rgba(9, 34, 51, .13);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ace-community-link:hover {
    border-color: rgba(174, 255, 0, .55);
    box-shadow: 0 1.1rem 2.5rem rgba(9, 34, 51, .2);
    transform: translateY(-2px);
}

.ace-community-link img {
    width: 5.75rem;
    height: auto;
}

.ace-community-link strong,
.ace-community-link small {
    display: block;
}

.ace-community-link strong {
    font-size: .98rem;
}

.ace-community-link small {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .66);
    font-size: .76rem;
    font-weight: 650;
}

.ace-community-link__arrow {
    display: grid;
    place-items: center;
    width: 2.2rem;
    aspect-ratio: 1;
    color: #aefe00;
    background: rgba(174, 254, 0, .08);
    border: 1px solid rgba(174, 254, 0, .18);
    border-radius: .75rem;
    font-size: 1.1rem;
}

.ace-events-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
}

.ace-event-group {
    scroll-margin-top: 7rem;
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(176, 199, 221, .66);
    border-radius: var(--radius-lg);
    box-shadow: 0 1rem 3rem rgba(16, 47, 75, .07);
}

.ace-event-group--tournaments {
    padding-top: .15rem;
}

.ace-event-group__heading,
.ace-event-group__heading > div {
    display: flex;
    align-items: center;
}

.ace-event-group__heading {
    justify-content: space-between;
    gap: 1rem;
    padding: .15rem .15rem 1rem;
    border-bottom: 1px solid var(--line);
}

.ace-event-group__heading > div {
    min-width: 0;
    gap: .7rem;
}

.ace-event-group__heading h3 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.ace-event-group__heading > span {
    min-width: 2rem;
    display: grid;
    place-items: center;
    padding: .3rem .55rem;
    color: var(--primary-dark);
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 850;
}

.ace-event-group__icon {
    width: 2.35rem;
    aspect-ratio: 1;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: var(--primary);
    background: #eaf4ff;
    border-radius: .75rem;
}

.ace-event-group__icon svg {
    width: 1.2rem;
    height: 1.2rem;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ace-event-list {
    display: grid;
}

.ace-event-group__load-more {
    display: grid;
    justify-items: center;
    gap: .5rem;
    padding: 1.1rem .15rem .15rem;
    border-top: 1px solid var(--line);
}

.ace-load-more {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .55rem .65rem .55rem 1.05rem;
    color: #fff;
    background: #0b2639;
    border: 1px solid #173c55;
    border-radius: 999px;
    box-shadow: 0 .75rem 1.8rem rgba(7, 32, 49, .14);
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ace-load-more:hover {
    color: #fff;
    background: #10344d;
    box-shadow: 0 1rem 2.2rem rgba(7, 32, 49, .2);
    transform: translateY(-1px);
}

.ace-load-more__arrow {
    width: 2rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    font-size: .9rem;
    transition: transform 180ms ease;
}

.ace-load-more:hover .ace-load-more__arrow {
    transform: translateY(2px);
}

.ace-load-more.is-loading {
    cursor: progress;
    opacity: .78;
}

.ace-load-more.is-loading .ace-load-more__arrow {
    animation: ace-load-more-pulse 800ms ease-in-out infinite alternate;
}

@keyframes ace-load-more-pulse {
    to {
        transform: translateY(3px);
    }
}

.ace-event-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: stretch;
    padding: .38rem .15rem;
    color: inherit;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.ace-event-card:last-child {
    border-bottom: 0;
}

.ace-event-date {
    width: 4.45rem;
    min-height: 7rem;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(118, 196, 255, .42), transparent 2.8rem),
        linear-gradient(155deg, #0879df 0%, #0056ad 58%, #003f83 100%);
    border: 1px solid rgba(0, 80, 166, .35);
    border-radius: .95rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        0 .65rem 1.3rem rgba(0, 83, 172, .18);
    line-height: 1;
}

.ace-event-date strong {
    font-size: 1.55rem;
    letter-spacing: -.045em;
}

.ace-event-date span {
    margin-top: .22rem;
    color: #fff;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .075em;
}

.ace-event-date small {
    margin-top: .32rem;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
}

.ace-event-card__body {
    min-width: 0;
    padding: .62rem 0;
}

.ace-event-card__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.ace-event-card__kind {
    color: #65768a;
    font-size: .65rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ace-event-card__kind + .ace-event-card__kind::before {
    content: "·";
    margin-right: .35rem;
    color: #a2afbc;
}

.ace-event-card .tournament-format__tooltip {
    top: calc(100% + .8rem);
    bottom: auto;
    transform: translateY(-.45rem) scale(.98);
    transform-origin: left top;
}

.ace-event-card .tournament-format__tooltip::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--format-color);
}

.ace-event-card:hover,
.ace-event-card:focus-within {
    position: relative;
    z-index: 4;
}

.ace-event-card h4 {
    margin: .3rem 0 0;
    overflow-wrap: anywhere;
    font-size: 1.05rem;
    transition: color 180ms ease;
}

.ace-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .8rem;
    margin-top: .45rem;
}

.ace-event-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .85rem;
    padding: 0;
    margin: 0;
    color: var(--ink-soft);
    font-size: .76rem;
    font-weight: 650;
    list-style: none;
}

.ace-event-card li {
    position: relative;
}

.ace-event-card li + li::before {
    content: "";
    position: absolute;
    top: .45em;
    left: -.48rem;
    width: .18rem;
    aspect-ratio: 1;
    background: #94a8ba;
    border-radius: 50%;
}

.ace-match-lineup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .55rem;
    align-items: center;
    margin-top: .8rem;
}

.ace-match-team {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .38rem;
}

.ace-match-lineup--singles {
    width: calc(50% + 1rem);
    max-width: 100%;
}

.ace-match-lineup--singles .ace-match-team {
    grid-template-columns: minmax(0, 1fr);
}

.ace-match-player {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .48rem;
    padding: .42rem .5rem;
    background: #f5faff;
    border: 1px solid #d9eafb;
    border-radius: .78rem;
}

.ace-match-player--empty {
    color: #536f87;
    background: #f7fbff;
    border-color: #9fc5e8;
    border-style: dashed;
}

.ace-match-player--join {
    cursor: pointer;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ace-match-player--join:hover,
.ace-match-player--join:focus-visible {
    background: #edf7ff;
    border-color: #1683e6;
    border-style: solid;
    box-shadow: 0 .45rem 1rem rgba(0, 103, 201, .13);
    transform: translateY(-1px);
}

.ace-match-player--join:focus-visible {
    outline: 3px solid rgba(0, 123, 255, .22);
    outline-offset: 2px;
}

.ace-match-player__avatar {
    width: 2rem;
    aspect-ratio: 1;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #075da9;
    background: #deefff;
    border: 1px solid #c4e1fa;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 900;
}

.ace-match-player__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ace-match-player__avatar svg {
    width: 1.08rem;
    height: 1.08rem;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ace-match-player--empty .ace-match-player__avatar {
    width: 2.15rem;
    color: #fff;
    background: linear-gradient(145deg, #1688ea, #0062be);
    border-color: #0068c8;
    border-style: solid;
    box-shadow: 0 .28rem .7rem rgba(0, 96, 190, .2);
}

.ace-match-player--join:hover .ace-match-player__avatar,
.ace-match-player--join:focus-visible .ace-match-player__avatar {
    background: linear-gradient(145deg, #0878db, #004f9f);
    transform: scale(1.04);
}

.ace-match-player__copy {
    min-width: 0;
    display: grid;
    gap: .1rem;
}

.ace-match-player__copy strong,
.ace-match-player__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ace-match-player__copy strong {
    color: var(--ink);
    font-size: .69rem;
    line-height: 1.15;
}

.ace-match-player__copy small {
    color: #536579;
    font-size: .58rem;
    font-weight: 700;
}

.ace-match-player--empty .ace-match-player__copy strong {
    color: #315e82;
}

.ace-match-player--join .ace-match-player__copy small {
    color: #0068c8;
    font-weight: 850;
}

.ace-match-lineup__versus {
    min-width: 2rem;
    min-height: 2rem;
    display: grid;
    place-items: center;
    color: #52677b;
    background: #eef3f7;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ace-event-card__action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: .62rem 0;
}

.ace-spots {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: .28rem .58rem;
    color: #276600;
    background: #effbdc;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 850;
    white-space: nowrap;
}

.ace-spots.is-full {
    color: #68798a;
    background: #edf1f4;
}

.ace-capacity--compact {
    min-height: 0;
    padding: 0;
    color: hsl(var(--capacity-hue) 70% 27%);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.ace-capacity--compact .ace-capacity__count {
    min-width: 3.8rem;
    justify-items: center;
}

.ace-capacity--compact .ace-capacity__count > span {
    font-size: .76rem;
}

.ace-capacity--compact .ace-capacity__count strong {
    font-size: .95rem;
}

.ace-capacity__availability {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .075em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ace-capacity__availability.is-open {
    color: #147b42;
}

.ace-capacity__availability.is-full {
    color: #b5222d;
}

.ace-capacity__availability-dot {
    width: .5rem;
    aspect-ratio: 1;
    flex: 0 0 auto;
    background: currentColor;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 50%;
    box-shadow:
        0 0 0 .18rem color-mix(in srgb, currentColor 17%, transparent),
        0 0 .65rem color-mix(in srgb, currentColor 36%, transparent);
}

.ace-event-card__cta {
    min-width: 7.4rem;
    min-height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .9rem;
    color: #fff;
    background: var(--primary);
    border-radius: .75rem;
    box-shadow: 0 .55rem 1.25rem rgba(0, 123, 255, .18);
    font-size: .76rem;
    font-weight: 850;
    white-space: nowrap;
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ace-event-card__cta:hover,
.ace-event-card__cta:focus-visible {
    background: var(--primary-dark);
    box-shadow: 0 .75rem 1.45rem rgba(0, 96, 204, .22);
    transform: translateY(-1px);
}

.ace-feed-notice {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(176, 199, 221, .7);
    border-radius: var(--radius-md);
}

.ace-feed-notice strong {
    color: var(--ink);
    font-size: 1.1rem;
}

.ace-feed-notice p {
    max-width: 48rem;
    margin: .35rem 0 0;
    color: var(--ink-soft);
}

@media (min-width: 54rem) {
    .ace-schedule__heading {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .ace-feed-notice {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (max-width: 46rem) {
    .ace-past-card.has-photo {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .ace-past-card.has-photo .ace-past-card__photo {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        grid-column: 1;
        grid-row: 1;
    }

    .ace-past-card.has-photo .ace-past-card__date {
        grid-column: 1;
        grid-row: 1;
    }

    .ace-past-card.has-photo .ace-past-card__body {
        grid-column: 1;
        grid-row: 2;
        padding: clamp(1.5rem, 6vw, 2.5rem);
    }

    .ace-past-card.has-photo h3 {
        font-size: clamp(1.55rem, 7vw, 2.25rem);
    }
}

@media (max-width: 42rem) {
    .ace-community-link {
        width: 100%;
    }

    .ace-event-card__badges {
        position: relative;
    }

    .ace-event-card .tournament-format {
        position: static;
    }

    .ace-event-card .tournament-format__tooltip {
        left: 0;
        width: min(18rem, 100%);
    }

    .ace-event-card .tournament-format__tooltip::after {
        left: 1.25rem;
    }

    .ace-event-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .ace-event-card--tournament {
        column-gap: 1rem;
        row-gap: 0;
        padding-block: .7rem;
    }

    .ace-event-card--tournament .ace-event-date {
        grid-row: 1 / span 2;
    }

    .ace-event-card--tournament .ace-event-card__body {
        padding-bottom: .55rem;
    }

    .ace-event-card--tournament .ace-event-card__action {
        grid-column: 2;
        width: 100%;
        justify-content: stretch;
        padding: .7rem 0 .2rem;
        border-top: 1px solid #e2ebf3;
    }

    .ace-event-card--tournament .ace-event-card__cta {
        width: 100%;
        min-height: 3rem;
        justify-content: space-between;
        padding: .65rem .72rem .65rem 1rem;
        border-radius: .85rem;
        font-size: .82rem;
        text-decoration: none;
    }

    .ace-event-card--tournament .ace-event-card__cta::after {
        content: "↗";
        width: 1.75rem;
        aspect-ratio: 1;
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        margin-left: .75rem;
        color: #fff;
        background: rgba(255, 255, 255, .16);
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: .58rem;
        font-size: .78rem;
        line-height: 1;
    }

    .ace-match-lineup {
        grid-template-columns: minmax(0, 1fr);
    }

    .ace-match-lineup--singles {
        width: 100%;
    }

    .ace-match-lineup__versus {
        justify-self: center;
    }

    .ace-event-card__action {
        grid-column: 2;
        justify-content: flex-start;
    }
}

@media (max-width: 31rem) {
    .ace-past-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ace-past-card.has-photo {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ace-past-card.has-photo .ace-past-card__photo {
        aspect-ratio: 4 / 5;
        grid-column: 1;
        grid-row: 1;
    }

    .ace-past-card.has-photo .ace-past-card__date {
        width: auto;
        grid-column: 1;
        grid-row: 1;
        flex-direction: row;
        margin: .8rem;
        padding: .65rem .72rem;
    }

    .ace-past-card.has-photo .ace-past-card__body {
        grid-column: 1;
        grid-row: 2;
        padding: 1.35rem 1.1rem 1.5rem;
    }

    .ace-past-card.has-photo .ace-past-card__summary {
        margin-top: 1.1rem;
    }

    .ace-past-card__date {
        width: 100%;
        min-height: 3.35rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: .4rem;
        padding: .7rem .85rem;
    }

    .ace-past-card__date span,
    .ace-past-card__date small {
        margin: 0;
    }

    .ace-past-card__body {
        padding: .8rem .25rem .35rem;
    }
}

@media (max-width: 25rem) {
    .ace-event-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ace-event-date {
        width: 100%;
        min-height: 3.5rem;
        flex-direction: row;
        justify-content: flex-start;
        gap: .4rem;
        padding: .75rem .9rem;
        border-radius: .8rem;
    }

    .ace-event-date span,
    .ace-event-date small {
        margin: 0;
    }

    .ace-event-card__body {
        padding: 1rem .15rem;
    }

    .ace-event-card--tournament .ace-event-date {
        grid-row: auto;
    }

    .ace-event-card__action,
    .ace-event-card--tournament .ace-event-card__action {
        grid-column: 1;
        padding: .75rem .15rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ace-community-link,
    .ace-past-card.has-photo,
    .ace-past-card__photo img,
    .ace-event-card h4,
    .ace-event-card__cta,
    .ace-match-player--join,
    .tournament-format__badge,
    .tournament-format__tooltip,
    .ace-load-more,
    .ace-load-more__arrow,
    .ace-next-tournaments-link span:last-child {
        transition: none;
    }

    .ace-load-more.is-loading .ace-load-more__arrow {
        animation: none;
    }
}
