/* Home page: a dark night-court backdrop (court-bg.js on the canvas, soft colour glows behind it) with the
   content on frosted-glass panels. Mobile first; wider layouts from 760px and 1080px. */
:root {
  --bg: #050914;
  --ink: #F2F1EE;
  --ink-2: #C3CADA;
  --ink-3: #8E97AE;
  --gold: #F2B705;
  --gold-2: #FFD95A;
  --blue: #7FD3FF;
  --glass: linear-gradient(140deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .035));
  --glass-solid: rgba(12, 18, 38, .72);
  --edge: rgba(255, 255, 255, .13);
  --edge-strong: rgba(255, 255, 255, .22);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, .65);
  --radius: 12px;
  --radius-sm: 8px;
  --blur: blur(14px) saturate(140%);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font);
  --gutter: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- backdrop: colour glows, the court animation, and a shade that keeps text readable ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
/* the gradients are already soft, so no blur filter: that was costly to repaint as they drift */
.glow { position: absolute; border-radius: 50%; opacity: .55; }
.glow--gold { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(242, 183, 5, .38), transparent 65%); animation: drift-a 26s ease-in-out infinite alternate; }
.glow--blue { width: 56vmax; height: 56vmax; right: -18vmax; top: 10vh; background: radial-gradient(circle, rgba(46, 110, 255, .40), transparent 65%); animation: drift-b 32s ease-in-out infinite alternate; }
.glow--teal { width: 40vmax; height: 40vmax; left: 20vw; bottom: -22vmax; background: radial-gradient(circle, rgba(60, 200, 220, .22), transparent 65%); animation: drift-a 38s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift-b { to { transform: translate(-6vw, -8vh) scale(.94); } }
.court-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shade { position: absolute; inset: 0; background:
  radial-gradient(120% 80% at 50% 120%, rgba(5, 9, 20, .0), rgba(5, 9, 20, .55)),
  linear-gradient(180deg, rgba(5, 9, 20, .55), rgba(5, 9, 20, .15) 30%, rgba(5, 9, 20, .55)); }

/* ---------- frosted glass ---------- */
.glass {
  position: relative; background: var(--glass); border: 1px solid var(--edge); border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
/* a thin light along the top edge, like the rim of a glass pane */
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 70%, rgba(242, 183, 5, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: var(--glass-solid); } }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding-top: 12px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 10px 8px 12px; border-radius: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
.bar-end { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); }
.lang a { display: grid; place-items: center; min-width: 40px; min-height: 36px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--ink-3); }
.lang a[aria-current="true"] { background: rgba(255, 255, 255, .14); color: var(--ink); }
.menu-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .06); color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.menu-btn .bars { display: grid; align-content: space-between; width: 20px; height: 14px; }
.menu-btn .bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu { position: absolute; top: calc(100% + 8px); right: var(--gutter); width: min(300px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 110px); overflow: auto;
  display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: rgba(10, 15, 32, .82); }
.menu[hidden] { display: none; }
.menu a, .menu .menu-app { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--ink-2); font: 500 .9375rem var(--font); text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: rgba(255, 255, 255, .08); color: var(--gold); }
.menu-app { margin-top: 6px; border: 0; border-top: 1px solid var(--edge) !important; border-radius: 0 0 10px 10px !important; background: none; color: var(--gold) !important; font-weight: 600 !important; cursor: pointer; text-align: left; }
.menu-app img { width: 24px; height: 24px; border-radius: 50%; }
.menu-app[hidden], .menu-help[hidden] { display: none; }
.menu-help { margin: 4px 14px 8px; color: var(--ink-2); font-size: .8125rem; line-height: 1.45; }

/* ---------- hero ---------- */
main { flex: 1; }
.hero { padding: clamp(28px, 7vh, 72px) 0 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 183, 5, .18), 0 0 14px var(--gold); }
/* one greeting in one font and size: on one line wherever it fits, wrapping only on narrow screens */
.title { margin: 18px 0 0; font: 700 clamp(1.7rem, 2.6vw + .7rem, 3.1rem)/1.12 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.title .name { display: inline; font-size: inherit; letter-spacing: inherit; background: linear-gradient(100deg, var(--gold) 0%, var(--gold-2) 45%, #fff6d6 60%, var(--gold) 100%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 9s ease-in-out infinite; }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { margin: 26px 0 0; max-width: 34ch; font: 500 clamp(1.15rem, .6vw + 1rem, 1.45rem)/1.4 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.text { margin: 10px 0 0; max-width: 52ch; color: var(--ink-2); }

/* group hubs */
.hubs { margin-top: 22px; padding: 18px; }
.hubs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hubs-head h2 { margin: 0; font: 600 1.05rem var(--font-display); letter-spacing: -.01em; }
.hubs-note { margin: 6px 0 0; color: var(--ink-3); font-size: .875rem; max-width: 60ch; }
.hub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.hub-grid li[hidden] { display: none; }
.hub { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .25s, border-color .25s, box-shadow .25s; }
.hub:hover, .hub:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .10); border-color: rgba(242, 183, 5, .55); box-shadow: 0 12px 28px -12px rgba(242, 183, 5, .45); }
.hub-mark { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; font: 700 .8125rem var(--font-display); color: #0B1024;
  background: linear-gradient(140deg, var(--gold-2), var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.hub-name { min-width: 0; font-weight: 600; font-size: .9375rem; line-height: 1.25; overflow-wrap: break-word; }
.hub-go { margin-left: auto; flex: none; color: var(--ink-3); transition: transform .25s, color .25s; }
.hub:hover .hub-go, .hub:focus-visible .hub-go { transform: translateX(3px); color: var(--gold); }
.hub--alt .hub-mark { background: linear-gradient(140deg, #A8E4FF, var(--blue)); }
/* a group's own logo: on white, since some logos have dark lettering meant for a light background */
.hub .hub-mark--logo { width: 40px; height: 40px; padding: 3px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.hub-mark--logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hub--new { border-style: dashed; color: var(--ink-2); }
.hub--new .hub-mark { background: rgba(255, 255, 255, .08); color: var(--gold); font-size: 1.25rem; box-shadow: none; border: 1px solid var(--edge); }
.hubs-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 10px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge);
  background: rgba(255, 255, 255, .05); color: var(--ink); font: 600 .875rem var(--font); cursor: pointer; transition: border-color .2s, color .2s; }
.hubs-more:hover { border-color: var(--gold); color: var(--gold); }
.hubs-more svg { transition: transform .25s; }
.hubs-more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- lower row: about carousel and reel ---------- */
.row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
.row > * { min-width: 0; }
.card { padding: 22px; }
.label { margin: 0; font: 600 .6875rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.card h2 { margin: 6px 0 0; font: 600 clamp(1.35rem, .8vw + 1rem, 1.75rem) var(--font-display); letter-spacing: -.02em; }
.card p.copy { margin: .7rem 0 0; color: var(--ink-2); font-size: .9375rem; }
.hc-viewport { overflow: hidden; touch-action: pan-y; }
.hc-track { display: flex; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.hc-slide { flex: 0 0 100%; min-width: 0; padding-right: 2px; }
.hc-controls { display: flex; align-items: center; gap: 4px; margin-top: 16px; }
.hc-dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hc-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.hc-dot[aria-current="true"]::before { width: 22px; background: var(--gold); }
.hc-toggle { margin-left: auto; min-height: 32px; padding: 2px 12px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ink-2); font: 500 .75rem var(--font); cursor: pointer; }
.hc-toggle:hover { color: var(--ink); border-color: var(--edge-strong); }
.hc-cal { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: 8px; }
.hc-cal-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); }
.hc-cal-date { flex: 0 0 46px; text-align: center; line-height: 1.1; border-right: 1px solid var(--edge); padding-right: 10px; }
.hc-cal-date b { display: block; font: 700 1.25rem var(--font-display); color: var(--gold); }
.hc-cal-date small { font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.hc-cal-title { display: block; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.hc-cal-meta { display: block; color: var(--ink-3); font-size: .8125rem; margin-top: 2px; }
.hc-cal-tag { color: var(--gold); }
.hc-cal-empty { color: var(--ink-2); font-size: .9375rem; padding: 12px; border-radius: 8px; border: 1px dashed var(--edge); }
.hc-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .4rem; color: var(--gold); font-weight: 600; text-decoration: none; }
.hc-more:hover, .hc-more:focus-visible { text-decoration: underline; }

.reel { margin: 0; padding: 6px; justify-self: center; width: min(100%, 150px); }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #000; }
.reel figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 2px 2px; }
.reel-caption { font: 600 .75rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.reel-caption a { color: inherit; text-decoration: none; }
.reel-caption a:hover, .reel-caption a:focus-visible { color: var(--gold); }
.reel-toggle { min-height: 32px; padding: 2px 12px; border: 1px solid var(--edge); border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--ink-2); font: 500 .75rem var(--font); cursor: pointer; }
.reel-toggle:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot { padding: 0 0 16px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.foot-end { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.copy-note { margin: 0; color: var(--ink-3); font-size: .75rem; letter-spacing: .06em; text-align: center; }
.social { display: flex; align-items: center; gap: 8px; }
.social span { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(255, 255, 255, .04); color: var(--ink-2); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.social a:hover, .social a:focus-visible { color: #fff; border-color: transparent; transform: translateY(-2px); }
.social .ig:hover, .social .ig:focus-visible { background: #e4405f; }
.social .th:hover, .social .th:focus-visible, .social .tt:hover, .social .tt:focus-visible { background: #000; }
.social .yt:hover, .social .yt:focus-visible { background: #ff0000; }
.social svg { width: 17px; height: 17px; }
.social .at { font: 700 18px/1 system-ui, sans-serif; margin-top: -2px; }

/* "Powered by Racket Rhythm" badge, as on the live site */
.rr-power { position: relative; display: inline-block; isolation: isolate; padding: 6px; text-decoration: none; border-radius: 8px; perspective: 600px; }
.rr-power__card { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; width: 112px; height: 112px; border-radius: 12px; border: 1px solid var(--edge);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; user-select: none; overflow: hidden;
  background: linear-gradient(135deg, rgba(40, 56, 120, .7), rgba(14, 20, 40, .7) 50%, rgba(7, 11, 24, .8)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; }
.rr-power__shine { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .4), transparent 45%), linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 48%, transparent 60%);
  background-size: 100% 100%, 250% 100%; background-repeat: no-repeat; animation: sweep 3.5s ease-in-out infinite; }
@keyframes sweep { 0%, 20% { background-position: center, 150% 0; } 80%, 100% { background-position: center, -50% 0; } }
.rr-power__crest { position: relative; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #070B18, 0 0 0 3px rgba(242, 183, 5, .5); }
.rr-power__by { position: relative; font: 600 9px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }
.rr-power__name { position: relative; font: 800 13px/1.1 var(--font-display); text-align: center; background: linear-gradient(90deg, var(--gold), var(--gold-2), #fff, var(--gold-2), var(--gold)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; }

/* ---------- entrance ---------- */
.rise { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.rise:nth-child(2) { animation-delay: .08s; } .rise:nth-child(3) { animation-delay: .16s; } .rise:nth-child(4) { animation-delay: .24s; } .rise:nth-child(5) { animation-delay: .32s; }
/* movement only: the text is readable from the very first frame */
@keyframes rise { from { transform: translateY(12px); } }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .brand span { display: inline; }
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .row { grid-template-columns: minmax(0, 1fr) 150px; align-items: start; }
  .reel { width: 100%; }
  .foot-in { flex-direction: row; justify-content: space-between; }
  .foot-end { align-items: flex-end; }
  .copy-note { text-align: right; }
}
@media (min-width: 1080px) {
  .hero-in { max-width: 760px; }
  .title { white-space: nowrap; width: max-content; max-width: calc(100vw - 2 * var(--gutter)); font-size: min(3.05vw, 3.1rem); }
  /* the main four groups side by side in one row */
  .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hub { padding: 10px; gap: 10px; }
  .hub-go { display: none; }
  .row { grid-template-columns: minmax(0, 1fr) 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- tabs: a swipeable row under the header bar, inside the bar on wide screens ---------- */
.bar { flex-wrap: wrap; }
.brand { order: 1; }
.bar-end { order: 2; }
.tabs { order: 3; flex: 1 0 100%; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 0; scroll-padding: 0 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 999px; color: var(--ink-2);
  font: 600 .8125rem var(--font); text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.tabs a:hover { color: var(--ink); background: rgba(255, 255, 255, .07); }
.tabs a[aria-current="true"] { color: #0B1024; background: linear-gradient(140deg, var(--gold-2), var(--gold)); }
/* the sticky header covers the top of the page: leave room when a tab jumps to a section */
main [id] { scroll-margin-top: 150px; }
@media (min-width: 1180px) {
  .bar { flex-wrap: nowrap; }
  .tabs { order: 2; flex: 1 1 auto; justify-content: center; padding: 0; }
  .bar-end { order: 3; }
  main [id] { scroll-margin-top: 100px; }
}

/* ---------- section panels: categories, venue, terms and contact ----------
   Without scripts they sit at the bottom of the page in a grid. With scripts (html.js) they are hidden, and the
   one whose tab is pressed shows as a panel just under the header (--panel-top, set by home.js), over a dimmed page. */
.panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
.panels > .contact-in { grid-column: 1 / -1; }
.soon { display: inline-block; margin: 14px 0 0; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--edge-strong); color: var(--ink-3); font-size: .8125rem; }
@media (min-width: 760px) { .panels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-close { display: none; }
.panel-scrim { position: fixed; inset: 0; z-index: 35; background: rgba(3, 6, 14, .6); animation: fade-in .2s ease-out; }
.panel-scrim[hidden] { display: none; }
.js .panels { padding-bottom: 0; }
.js .tab-panel:not(.is-open) { display: none; }
.js .tab-panel.is-open { position: fixed; z-index: 38; top: var(--panel-top, 96px); left: 50%; transform: translateX(-50%);
  width: min(var(--panel-w, 760px), calc(100% - 2 * var(--gutter))); max-height: calc(100vh - var(--panel-top, 96px) - 16px);
  max-height: calc(100dvh - var(--panel-top, 96px) - 16px); overflow: auto; overscroll-behavior: contain;
  background: rgba(10, 15, 32, .9); animation: panel-in .22s cubic-bezier(.2, .8, .2, 1); }
/* room for the close button beside the heading only, so the rest of the panel keeps its full width */
.js .tab-panel.is-open .label, .js .tab-panel.is-open h2 { padding-right: 52px; }
.js #contact.is-open { --panel-w: 1000px; }
.tab-panel:focus { outline: none; }
.js .panel-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .06); color: var(--ink-2); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.js .panel-close:hover, .js .panel-close:focus-visible { color: var(--gold); border-color: var(--gold); background: rgba(255, 255, 255, .1); }
.panel-close svg { width: 18px; height: 18px; }
@keyframes panel-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 559px) {
  .tab-panel.card { padding: 18px 16px; }
}

/* ---------- contact: details with icons beside an enquiry form ---------- */
.contact-in { display: grid; gap: 24px; }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1rem; line-height: 1.45; }
.contact-list small { display: block; margin-bottom: 2px; color: var(--ink-3); font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover, .contact-list a:focus-visible { color: var(--gold); }
.ci { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(242, 183, 5, .14); color: var(--gold); }
.ci svg { width: 20px; height: 20px; }
/* WhatsApp green with dark text: white on this green is too faint to read */
.wa-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 18px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #25D366; color: #052E16; font: 700 .9375rem var(--font); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .7);
  transition: transform .2s, box-shadow .2s, background .2s; }
.wa-btn svg { width: 22px; height: 22px; flex: none; }
.wa-btn:hover, .wa-btn:focus-visible { background: #3BE07A; transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(37, 211, 102, .85); }
.wa-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.enquiry { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); }
.enquiry h3 { margin: 0; font: 600 1.25rem var(--font-display); letter-spacing: -.01em; }
.enquiry-row { display: grid; gap: 14px; }
.enquiry label { display: grid; gap: 6px; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
.enquiry label b, .enquiry-end b { color: #ff7a7a; }
.enquiry input, .enquiry textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--edge-strong); border-radius: 8px;
  background: rgba(5, 9, 20, .55); color: var(--ink); font: 400 1rem var(--font); }
.enquiry textarea { resize: vertical; min-height: 120px; }
.enquiry input:focus-visible, .enquiry textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.enquiry-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.enquiry button[type="submit"] { min-height: 46px; padding: 0 26px; border: 0; border-radius: 8px; background: linear-gradient(140deg, var(--gold-2), var(--gold));
  color: #0B1024; font: 700 .9375rem var(--font); cursor: pointer; }
.enquiry-end small { flex: 1 1 200px; color: var(--ink-3); font-size: .75rem; }
@media (min-width: 560px) { .enquiry-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } }
/* the partners' row under the academy's own socials: each partner's logo on a white disc, linking to their account */
.social--partners a.partner { overflow: hidden; padding: 4px; background: #fff; border-color: rgba(255, 255, 255, .3); }
.social--partners a.partner:hover, .social--partners a.partner:focus-visible { background: #fff; border-color: var(--gold); }
.social--partners img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.tab-panel .hubs { margin-top: 18px; padding: 0; }   /* the group sign-in tiles, inside the Categories panel */
/* the header's academy name with "by Muizzuddin @ Muhamad Azan" under it in gold, on every screen size */
.brand .brand-text { display: grid; min-width: 0; line-height: 1.15; font-size: .8125rem; }
.brand .brand-by { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--gold); font-size: .6875rem; font-weight: 600; letter-spacing: .01em; }
@media (min-width: 560px) { .brand .brand-text { font-size: 1rem; } .brand .brand-by { font-size: .75rem; } }
/* the calendar and tournaments carousel: a small card */
.happening { padding: 16px; }
.happening h2 { font-size: 1.05rem; }
.happening .hc-cal { margin-top: .6rem; gap: 6px; }
.happening .hc-cal-item { padding: 7px 10px; gap: 10px; }
.happening .hc-cal-date { flex-basis: 38px; padding-right: 8px; }
.happening .hc-cal-date b { font-size: 1.05rem; }
.happening .hc-cal-title { font-size: .875rem; }
.happening .hc-cal-meta { font-size: .75rem; }
.happening .hc-controls { margin-top: 8px; }
.happening .hc-more { min-height: 36px; font-size: .875rem; }
@media (min-width: 760px) { .row { grid-template-columns: minmax(0, 460px) 150px; justify-content: space-between; } }

/* ---------- video carousel, a wide tilted ring that goes round the page and keeps turning (home.js builds it, turns
   it and sets each video's opacity and blur): solid at the front, fading and blurring away to nothing round the back.
   The page edges fade it out too. No panel behind it. ---------- */
.vids { --vid-w: clamp(112px, 15vw, 210px); --ring-x: 50%; --ring-top: 40px; padding: 8px 0 22px; overflow-x: clip; }
.vids-track { position: relative; height: calc(var(--vid-w) * 16 / 9 + 150px); perspective: 1400px; perspective-origin: var(--ring-x) 30%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.vids-track:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; border-radius: 12px; }
.vids-ring { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: var(--ring-x) calc(var(--ring-top) + var(--vid-w) * 8 / 9); }
.vid { position: absolute; top: var(--ring-top); left: var(--ring-x); width: var(--vid-w); margin: 0 0 0 calc(var(--vid-w) / -2); }
.vid-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9); }
/* the videos going round: see-through (home.js sets how much), a little darker, no heavy shadow */
.vid:not(.is-front) .vid-frame { background: transparent; box-shadow: none; }
.vid.is-front .vid-frame { border-color: rgba(242, 183, 5, .6); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(242, 183, 5, .25); }
.vid video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.vid-sound { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(5, 9, 20, .6); color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vid.is-front .vid-sound { opacity: 1; pointer-events: auto; }
.vid-sound svg { width: 18px; height: 18px; }
.vid-sound[aria-pressed="false"] .vid-wave, .vid-sound[aria-pressed="true"] .vid-mute { display: none; }
.vid-sound:hover, .vid-sound:focus-visible { border-color: var(--gold); color: var(--gold); }
.vid figcaption { margin-top: 8px; text-align: center; font: 600 .75rem var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.vid.is-front figcaption { opacity: 1; }
.vid figcaption a { color: inherit; text-decoration: none; }
.vid figcaption a:hover, .vid figcaption a:focus-visible { color: var(--gold); }
.vids-controls { position: relative; left: calc(var(--ring-x) - 50%); display: flex; align-items: center; justify-content: center; gap: 10px; }
.vids-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--edge-strong);
  background: rgba(5, 9, 20, .55); color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s; }
.vids-arrow svg { width: 18px; height: 18px; }
.vids-arrow:hover, .vids-arrow:focus-visible { border-color: var(--gold); color: var(--gold); }
.vids-dots { display: flex; }
.vids-dot { width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.vids-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .3); transition: width .3s, background .3s; }
.vids-dot[aria-current="true"]::before { width: 18px; background: var(--gold); }
@media (min-width: 900px) { .vids { --vid-w: clamp(130px, 12vw, 180px); --ring-x: 25%; --ring-top: 40px; } }   /* over the stands, clear of the court */
/* the calendar card has the row to itself now the reel has moved into the carousel */
@media (min-width: 760px) { .row { grid-template-columns: minmax(0, 460px); } }

/* ---------- phones, iPhone Safari first: laid out like an app ----------
   A slim header, the sections in a tab bar at the bottom of the screen (within thumb reach), panels that slide up as
   sheets (pull one down to close it), and everything kept clear of the notch, the home bar and the rounded corners
   (viewport-fit=cover). Taps press in instead of hovering, and nothing zooms or flashes grey when tapped. */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, textarea, [data-vids-track] { touch-action: manipulation; }
.vid video, .brand img, .tabbar { -webkit-touch-callout: none; }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
/* the backdrop keeps the size of the full screen, so it does not jump as Safari's toolbars slide in and out */
@supports (height: 100lvh) { .backdrop { bottom: auto; height: 100lvh; } }
.tabbar { display: none; }
/* touch screens have no hover: no lifted cards left stuck after a tap, a press instead */
@media (hover: none) {
  .hub:hover, .hub:focus-visible, .social a:hover, .wa-btn:hover { transform: none; }
  .hub:active, .hubs-more:active, .wa-btn:active, .enquiry button:active, .menu-btn:active, .lang a:active, .hc-toggle:active, .social a:active { transform: scale(.97); transition: transform .08s; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }

@media (max-width: 759px) {
  :root { --tabbar-h: 60px; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  /* header: one slim row, brand, language and menu */
  .top { padding-top: max(8px, env(safe-area-inset-top)); }
  .bar { min-height: 56px; padding: 6px 6px 6px 8px; border-radius: 16px; gap: 8px; }
  .bar { flex-wrap: nowrap; }
  .tabs { display: none; }
  .brand { flex: 1 1 auto; gap: 8px; }
  .bar-end { flex: none; }
  .brand img { width: 38px; height: 38px; }
  .brand .brand-text { white-space: normal; font-size: .8125rem; line-height: 1.2; }
  .brand .brand-by { font-size: .625rem; }
  .bar-end { gap: 6px; }
  .lang a { min-width: 36px; min-height: 34px; padding: 0 8px; }
  .menu-btn { width: 42px; height: 42px; border-radius: 12px; }
  .menu { max-height: calc(100dvh - 90px - var(--tabbar-h) - env(safe-area-inset-bottom)); border-radius: 16px; }
  main [id] { scroll-margin-top: 84px; }
  .hero { padding-top: 18px; }
  .hc-dot { width: 36px; height: 36px; }
  .hc-toggle, .reel-toggle { min-height: 36px; }
  .foot { padding-bottom: 14px; }

  /* the tab bar: frosted, along the bottom edge, above the home bar */
  .tabbar { position: fixed; z-index: 39; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px max(6px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: rgba(7, 11, 24, .82); border-top: 1px solid var(--edge); box-shadow: 0 -12px 30px -18px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); user-select: none; -webkit-user-select: none; }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; min-width: 0;
    color: var(--ink-3); font: 600 .625rem/1.1 var(--font); letter-spacing: .01em; text-decoration: none; transition: color .2s; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar svg { width: 24px; height: 24px; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
  .tabbar a[aria-current="true"] { color: var(--gold); }
  .tabbar a[aria-current="true"]::before { content: ""; position: absolute; top: -4px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .tabbar a:active svg { transform: scale(.86); }
  .tabbar a:focus-visible { outline-offset: -2px; border-radius: 12px; }

  /* panels: a sheet that slides up from the bottom, over the page, with a handle to pull it down by */
  .js .tab-panel.is-open { top: auto; left: 0; right: 0; bottom: 0; width: auto; transform: none;
    max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px - env(safe-area-inset-top));
    padding: 34px max(18px, env(safe-area-inset-right)) calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 22px) max(18px, env(safe-area-inset-left));
    border-radius: 22px 22px 0 0; border-bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: rgba(10, 15, 32, .97);
    box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .7); animation: sheet-in .34s cubic-bezier(.2, .8, .2, 1); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .js .tab-panel.is-open::after { content: ""; position: absolute; top: 9px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, .28); }
  .js .tab-panel.is-open .hubs h2 { padding-right: 0; font-size: 1.15rem; }
  .js .panel-close { top: 16px; right: max(14px, env(safe-area-inset-right)); }
  .panel-scrim { z-index: 37; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}
