:root {
  --bg: #041018;
  --bg2: #071821;
  --panel: rgba(8, 28, 38, .88);
  --panel2: rgba(4, 17, 24, .96);
  --line: rgba(62, 225, 240, .26);
  --cyan: #20e8ef;
  --cyan2: #05b9c7;
  --pink: #f425aa;
  --violet: #a557ff;
  --gold: #ffd020;
  --green: #17e86d;
  --white: #f7fbff;
  --muted: #a9bbc4;
  --max: 1220px;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--white); background:
  radial-gradient(circle at 80% 8%, rgba(66, 21, 140, .18), transparent 28rem),
  radial-gradient(circle at 10% 45%, rgba(0, 219, 235, .08), transparent 30rem),
  linear-gradient(#030b11, #06141b 32%, #031017); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { min-height: 78px; display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: center; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); position: sticky; top: 0; z-index: 40; background: rgba(3, 11, 17, .84); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 210px; max-height: 58px; object-fit: contain; }
.main-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 42px); }
.main-nav a, .site-footer nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: #dce8ed; }
.main-nav a:hover, .site-footer nav a:hover { color: var(--cyan); }
.nav-toggle { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 5px; text-decoration: none; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--cyan), #16d1dc); color: #001116; box-shadow: 0 0 28px rgba(32, 232, 239, .18); }
.btn-outline { border: 1px solid var(--cyan); color: white; background: rgba(0, 0, 0, .24); }
.header-cta { min-width: 140px; }
.hero { min-height: clamp(640px, 50vw, 900px); width: 100%; overflow: hidden; position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; width: 55%; padding: 80px 32px 80px max(30px, calc((100vw - var(--max)) / 2)); z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: inherit; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 900; color: #d8e6ea; }
.hero h1, .section-heading h2 { margin: 0; text-transform: uppercase; line-height: .94; letter-spacing: -.035em; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-weight: 900; }
.hero h1 { font-size: clamp(58px, 7vw, 102px); }
.hero h1 span, .section-heading h2 span { color: var(--cyan); font-style: italic; text-shadow: 0 0 25px rgba(32, 232, 239, .2); }
.hero-intro { font-size: clamp(16px, 1.5vw, 20px); max-width: 600px; color: #e7edf0; margin: 28px 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: absolute; inset: 0; z-index: 0; background: #020911 url('images/hero-stage-currencies.webp') center / cover no-repeat; }
.hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,9,17,.25), transparent 60%); pointer-events: none; }
.section-edge { max-width: 100%; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: rgba(3, 16, 23, .96); }
.fact { padding: 34px 30px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact-icon { display: block; color: var(--cyan); font-size: 38px; line-height: 1; margin-bottom: 12px; }
.fact-icon.pink { color: var(--pink); }
.fact h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 8px; }
.fact p { color: var(--muted); font-size: 14px; margin: 0 auto; max-width: 260px; }
.section { max-width: var(--max); margin: 0 auto; padding: 78px 24px; }
.leaderboard-section { max-width: 100%; padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); background: linear-gradient(180deg, rgba(6, 26, 34, .6), rgba(3, 15, 21, .9)); border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(46px, 5.5vw, 76px); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.text-link { color: var(--cyan); text-decoration: none; font-weight: 900; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; white-space: nowrap; padding-bottom: 8px; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: rgba(2, 12, 18, .66); box-shadow: 0 20px 80px rgba(0,0,0,.2); }
.leaderboard-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.leaderboard-table th { text-align: left; background: rgba(12, 50, 63, .68); padding: 13px 16px; text-transform: uppercase; letter-spacing: .08em; color: #cbe5eb; font-size: 11px; }
.leaderboard-table td { padding: 17px 16px; border-top: 1px solid rgba(92, 196, 211, .16); color: #dce7eb; }
.rank { font-weight: 900; font-size: 18px; width: 60px; }
.team-cell { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.team-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--cyan); border: 1px solid rgba(32,232,239,.45); background: rgba(32,232,239,.08); font-weight: 900; }
.points { font-weight: 900; font-size: 18px; }
.cash { color: var(--cyan); font-weight: 900; }
.data-note { color: #6f8992; font-size: 12px; margin: 12px 0 0; }
.centered { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.centered p:last-child { color: var(--muted); font-size: 17px; }
.world-section { position: relative; }
.world-section::before { content: ''; position: absolute; inset: 0 0 auto; height: 320px; background: radial-gradient(ellipse at center, rgba(25,183,211,.10), transparent 70%); pointer-events: none; }
.status-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; margin: -5px auto 28px; position: relative; }
.key { padding: 5px 9px; border-radius: 4px; text-transform: uppercase; font-weight: 900; letter-spacing: .06em; }
.key.compete { color: #001318; background: var(--cyan); }
.key.celebrate { background: var(--pink); color: white; }
.key.host { border: 1px solid #b9c7cc; color: white; }
.city-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; }
.city-card { min-height: 300px; border: 1px solid rgba(71, 199, 219, .35); border-radius: 8px; overflow: hidden; position: relative; background: #07151e; }
.city-card img { width: 100%; height: calc(100% - 72px); object-fit: cover; object-position: 50% 0%; position: absolute; inset: 0; }
.city-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,10,15,.98) 5%, rgba(2,10,15,.78) 24%, rgba(2,10,15,0) 48%); }
.city-info { position: absolute; left: 13px; right: 13px; bottom: 13px; z-index: 2; }
.city-info h3, .other-city h3 { margin: 0; text-transform: uppercase; letter-spacing: .03em; font-size: 17px; }
.city-info p, .other-city p { margin: 2px 0 12px; color: #c7d5da; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }
.city-action { display: flex; width: 100%; min-height: 36px; align-items: center; justify-content: space-between; padding: 0 11px; text-transform: uppercase; font-weight: 900; font-size: 11px; text-decoration: none; border-radius: 4px; }
.city-action.compete { background: var(--cyan); color: #001318; }
.city-action.celebrate { background: var(--pink); color: white; }
.city-action.host { border: 1px solid #c5d3d7; color: white; background: rgba(0,0,0,.35); }
.other-city { padding: 22px 14px; display: flex; flex-direction: column; justify-content: end; text-align: center; }
.other-city .globe { font-size: 60px; color: var(--cyan); margin: auto auto 20px; }
.involvement { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-top: 10px; }
.involve-card { background: rgba(6, 18, 26, .92); padding: 26px; border: 1px solid currentColor; border-radius: var(--radius); min-height: 240px; display: flex; flex-direction: column; }
.involve-card.cyan { color: var(--cyan); }
.involve-card.magenta { color: var(--pink); }
.involve-card.gold { color: var(--gold); }
.involve-card.violet { color: var(--violet); }
.involve-card.green { color: var(--green); }
.involve-icon { font-size: 34px; }
.involve-card h3 { margin: 8px 0; text-transform: uppercase; color: currentColor; }
.involve-card p { color: #c9d5d9; margin: 0; }
.involve-card a { color: currentColor; text-decoration: none; font-weight: 900; margin-top: auto; padding-top: 18px; }
.event-flow { max-width: 100%; padding-left: max(24px, calc((100vw - 1380px) / 2)); padding-right: max(24px, calc((100vw - 1380px) / 2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(2, 11, 16, .55); }
.timeline { display: grid; grid-template-columns: repeat(8, minmax(140px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; scrollbar-color: var(--cyan2) var(--bg); scroll-snap-type: x proximity; }
.timeline-step { position: relative; padding: 48px 10px 18px; min-height: 165px; scroll-snap-align: start; border-left: 1px solid rgba(55, 207, 224, .18); text-align: center; }
.timeline-step:first-child { border-left: 0; }
.step-number { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: #001318; font-weight: 1000; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); }
.step-icon { font-size: 33px; color: var(--cyan); margin-bottom: 10px; }
.timeline-step:nth-child(2n) .step-number, .timeline-step:nth-child(2n) .step-icon { background: var(--pink); color: white; }
.timeline-step:nth-child(2n) .step-icon { background: transparent; color: var(--pink); }
.timeline-step.whammy .step-icon { color: var(--pink); }
.timeline-step.final .step-number { background: var(--gold); color: #141000; }
.timeline-step.final .step-icon { color: var(--gold); }
.timeline-step h3 { font-size: 14px; text-transform: uppercase; margin: 0 0 10px; }
.timeline-step p { font-size: 13px; color: var(--muted); margin: 0; }
.community-panel { max-width: var(--max); display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 28px; border: 1px solid rgba(23, 232, 109, .7); border-radius: 12px; background: linear-gradient(90deg, rgba(1, 71, 39, .62), rgba(3, 35, 29, .88)); padding: 30px; margin-top: 78px; margin-bottom: 78px; box-shadow: 0 0 40px rgba(23,232,109,.07); }
.whatsapp-mark { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-size: 40px; font-weight: 900; box-shadow: 0 0 30px rgba(23,232,109,.35); }
.community-copy h2 { text-transform: uppercase; margin: 0 0 6px; }
.community-copy > p:not(.eyebrow) { color: #c8dbd3; margin: 0 0 16px; }
.community-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; color: #d8f4e4; font-size: 13px; }
.community-reasons span { border-left: 2px solid var(--green); padding-left: 10px; }
.whatsapp-btn { background: var(--green); color: #00150a; min-width: 245px; }
.sponsor-section { max-width: 100%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(2, 11, 16, .84); padding-left: max(24px, calc((100vw - var(--max)) / 2)); padding-right: max(24px, calc((100vw - var(--max)) / 2)); }
.centered-text { text-align: center; }
.sponsor-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch; gap: 14px; margin-top: 26px; }
.sponsor { min-height: 92px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(70, 190, 207, .18); border-radius: 10px; padding: 15px; overflow: hidden; }
.sponsor img { display: block; max-width: 100%; max-height: 58px; width: auto; height: auto; object-fit: contain; }
.sponsor.logo-light { background: #fff; }
.microsoft { gap: 11px; color: #f2f4f5; font-family: "Segoe UI", Arial, sans-serif; font-size: 20px; font-weight: 600; background: rgba(255,255,255,.035); }
.ms-mark { display: grid; grid-template-columns: repeat(2, 12px); grid-template-rows: repeat(2, 12px); gap: 2px; flex: 0 0 auto; }
.ms-mark i { width: 12px; height: 12px; display: block; }
.ms-mark i:nth-child(1) { background: #f25022; }
.ms-mark i:nth-child(2) { background: #7fba00; }
.ms-mark i:nth-child(3) { background: #00a4ef; }
.ms-mark i:nth-child(4) { background: #ffb900; }
.bdo { background: #000; }
.bdo img { max-height: 54px; width: 142px; object-fit: contain; object-position: center; }
.disabled-link { opacity: .5 !important; cursor: not-allowed !important; pointer-events: auto; }
.empty-state { color: var(--muted); padding: 18px; text-align: center; }
.resources { padding-top: 68px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource-card { color: white; text-align: left; text-decoration: none; background: rgba(5, 25, 34, .9); border: 1px solid rgba(32,232,239,.5); border-radius: 9px; padding: 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; cursor: pointer; font: inherit; }
.resource-icon { grid-row: span 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--cyan); color: var(--cyan); border-radius: 8px; font-size: 24px; }
.resource-card strong { text-transform: uppercase; color: var(--cyan); }
.resource-card span:not(.resource-icon) { color: var(--muted); font-size: 13px; margin-top: 5px; }
.resource-card b { color: var(--cyan); font-size: 12px; margin-top: 10px; }
.faq { margin-top: 42px; display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.faq h3 { text-transform: uppercase; font-size: 28px; margin: 8px 0; }
.faq-item { background: rgba(5, 24, 32, .78); border: 1px solid rgba(70, 190, 207, .25); border-radius: 7px; margin-bottom: 8px; }
.faq-item summary { padding: 15px 17px; cursor: pointer; font-weight: 800; }
.faq-item p { padding: 0 17px 17px; color: var(--muted); margin: 0; }
.site-footer { max-width: 100%; border-top: 1px solid var(--line); min-height: 180px; padding: 38px max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: 240px 1fr auto; gap: 28px; align-items: center; background: #020a0f; }
.footer-brand img { width: 200px; }
.site-footer p { text-align: center; text-transform: uppercase; letter-spacing: .25em; font-size: 11px; color: #a6b9c0; }
.site-footer nav { display: flex; gap: 18px; }
.modal { border: 0; padding: 0; background: transparent; color: white; width: min(820px, calc(100vw - 32px)); max-height: 86vh; }
.modal::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(8px); }
.modal-inner { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: #071922; box-shadow: 0 25px 90px rgba(0,0,0,.55); }
.modal-inner h2 { margin: 0 0 22px; text-transform: uppercase; font-size: 34px; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: white; font-size: 26px; cursor: pointer; }
.modal-content { overflow: auto; max-height: 60vh; padding-right: 8px; }
.modal-rule { border-top: 1px solid rgba(66,204,220,.2); padding: 18px 0; }
.modal-rule h3 { color: var(--cyan); text-transform: uppercase; font-size: 15px; margin: 0 0 5px; }
.modal-rule p { color: #c4d3d8; margin: 0; }
@media (max-width: 1100px) {
  .involvement { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header { grid-template-columns: 200px 1fr auto; }
  .brand img { width: 185px; }

  .hero-copy { padding-left: 34px; }
  .city-grid { grid-template-columns: repeat(4, 1fr); }

  .community-panel { grid-template-columns: 80px 1fr; }
  .community-panel .whatsapp-btn { grid-column: 2; width: fit-content; }
  .community-reasons { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 70px; padding: 9px 18px; }
  .brand img { width: 170px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; border: 1px solid var(--line); background: transparent; color: white; padding: 9px 12px; border-radius: 6px; text-transform: uppercase; font-weight: 800; }
  .main-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; background: rgba(2, 12, 18, .98); padding: 22px; flex-direction: column; align-items: center; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .hero { min-height: 0; }
  .hero-copy { width: 100%; padding: 48px 24px 440px; }
  .hero-visual { background-size: auto 440px; background-position: 75% bottom; }
  .hero-visual::after { background: linear-gradient(to bottom, #020911 0%, transparent 14%); top: auto; height: 440px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-heading { align-items: start; flex-direction: column; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .involvement { grid-template-columns: repeat(2, 1fr); }



  .sponsor-row { grid-template-columns: repeat(3, 1fr); }
  .sponsor:nth-child(3) { border-right: 0; }
  .resource-grid { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 10px; }
  .site-footer { grid-template-columns: 1fr; text-align: center; }
  .site-footer nav { justify-content: center; flex-wrap: wrap; }
  .footer-brand { margin: auto; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 54px; }
  .hero-visual { background-position: 73% bottom; }
  .facts, .involvement, .city-grid, .sponsor-row { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .sponsor { border-right: 0; border-bottom: 1px solid var(--line); }
  .community-panel { grid-template-columns: 1fr; text-align: center; }
  .whatsapp-mark { margin: auto; }
  .community-reasons { grid-template-columns: 1fr; text-align: left; }
  .community-panel .whatsapp-btn { grid-column: 1; width: 100%; }
  .section { padding-left: 18px; padding-right: 18px; }
  .status-key { justify-content: flex-start; }
}
.team-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; flex: 0 0 42px; border: 1px solid rgba(32,232,239,.45); background: rgba(32,232,239,.07); padding: 3px; }
.config-error { position: sticky; top: 0; z-index: 999; padding: 12px 18px; background: #8f1d1d; color: white; font-weight: 800; text-align: center; }

/* Keep the waterfront landmarks in view in the narrow desktop cards. */
.city-card img[src*="01-city.jpg"] { object-position: 70% 50%; }
.city-card img[src*="06-city.jpg"] { object-position: 56% 50%; }

/* Online and in-person formats, with qualification explained before registration. */
.event-formats { padding-bottom: 24px; }
.event-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.event-format-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel2); }
.event-format-card .eyebrow { color: var(--cyan); }
.event-format-card:nth-child(2) .eyebrow { color: var(--pink); }
.event-format-card h3, .qualification-note h3 { margin: 0 0 12px; font-size: 22px; }
.event-format-card p:last-child { margin: 0; color: #c9d5d9; }
.qualification-note { margin-top: 20px; padding: 24px 28px; border-left: 3px solid var(--cyan); background: rgba(32,232,239,.045); border-radius: 0 var(--radius) var(--radius) 0; }
.qualification-note p { margin: 0 0 16px; color: #c9d5d9; }
@media (max-width: 820px) { .event-format-grid { grid-template-columns: 1fr; } }

.timeline-step a { color: var(--cyan); text-decoration: underline; text-underline-offset: 5px; line-height: 1.7; }
.timeline-step:nth-child(2n) a { color: #ff72ce; }
.timeline-step.final a { color: var(--gold); }
.timeline-step a:focus-visible, .timeline:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.faq-item { scroll-margin-top: 110px; }

#leaderboard, #world, #register-team, #become-sponsor { scroll-margin-top: 110px; }

/* Footer utilities and accessible in-page overlays. */
#resources { scroll-margin-top: 110px; }
button.text-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-icons a, .footer-icons button { width: 46px; height: 46px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); cursor: pointer; }
.footer-icons svg { width: 24px; height: 24px; }
.footer-icons a:hover, .footer-icons button:hover { background: rgba(32,232,239,.12); }
body:has(dialog[open]) { overflow: hidden; }
.wide-modal { width: min(1100px, calc(100vw - 24px)); }
.modal-inner h2 { padding-right: 42px; }
.team-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.team-profile { text-align: center; padding: 10px; }
.team-profile img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--cyan); }
.team-profile h3 { margin: 14px 0 4px; font-size: 18px; }
.team-profile p { font-size: 13px; color: var(--muted); }
.team-profile .team-role { color: var(--cyan); margin: 0; }
.team-profile .btn { font-size: 12px; }
.search-label { display: block; margin-bottom: 8px; }
#team-search { box-sizing: border-box; width: 100%; padding: 12px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 6px; background: #020b10; color: white; font: inherit; }
.leaderboard-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.leaderboard-pagination button { border: 1px solid var(--cyan); padding: 10px 14px; border-radius: 5px; background: transparent; color: var(--cyan); cursor: pointer; }
.leaderboard-pagination button:disabled { opacity: .35; cursor: default; }
.leaderboard-pagination p { font-size: 13px; }
.form-modal { width: min(800px, calc(100vw - 24px)); max-height: 94vh; }
.form-modal .modal-inner { padding: 22px; }
.form-modal h2 { font-size: 24px; margin-bottom: 8px; }
.form-fallback { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.form-fallback button { color: var(--cyan); background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
#tally-frame { display: block; width: 100%; height: min(65vh, 720px); border: 0; border-radius: 6px; background: white; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 820px) { .team-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modal-inner { padding: 22px 16px; } .modal-inner h2 { font-size: 24px; } .team-profile img { width: 90px; height: 90px; } .team-profiles { gap: 10px; } .team-profile { padding: 4px; } .leaderboard-pagination p { order: -1; width: 100%; } }
/* Compact phone layout; full content remains available on demand. */
.mobile-intro, .mobile-fold > summary { display: none; }
.involve-card > .mobile-fold { display: flex; flex-direction: column; flex: 1; }
@media (max-width: 600px) {
  .section { padding: 32px 18px; }
  .section-heading { margin-bottom: 18px; }
  .section-heading h2 { font-size: 36px; line-height: 1; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; }
  .hero-copy { padding: 28px 20px 185px; }
  .hero h1 { font-size: 46px; }
  .hero-intro { display: none; }
  .mobile-intro { display: block; max-width: 320px; margin: 18px 0; color: #dce8ed; }
  .hero-visual { background-size: auto 235px; background-position: 73% bottom; }
  .hero-visual::after { height: 235px; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { font-size: 11px; padding: 0 12px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 14px 8px; }
  .fact-icon { font-size: 22px; margin-bottom: 6px; }
  .fact h2 { font-size: 11px; margin: 0; }
  .fact p { display: none; }
  .mobile-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 800; color: var(--cyan); list-style: none; }
  .mobile-fold > summary::-webkit-details-marker { display: none; }
  .mobile-fold > summary::after { content: '+'; font-size: 22px; }
  .mobile-fold[open] > summary::after { content: '−'; }
  .event-format-card { padding: 18px; }
  .qualification-note { padding: 18px; }
  .event-format-card h3, .qualification-note h3 { font-size: 18px; }
  .event-formats .section-heading h2 { font-size: 30px; }
  .leaderboard-section .leaderboard-table { min-width: 0; }
  .leaderboard-section th:nth-child(3), .leaderboard-section td:nth-child(3), .leaderboard-section th:nth-child(5), .leaderboard-section td:nth-child(5) { display: none; }
  .leaderboard-section th, .leaderboard-section td { padding: 12px 8px; font-size: 12px; }
  .leaderboard-section .team-cell { min-width: 0; gap: 8px; }
  .leaderboard-section .team-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .leaderboard-section .rank { width: 28px; }
  .leaderboard-section .split-heading { gap: 14px; }
  .world-section .section-heading > p:last-child, .status-key { display: none; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .city-card { min-height: 158px; }
  .city-info { left: 9px; right: 9px; bottom: 9px; }
  .city-info h3, .other-city h3 { font-size: 14px; }
  .city-info p { font-size: 10px; margin-bottom: 6px; }
  .city-action { min-height: 44px; }
  .other-city { grid-column: 1 / -1; min-height: 90px; padding: 12px; }
  .other-city .globe, .other-city p { display: none; }
  .other-city h3 { margin-bottom: 8px; }
  .involvement { grid-template-columns: 1fr; gap: 8px; padding-top: 0; }
  .involve-card { min-height: 0; padding: 0 16px; }
  .involve-icon, .involve-card .mobile-fold h3 { display: none; }
  .involve-card > .mobile-fold { display: block; }
  .involve-card summary { color: inherit; }
  .involve-card p { font-size: 14px; }
  .involve-card a { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 0; }
  .event-flow .section-heading p:last-child { display: none; }
  .community-panel { margin: 24px 18px; padding: 20px; gap: 14px; }
  .whatsapp-mark, .community-reasons, .community-copy > p { display: none; }
  .community-copy h2 { font-size: 20px; }
  .sponsor-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .sponsor { min-height: 65px; padding: 10px; }
  .sponsor img { max-height: 40px; }
  .resource-grid { gap: 8px; }
  .resource-card { padding: 12px; align-items: center; }
  .resource-card span:not(.resource-icon), .resource-card b { display: none; }
  .resource-card strong { font-size: 12px; }
  .resource-icon { grid-row: auto; }
  .faq { margin-top: 20px; gap: 0; }
  .faq h3 { display: none; }
  .site-footer { padding: 24px 18px; gap: 12px; min-height: 0; }
}
@media (min-width: 601px) {
  .involve-card > .mobile-fold, .involve-card > .mobile-fold::details-content { display: contents; }
}
