:root {
    color-scheme: light;
    --blue: #0645f5;
    --ink: #11121a;
    --muted: #535866;
    --line: #e3e6ee;
    --shadow: 0 3px 4px #1524500b, 0 13px 24px #1524500e;
    font: 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: linear-gradient(180deg, #fff 320px, #f3f5ff 1050px, #fff); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #315fff; outline-offset: 4px; }
.site-header { display: flex; justify-content: center; padding: 24px 16px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -.05em; }
.brand span { position: relative; width: 25px; height: 25px; border: 2px solid var(--blue); border-radius: 50%; margin-right: 14px; }
.brand span::after { content: ""; position: absolute; inset: 3px auto auto 11px; width: 21px; height: 21px; border: 2px solid var(--blue); border-radius: 50%; }
.hero { text-align: center; padding: 24px 20px 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.35rem, 7vw, 4.65rem); line-height: 1.02; font-weight: 850; letter-spacing: -.047em; text-wrap: balance; }
.hero h1 { max-width: 1280px; margin: auto; font-size: clamp(2.2rem, 4.7vw, 4.4rem); }
.hero p, .intro { color: var(--muted); font-size: clamp(1rem, 2.15vw, 1.25rem); text-wrap: pretty; }
.hero p { max-width: 820px; margin: 14px auto 18px; }
.hero h1 + .button { margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.button:hover { background: #0039ce; }
.demo { max-width: 1150px; padding: 0 20px; margin: auto; }
.match { position: relative; z-index: 1; max-width: 430px; margin: auto; padding: 9px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 4px 0 #e2e4eb, 0 12px 20px #212b4f27; }
.match-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 1px 7px 8px; }
.example { color: var(--muted); font-size: .83rem; font-weight: 750; }
.score { color: var(--ink); font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.court { isolation: isolate; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 116px; overflow: hidden; border: 4px solid #173c77; border-radius: 14px; background: repeating-linear-gradient(0deg, #fff0 0 19px, #ffffff09 19px 38px), linear-gradient(145deg, #397ed7, #174a98); }
.court::before, .court::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
.court::before { inset: 8px; border: 1px solid #dcecffb8; background: linear-gradient(0deg, transparent calc(50% - .5px), #deedffad calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)) center / 68% 100% no-repeat, linear-gradient(90deg, transparent 15.7%, #deedffad 15.7% 16%, transparent 16% 84%, #deedffad 84% 84.3%, transparent 84.3%); }
.court::after { inset: 0 auto 0 50%; width: 5px; transform: translateX(-50%); border-inline: 1px solid #b6d8ff; background: repeating-linear-gradient(0deg, #102b56 0 2px, #87aedc 2px 3px); box-shadow: 2px 0 4px #081c4380; }
.court-team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 3px; padding: 12px 9px; }
.court-player { display: grid; justify-items: center; gap: 4px; color: #fff; }
.court-player:nth-child(odd) { transform: translateY(-11px); }
.court-player:nth-child(even) { transform: translateY(11px); }
.player-avatar { display: grid; place-items: center; width: 33px; aspect-ratio: 1; border: 2px solid #fff; border-radius: 50%; background: #d1fa9e; color: #153518; box-shadow: 0 2px 5px #0a234c70; font-size: .9rem; font-weight: 800; }
.court-team:last-child .player-avatar { background-color: #ffe0be; color: #613014; }
.player-name { padding: 1px 5px; border-radius: 8px; background: #102d59; font-size: .71rem; font-weight: 750; white-space: nowrap; }
.results { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
.wire { display: block; width: 100%; height: 45px; overflow: visible; }
.wire path { fill: none; stroke: var(--blue); stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.wire .pulse { stroke-width: 4; stroke-linecap: round; stroke-dasharray: 9 110; stroke-dashoffset: 10; opacity: 0; }
.demo.play .pulse { animation: travel 760ms ease-in-out both; }
.demo.armed .rank b { opacity: 0; }
.demo.play .rank b { animation: reveal 200ms 760ms both; }
@keyframes travel { 0% { opacity: 1; stroke-dashoffset: 10; } 92% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -100; } }
@keyframes reveal { to { opacity: 1; } }
.ranking { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px 9px; height: calc(100% - 45px); padding: 10px 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); text-decoration: none; }
.ranking::before { content: ""; position: absolute; left: 50%; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); transform: translate(-50%, -50%); }
.ranking strong { font-size: clamp(.88rem, 2vw, 1.14rem); line-height: 1.15; letter-spacing: -.025em; }
.membership { justify-self: start; padding: 2px 8px; border-radius: 999px; color: #18562b; background: #e0f5e5; font-size: .77rem; white-space: nowrap; font-weight: 750; }
.rank { white-space: nowrap; font-weight: 750; }
.rank b { color: var(--blue); }
.crest { --size: 60px; display: inline-grid; place-items: center; isolation: isolate; position: relative; width: var(--size); height: calc(var(--size) * 1.12); flex: 0 0 auto; filter: drop-shadow(1px 4px 3px #161d3847); }
.crest svg { display: block; width: 100%; height: 100%; overflow: visible; }
.crest-definitions { position: absolute; pointer-events: none; }
.crest-edge { fill: color-mix(in srgb, var(--crest), #101626 75%); }
.crest-rim { fill: var(--crest); }
.crest-shell { fill: url(#crest-metal); }
.crest-field { fill: color-mix(in srgb, var(--crest), #101626 24%); }
.crest-light { fill: url(#crest-enamel); stroke: #16172d82; stroke-width: .65; }
.crest-rim-light, .crest-rim-shadow { fill: none; stroke-linecap: round; }
.crest-rim-light { stroke: #fff; opacity: .46; stroke-width: .9; }
.crest-rim-shadow { stroke: #121a33; opacity: .52; stroke-width: .9; }
.crest-detail { fill: color-mix(in srgb, var(--crest), #ffe4a3 48%); opacity: .54; }
.crest-motif { fill: none; stroke: #fff8ea; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.crest-relief { stroke: #141121; opacity: .52; stroke-width: 2.45; }
.ranking .crest { --size: 40px; }
.gallery { width: min(100% - 36px, 1370px); margin: 30px auto 0; padding-bottom: 34px; scroll-margin-top: 14px; }
.gallery h2, .detail-example h2 { text-align: center; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.14; letter-spacing: -.045em; margin-bottom: 13px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 92px), 1fr)); gap: 10px 4px; margin-top: 14px; }
.tile { display: grid; align-content: start; justify-items: center; text-align: center; text-decoration: none; gap: 5px; padding: 3px; border-radius: 12px; min-width: 0; font-size: .72rem; line-height: 1.15; font-weight: 700; }
.tile:hover { background: #e8edff; color: #0038d3; }
.actions { max-width: 650px; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.action { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 9px; min-height: 146px; padding: 9px 4px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); text-decoration: none; line-height: 1.15; font-size: clamp(.77rem, 2vw, 1.18rem); letter-spacing: -.02em; }
button:disabled { opacity: .7; cursor: wait; }
.action:hover, .ranking:hover { border-color: var(--blue); }
.action .crest { --size: clamp(46px, 7vw, 65px); }
.join { display: grid; place-items: center; min-height: 30px; padding: 3px 10px; border: 1px solid currentColor; border-radius: 999px; color: var(--blue); font-size: .86rem; font-weight: 750; }
.create { color: var(--blue); border-color: var(--blue); background: #f7f9ff; }
.create span { font-size: 3.1rem; line-height: .95; }
.detail { max-width: 1060px; margin: auto; padding: 20px 20px 44px; }
.back { color: var(--blue); font-weight: 700; }
.detail-hero { display: grid; align-items: center; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 24px; }
.detail-hero h1 { font-size: clamp(2.35rem, 6vw, 4.65rem); text-wrap: pretty; margin: 8px 0 14px; }
.eyebrow { color: var(--muted); font-weight: 750; }
.detail-art { display: grid; place-items: center; isolation: isolate; position: relative; overflow: hidden; min-height: 250px; border-radius: 28px; background: radial-gradient(circle, #fff 5%, color-mix(in srgb, var(--accent), white 77%) 100%); }
.detail-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.detail-art .crest { --size: 146px; }
.lead { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.lead label, .privacy, .form-status { flex: 0 0 100%; }
.lead label { font-weight: 700; font-size: .9rem; }
.lead input[type=email] { min-height: 46px; flex: 1 1 180px; min-width: 0; padding: 10px 15px; border: 1px solid #a1a9ba; border-radius: 99px; font: inherit; }
.privacy, .form-status { color: var(--muted); font-size: .86rem; }
.form-status:empty { display: none; }
.detail-example { margin-top: 38px; text-align: center; }
.detail-example > p { color: var(--muted); margin-bottom: 16px; }
.detail-example .ranking, .detail-example .match { text-align: left; }
.detail-example .demo { max-width: 730px; padding: 0; }
.detail-hero .button { margin-top: 8px; }
footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .83rem; }
@media (max-width: 640px) {
    .site-header { padding-top: 15px; }
    .hero { padding-top: 18px; }
    .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .results { grid-auto-flow: row; gap: 7px; margin-left: 10px; padding: 12px 0 0 12px; border-left: 1px solid var(--blue); }
    .match { margin-left: 0; }
    .result-branch { position: relative; }
    .wire { position: absolute; right: 100%; top: 50%; width: 12px; height: 20px; transform: translateY(-50%); }
    .ranking { height: auto; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 8px; padding: 7px 10px; }
    .ranking .crest { --size: 30px; }
    .ranking::before { left: 0; top: 50%; }
    .detail-hero { grid-template-columns: 1fr; gap: 15px; }
    .detail-art { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
    .demo.play .pulse, .demo.play .rank b { animation: none; }
    .demo.armed .rank b { opacity: 1; }
}

.marquee { margin-top: 12px; }
.marquee-toggle { display: block; margin: 0 0 6px auto; padding: 4px 8px; border: 0; border-radius: 6px; color: var(--blue); background: transparent; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
.marquee-toggle[hidden] { display: none; }
.marquee.is-moving .marquee-row { overflow: hidden; }
.marquee.is-moving .marquee-track { display: flex; width: max-content; animation: scroll-leagues 39s linear infinite; }
.marquee.is-moving .reverse .marquee-track { animation-direction: reverse; }
.marquee.is-moving .catalog { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max(94px, calc(min(100vw - 36px, 1370px) / 11)); gap: 0; margin: 0; padding: 6px 0 8px; }
.marquee.is-moving .tile { padding-inline: 7px; }
.marquee.is-moving:hover .marquee-track { animation-play-state: paused; }
.marquee:not(.is-moving) .marquee-window { display: grid; gap: 12px; }
.marquee:not(.is-moving) .marquee-row, .marquee:not(.is-moving) .marquee-track { display: contents; }
.marquee:not(.is-moving) .catalog { margin-top: 0; }
.marquee:not(.is-moving) .catalog[aria-hidden] { display: none; }
@keyframes scroll-leagues { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee.is-moving .marquee-track { animation: none; }
}

.crest-shine {
    position: absolute;
    inset: 3px;
    pointer-events: none;
    clip-path: polygon(50% 0, 97% 14%, 97% 51%, 90% 70%, 75% 85%, 50% 100%, 25% 85%, 10% 70%, 3% 51%, 3% 14%);
}
.crest-shine::after {
    content: "";
    position: absolute;
    inset: -25%;
    background: linear-gradient(100deg, transparent 35%, #fff2 44%, #fffe 50%, #fff2 56%, transparent 65%);
    transform: translateX(-100%) skewX(-18deg);
}
@media (prefers-reduced-motion: no-preference) {
    .crest.reflects .crest-shine::after { animation: crest-reflection 640ms ease-out both; }
}
@keyframes crest-reflection {
    to { transform: translateX(100%) skewX(-18deg); }
}

.player-avatar.portrait {
    background-image: url('/concepts/19/assets/portraits.webp');
    background-size: 650% auto;
}
.portrait-elvis { background-position: 42% 9%; }
.portrait-max { background-position: 90% 9%; }
.portrait-laura { background-position: 25% 13%; }
.portrait-alex { background-position: 65% 17%; }
.example-leaderboard { max-width: 690px; margin: 32px auto 0; }
.example-leaderboard > h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.04em; }
.example-leaderboard > p { margin: 3px 0 12px; color: var(--muted); font-size: .9rem; }
.example-leaderboard table { width: 100%; border: 1px solid var(--line); border-spacing: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); text-align: left; font-size: .9rem; }
.example-leaderboard :is(th, td) { padding: 7px 10px; border-bottom: 1px solid var(--line); }
.example-leaderboard thead { background: #f0f3fc; color: var(--muted); }
.example-leaderboard tbody tr:last-child > * { border-bottom: 0; }
.example-leaderboard tr > :first-child { width: 1%; text-align: center; }
.example-leaderboard tr > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.table-player { display: flex; align-items: center; gap: 8px; }
.table-player .player-avatar { flex: 0 0 33px; background-color: #e9efff; color: #123986; box-shadow: 0 1px 3px #0a234c30; }
.example-self { background: #edf3ff; }
.self-label { color: #1240ad; font-size: .75rem; }

.how-it-works { padding: 0 18px; margin: 0 auto 12px; text-align: center; }
.how-it-works ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 17px; margin: 0 0 4px; padding: 0; list-style: none; font-size: .89rem; font-weight: 750; }
.how-it-works p { color: var(--muted); font-size: .88rem; }
.action .join { max-width: 100%; font-size: clamp(.72rem, 2vw, .86rem); }
.create small { font-size: .72rem; color: var(--muted); }
.league-facts { display: grid; gap: 4px; margin: 14px 0 0; font-size: .88rem; }
.league-facts > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 6px; }
.league-facts dt { font-weight: 750; }
.league-facts dd { margin: 0; color: var(--muted); }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary { padding: 10px 14px; cursor: pointer; font-weight: 750; }
.faq { width: min(100% - 40px, 720px); margin: 0 auto 32px; }
.faq h2 { margin-bottom: 10px; }
.faq details + details { margin-top: 6px; }
.faq details p { padding: 0 14px 12px; color: var(--muted); font-size: .92rem; }

.community-hero {
    position: relative;
    width: min(100% - 40px, 1270px);
    margin: 25px auto 0;
    padding: 0 0 30px;
    text-align: center;
}
.community-copy { position: relative; z-index: 1; max-width: 780px; margin: auto; }
.community-copy h1 { font-size: clamp(2.3rem, 5.25vw, 4.85rem); text-wrap: balance; }
.community-copy p { max-width: 510px; margin: 14px auto 10px; line-height: 1.4; }
.community-copy .circle-definition { margin: 0 auto 17px; font-size: .95rem; }
.community-photos { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.community-photo { display: block; width: min(42%, 185px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.community-photo:nth-child(2) { object-position: 53% center; }
.match-feature { width: min(100% - 42px, 1270px); margin: auto; padding: 20px 0 18px; border: 1px solid #e8edf7; border-radius: 30px; background: linear-gradient(160deg, #f7f9ff, #eef3fd); }
.match-feature h2, .gallery h2, .how-it-works h2 { font-size: clamp(1.85rem, 4.5vw, 3.35rem); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.match-feature-heading { text-align: center; padding: 0 12px; margin: 0 auto 14px; }
.match-feature-heading p { margin-top: 5px; color: var(--muted); font-size: .89rem; }
.gallery { margin-top: 38px; }
.gallery h2 { margin-bottom: 7px; }
.gallery-intro { margin: 0 auto 17px; padding: 0 8px; color: var(--muted); text-align: center; text-wrap: balance; }
.action { padding-block: 13px; }
.action-copy { max-width: 22ch; font-size: clamp(.7rem, 1.8vw, .84rem); line-height: 1.25; color: var(--muted); letter-spacing: 0; }
.how-it-works { width: min(100% - 40px, 1030px); margin: 0 auto 36px; padding: 0; }
.how-it-works ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: steps; margin: 15px 0 0; text-align: left; font-weight: 400; }
.how-it-works li { counter-increment: steps; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 12px; }
.how-it-works li::before { content: counter(steps); display: grid; place-items: center; width: 27px; height: 27px; background: #eaf1ff; color: var(--blue); border-radius: 50%; font-weight: 750; margin-bottom: 7px; }
.how-it-works strong { display: block; margin-bottom: 3px; }
@media (min-width: 950px) {
    .community-hero { padding-bottom: 43px; }
    .community-copy { max-width: min(68%, 780px); }
    .community-photos { position: absolute; z-index: 1; inset: auto 8px -32px; justify-content: space-between; margin: 0; pointer-events: none; }
    .community-photo { width: clamp(140px, 18vw, 232px); }
    .match-feature-heading { max-width: 70%; }
}
@media (max-width: 720px) {
    .community-hero { width: min(100% - 32px, 540px); margin-top: 15px; padding-bottom: 16px; }
    .community-copy p { margin-top: 9px; }
    .community-copy .circle-definition { margin-bottom: 13px; }
    .match-feature { width: calc(100% - 24px); }
    .match-feature .demo { padding-inline: 8px; }
    .gallery { margin-top: 25px; }
    .how-it-works ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
    .community-copy h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
}

.mini-leaderboard { grid-column: 1 / -1; width: 100%; border-spacing: 0 2px; text-align: left; font-size: .8rem; }
.mini-leaderboard :is(th, td) { padding: 3px 7px; }
.mini-leaderboard thead { color: var(--muted); font-size: .72rem; }
.mini-leaderboard td { width: 43%; font-variant-numeric: tabular-nums; }
.mini-leaderboard tbody th { font-weight: 650; }
.mini-self > * { background: #eaf1ff; }
.mini-self > :first-child { border-radius: 6px 0 0 6px; }
.mini-self > :last-child { border-radius: 0 6px 6px 0; }

.match-feature .match { max-width: 680px; }
.match-feature .court { min-height: clamp(150px, 25vw, 295px); }
.match-feature .player-avatar { width: clamp(37px, 5vw, 62px); }
.match-feature .player-name { font-size: clamp(.75rem, 1.2vw, .94rem); }
.match-feature .court-player:nth-child(odd) { transform: translateY(-24%); }
.match-feature .court-player:nth-child(even) { transform: translateY(24%); }

/* Small badges keep the silhouette and suppress fine surface detail. */
.ranking .crest:not([data-crest="bikepackers-league"], [data-crest="sunday-padel"]) .crest-detail { display: none; }
.crest[data-crest="bikepackers-league"] .crest-detail { fill: #b8f1cd; opacity: .91; }
.crest[data-crest="sunday-padel"] .crest-detail { fill: #ffca67; opacity: .88; }

/* Porcelain, cobalt and softly sculpted surfaces. */
:root { --ink: #202129; --muted: #62636b; --line: #e4e2df; --shadow: 0 2px 3px #342b2106, 0 10px 23px #342b2109; background: #faf9f6; font-weight: 400; }
body { background: #faf9f6; }
.site-header { max-width: 1210px; margin: auto; align-items: center; justify-content: space-between; padding: 22px 28px 0; }
.brand { font-size: 1.15rem; font-weight: 650; letter-spacing: -.045em; }
.brand span { border-width: 1.25px; }
.brand span::after { border-width: 1.25px; }
.site-header nav { display: flex; gap: 26px; font-size: .82rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }
.community-hero { width: 100%; max-width: 1440px; padding: 38px 0 0; margin: auto; }
.community-copy { max-width: 100%; padding: 0 24px; }
.community-copy h1 { max-width: 1100px; font-size: clamp(2.6rem, 5.6vw, 5.1rem); font-weight: 600; letter-spacing: -.055em; }
.community-copy p { max-width: 760px; font-size: clamp(1rem, 1.6vw, 1.18rem); margin: 12px auto 9px; }
.community-copy .circle-definition { max-width: 660px; font-size: .87rem; margin: 0 auto 18px; color: var(--muted); }
.button { font-weight: 550; min-height: 43px; padding: 9px 23px; gap: 14px; box-shadow: inset 0 1px 0 #ffffff35; }
.community-photos { position: relative; inset: auto; display: block; margin: 18px auto 0; width: 100%; height: clamp(170px, 28vw, 370px); overflow: hidden; clip-path: ellipse(74% 50% at 50% 50%); }
.community-photo { width: 100%; height: 100%; border-radius: 0; aspect-ratio: auto; object-fit: cover; object-position: center 12%; }
.match-feature { position: relative; width: min(100% - 36px, 1180px); margin: -10px auto 0; padding: 0 0 25px; border: 0; border-radius: 0; background: transparent; }
.match-feature-heading { max-width: 100%; padding: 15px 15px 4px; margin-bottom: 10px; }
.match-feature h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 550; letter-spacing: -.04em; }
.match-feature-heading p { font-size: .85rem; }
.match-feature .demo { padding: 0 12px; }
.match-feature .match { max-width: 920px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.match-feature .match-header { padding: 0 8px 9px; }
.match-feature .score { font-size: 1.25rem; font-weight: 600; }
.match-feature .court { min-height: 0; height: clamp(175px, 31vw, 370px); border: 5px solid #9ba5aa; border-bottom-color: #586d7d; border-radius: 3px; background: repeating-linear-gradient(0deg, #fff0 0 28px, #ffffff05 28px 56px), linear-gradient(160deg, #2565e5, #0042cd 65%, #003aaf); transform: perspective(1100px) rotateX(18deg); transform-origin: center bottom; box-shadow: 0 7px 0 #657686, 0 10px 0 #d5d6d3, 8px 24px 28px #26384225, inset 0 0 20px #00164950; overflow: visible; }
.match-feature .court::before { inset: 10px; border-color: #ffffffc9; }
.match-feature .court::after { width: 9px; background: repeating-linear-gradient(0deg, #22303c 0 2px, #b8c9d4 2px 3px); box-shadow: 6px 0 7px #061d5c55; }
.match-feature .court-team { padding: 15px; }
.match-feature .player-avatar { width: clamp(37px, 5.5vw, 63px); box-shadow: 2px 7px 9px #00114b4a; }
.match-feature .player-name { background: #103278; font-size: .75rem; font-weight: 550; }
.match-feature .wire { height: 55px; }
.match-feature .ranking { height: calc(100% - 55px); padding: 15px 14px 12px; border-radius: 23px; background: linear-gradient(145deg, #fffdfb, #f5f3f0); }
.ranking strong { font-weight: 600; }
.membership { font-size: .65rem; padding-inline: 6px; }
.mini-leaderboard { border-spacing: 0; margin-top: 7px; font-size: .84rem; }
.mini-leaderboard tbody tr + tr > * { border-top: 1px solid #e8e5e180; }
.mini-leaderboard :is(th, td) { padding: 6px 7px; }
.mini-leaderboard tbody th { font-weight: 450; }
.mini-self > * { background: #dfe7fb; color: #003bc4; }
.gallery { width: min(100% - 36px, 1250px); margin-top: 32px; }
.gallery h2 { text-align: left; font-size: clamp(2rem, 4vw, 3rem); font-weight: 550; letter-spacing: -.045em; }
.gallery-intro { text-align: left; padding: 0; margin-bottom: 22px; font-size: .94rem; }
.actions { max-width: 710px; }
.action { border-radius: 20px; padding: 16px 8px; background: #fffaf6; }
.action strong { font-weight: 600; }
.create { background: #edf2ff; }
.marquee { margin-top: 17px; }
.marquee.is-moving .catalog { grid-auto-columns: max(113px, calc(min(100vw - 36px, 1250px) / 9)); padding: 10px 0 16px; }
.tile { gap: 9px; font-size: .76rem; font-weight: 500; }
.tile .crest { --size: 79px; }
.crest { filter: drop-shadow(1px 3px 2px #332b2230); }
.how-it-works h2 { font-weight: 550; }
.how-it-works li { background: #fffaf6; }
.closing { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 42px; max-width: 960px; margin: 35px auto 55px; padding: 0 24px; }
.closing-photo { overflow: hidden; aspect-ratio: 1.5; border-radius: 50%; }
.closing-photo img { width: 100%; height: 100%; object-fit: cover; }
.closing h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.06; letter-spacing: -.05em; font-weight: 550; margin-bottom: 20px; text-wrap: balance; }
@media (max-width: 640px) {
    .site-header { padding: 17px 20px 0; }
    .site-header nav { gap: 12px; font-size: .73rem; }
    .site-header nav a:last-child { display: none; }
    .community-hero { padding-top: 28px; }
    .community-photos { height: 200px; }
    .community-photo { object-position: center 22%; }
    .match-feature { margin-top: 0; width: calc(100% - 24px); }
    .match-feature .court { height: 185px; transform: perspective(800px) rotateX(12deg); }
    .match-feature .demo { padding-inline: 4px; }
    .match-feature .wire { height: 20px; }
    .match-feature .ranking { height: auto; padding: 10px; }
    .membership { font-size: .7rem; }
    .closing { grid-template-columns: 1fr; text-align: center; gap: 20px; margin-block: 20px 35px; }
    .closing-photo { max-width: 320px; width: 100%; margin: auto; }
}

.match-feature .court {
    background-image: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #d9f2ff25 calc(12.5% - 1px) 12.5%), repeating-linear-gradient(0deg, #fff0 0 28px, #ffffff05 28px 56px), linear-gradient(160deg, #2565e5, #0042cd 65%, #003aaf);
    border-top: 14px solid #c7d9dfb8;
    border-inline: 9px solid #a6bdcaac;
}
@media (prefers-reduced-motion: reduce) {
    .match-feature .court { transform: none; }
}

/* Real material renders, with live names and rankings layered above. */
.rendered-crest { height: var(--size); filter: none; }
.crest-art { position: absolute; inset: 0; background: url('/elvis/assets/league-enamel-atlas.png') var(--crest-x) var(--crest-y) / 700% 700% no-repeat; mix-blend-mode: multiply; }
.rendered-crest .crest-shine { inset: 9% 10% 5%; }
.ranking .rendered-crest { --size: 47px; }
.action .rendered-crest { --size: 80px; }
.detail-art .rendered-crest { --size: 220px; }
.tile .rendered-crest { --size: 93px; }
.photo-hero-page { position: relative; isolation: isolate; }
.photo-hero-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: clamp(460px, 44vw, 610px);
    background: linear-gradient(180deg, #09212280, #061c28b8), url('/elvis/assets/community-hero-v2.png') center 35% / cover;
    border-radius: 0 0 50% 50% / 0 0 35% 35%;
}
.photo-hero-page .site-header { color: white; }
.photo-hero-page .brand span, .photo-hero-page .brand span::after { border-color: white; }
.photo-hero-page .site-header nav a:hover { color: #d1e5ff; }
.photo-hero-page .community-hero {
    min-height: clamp(415px, 39vw, 550px);
    display: grid;
    align-items: center;
    padding: 35px 0 68px;
    color: white;
}
.photo-hero-page .community-copy p { color: #fff; }
.photo-hero-page .community-copy .circle-definition { color: #f0f2ef; }
.photo-hero-page .community-copy h1 { text-shadow: 0 2px 18px #08203130; }
.photo-hero-page .community-photos { display: none; }
.match-feature { margin-top: 8px; }
.match-feature .rendered-court, .rendered-court {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.5;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: none;
    box-shadow: none;
    overflow: hidden;
}
.rendered-court::before, .rendered-court::after { display: none; }
.court-render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; z-index: -1; }
.rendered-court .court-team { position: absolute; top: 24%; bottom: 22%; width: 43%; padding: 0; grid-template-columns: 1fr; }
.rendered-court .court-team[data-team="winners"] { left: 5%; }
.rendered-court .court-team[data-team="opponents"] { right: 5%; }
.rendered-court .court-player, .match-feature .rendered-court .court-player { transform: none; }
.rendered-court .court-player:first-child { justify-self: start; margin-left: 23%; }
.rendered-court .court-player:last-child { justify-self: end; margin-right: 17%; }
.rendered-court .player-avatar { width: clamp(32px, 5vw, 58px); }
.rendered-court .player-name { font-size: .72rem; }
.match-feature .match-header { max-width: 850px; margin: auto; }
.match-feature .match { max-width: 950px; }
@media (max-width: 640px) {
    .photo-hero-page::before { height: 525px; border-radius: 0 0 50% 50% / 0 0 18% 18%; background-position: 54% 30%; }
    .photo-hero-page .community-hero { min-height: 468px; padding: 36px 0 65px; }
    .photo-hero-page .community-copy { padding-inline: 23px; }
    .photo-hero-page .community-copy h1 { font-size: clamp(2.8rem, 11vw, 3.6rem); }
    .rendered-court .player-name { font-size: .63rem; }
    .rendered-court .player-avatar, .match-feature .rendered-court .player-avatar { width: 31px; }
    .match-feature .rendered-court { height: auto; }
    .rendered-court .court-team { top: 23%; bottom: 19%; }
}

.site-header { justify-content: center; }
.photo-hero-page .match-feature { margin-top: 15px; }
.how-it-works ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.how-it-works li { position: relative; overflow: hidden; border-radius: 25px; padding: 22px; min-height: 260px; }
.how-it-works li::before { display: none; }
.how-it-works li:nth-child(1), .how-it-works li:nth-child(4) { grid-column: span 3; }
.how-it-works li:nth-child(2), .how-it-works li:nth-child(3) { grid-column: span 2; }
.how-it-works .bento-discover { background: #eaf0fa; }
.how-it-works .bento-book { background: #eeede6; }
.how-it-works .bento-score { background: #1239bc; color: white; }
.how-it-works .bento-score p { color: #e0e8ff; }
.how-it-works .bento-ranks { background: #e9f0eb; }
.how-it-works strong { font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; }
.bento-visual { height: 150px; margin-bottom: 16px; }
.bento-crests { display: flex; align-items: center; justify-content: center; gap: 5px; }
.bento-crests .crest { --size: 102px; transform: rotate(-10deg); }
.bento-crests .crest:nth-child(2) { transform: translateY(-10px) rotate(0); }
.bento-crests .crest:nth-child(3) { transform: rotate(10deg); }
.bento-calendar, .bento-scorecard { display: flex; flex-direction: column; justify-content: center; align-items: center; margin-inline: auto; max-width: 230px; background: #fff9; border-radius: 18px; box-shadow: 0 6px 20px #1c304315; }
.bento-calendar > span { color: #a24c35; font-size: .72rem; letter-spacing: .14em; font-weight: 700; }
.bento-calendar > b { font-size: 2.6rem; letter-spacing: -.05em; font-weight: 500; }
.bento-calendar small { color: var(--muted); font-size: .7rem; }
.bento-scorecard { background: #ffffff12; border: 1px solid #ffffff35; box-shadow: 0 10px 25px #001e6a30; }
.bento-scorecard b { font-size: 2.5rem; font-weight: 550; letter-spacing: -.04em; }
.bento-scorecard i { font-style: normal; color: #98b4ff; }
.bento-scorecard > span, .bento-scorecard small { font-size: .8rem; }
.bento-bars { max-width: 320px; margin-inline: auto; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.bento-bars span { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #ffffffe0; border: 1px solid #d3ded7; border-radius: 10px; font-size: .8rem; box-shadow: 0 3px 7px #20332b09; }
.bento-bars b { color: #1c6147; font-size: 1rem; }
@media (max-width: 640px) {
    .how-it-works ol { grid-template-columns: 1fr; }
    .how-it-works li:nth-child(n) { grid-column: auto; min-height: 240px; }
    .bento-visual { height: 140px; }
    .bento-crests .crest { --size: 87px; }
}

/* Blend the photographed ground into the page on every edge. */
.court-render {
    mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 13%, #000 85%, transparent);
    mask-composite: intersect;
}
.rendered-court .court-scoreboard { position: absolute; z-index: 2; left: 50%; top: 52%; transform: translate(-50%, -50%); width: clamp(130px, 20vw, 215px); padding: 9px 12px; background: #081b36d9; border: 1px solid #ffffff60; border-radius: 13px; box-shadow: 0 7px 25px #001b4360; color: white; backdrop-filter: blur(12px); }
.court-scoreboard > span { display: block; margin-bottom: 5px; font-size: .58rem; color: #bfd1ec; letter-spacing: .06em; }
.court-scoreboard > div { display: grid; grid-template-columns: 1fr 19px 19px; align-items: center; gap: 4px; padding-block: 3px; }
.court-scoreboard strong { font-size: .72rem; font-weight: 550; }
.court-scoreboard b { text-align: center; font-size: 1rem; }
.court-scoreboard > div:first-of-type b { color: #d2f5b6; }
.vector-crest { filter: drop-shadow(1px 3px 2px #101b3230); }
.vector-crest .vector-shade { fill: #ffffff12; }
.vector-crest .crest-rim { fill: color-mix(in srgb, var(--crest), #fff 38%); }
.vector-crest .crest-field { fill: var(--crest); }
.vector-crest .crest-detail { opacity: .65; }
.tile .vector-crest { --size: 76px; }
.bento-crests .vector-crest { --size: 94px; }
.bento-scorecard { max-width: 300px; height: 150px; padding: 12px 14px; justify-content: center; align-items: stretch; background: linear-gradient(140deg, #18305e, #081a3f); border: 1px solid #7898c96b; box-shadow: 0 12px 30px #00134c40; }
.scoreboard-heading { display: flex; justify-content: space-between; gap: 7px; color: #b4c5df; font-size: .52rem; letter-spacing: .07em; padding-bottom: 9px; border-bottom: 1px solid #ffffff20; }
.scoreboard-team { display: grid; grid-template-columns: minmax(0,1fr) 31px 31px; align-items: center; gap: 5px; padding-top: 8px; font-size: .8rem; }
.scoreboard-team small { display: block; color: #bfdaa7; font-size: .57rem; margin-top: 1px; }
.bento-scorecard .scoreboard-team b { font-size: 1.45rem; text-align: center; background: #ffffff0e; border-radius: 5px; }
.scoreboard-team:first-of-type b { color: #daf3a7; }
.bento-bars { height: auto; min-height: 150px; gap: 7px; }
.bento-standing { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #ffffffc9; border: 1px solid #ffffff; border-radius: 13px; box-shadow: 0 4px 12px #234a3520; }
.bento-standing .crest { --size: 31px; }
.bento-standing > span { display: block; padding: 0; border: 0; box-shadow: none; background: transparent; flex: 1; font-size: .75rem; }
.bento-standing small { display: block; color: #66776b; font-size: .62rem; }
.bento-standing em { font-style: normal; color: #1d724e; }
.bento-standing > b { font-size: 1.2rem; letter-spacing: -.04em; color: #185637; }
@media (max-width:640px) {
    .court-scoreboard { padding: 5px 7px !important; }
    .court-scoreboard > span { font-size: .45rem; }
    .court-scoreboard strong { font-size: .58rem; }
    .court-scoreboard b { font-size: .8rem; }
}

.brand .original-brand-mark { display: block; width: 30px; height: 33px; flex: 0 0 auto; color: inherit; }

.bento-crests { position: relative; display: block; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 5% 95%, transparent); }
.bento-league-track { display: flex; width: 400%; height: 100%; align-items: center; }
.bento-league-option { position: relative; width: calc(100% / 12); flex: 0 0 calc(100% / 12); display: grid; place-items: center; }
.bento-crests .bento-league-option .crest { --size: clamp(62px, 8vw, 90px); transform: none; }
.selection-check { position: absolute; top: 5%; right: 17%; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #0645f5; color: white; border: 2px solid #eaf0fa; font-size: .8rem; opacity: 1; }
.bento-league-option:nth-child(n+4) .selection-check { display: none; }
.demo-cursor { display: none; position: absolute; width: 23px; height: 30px; left: 17%; top: 65%; filter: drop-shadow(1px 3px 2px #19395535); pointer-events: none; }
.is-bento-running .bento-league-track { animation: bento-leagues-drift 11s linear infinite; }
.is-bento-running .demo-cursor { display: block; animation: bento-cursor-select 11s ease-in-out infinite; }
.is-bento-running .selection-check { animation: bento-select-check 11s both infinite; }
.is-bento-running .bento-league-option:nth-child(2) .selection-check,
.is-bento-running .bento-league-option:nth-child(8) .selection-check { animation-delay: .9s; }
.is-bento-running .bento-league-option:nth-child(3) .selection-check,
.is-bento-running .bento-league-option:nth-child(9) .selection-check { animation-delay: 1.8s; }
.bento-league-option.is-copy .selection-check { display: grid; }
.bento-league-option.is-copy:nth-child(n+10) .selection-check { display: none; }
@keyframes bento-leagues-drift {
    0% { transform: translateX(0); }
    22%, 100% { transform: translateX(-50%); }
}
@keyframes bento-cursor-select {
    0%, 22% { left: 90%; top: 95%; opacity: 0; }
    28% { left: 17%; top: 65%; opacity: 1; transform: scale(1); }
    31% { left: 17%; transform: scale(.82); }
    34% { left: 17%; transform: scale(1); }
    37% { left: 50%; }
    40% { left: 50%; transform: scale(.82); }
    43% { left: 50%; transform: scale(1); }
    46% { left: 83%; }
    49% { left: 83%; transform: scale(.82); }
    52% { left: 83%; transform: scale(1); opacity: 1; }
    60%,100% { left: 94%; top: 90%; opacity: 0; }
}
@keyframes bento-select-check {
    0%, 30% { opacity: 0; transform: scale(.5); }
    33%, 85% { opacity: 1; transform: scale(1); }
    95%,100% { opacity: 0; transform: scale(.5); }
}
.booking-time, .bento-standing > b { font-variant-numeric: tabular-nums; }
.bento-calendar.slot-selected { box-shadow: 0 0 0 2px #416bde45, 0 12px 24px #133a8320; }
.bento-standing.rank-updated { border-color: #74ad9066; background: #fff; }
.bento-standing.rank-updated em { color: #16835c; }
@media (prefers-reduced-motion: reduce) {
    .is-bento-running .bento-league-track,
    .is-bento-running .demo-cursor,
    .is-bento-running .selection-check { animation: none; }
    .demo-cursor { display: none !important; }
}

.bento-league-track:not(.has-copies) { width: 200%; }
.bento-league-track:not(.has-copies) .bento-league-option { flex-basis: calc(100% / 6); }
.bento-league-option.is-copy:nth-child(-n+9) .selection-check { display: grid; }
.is-bento-running .bento-league-option:nth-child(2) .selection-check,
.is-bento-running .bento-league-option:nth-child(8) .selection-check { animation-delay: .99s; }
.is-bento-running .bento-league-option:nth-child(3) .selection-check,
.is-bento-running .bento-league-option:nth-child(9) .selection-check { animation-delay: 1.98s; }

/* Court coordinates follow the marked service-line positions. */
.rendered-court .court-team {
    top: 0;
    bottom: 0;
    width: 100%;
    left: 0;
    right: auto;
    padding: 0;
    display: block;
    pointer-events: none;
}
.rendered-court .court-team[data-team="winners"],
.rendered-court .court-team[data-team="opponents"] { left: 0; right: auto; }
.rendered-court .court-player,
.match-feature .rendered-court .court-player {
    position: absolute;
    margin: 0;
    transform: translate(-50%, -50%);
}
.rendered-court .court-player:first-child,
.rendered-court .court-player:last-child { margin: 0; }
.rendered-court .court-team[data-team="winners"] .court-player:first-child { left: 24%; top: 37%; }
.rendered-court .court-team[data-team="winners"] .court-player:last-child { left: 23%; top: 60%; }
.rendered-court .court-team[data-team="opponents"] .court-player:first-child { left: 78%; top: 38%; }
.rendered-court .court-team[data-team="opponents"] .court-player:last-child { left: 79%; top: 61%; }
.rendered-court .court-scoreboard { left: 50%; top: 50%; }
.court-scoreboard strong { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.winner-trophy { flex: 0 0 13px; width: 13px; height: 15px; color: #e4efaa; }
@media (max-width: 640px) {
    .rendered-court .court-scoreboard { width: 135px; padding: 7px 8px; }
    .court-scoreboard strong { font-size: .63rem; gap: 3px; }
    .winner-trophy { width: 11px; flex-basis: 11px; }
}

.match-gain { justify-self: end; color: #1b764d; background: #dceee2; font-size: .85rem; font-weight: 700; padding: 3px 9px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.ranking-context { grid-column: 1 / -1; color: var(--muted); font-size: .7rem; margin-top: 3px; }
.mini-leaderboard .mini-person { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mini-person .player-avatar { flex: 0 0 25px; width: 25px; border: 0; font-size: .7rem; box-shadow: none; }
.mini-leaderboard .rating-cell { width: auto; white-space: nowrap; text-align: right; }
.mini-leaderboard td.position { width: 26px; padding-inline: 3px; color: var(--muted); font-weight: 400; }
.mini-leaderboard .rating-delta { margin-left: 4px; font-size: .65rem; color: var(--muted); }
.mini-leaderboard .rating-delta.positive, .rank-direction { color: #16835c; }
.rank-direction { font-size: .95rem; font-weight: 800; }
.rank-direction.down { color: #ca4b44; }
.mini-leaderboard thead th:last-child { text-align: right; }
.mini-self .mini-person { font-weight: 700; }
.rating-pending .rating-delta, .rating-pending .rank-direction { opacity: 0; }
.rating-complete .rating-delta, .rating-complete .rank-direction { animation: reveal .3s both; }
@media (min-width: 641px) and (max-width: 1000px) {
    .match-feature .ranking { padding-inline: 9px; gap: 6px; }
    .mini-leaderboard { font-size: .73rem; }
    .mini-leaderboard :is(th, td) { padding-inline: 3px; }
    .mini-person .player-avatar { width: 21px; flex-basis: 21px; }
}
.mini-person { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.mini-person .player-avatar { width: 27px; flex: 0 0 27px; border-width: 1px; box-shadow: none; font-size: .7rem; }
@media (min-width: 641px) and (max-width: 1000px) {
    .mini-person { gap: 4px; }
    .mini-person .player-avatar { width: 21px; flex-basis: 21px; }
}

.rendered-court .court-scoreboard { width: clamp(170px, 24vw, 255px); }
.court-scoreboard > div { grid-template-columns: minmax(0, 1fr) 14px repeat(3, 20px); gap: 5px; }
.court-scoreboard .unplayed { color: #9eacc1; font-weight: 400; }
.court-scoreboard .winner-trophy { width: 13px; height: 15px; }
.scoreboard-team { grid-template-columns: minmax(0, 1fr) repeat(3, 28px); gap: 4px; }
.scoreboard-heading { font-size: .48rem; letter-spacing: .03em; }
.bento-scorecard .unplayed { color: #97a9c6; font-weight: 400; }
.bento-standing { display: grid; grid-template-columns: 34px minmax(0, 1fr) 68px; gap: 10px; text-align: left; }
.bento-standing > span { min-width: 0; font-size: .75rem; }
.bento-standing > b { display: block; text-align: right; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.bento-standing > span small { margin-top: 2px; }
.bento-standing em { font-style: normal; }
@media (max-width: 640px) {
    .rendered-court .court-scoreboard { width: 174px; }
    .court-scoreboard > div { grid-template-columns: minmax(0, 1fr) 11px repeat(3, 14px); gap: 3px; }
    .court-scoreboard strong { font-size: .59rem; }
    .bento-standing { grid-template-columns: 31px minmax(0, 1fr) 55px; gap: 8px; }
    .bento-standing > b { font-size: 1.05rem; }
}

/* Give the community story, court and league collection room to breathe. */
.site-header { padding-top: 30px; }
.photo-hero-page::before { height: clamp(520px, 48vw, 690px); }
.photo-hero-page .community-hero { min-height: clamp(465px, 43vw, 620px); padding-block: 55px 85px; }
.community-copy p { margin-top: 20px; margin-bottom: 15px; }
.community-copy .circle-definition { max-width: 680px; margin-bottom: 27px; line-height: 1.65; }
.photo-hero-page .match-feature { margin-top: 46px; padding-bottom: 28px; }
.match-feature .wire { height: 70px; }
.match-feature .ranking { height: calc(100% - 70px); padding: 22px 18px 18px; gap: 11px; }
.results { gap: 22px; }
.ranking-context { line-height: 1.55; }
.mini-leaderboard :is(th, td) { padding-block: 9px; }
.gallery { margin-top: 62px; padding-bottom: 65px; }
.gallery h2 { margin-bottom: 17px; }
.gallery-intro { max-width: 730px; margin-bottom: 32px; line-height: 1.65; }
.actions { max-width: 760px; gap: 17px; }
.action { padding: 23px 10px; gap: 14px; }
.marquee { margin-top: 28px; }
.marquee.is-moving .catalog { padding-block: 16px 24px; }
.how-it-works { margin-bottom: 70px; }
.how-it-works ol { margin-top: 28px; gap: 22px; }
.how-it-works li { padding: 29px; min-height: 285px; }
.bento-visual { margin-bottom: 24px; }
.how-it-works strong { margin-bottom: 9px; }
.how-it-works p { line-height: 1.65; }
.faq { margin-bottom: 65px; }
.faq h2 { margin-bottom: 21px; }
.faq details + details { margin-top: 11px; }
.faq summary { padding: 16px 19px; }
.faq details p { padding: 0 19px 18px; line-height: 1.65; }
footer { padding-block: 27px; }
@media (min-width: 641px) and (max-width: 1000px) {
    .match-feature .ranking { padding-inline: 10px; gap: 8px; }
    .results { gap: 14px; }
    .how-it-works li { padding: 24px; }
}
@media (max-width: 640px) {
    .site-header { padding-top: 23px; }
    .photo-hero-page::before { height: 595px; }
    .photo-hero-page .community-hero { min-height: 530px; padding-block: 40px 75px; }
    .community-copy p { margin-block: 15px; }
    .community-copy .circle-definition { margin-bottom: 23px; }
    .photo-hero-page .match-feature { margin-top: 25px; }
    .match-feature .wire { height: 20px; }
    .match-feature .ranking { height: auto; padding: 15px 12px; }
    .results { gap: 13px; }
    .gallery { margin-top: 35px; padding-bottom: 44px; }
    .gallery-intro { margin-bottom: 24px; }
    .actions { gap: 9px; }
    .action { padding: 16px 6px; gap: 11px; }
    .how-it-works { margin-bottom: 45px; }
    .how-it-works ol { gap: 15px; margin-top: 22px; }
    .how-it-works li { padding: 23px; }
    .faq { margin-bottom: 45px; }
}

.photo-hero-page .community-copy > p,
.photo-hero-page .community-copy > p.circle-definition {
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    line-height: 1.6;
    color: #fff;
    max-width: 760px;
}
.photo-hero-page::before {
    background-image: linear-gradient(180deg, #061823a8, #061823cf), url('/elvis/assets/community-hero-v2.png');
}
.photo-hero-page .community-copy { text-shadow: 0 2px 9px #00132160; }
.gallery > h2, .gallery > .gallery-intro { text-align: center; }
.bento-calendar { padding: 10px; }
.bento-calendar .booking-provider {
    display: block; margin-top: 9px; padding-top: 7px; border-top: 1px solid #23304716;
    color: #525a65; font-size: .63rem; letter-spacing: 0; font-weight: 400; text-align: center;
}
.booking-provider b { font-size: inherit; color: #172f4b; font-weight: 700; letter-spacing: 0; }
.photo-hero-page::before { height: var(--hero-photo-height, clamp(520px, 48vw, 690px)); }

.registration-section { padding: 10px 22px 75px; }
.registration-wrap { max-width: 720px; margin: auto; }
.root-signup-form { padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 28px; background: #fffdf9; box-shadow: var(--shadow); }
.root-marquee-label, .success-eyebrow { color: var(--blue); font-size: .8rem; font-weight: 650; margin-bottom: 10px; }
.root-signup-title, #signup-success-title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; font-weight: 600; letter-spacing: -.045em; }
.signup-intro, .success-description { margin-block: 15px 24px; color: var(--muted); line-height: 1.6; }
.root-field { display: grid; gap: 7px; margin-block: 18px; }
.root-field label { font-size: .9rem; font-weight: 600; }
.root-optional, .root-hint { color: var(--muted); font-size: .78rem; font-weight: 400; }
.root-field input, .root-field textarea, #share-link-fallback { min-width: 0; width: 100%; padding: 13px 15px; border: 1px solid #b9bec8; border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.root-field textarea { resize: vertical; }
.root-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.root-signup-button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 22px; border: 0; border-radius: 99px; background: var(--blue); color: white; font: inherit; font-weight: 600; cursor: pointer; }
.root-form-status, #share-status { margin-top: 10px; font-size: .86rem; color: #245a40; }
.root-is-error { color: #a12d28; }
.root-fineprint { margin-top: 18px; color: var(--muted); font-size: .78rem; }
.root-is-done > .root-field, .root-is-done > .root-signup-button, .root-is-done > .root-signup-title, .root-is-done > .root-marquee-label, .root-is-done > .signup-intro { display: none; }
.success-share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.success-share-actions a, .success-share-actions button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 9px 13px; background: white; text-decoration: none; font: inherit; font-size: .8rem; cursor: pointer; }
.success-share-actions svg { width: 17px; height: 17px; }
.root-feedback { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 5px; }
[hidden] { display: none !important; }

/* Modern Athletic: bold flat colors and a consistent sporting silhouette. */
.athletic-crest { filter: none; }
.athletic-crest .crest-rim { fill: #172a43; }
.athletic-crest .crest-field { fill: var(--crest); }
.athletic-stripe { fill: #fff; opacity: .12; }
.athletic-crest .crest-detail { fill: #f5cc74; opacity: 1; }
.athletic-crest .crest-motif { stroke: #fff9eb; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.athletic-crest .crest-shine { display: none; }
.ranking .athletic-crest .crest-detail { display: block; }

/* Woven Community: identical canvases with the transparent padding compensated. */
.woven-crest { height: calc(var(--size) * 1.21); filter: none; }
.woven-crest img { position: absolute; width: 131%; height: auto; max-width: none; left: -14.6%; top: -5.2%; display: block; }

.site-header { position: relative; min-height: 80px; }
.language-toggle { position: absolute; right: 28px; top: 31px; display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; padding: 5px 8px; border-radius: 30px; font-size: 12px; font-weight: 650; letter-spacing: .03em; }
.language-code { opacity: .55; }
.language-code.is-active { opacity: 1; }
.language-track { display: block; position: relative; width: 55px; height: 31px; border: 1px solid #bac2c4; background: #dce3de; border-radius: 20px; box-shadow: inset 0 2px 4px #18312616; }
.language-ball { position: absolute; width: 27px; height: 27px; left: 1px; top: 1px; filter: drop-shadow(0 2px 2px #132e3340); transition: transform .3s ease; }
html[lang="en"] .language-ball { transform: translateX(24px) rotate(75deg); }
.photo-hero-page .language-toggle { background: #09212755; backdrop-filter: blur(8px); }
.photo-hero-page .language-track { background: #ffffff24; border-color: #ffffff60; }
.language-toggle:hover .language-ball { filter: drop-shadow(0 2px 4px #cfe75b80); }
.language-toggle:focus-visible { outline: 2px solid #cfe75b; outline-offset: 4px; }
@media(max-width:600px) {
    .site-header { min-height: 115px; padding-top: 18px; align-items: flex-start; }
    .language-toggle { top: 65px; right: 16px; font-size: 11px; gap: 6px; }
}
@media(prefers-reduced-motion:reduce) { .language-ball { transition: none; } }

/* A quiet, typographic opening, with the court as the first product visual. */
.editorial-hero-page { background: #faf9f6; }
.editorial-hero-page .site-header { color: #1d1d1f; padding-top: 28px; }
.editorial-hero-page .community-hero { padding: clamp(72px, 9vw, 132px) 24px 56px; }
.editorial-hero-page .community-copy { max-width: 1000px; padding: 0; text-shadow: none; }
.editorial-hero-page .hero-eyebrow { margin: 0 auto 24px; color: #6e6e73; font-size: 13px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.editorial-hero-page .community-copy h1 { font-size: clamp(66px, 9.8vw, 132px); line-height: .99; letter-spacing: -.065em; font-weight: 650; color: #1d1d1f; }
.editorial-hero-page .community-copy h1 > span { color: #73757b; }
.editorial-hero-page .hero-description { max-width: 650px; margin: 30px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.5; letter-spacing: -.025em; color: #6e6e73; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 30px; margin-top: 34px; }
.hero-actions .button { min-height: 48px; padding: 12px 25px; font-size: 16px; background: #0645f5; box-shadow: none; }
.hero-learn { color: #0645f5; text-decoration: none; font-size: 16px; font-weight: 500; }
.hero-learn span { display: inline-block; margin-left: 5px; transition: transform .2s; }
.hero-learn:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-learn:hover span { transform: translate(2px, -2px); }
.editorial-hero-page .match-feature { margin-top: 12px; padding-bottom: 28px; }
@media(max-width:600px) {
    .editorial-hero-page .site-header { padding-top: 18px; }
    .editorial-hero-page .community-hero { padding: 64px 24px 35px; }
    .editorial-hero-page .hero-eyebrow { font-size: 10px; letter-spacing: .09em; margin-bottom: 23px; }
    .editorial-hero-page .community-copy h1 { font-size: clamp(52px, 13.8vw, 78px); }
    .editorial-hero-page .hero-description { font-size: 19px; margin-top: 25px; }
    .hero-actions { gap: 18px; flex-wrap: wrap; margin-top: 28px; }
    .hero-actions .button, .hero-learn { font-size: 14px; }
    .hero-actions .button { padding-inline: 20px; }
    .editorial-hero-page .match-feature { margin-top: 0; }
}
@media(prefers-reduced-motion:reduce) { .hero-learn span { transition: none; } }
