/* BackCourt: the padel court as the interface. Black, clay red and white. Scoped under .bc. */
.bc { --bk: #0C0A0A; --cl: #784836; --rd: #A94541; --rl: #D46762; --wh: #fff; --g: clamp(16px, 2.6vw, 44px); --mono: "Geist Mono", ui-monospace, Menlo, monospace; background: var(--bk); color: var(--wh); overflow-x: clip; }
.bc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bc button { font: inherit; color: inherit; cursor: pointer; }
.bc button:focus-visible, .bc a:focus-visible { outline: 2px solid var(--rl); outline-offset: 3px; }
.bc-k { font: 500 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--rl); }
.bc-head { display: grid; gap: 16px; max-width: 800px; margin-bottom: clamp(26px, 4vw, 52px); }
.bc-head h2 { margin: 0; font-size: clamp(42px, 7vw, 120px); font-weight: 600; line-height: .9; letter-spacing: -.05em; }
.bc-head p { margin: 0; max-width: 56ch; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; color: rgb(255 255 255 / .75); }

/* hero: a rally across the court lines */
.bc-hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--hdr, 72px) + 2vh) var(--g) clamp(22px, 3vh, 40px); isolation: isolate; }
.bc-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; touch-action: pan-y; }
.bc-top { display: flex; justify-content: space-between; gap: 16px; font: 500 12px/1.2 var(--mono); text-transform: uppercase; color: rgb(255 255 255 / .7); position: relative; z-index: 2; } .bc-top a { color: inherit; }
.bc-h1 { margin: 0; align-self: center; justify-self: center; width: min(86vw, 1180px); position: relative; z-index: 0; } .bc-h1 img { display: block; width: 100%; height: auto; }
.bc-foot { display: flex; justify-content: space-between; align-items: end; gap: 24px; position: relative; z-index: 2; pointer-events: none; } .bc-foot p { margin: 0; max-width: 44ch; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; color: rgb(255 255 255 / .85); }
.bc-hud { display: flex; gap: 22px; font: 500 12px/1 var(--mono); text-transform: uppercase; color: rgb(255 255 255 / .7); } .bc-hud b { display: block; margin-top: 8px; font-size: clamp(28px, 3.6vw, 52px); color: var(--rl); font-variant-numeric: tabular-nums; }
.bc-hint { position: absolute; left: 50%; bottom: clamp(96px, 15vh, 140px); transform: translateX(-50%); z-index: 2; padding: 8px 14px; border: 1px solid rgb(255 255 255 / .35); font: 500 11px/1 var(--mono); text-transform: uppercase; background: rgb(12 10 10 / .6); pointer-events: none; white-space: nowrap; }
.bc-hero.played .bc-hint { opacity: 0; transition: opacity .6s; }

/* match sheet: split-flap board, on clay */
.bc-board { background: var(--cl); padding: clamp(64px, 9vw, 150px) var(--g); } .bc-board .bc-k { color: #fff; opacity: .85; } .bc-board .bc-head p { color: rgb(255 255 255 / .92); }
.bc-fl-ui { display: grid; gap: 18px; }
.bc-fl { --cols: 16; display: grid; gap: 6px; padding: clamp(12px, 2vw, 28px); background: #130d0c; border: 3px solid #000; width: 100%; max-width: 1100px; }
.bc-row-f { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 4px; }
.bc-c { position: relative; aspect-ratio: 3 / 4; display: grid; place-items: center; background: #1f1614; border-radius: 3px; font: 600 clamp(14px, 2.9vw, 44px)/1 var(--mono); color: #f6ede9; overflow: hidden; }
.bc-c::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #000; }
.bc-c.flip { animation: bc-flip .12s linear; } @keyframes bc-flip { 0% { transform: scaleY(1); } 50% { transform: scaleY(.15); } 100% { transform: scaleY(1); } }
.bc-tabs { display: flex; flex-wrap: wrap; gap: 8px; } .bc-tabs button { padding: 12px 18px; background: transparent; border: 2px solid #fff; border-radius: 999px; font: 600 12px/1 var(--mono); text-transform: uppercase; }
.bc-tabs button[aria-pressed="true"], .bc-tabs .bc-next:hover { background: #fff; color: var(--bk); } .bc-tabs .bc-next { margin-left: auto; border-color: var(--bk); background: var(--bk); } .bc-tabs .bc-next:hover { color: var(--bk); background: #fff; }

/* court map */
.bc-map { padding: clamp(64px, 9vw, 150px) var(--g); }
.bc-map-ui { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.bc-court { position: relative; aspect-ratio: 2 / 1; background: var(--cl); border: 3px solid #fff; border-radius: 4px; }
.bc-ln { position: absolute; background: rgb(255 255 255 / .85); } .bc-ln.l1 { left: 15.25%; top: 0; bottom: 0; width: 2px; } .bc-ln.l2 { right: 15.25%; top: 0; bottom: 0; width: 2px; } .bc-ln.l3 { left: 15.25%; width: 34.75%; top: 50%; height: 2px; } .bc-ln.l4 { right: 15.25%; width: 34.75%; top: 50%; height: 2px; } .bc-ln.l5 { display: none; }
.bc-net { position: absolute; left: 50%; top: -8px; bottom: -8px; width: 6px; margin-left: -3px; background: repeating-linear-gradient(180deg, #fff 0 5px, #0C0A0A 5px 9px); }
.bc-z { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: rgb(12 10 10 / .8); border: 1px solid rgb(255 255 255 / .6); border-radius: 999px; font: 600 11px/1 var(--mono); text-transform: uppercase; white-space: nowrap; transition: background .2s, color .2s; }
.bc-z b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; background: var(--rd); color: #fff; font-size: 11px; }
.bc-z.on, .bc-z:hover { background: #fff; color: var(--bk); } .bc-z.on b { background: var(--bk); }
.bc-court .bc-z { position: absolute; transform: translate(-50%, -50%); } .bc-court .bc-z span { display: none; } .bc-court .bc-z { padding: 4px; } .bc-court .bc-z.on span, .bc-court .bc-z:hover span { display: inline; padding-right: 6px; }
.bc-off { margin-top: 20px; display: grid; gap: 12px; } .bc-offs { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-view { display: grid; gap: 14px; } .bc-pns { position: relative; aspect-ratio: 4 / 5; background: #000; overflow: hidden; border: 1px solid rgb(255 255 255 / .18); }
.bc-pn { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .4s; } .bc-pn.on { opacity: 1; pointer-events: auto; }
.bc-pn img, .bc-pn video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.bc-vcap { display: grid; gap: 10px; } .bc-vcap p { margin: 0; font-size: 15px; line-height: 1.5; min-height: 4.5em; color: rgb(255 255 255 / .85); }
.bc-vb { display: flex; align-items: center; gap: 10px; } .bc-vb button { width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1px solid rgb(255 255 255 / .5); font-size: 18px; } .bc-vb button:hover { background: #fff; color: var(--bk); } .bc-vb span { margin-left: 8px; font: 500 12px/1 var(--mono); opacity: .7; }

/* result */
.bc-result { padding: clamp(64px, 9vw, 150px) var(--g); background: #fff; color: var(--bk); } .bc-result .bc-k { color: #b03434; } .bc-result .bc-head p { color: #333; }
.bc-res-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.bc-stats { display: flex; flex-wrap: wrap; gap: 24px clamp(30px, 5vw, 80px); } .bc-stat { display: grid; gap: 8px; } .bc-stat b { font-size: clamp(70px, 11vw, 180px); font-weight: 600; line-height: .82; letter-spacing: -.06em; } .bc-stat small { font-size: .26em; margin-left: 8px; letter-spacing: 0; } .bc-stat span { max-width: 16em; font-size: 14px; line-height: 1.35; color: #444; }
.bc-result blockquote { margin: 0; font-size: clamp(22px, 2.8vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; } .bc-result cite { display: block; margin-top: 14px; font: 500 12px/1.3 var(--mono); text-transform: uppercase; font-style: normal; color: #b03434; }
.bc-note { margin: 28px 0 0; font-size: 13px; color: #555; }
.bc-pal { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 14px; } .bc-pal ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .bc-pal li { display: grid; gap: 6px; padding: 10px; border: 1px solid rgb(0 0 0 / .2); font: 500 11px/1 var(--mono); text-transform: uppercase; } .bc-pal li i { height: clamp(40px, 7vw, 90px); background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
.bc-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr); gap: 20px; border-top: 2px solid var(--bk); padding-top: 22px; margin-top: clamp(40px, 6vw, 80px); } .bc-row p { margin: 0; max-width: 30em; font-size: clamp(20px, 2.4vw, 36px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }

@media (max-width: 899px) {
  .bc-map-ui, .bc-res-g, .bc-row { grid-template-columns: 1fr; }
  .bc-foot { flex-direction: column; align-items: flex-start; } .bc-hint { bottom: 170px; }
  .bc-fl { --cols: 16; padding: 10px; gap: 4px; } .bc-row-f { gap: 2px; } .bc-c { border-radius: 2px; }
  .bc-pal ul { grid-template-columns: repeat(2, 1fr); }
  .bc-tabs .bc-next { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .bc * { transition-duration: .01ms !important; animation: none !important; } }
