/* carlosalcaraz.site: an unofficial fan site.
   Layout: a match on every surface. Each section is a full-width court (clay, tennis whites, hard court, grass,
   night session) drawn with white court lines; content sits in a 1180px column on the court's grid.
   Passion = clay and big bouncy type. Gentleman = Bodoni italic and generous space. Fun = the ball. */

:root {
  /* surfaces */
  --clay: #B94E27;
  --clay-2: #A3431F;
  --grass: #2E6A3B;
  --grass-2: #275B33;
  --hard: #1F5FAF;
  --hard-2: #1A529A;
  --night: #121C33;
  --night-2: #1A2745;
  --chalk: #F6F5EF;
  --chalk-2: #ECEAE1;
  /* ink and the ball */
  --ink: #15213A;
  --ink-2: #4A5468;
  --white: #FFFFFF;
  --ball: #DFF24A;
  --ball-ink: #15213A;

  --display: 'Anybody', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --body: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --score: 'Doto', 'Courier New', ui-monospace, monospace;

  --t-hud: 0.72rem;
  --t-body: 1.0625rem;
  --t-lede: clamp(1.1rem, 1.7vw, 1.35rem);
  --t-h2: clamp(2.6rem, 7vw, 5.6rem);

  --gutter: max(clamp(16px, 4vw, 48px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 48px), env(safe-area-inset-right, 0px));
  --col: 1180px;
  --bar: 50px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

@property --w { syntax: '<number>'; inherits: true; initial-value: 0.5; }
@property --g { syntax: '<number>'; inherits: true; initial-value: 0.75; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--chalk); scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--chalk);
  font-family: var(--body); font-size: var(--t-body); line-height: 1.6; -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--bar) + env(safe-area-inset-top, 0px));
}
img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--ball); color: var(--ball-ink); }
:focus-visible { outline: 3px solid var(--ball); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ball); color: var(--ball-ink); padding: 10px 14px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Type roles */
.kin, .kin * { font-family: var(--display); font-variation-settings: 'wdth' calc(50 + var(--w) * 100), 'wght' calc(300 + var(--g) * 600); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; font-variation-settings: 'opsz' 72; letter-spacing: -0.01em; }
.hud { font-family: var(--body); font-variation-settings: 'wdth' 82; font-size: var(--t-hud); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; font-variant-numeric: tabular-nums; }
.score { font-family: var(--score); font-variation-settings: 'ROND' 100, 'wght' 800; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* Courts: four Grand Slam surfaces as full-width bands, in season order.
   The band is the surround; ::before is the court itself (fill + white lines); .svc is the service line. */
.band { position: relative; isolation: isolate; background: var(--bg); color: var(--fg); padding-block: clamp(76px, 11vw, 150px); overflow: clip; }
.band > .wrap, .band > .pin-spacer > .wrap { position: relative; max-width: var(--col); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.band::before { content: ''; position: absolute; z-index: -2; inset: clamp(10px, 2vw, 26px); background: var(--court, transparent); border: 2px solid var(--ln); pointer-events: none; }
.band::after { content: ''; position: absolute; z-index: -1; left: 50%; top: clamp(10px, 2vw, 26px); height: 46%; width: 2px; background: var(--ln); pointer-events: none; }
.band .svc { position: absolute; z-index: -1; left: clamp(10px, 2vw, 26px); right: clamp(10px, 2vw, 26px); top: 46%; height: 2px; background: var(--ln); pointer-events: none; }
.slam-tag { position: absolute; z-index: 1; top: clamp(18px, 2.6vw, 34px); right: calc(var(--gutter-r) + 4px); display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.2); color: var(--white); }
.slam-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); }
/* Melbourne: lighter blue court inside a darker surround */
.on-ao { --bg: #1C5A93; --court: #2B78BE; --fg: var(--white); --fg-2: rgb(255 255 255 / 0.85); --ln: rgb(255 255 255 / 0.55); --hair: rgb(255 255 255 / 0.24); --card: #1F65A6; --accent: var(--ball); }
/* Paris: clay, with a fine grain */
.on-rg { --bg: #B94E27; --court: transparent; --fg: var(--white); --fg-2: rgb(255 255 255 / 0.86); --ln: rgb(255 255 255 / 0.6); --hair: rgb(255 255 255 / 0.24); --card: #A3431F; --accent: var(--ball);
  background-image: radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1.4px), radial-gradient(rgb(0 0 0 / 0.06) 1px, transparent 1.4px); background-size: 7px 7px, 11px 11px; background-position: 0 0, 3px 5px; }
/* London: grass with mowing stripes; whites and a touch of purple */
.on-wim { --bg: #2E6A3B; --court: transparent; --fg: var(--white); --fg-2: rgb(255 255 255 / 0.86); --ln: rgb(255 255 255 / 0.62); --hair: rgb(255 255 255 / 0.24); --card: #F6F5EF; --card-fg: var(--ink); --purple: #4B2E83; --accent: var(--ball);
  background-image: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.045) 0 clamp(60px, 8vw, 110px), rgb(0 0 0 / 0.04) clamp(60px, 8vw, 110px) calc(2 * clamp(60px, 8vw, 110px))); }
/* New York: blue court inside the green surround */
.on-uso { --bg: #2D6141; --court: #2C5C93; --fg: var(--white); --fg-2: rgb(255 255 255 / 0.85); --ln: rgb(255 255 255 / 0.55); --hair: rgb(255 255 255 / 0.24); --card: #24507F; --accent: var(--ball); }
.on-ball { --bg: var(--ball); --fg: var(--ball-ink); --fg-2: var(--ball-ink); --ln: rgb(21 33 58 / 0.15); --hair: rgb(21 33 58 / 0.2); --card: #D2E640; }
.on-ball::before, .on-ball::after { display: none; }
.on-ink { --bg: #101A2E; --fg: var(--white); --fg-2: rgb(255 255 255 / 0.74); --ln: rgb(255 255 255 / 0.12); --hair: rgb(255 255 255 / 0.14); --card: #18243D; }
.on-ink::after { display: none; }

/* Scoreboard bar */
.bar { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); background: var(--night); color: var(--white); border-bottom: 2px solid var(--ball); }
.bar-in { max-width: var(--col); margin-inline: auto; box-sizing: content-box; height: var(--bar); padding-left: var(--gutter); padding-right: var(--gutter-r); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); min-width: 0; }
.mark .ballmini { width: 16px; height: 16px; flex: none; }
.mark b { font-weight: 700; letter-spacing: 0.04em; font-size: 0.86rem; white-space: nowrap; }
.fan { display: inline-flex; align-items: center; padding: 3px 8px; background: var(--ball); color: var(--ball-ink); font-size: 0.64rem; white-space: nowrap; }
.board { display: flex; align-items: stretch; height: 32px; border: 1px solid rgb(255 255 255 / 0.25); }
.board > span { display: flex; align-items: center; gap: 6px; padding: 0 10px; border-left: 1px solid rgb(255 255 255 / 0.18); white-space: nowrap; }
.board > span:first-child { border-left: 0; }
.board .serve { width: 8px; height: 8px; border-radius: 50%; background: var(--ball); }
.board .score { font-size: 1.05rem; color: var(--ball); }
.board .opt { display: none; }
@media (min-width: 760px) { .board .opt { display: flex; } }
.nav { display: none; gap: 18px; }
.nav a { color: rgb(255 255 255 / 0.78); text-decoration: none; }
.nav a:hover { color: var(--ball); }
@media (min-width: 1200px) { .nav { display: flex; } }
@media (max-width: 559px) { .mark b { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--fg); background: transparent; color: var(--fg); text-decoration: none; font-family: var(--body); font-variation-settings: 'wdth' 85; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: transform .25s var(--bounce), background-color .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-2px); background: var(--fg); color: var(--bg); }
.btn-ball { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.btn-ball:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* Section heads */
.kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--fg-2); }
.kicker .n { font-family: var(--score); font-variation-settings: 'ROND' 100, 'wght' 800; color: var(--ball); font-size: 1rem; letter-spacing: 0; }
.on-ball .kicker .n { color: var(--ink); }
.kicker .rule { width: 34px; height: 2px; background: var(--ln); }
.h2 { margin: 0; font-size: var(--t-h2); line-height: 0.88; text-transform: uppercase; letter-spacing: -0.01em; font-weight: 400; text-wrap: balance; --w: 0.6; --g: 0.9; overflow-wrap: break-word; }
.h2 .serif { text-transform: none; font-size: 0.82em; color: var(--ball); }
.on-ball .h2 .serif { color: var(--ink); }
.lede { max-width: 58ch; color: var(--fg-2); font-size: var(--t-lede); line-height: 1.5; }

/* Fan-site notice: prominent on purpose */
.notice { background: var(--ball); color: var(--ball-ink); }
.notice-in { max-width: var(--col); margin-inline: auto; box-sizing: content-box; padding: 10px var(--gutter-r) 10px var(--gutter); display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: 0.86rem; font-weight: 600; }
.notice-in .hud { padding: 2px 8px; background: var(--ball-ink); color: var(--ball); }
.notice-in a { font-weight: 700; }

/* Hero (clay) */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(64px, 9vw, 120px); --ksc: 1; }
.hero .wrap { gap: clamp(18px, 2.6vw, 30px); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--fg-2); margin: 0; }
.hero-meta b { color: var(--white); }
.hero-name { margin: 0; font-size: clamp(4rem, 17.5vw, 15.5rem); line-height: 0.8; text-transform: uppercase; letter-spacing: -0.03em; font-weight: 400; white-space: nowrap; min-width: 0; max-width: 100%; color: var(--white); --kin: 1; --w: calc(var(--kin) * var(--ksc)); --g: calc(0.5 + 0.5 * var(--kin)); }
.hero-name .ballchar { display: inline-block; width: 0.62em; height: 0.62em; vertical-align: 0.02em; margin-left: 0.04em; }
.vamos { margin: 0; font-size: clamp(2rem, 6vw, 4.6rem); line-height: 1; color: var(--ball); }
.hero-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 18px; align-content: end; }
.hero-line { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.02; text-transform: uppercase; font-weight: 400; --w: 0.45; --g: 0.85; text-wrap: balance; }
.hero-sub { font-size: var(--t-lede); line-height: 1.5; color: var(--fg-2); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ln); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { padding: 14px 14px 4px 0; display: grid; gap: 6px; }
.tile dt { color: var(--fg-2); }
.tile dd { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--white); }
.tile dd small { font-size: 0.38em; color: var(--fg-2); margin-left: 4px; font-family: var(--body); font-weight: 700; letter-spacing: 0.06em; }
.tile.hot dd { color: var(--ball); }
.asof { color: var(--fg-2); }

/* Photos: mono until the scan line passes, then colour */
.shot { position: relative; overflow: hidden; background: var(--card); aspect-ratio: 4 / 5; border-radius: 18px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .mono { filter: grayscale(1) contrast(1.1); }
.js .shot .col { clip-path: inset(0 0 100% 0); transition: clip-path 1s cubic-bezier(.65, 0, .35, 1); }
.shot.on .col, .shot:hover .col { clip-path: inset(0 0 0 0); }
.shot .scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ball); box-shadow: 0 0 16px 3px rgb(223 242 74 / 0.6); opacity: 0; z-index: 2; }
.shot.on .scan, .shot:hover .scan { animation: scan 1s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.shot .tag { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 4px 9px; border-radius: 999px; background: rgb(21 33 58 / 0.78); color: var(--white); }
figure { margin: 0; display: grid; gap: 8px; }
figcaption, .credit { font-size: 0.74rem; color: var(--fg-2); line-height: 1.45; }
figcaption a, .credit a { color: inherit; }

/* Where is Carlos now? (hard court) */
.now-card { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); padding: clamp(20px, 3vw, 34px); background: var(--card); border-radius: 22px; }
@media (min-width: 900px) { .now-card { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; } }
.now-status { display: inline-flex; align-items: center; gap: 8px; color: var(--ball); }
.now-status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ball); animation: blink 1.6s steps(1) infinite; }
.now-status.done .dot { animation: none; background: var(--fg-2); }
@keyframes blink { 50% { opacity: 0.2; } }
.now-t { margin: 0; font-size: clamp(2.2rem, 6vw, 5rem); line-height: 0.9; text-transform: uppercase; font-weight: 400; --w: 0.55; --g: 0.9; text-wrap: balance; }
.now-where { font-size: var(--t-lede); color: var(--fg-2); }
.now-res { display: grid; gap: 6px; align-content: end; justify-items: start; }
.now-res .label { color: var(--fg-2); }
.now-res .val { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; color: var(--ball); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(255 255 255 / 0.14); color: var(--fg); }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--sf, var(--ball)); }
[data-surface="clay"] { --sf: #E2774E; } [data-surface="grass"] { --sf: #7BC86F; } [data-surface="hard"] { --sf: #6FA8F0; }
.now-src { color: var(--fg-2); }

/* Story (whites): font scroll */
.story { font-size: clamp(1.5rem, 3.3vw, 2.6rem); line-height: 1.2; --w: 0.4; --g: 0.55; max-width: 30ch; text-wrap: pretty; margin: 0; }
.story .w { --i: 1; color: color-mix(in srgb, var(--white) calc(var(--i) * 100%), rgb(255 255 255 / 0.3)); --g: calc(0.3 + 0.45 * var(--i)); }
.story .hl { color: var(--ball); }
.story.is-split .hl .w { color: color-mix(in srgb, var(--ball) calc(var(--i) * 100%), rgb(255 255 255 / 0.3)); --w: calc(0.4 + 0.55 * var(--i)); }
.story-cols { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .story-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.reading { display: grid; gap: 1em; max-width: 62ch; color: var(--fg-2); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin: 0; border-top: 2px solid var(--fg); }
.facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 4px; }
.facts dt { color: var(--fg-2); }
.facts dd { margin: 0; font-weight: 600; }

/* Power and touch (hard court, pinned) */
.pt { padding-bottom: 0; }
.pt-pin { display: grid; gap: 16px; padding-block: 6px clamp(56px, 8vw, 96px); }
.pt-words { position: relative; height: 0.95em; font-size: clamp(3.4rem, 13vw, 11rem); line-height: 0.86; text-transform: uppercase; margin: 0; font-weight: 400; }
.pt-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; }
.pt-word.power { --w: 1; --g: 1; }
.pt-word.touch { --w: 0; --g: 0.15; color: var(--ball); }
.pt-word.both { --w: 0.5; --g: 0.7; }
.no-pin .pt-words { height: auto; display: grid; }
.no-pin .pt-word { position: static; opacity: 1; }
.court-box { position: relative; border-radius: 16px; overflow: hidden; background: var(--hard-2); }
.court { display: block; width: 100%; height: auto; max-height: calc(100svh - 380px); min-height: 150px; }
.court .ln { fill: none; stroke: var(--white); stroke-width: 7; opacity: 0.9; }
.court .net { stroke: var(--white); stroke-width: 12; stroke-dasharray: 20 14; }
.court .path { fill: none; stroke: var(--ball); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 2 26; }
.court .ballc { fill: var(--ball); }
.court .mk { fill: none; stroke: var(--ball); stroke-width: 7; opacity: 0; }
.court .call { font-family: var(--body); font-weight: 800; font-size: 70px; letter-spacing: 8px; fill: var(--ball); opacity: 0; }
.court-hud { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; gap: 12px; color: var(--fg-2); pointer-events: none; }
.court-hud b { color: var(--white); }
.pt-cols { display: grid; gap: 20px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .pt-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pt-card { display: grid; gap: 8px; padding-top: 12px; border-top: 2px solid var(--ln); transition: opacity .35s; }
.pt-card h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); text-transform: uppercase; font-weight: 400; line-height: 1; --w: 0.5; --g: 0.9; }
.pt-card p { color: var(--fg-2); max-width: 52ch; }
.pt-card.dim { opacity: 0.35; }
.no-pin .pt-card.dim { opacity: 1; }

/* Game (whites) */
.game { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.g-item { background: var(--card); border-radius: 18px; padding: 22px; display: grid; gap: 10px; align-content: start; transition: transform .35s var(--bounce); }
.g-item:hover { transform: translateY(-4px) rotate(-0.6deg); }
.g-item .n { color: var(--ball); }
.g-item h3 { margin: 0; font-size: 1.7rem; text-transform: uppercase; font-weight: 400; line-height: 1; --w: 0.45; --g: 0.9; transition: --w .5s var(--ease); }
.g-item:hover h3 { --w: 1; }
.g-item p { color: var(--fg-2); }

/* Trophy cabinet (night): pinned horizontal reel */
.titles { padding-bottom: 0; }
.reel-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 28px; }
.reel-pin { padding-block: 6px clamp(64px, 9vw, 110px); display: grid; gap: 16px; }
.reel-view { overflow: hidden; }
.no-pin .reel-view { overflow-x: auto; padding-bottom: 12px; }
.reel-track { display: flex; gap: 18px; width: max-content; }
.slam { flex: none; width: min(78vw, 360px); min-height: 380px; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 22px 22px 24px; border-radius: 22px; background: var(--sfbg, var(--hard)); color: var(--white); position: relative; overflow: hidden; }
.slam[data-surface="clay"] { --sfbg: var(--clay); }
.slam[data-surface="grass"] { --sfbg: var(--grass); }
.slam[data-surface="hard"] { --sfbg: var(--hard); }
.slam::before { content: ''; position: absolute; inset: 12px; border: 2px solid rgb(255 255 255 / 0.28); border-radius: 12px; pointer-events: none; }
.slam::after { content: ''; position: absolute; left: 50%; top: 12px; bottom: 45%; width: 2px; background: rgb(255 255 255 / 0.28); }
.slam-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slam .yr { font-size: 2.8rem; line-height: 1; }
.slam h3 { position: relative; z-index: 1; margin: 0; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 0.92; text-transform: uppercase; font-weight: 400; --w: 0.5; --g: 0.95; align-self: end; text-wrap: balance; }
.slam .final { position: relative; z-index: 1; color: rgb(255 255 255 / 0.85); }
.slam .final b { color: var(--white); }
.slam .sc { font-size: 1.2rem; color: var(--ball); margin-top: 4px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--fg-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--sf); display: inline-block; }

/* Highlights (whites): click-to-play, nothing loads from YouTube until you press play */
.vids { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.vid { display: grid; gap: 10px; align-content: start; }
.vid-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--sfbg, var(--night)); }
.vid[data-surface="clay"] .vid-frame { --sfbg: var(--clay); }
.vid[data-surface="grass"] .vid-frame { --sfbg: var(--grass); }
.vid[data-surface="hard"] .vid-frame { --sfbg: var(--hard); }
.vid-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; gap: 10px; align-content: center; width: 100%; border: 0; background: none; color: var(--white); cursor: pointer; padding: 20px; text-align: center; }
.vid-play::before { content: ''; position: absolute; inset: 10px; border: 2px solid rgb(255 255 255 / 0.3); border-radius: 10px; }
.vid-play::after { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; background: rgb(255 255 255 / 0.18); }
.vid-btn { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--ball); display: grid; place-items: center; transition: transform .35s var(--bounce); }
.vid-btn svg { width: 22px; height: 22px; margin-left: 4px; fill: var(--ball-ink); }
.vid-play:hover .vid-btn { transform: scale(1.12) rotate(-8deg); }
.vid-cap { position: relative; z-index: 1; font-size: 0.86rem; font-weight: 600; max-width: 36ch; }
.vid h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; font-weight: 700; }
.vid .credit a { font-weight: 600; }

/* The gentleman (grass) */
.gent-quote { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; max-width: 22ch; color: var(--white); }
.gent-quote .tr { display: block; margin-top: 12px; font-family: var(--body); font-style: normal; font-size: 0.32em; letter-spacing: 0.04em; color: var(--fg-2); }
.gent-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.gent-item { padding: 20px 22px; background: var(--card); color: var(--card-fg, var(--fg)); border-radius: 18px; display: grid; gap: 8px; }
.gent-item h3 { margin: 0; font-size: 1.6rem; line-height: 1.1; color: var(--purple, var(--ball)); }
.gent-item p { color: var(--ink-2); }

/* Records + timeline (whites, clay) */
.records { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--fg); }
.rec { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 6px 22px; padding-block: 18px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.rec .yr { font-size: 1.6rem; color: var(--purple, var(--ball)); }
.rec p { font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.3; font-weight: 600; }
.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 36px; display: grid; gap: 26px; }
.tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--ln); }
.tl-fill { position: absolute; left: 7px; top: 6px; width: 2px; height: calc(100% - 12px); background: var(--ball); transform-origin: 0 0; }
.tl li { position: relative; display: grid; gap: 4px; }
.tl li::before { content: ''; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--ball); box-shadow: inset -3px -2px 0 rgb(0 0 0 / 0.18); }
.tl .yr { color: var(--ball); font-size: 1.3rem; }
.tl p { font-size: 1.12rem; max-width: 60ch; color: var(--fg); }

/* Gallery */
.photos { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }

/* Marquee (ball yellow) */
.marq-band { padding-block: 26px; }
.marq { display: grid; gap: 0; overflow: hidden; }
.marq-row { overflow: hidden; }
.marq-track { display: inline-flex; white-space: nowrap; font-size: clamp(2.6rem, 8vw, 6.4rem); line-height: 1.02; text-transform: uppercase; --w: 1; --g: 0.9; will-change: transform; }
.marq-track span { padding-inline: 0.22em; }
.marq-track .sep { display: inline-block; width: 0.55em; height: 0.55em; margin: 0 0.1em; vertical-align: 0.1em; padding: 0; }
.marq-row + .marq-row .marq-track { color: transparent; -webkit-text-stroke: 2px var(--ball-ink); }

/* Follow + footer (night) */
.follow { display: grid; border-top: 2px solid var(--ln); }
.follow a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--hair); text-decoration: none; }
.follow .fl { font-size: clamp(1.9rem, 5vw, 3.8rem); line-height: 1; text-transform: uppercase; --w: 0.4; --g: 0.8; transition: --w .5s var(--ease), color .15s; }
.follow a:hover .fl { --w: 1; color: var(--ball); }
.follow .hud { color: var(--fg-2); }
.foot { display: grid; gap: 26px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.foot h3 { margin: 0 0 10px; color: var(--ball); }
.foot p, .foot li { font-size: 0.92rem; line-height: 1.55; color: var(--fg-2); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--white); }
.foot .disc { color: var(--white); font-size: 1.05rem; font-weight: 600; max-width: 70ch; }
.foot .made { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; border-top: 1px solid var(--hair); }

/* The ball cursor: a tennis ball with a trail; spins over anything clickable, squashes on click */
.has-ball, .has-ball * { cursor: none !important; }
.has-ball input, .has-ball textarea { cursor: text !important; }
.has-ball iframe { cursor: auto !important; }
.bc { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .2s; }
.bc.is-on { opacity: 1; }
.bc-trail { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--ball); box-shadow: inset -1px -1px 0 rgb(0 0 0 / 0.15); will-change: transform; }
.bc-ball { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; will-change: transform; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.25)); }
.bc-ball svg { width: 100%; height: 100%; display: block; }
.bc-spin { width: 100%; height: 100%; transform-origin: 50% 50%; }
.bc.is-hot .bc-spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bc.is-native { opacity: 0; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .now-status .dot { animation: none; }
  .js .shot .col { transition: none; }
  .shot.on .scan, .shot:hover .scan { animation: none; }
  .g-item, .btn, .vid-btn { transition: none; }
}

/* Records on grass: a white scorecard with purple years */
.on-wim .records { background: var(--card); color: var(--ink); border-top: 0; border-radius: 18px; padding: 6px 22px; }
.on-wim .rec { border-bottom-color: rgb(21 33 58 / 0.12); }
.on-wim .rec:last-child { border-bottom: 0; }
.on-wim .rec .yr { color: var(--purple); }
.on-wim .kicker .n { color: var(--ball); }

/* Bottom progress, ball marks */
.prog { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 4px; background: rgb(21 33 58 / 0.18); pointer-events: none; }
.prog i { display: block; height: 100%; background: var(--ball); transform-origin: 0 50%; transform: scaleX(0); }
.ballmini svg { width: 16px; height: 16px; display: block; }
.hero-name .ballchar svg { width: 100%; height: 100%; display: block; }
.hero-name .hn { display: inline-flex; align-items: baseline; }
.slam .chip { background: rgb(0 0 0 / 0.22); color: var(--white); }
.legend [data-surface] i, .chip[data-surface] i { background: var(--sf); }
.now-lost { font-size: 1.05rem; color: var(--fg); font-weight: 600; }
.now-next { color: var(--ball); }

/* The rally court takes the surface of its section (Paris = clay) */
.court-box { background: var(--card); }
.on-rg .court-box { background: #A9461F; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.pt-pin { padding-top: 18px; }
/* Phones: surface tags sit above the content instead of over it */
@media (max-width: 700px) {
  .slam-tag { position: relative; top: auto; right: auto; display: flex; width: max-content; max-width: calc(100% - 2 * var(--gutter)); margin: -18px 0 18px var(--gutter); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .band { padding-top: clamp(44px, 9vw, 72px); }
}

/* Brand: wordmark (the dot is a tennis ball) and the fan crest */
.wm { display: inline-flex; align-items: baseline; white-space: nowrap; line-height: 1; letter-spacing: -0.02em; --w: 0.68; --g: 0.93; }
.wm .dot { display: inline-block; width: 0.46em; height: 0.46em; margin: 0 0.03em 0 0.05em; }
.wm .dot svg { width: 100%; height: 100%; display: block; }
.mark .wm { font-size: 1.05rem; color: var(--white); }
@media (max-width: 559px) {
  .mark { flex-direction: column; align-items: flex-start; gap: 3px; }
  .mark .wm { font-size: 0.92rem; }
  .mark .fan { font-size: 0.5rem; padding: 1px 6px; letter-spacing: 0.12em; }
  .board > span:first-child { display: none; }
  .board > span { padding: 0 8px; }
}
.foot-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; }
.foot-brand .crest { width: clamp(96px, 14vw, 150px); height: auto; }
@media (max-width: 559px) { .foot-brand { grid-template-columns: minmax(0, 1fr); } }

/* Safari (iPhone) lets animated children escape rounded overflow clipping; clip the frame itself */
.shot { -webkit-clip-path: inset(0 round 18px); clip-path: inset(0 round 18px); -webkit-mask-image: -webkit-radial-gradient(white, black); isolation: isolate; }
.shot .scan { box-shadow: 0 0 10px 1px rgb(223 242 74 / 0.55); }
.vid-frame, .now-card, .court-box, .slam { -webkit-mask-image: -webkit-radial-gradient(white, black); }

/* Video lightbox: night session backdrop, the video as big as the screen allows */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: calc(env(safe-area-inset-top, 0px) + 56px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px)); background: rgb(10 17 31 / 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s var(--ease); }
.lb.on { opacity: 1; }
.lb::before { content: ''; position: absolute; inset: clamp(10px, 2vw, 24px); border: 2px solid rgb(255 255 255 / 0.12); pointer-events: none; }
.lb-in { width: 100%; display: grid; justify-items: center; gap: 14px; }
.lb-frame { position: relative; width: min(100%, calc((100svh - 190px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); transform: scale(0.96); transition: transform .3s var(--bounce); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.lb.on .lb-frame { transform: none; }
.lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb-cap { width: min(100%, calc((100svh - 190px) * 16 / 9)); display: grid; gap: 4px; color: var(--white); }
.lb-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.lb-credit { font-size: 0.8rem; color: rgb(255 255 255 / 0.72); }
.lb-credit a { color: var(--ball); }
.lb-x { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(16px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ball); color: var(--ball-ink); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--bounce); }
.lb-x:hover { transform: rotate(90deg) scale(1.06); }
.lb-open, .lb-open body { overflow: hidden; }
.lb-open .bc { z-index: 95; }
@media (prefers-reduced-motion: reduce) { .lb, .lb-frame, .lb-x { transition: none; } }

/* Our own scrollbar (fine pointers): a tennis ball rolling down a rail coloured by surface */
html.has-rail { scrollbar-width: none; }
html.has-rail::-webkit-scrollbar { display: none; width: 0; height: 0; }
.srail { position: fixed; z-index: 49; width: 22px; right: max(6px, env(safe-area-inset-right, 0px)); top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 14px); bottom: 18px; }
.srail-track { position: absolute; left: 50%; top: 11px; bottom: 11px; width: 8px; margin-left: -4px; border-radius: 999px; background: rgb(16 26 46 / 0.8); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.4); overflow: hidden; }
.srail-track i { position: absolute; left: 0; right: 0; opacity: 0.95; }
.srail-ball { position: absolute; left: 0; top: 0; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); will-change: transform; }
.srail-ball svg { width: 100%; height: 100%; display: block; }
.srail:hover .srail-ball, .srail.is-drag .srail-ball { filter: drop-shadow(0 0 6px rgb(223 242 74 / 0.8)) drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.srail-tag { position: absolute; right: 30px; top: 0; white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: var(--night); color: var(--white); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.25); font: 600 0.66rem/1.4 var(--body); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.srail:hover .srail-tag, .srail.is-active .srail-tag, .srail.is-drag .srail-tag { opacity: 1; }
.is-dragging, .is-dragging * { -webkit-user-select: none; user-select: none; }
.lb-open .srail { display: none; }

/* Upcoming schedule (inside "Where is Carlos now?") */
.upcoming { display: grid; gap: 10px; margin-top: 4px; }
.up-h { color: var(--fg-2); }
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--hair); }
.up-list li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: baseline; padding-block: 10px; border-bottom: 1px solid var(--hair); }
.up-list li i { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--sf, var(--ball)); align-self: center; }
.up-t { font-weight: 700; }
.up-m { color: var(--fg-2); }

/* News feed */
.news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.news-item a { display: grid; gap: 8px; height: 100%; padding: 18px 20px; border-radius: 16px; background: var(--card); text-decoration: none; color: var(--fg); transition: transform .3s var(--bounce), background-color .2s; }
.news-item a:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--card) 80%, white); }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--fg-2); }
.news-meta b { color: var(--ball); }
.news-meta .lang { padding: 1px 6px; border-radius: 999px; background: rgb(255 255 255 / 0.16); color: var(--fg); }
.news-t { font-family: var(--display); font-variation-settings: 'wdth' 80, 'wght' 700; font-size: 1.15rem; line-height: 1.2; text-transform: none; transition: font-variation-settings .4s var(--ease); }
.news-item a:hover .news-t { font-variation-settings: 'wdth' 100, 'wght' 750; }
.news-go { color: var(--fg-2); margin-top: auto; }

/* FAQ: answers roll open from a ball */
.faq { display: grid; border-top: 2px solid var(--ln); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 18px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--display); font-variation-settings: 'wdth' 85, 'wght' 750; font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.2; }
.faq-ball { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ball); box-shadow: inset -3px -2px 0 rgb(0 0 0 / 0.15); position: relative; transition: transform .45s var(--bounce); }
.faq-ball::before, .faq-ball::after { content: ''; position: absolute; top: 3px; bottom: 3px; width: 6px; border: 2px solid #fff; border-radius: 50%; }
.faq-ball::before { left: -2px; border-left: 0; border-top: 0; border-bottom: 0; }
.faq-ball::after { right: -2px; border-right: 0; border-top: 0; border-bottom: 0; }
.faq-item[open] .faq-ball { transform: rotate(180deg) scale(1.1); }
.faq-item p { padding: 0 0 20px; max-width: 70ch; color: var(--fg-2); font-size: 1.05rem; }

/* Kinetic type measured at its widest (site.js holds that height, so pinned scenes never jump) */
.h2.kin.hold-max { --w: 0.6 !important; }
.story.hold-max .w { --i: 1 !important; }
.slam h3.hold-max { --w: 0.7 !important; }

/* The ball scrollbar on phones and tablets: slimmer, fades when idle, only the ball takes a touch */
.srail--touch { width: 18px; right: max(3px, env(safe-area-inset-right, 0px)); bottom: 14px; pointer-events: none; }
.srail--touch .srail-track { width: 4px; margin-left: -2px; top: 9px; bottom: 9px; opacity: 0.35; transition: opacity 0.3s; }
.srail--touch .srail-ball { width: 18px; height: 18px; opacity: 0.7; pointer-events: auto; touch-action: none; transition: opacity 0.3s; }
.srail--touch .srail-ball::before { content: ''; position: absolute; inset: -14px -10px; }
.srail--touch.is-active .srail-track, .srail--touch.is-drag .srail-track { opacity: 1; }
.srail--touch.is-active .srail-ball, .srail--touch.is-drag .srail-ball { opacity: 1; }
.srail--touch.is-drag .srail-ball { transform-origin: 50% 50%; filter: drop-shadow(0 0 6px rgb(223 242 74 / 0.8)) drop-shadow(0 2px 3px rgb(0 0 0 / 0.35)); }
.srail--touch .srail-tag { right: 24px; font-size: 0.6rem; }
.menu-open .srail { display: none; }

/* Menu button (below 1200px, where the section links don't fit the bar) */
.menu-btn { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 32px; padding: 0 11px 0 7px; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 999px; background: transparent; color: var(--white); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.menu-btn .mb-ball { width: 16px; height: 16px; display: block; flex: none; transition: transform .7s var(--bounce); }
.menu-btn .mb-ball svg { width: 100%; height: 100%; display: block; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); }
.menu-btn[aria-expanded="true"] .mb-ball { transform: rotate(540deg); }
@media (min-width: 1200px) { .menu-btn { display: none; } }
@media (max-width: 400px) { .menu-btn { padding: 0 9px 0 6px; gap: 5px; } .bar-in { gap: 8px; } }

/* Menu: the order of play, one set per Slam, on a night court */
.menu { position: fixed; inset: 0; z-index: 46; color: var(--white); padding: calc(var(--bar) + env(safe-area-inset-top, 0px) + 26px) var(--gutter-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gutter); overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--clay); background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.05) 0 1px, transparent 1px 5px), radial-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1.4px), radial-gradient(rgb(0 0 0 / 0.07) 1px, transparent 1.4px); background-size: auto, 7px 7px, 11px 11px; background-position: 0 0, 0 0, 3px 5px; }
.menu-lines { position: fixed; left: 0; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); width: 100%; height: calc(100% - var(--bar) - env(safe-area-inset-top, 0px)); pointer-events: none; }
.menu-lines path { fill: none; stroke: rgb(255 255 255 / 0.55); stroke-width: 2; }
.menu.is-brushing .menu-link { transition: none; }
.menu-in { position: relative; max-width: var(--col); margin-inline: auto; display: grid; gap: 22px; }
.menu-k { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; color: rgb(255 255 255 / 0.86); }
.menu-sets { display: grid; gap: 20px 44px; }
@media (min-width: 700px) { .menu-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-set { display: grid; gap: 0; align-content: start; padding-top: 10px; border-top: 2px solid rgb(255 255 255 / 0.6); }
.menu-slam { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: rgb(255 255 255 / 0.86); }
.menu-slam i { width: 10px; height: 10px; border-radius: 50%; background: var(--sf); box-shadow: 0 0 0 2px rgb(255 255 255 / 0.3); }
.menu-link { display: flex; align-items: baseline; gap: 12px; padding-block: 3px; font-size: clamp(1.75rem, 8vw, 3rem); line-height: 1.02; text-transform: uppercase; color: var(--white); text-decoration: none; --w: 0.5; --g: 0.85; transition: --w .45s var(--bounce), color .15s; }
.menu-link .score { flex: none; width: 3.3rem; font-size: 0.8rem; line-height: 1; color: rgb(255 255 255 / 0.78); transform: translateY(-0.15em); }
.menu-link .t { min-width: 0; }
.menu-link:hover, .menu-link:focus-visible { --w: 1; color: var(--ball); }
.menu-link:focus-visible { outline-offset: 1px; }
.menu-link.is-here .score { color: var(--ball); }
.menu-link.is-here::after { content: ''; flex: none; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--ball); align-self: center; animation: here 0.9s cubic-bezier(.5, 0, .5, 1) infinite alternate; }
@keyframes here { from { transform: translateY(-0.28em); } to { transform: translateY(0.1em) scale(1.08, 0.9); } }
.menu-now { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--clay-2); color: var(--white); text-decoration: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.menu-now .hud { color: var(--ball); }
.menu-now b { font-family: var(--display); font-variation-settings: 'wdth' 80, 'wght' 750; font-weight: 400; font-size: 1.15rem; line-height: 1.2; }
.menu-now:hover b { color: var(--ball); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgb(255 255 255 / 0.86); }
.menu-foot a { color: inherit; }
.menu-foot a:hover { color: var(--ball); }

.menu-open .bc { z-index: 100; }
@media (prefers-reduced-motion: reduce) { .menu-link, .menu-btn .mb-ball { transition: none; } .menu-link.is-here::after { animation: none; } }

/* Menu transition: the drag broom brushing the clay */
.brush { position: fixed; left: 0; right: 0; bottom: 0; top: calc(var(--bar) + env(safe-area-inset-top, 0px)); z-index: 47; pointer-events: none; overflow: hidden; }
.brush-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.brush-bar { position: absolute; left: -12px; right: -12px; top: 0; height: 28px; will-change: transform; }
.brush-in { position: absolute; inset: 0; }
.brush.up .brush-in { transform: scaleY(-1); }
.brush-beam { position: absolute; left: 0; right: 0; top: 0; height: 13px; border-radius: 3px; background: linear-gradient(#7A5338, #4C3223 55%, #30201A); box-shadow: 0 -5px 16px rgb(60 20 5 / 0.35); }
.brush-bristles { position: absolute; left: 6px; right: 6px; top: 12px; height: 16px; background: repeating-linear-gradient(90deg, #2B1D15 0 2px, #6E4E38 2px 3px, transparent 3px 4px, #3C291E 4px 6px); -webkit-mask-image: linear-gradient(#000 35%, rgb(0 0 0 / 0.45)); mask-image: linear-gradient(#000 35%, rgb(0 0 0 / 0.45)); }
.brush-trail { position: absolute; left: 0; right: 0; bottom: 100%; height: 150px; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.14) 0 1px, transparent 1px 3px, rgb(90 30 8 / 0.16) 3px 4px, transparent 4px 7px); -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }

/* Phones: wordmark, score and menu share the bar without touching */
@media (max-width: 1199px) { .mark { flex: none; } .board { min-width: 0; overflow: hidden; } }
@media (max-width: 440px) {
  .mark .wm { font-size: 0.78rem; }
  .board > span { padding: 0 7px; }
}
@media (max-width: 400px) { .menu-btn .mb-ball { display: none; } .menu-btn { padding: 0 10px; } }

/* Phones: the rail's label only while you drag the ball, small and light */
.srail--touch .srail-tag { right: 26px; padding: 2px 8px; font-size: 0.56rem; letter-spacing: 0.06em; background: rgb(255 255 255 / 0.92); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / 0.18); }
.srail--touch .srail-tag, .srail--touch:hover .srail-tag, .srail--touch.is-active .srail-tag { opacity: 0; }
.srail--touch.is-drag .srail-tag { opacity: 1; }

/* Fan petition: bring back the buzz cut. A slightly crooked sheet of paper on the New York court. */
.buzz { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 860px) { .buzz { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 52px; } }
.buzz .shot { aspect-ratio: 8 / 9; }
.buzz figcaption { margin-top: 10px; font-size: 0.8rem; color: var(--fg-2); }
.buzz figcaption a { color: inherit; }
.petition { --fg: var(--ink); --fg-2: var(--ink-2); --bg: var(--chalk); --ln: rgb(21 33 58 / 0.25); --hair: rgb(21 33 58 / 0.15);
  position: relative; display: grid; gap: 16px; padding: clamp(22px, 3.4vw, 42px); border-radius: 22px; background: var(--chalk); color: var(--ink);
  box-shadow: 0 26px 60px rgb(0 0 0 / 0.28); transform: rotate(-1.4deg); transition: transform .5s var(--bounce); }
.petition:hover { transform: rotate(0deg); }
.petition .kicker .n { color: var(--clay); }
.petition .h2 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); color: var(--ink); }
.petition .h2 .serif { color: var(--clay); }
.petition p { color: var(--ink-2); font-size: 1.08rem; }
.petition .petition-ask { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.35; color: var(--ink); }
.petition .sign { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 16px; border-top: 2px dashed rgb(21 33 58 / 0.25); }
.buzz-btn { position: relative; overflow: visible; background: var(--ball); border-color: var(--ink); color: var(--ink); }
.buzz-btn .ballmini svg { width: 18px; height: 18px; }
.buzz-btn.is-signed, .buzz-btn.is-signed:hover { background: var(--ink); border-color: var(--ink); color: var(--ball); }
.buzz-btn.is-signed .ballmini { animation: spin .8s linear 1; }
.buzz-sig { font-family: var(--serif); font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--clay); opacity: 0; transform: translateY(8px) rotate(-4deg); transition: opacity .4s, transform .5s var(--bounce); }
.buzz-sig::before { content: '— '; }
.buzz-btn.is-signed + .buzz-sig { opacity: 1; transform: rotate(-4deg); }
.petition-small { color: var(--ink-2); opacity: 0.8; }
.buzz-pop { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; pointer-events: none; animation: buzz-pop .95s cubic-bezier(.2, .7, .3, 1) forwards; }
.buzz-pop svg { width: 100%; height: 100%; display: block; }
@keyframes buzz-pop { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .petition, .buzz-sig { transition: none; } .buzz-btn.is-signed .ballmini { animation: none; } }

/* No tap flash on phones, nothing selectable or draggable with the cursor, no long-press image menu */
html { -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg, a { -webkit-user-drag: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
