/* ============ Hit-a-Thon pages ============ */
.ht-btn-light { border-color: rgb(255 255 255 / .7); color: #fff; background: rgb(255 255 255 / .06); }
.ht-btn-light:hover { background: rgb(255 255 255 / .16); color: #fff; border-color: #fff; }
.btn-sm { padding: 8px 16px; font-size: var(--text-sm); }

/* Five-step strip */
.ht-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); counter-reset: none; }
.ht-flow li { background: var(--color-surface); border-radius: 18px; padding: var(--space-6) var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); border-top: 3px solid var(--brand-yellow); }
.ht-flow li:nth-child(2) { border-top-color: var(--brand-coral); }
.ht-flow li:nth-child(3) { border-top-color: #3CC4B4; }
.ht-flow li:nth-child(4) { border-top-color: var(--brand-navy); }
.ht-flow b { font-family: var(--font-display); font-size: var(--text-2xl, 1.75rem); color: var(--ink); line-height: 1; }
[data-theme="dark"] .ht-flow b { color: var(--brand-yellow); }
.ht-flow span { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; }
@media (max-width: 1000px) { .ht-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ht-flow { grid-template-columns: 1fr; } .ht-flow li { flex-direction: row; align-items: center; padding: var(--space-4) var(--space-5); } }

.ht-note { margin-top: var(--space-5); padding-left: var(--space-4); border-left: 3px solid var(--brand-yellow); color: var(--color-text-muted); font-size: var(--text-sm); max-width: 44ch; }
.ht-fine, .pc-fine, .ht-sample { font-size: var(--text-xs); color: var(--color-text-faint, var(--color-text-muted)); margin-top: var(--space-4); }
.ht-sample { display: inline-flex; align-items: center; gap: 8px; }
.ht-sample::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-yellow); flex: none; }
.band-navy .ht-sample { color: var(--on-navy-muted); }

/* Pledge calculator */
.ht-split-calc { align-items: center; }
.pledge-calc { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-6), 3vw, var(--space-10)); box-shadow: 0 18px 40px rgb(7 44 78 / .10); display: grid; gap: var(--space-6); border: 1px solid var(--color-divider); }
.pledge-calc fieldset { border: 0; padding: 0; margin: 0; }
.pledge-calc legend, .pc-cap, .pc-try label, .ht-pick { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.pc-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.pc-chip { min-width: 64px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--color-border); background: transparent; color: var(--color-text); font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.pc-chip:hover { border-color: var(--brand-navy); }
.pc-chip.is-on { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
[data-theme="dark"] .pc-chip.is-on { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--brand-navy-deep); }
.pc-custom, .pc-cap { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.pc-cap { margin-top: 0; }
.pc-opt { font-weight: 400; color: var(--color-text-muted); }
.pc-cap small { font-weight: 400; color: var(--color-text-muted); font-size: var(--text-xs); }
.pc-money { display: flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 12px; overflow: hidden; max-width: 240px; background: var(--color-bg, transparent); }
.pc-money span { padding: 0 12px; color: var(--color-text-muted); font-weight: 600; }
.pc-money input { border: 0; background: transparent; padding: 12px 12px 12px 0; font: 500 var(--text-base)/1 var(--font-body); color: var(--color-text); width: 100%; min-width: 0; }
.pc-money:focus-within { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgb(10 61 107 / .15); }
.pc-try { display: grid; gap: var(--space-3); }
.pc-try input[type="range"] { width: 100%; accent-color: var(--brand-coral-deep); }
.pc-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); padding: var(--space-5) var(--space-6); border-radius: 16px; background: var(--color-surface-sand); }
.pc-eq { color: var(--color-text-muted); font-size: var(--text-lg); }
.pc-eq b { color: var(--color-text); }
.pc-result > strong { font-family: var(--font-display); font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); line-height: 1; color: var(--ink); }
[data-theme="dark"] .pc-result > strong { color: var(--brand-yellow); }
.pc-capnote { flex-basis: 100%; font-size: var(--text-xs); color: var(--color-text-muted); }
.pc-maximum { flex-basis: 100%; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.pledge-calc .pc-cap { padding: var(--space-4); border: 1px solid var(--color-border, #d5dce2); border-radius: 12px; background: var(--color-surface-sand); }
.pc-fine { margin-top: calc(var(--space-2) * -1); }
.band-warm .pc-result { background: var(--color-surface-sand); }
.ht-pick { display: grid; gap: var(--space-2); margin-top: var(--space-6); max-width: 360px; }
.ht-pick select { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: 500 var(--text-base)/1.2 var(--font-body); }

/* Example card */
.ht-example { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-6), 3vw, var(--space-10)); margin-top: var(--space-8); }
.ht-example--alt { margin-top: var(--space-4); padding-block: var(--space-5); }
.ht-example__title { font-weight: 600; margin-bottom: var(--space-5); }
.ht-example__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.ht-example__row div { display: grid; gap: 6px; padding: var(--space-5); border-radius: 16px; background: var(--color-surface-sand); }
.ht-example__row strong { font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1; color: var(--ink); }
.ht-example__row span { font-size: var(--text-sm); color: var(--color-text-muted); }
.ht-example__row .is-total { background: var(--brand-navy); }
.ht-example__row .is-total strong { color: var(--brand-yellow); }
.ht-example__row .is-total span { color: var(--on-navy-muted); }
[data-theme="dark"] .ht-example__row strong { color: #fff; }
[data-theme="dark"] .ht-example__row .is-total strong { color: var(--brand-yellow); }
.ht-example__math { margin-top: var(--space-5); color: var(--color-text-muted); }
.ht-example--alt .ht-example__math { margin-top: 0; }
.ht-example__math b { color: var(--color-text); }
@media (max-width: 720px) { .ht-example__row { grid-template-columns: repeat(2, 1fr); } }

/* Sport cards */
.ht-sports { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.ht-sport { position: relative; display: block; border-radius: 24px; overflow: hidden; aspect-ratio: 3/4; color: #fff; text-decoration: none; isolation: isolate; }
.ht-sport img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.ht-sport::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(7 44 78 / 0) 45%, rgb(7 44 78 / .9) 100%); }
.ht-sport:hover img { transform: scale(1.04); }
.ht-sport__label { position: absolute; left: var(--space-6); right: var(--space-6); bottom: var(--space-6); display: grid; gap: 4px; }
.ht-sport__label b { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.05; }
.ht-sport__label small { color: #E6EFF7; font-size: var(--text-sm); }
.ht-sport__label b::after { content: " →"; color: var(--brand-yellow); }
@media (max-width: 760px) { .ht-sports { grid-template-columns: 1fr; } .ht-sport { aspect-ratio: 16/11; } }

/* CTA rows on navy */
.ht-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.ht-cta > div { max-width: 60ch; }
.ht-cta p { margin-top: var(--space-3); }

/* Equipment band */
.ht-machine { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.ht-machine p { margin-top: var(--space-4); max-width: 52ch; }
.ht-machine__pts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ht-machine__pts li { display: grid; gap: 4px; padding: var(--space-4) var(--space-5); border-radius: 14px; background: rgb(255 255 255 / .06); border-left: 3px solid var(--brand-yellow); }
.ht-machine__pts li:nth-child(2) { border-left-color: var(--brand-coral); }
.ht-machine__pts li:nth-child(3) { border-left-color: #3CC4B4; }
.ht-machine__pts b { color: #fff; }
.ht-machine__pts span { color: var(--on-navy-muted); font-size: var(--text-sm); }
@media (max-width: 860px) { .ht-machine { grid-template-columns: 1fr; } }

/* Rules */
.ht-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-8); }
.ht-rule { background: var(--color-surface); border-radius: 18px; padding: var(--space-6); }
.ht-rule h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.ht-rule p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.55; }
@media (max-width: 1000px) { .ht-rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ht-rules { grid-template-columns: 1fr; } }

/* Player finder */
.ht-finder { margin-top: var(--space-8); }
.ht-search input { width: 100%; max-width: 460px; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font: 500 var(--text-base)/1 var(--font-body); }
.ht-search input:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgb(10 61 107 / .15); }
.ht-players { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.ht-player { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: 16px; background: var(--color-surface-sand); }
.ht-player[hidden] { display: none; }
.ht-player__avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-navy); color: var(--brand-yellow); font: 700 var(--text-lg)/1 var(--font-display); flex: none; }
.ht-player__info { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ht-player__info b small { color: var(--color-text-muted); font-weight: 500; }
.ht-player__info > small { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 720px) { .ht-players { grid-template-columns: 1fr; } }

/* Review panel */
.ht-review { margin-top: var(--space-10); background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-6), 3vw, var(--space-10)); border-top: 4px solid var(--brand-yellow); }
.ht-review h3 { font-family: var(--font-display); font-size: var(--text-2xl, 1.75rem); margin-bottom: var(--space-5); }
.ht-review dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4) var(--space-8); margin: 0 0 var(--space-6); }
.ht-review dl div { border-bottom: 1px solid var(--color-divider); padding-bottom: var(--space-3); }
.ht-review dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.ht-review dd { margin: 4px 0 0; }
.ht-review .btn[disabled] { opacity: .55; cursor: not-allowed; }
.ht-review-cta { margin-top: var(--space-8); }
@media (max-width: 720px) { .ht-review dl { grid-template-columns: 1fr; } }

/* Leaderboard tabs */
.ht-tabs { margin-top: var(--space-8); }
.ht-tabs__bar { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--color-surface-sand); }
.ht-tabs__bar button { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-text-muted); cursor: pointer; }
.ht-tabs__bar button[aria-selected="true"] { background: var(--brand-navy); color: #fff; }
.ht-table { margin-top: var(--space-5); overflow-x: auto; }
.ht-table table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 480px; }
.ht-table th { text-align: left; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); padding: 12px; border-bottom: 2px solid var(--color-divider); }
.ht-table td { padding: 14px 12px; border-bottom: 1px solid var(--color-divider); }
.ht-table tbody tr:first-child td { font-weight: 600; }
.ht-table td:first-child { font-family: var(--font-display); font-size: var(--text-lg); color: var(--ink); width: 48px; }
[data-theme="dark"] .ht-table td:first-child { color: var(--brand-yellow); }
.pc-custom[hidden], .ht-review[hidden], .pc-capnote[hidden] { display: none; }
.pc-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) 6px; }
.pc-cap .pc-money, .pc-cap small { flex-basis: 100%; }
.pc-chip { min-width: 56px; padding: 10px 14px; }
.pc-badge { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--brand-yellow-soft, #FDF3D3); color: var(--ink-on-soft); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pc-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-coral); }
.ht-split-calc .display strong { color: var(--ink); }
[data-theme="dark"] .ht-split-calc .display strong { color: var(--brand-yellow); }
.ht-review-cta { margin-top: var(--space-6); }
@media (max-width: 560px) { .ht-table table { min-width: 0; } [data-panel="perf"] th:nth-child(3), [data-panel="perf"] td:nth-child(3) { display: none; } }
.ht-note--go { border-left-color: var(--brand-coral); margin-top: var(--space-3); } .ht-note b { color: var(--color-text); }

/* ============ My Hit-a-Thon (donor + family accounts) ============ */
.display--sm { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); }
.ma-hero { padding-block: clamp(var(--space-12), 7vw, var(--space-20)) clamp(var(--space-10), 5vw, var(--space-16)); }
.ma-hero .display strong { color: var(--brand-yellow); }
.ma-hero__sub { margin-top: var(--space-4); max-width: 54ch; color: var(--on-navy-muted); font-size: var(--text-lg); line-height: 1.6; }
.ma-section { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }
.ma-wrap { display: grid; gap: var(--space-6); }
.ma-card { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-6), 3vw, var(--space-10)); box-shadow: 0 18px 40px rgb(7 44 78 / .07); }
.ma-card h3 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2); }
.ma-card > p { color: var(--color-text-muted); margin-bottom: var(--space-5); max-width: 60ch; }
.ma-card.ma-center > p, .ma-center .lede-sm { margin-inline: auto; }
.ma-loading { text-align: center; color: var(--color-text-muted); }
.ma-center { text-align: center; display: grid; justify-items: center; gap: var(--space-3); }
.ma-center .kicker { margin-bottom: 0; }
.ma-narrow { max-width: 520px; margin-inline: auto; width: 100%; }
.ma-soft { background: var(--color-surface-sand); box-shadow: none; border: 1px dashed var(--color-border); }
.band-warm .ma-soft { background: var(--color-surface); }
.ma-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: start; }
@media (max-width: 900px) { .ma-grid { grid-template-columns: 1fr; } }

/* Tabs + form */
.ma-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--color-surface-sand); margin-bottom: var(--space-6); max-width: 100%; }
.ma-tabs button { border: 0; background: transparent; padding: 11px 20px; border-radius: 999px; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-text-muted); cursor: pointer; white-space: nowrap; }
.ma-tabs button[aria-selected="true"] { background: var(--brand-navy); color: #fff; }
.ma-form { display: grid; gap: var(--space-5); }
.ma-f { display: grid; gap: 6px; }
.ma-f > span:first-child { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.ma-f em { font-style: normal; font-weight: 400; color: var(--color-text-muted); }
.ma-f input, .ma-pw { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: 500 var(--text-base)/1.2 var(--font-body); }
.ma-f input:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgb(10 61 107 / .15); }
.ma-f input.is-bad { border-color: var(--color-error); box-shadow: 0 0 0 3px rgb(200 60 60 / .15); }
.ma-f small { font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-f small.is-good { color: var(--brand-green-text, var(--color-success)); font-weight: 600; }
.ma-f small.is-bad { color: var(--color-error); font-weight: 600; }
.ma-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 520px) { .ma-row { grid-template-columns: 1fr; } }
.ma-pw { display: flex; align-items: center; padding: 0; overflow: hidden; }
.ma-pw input { border: 0; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; }
.ma-pw:focus-within { border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgb(10 61 107 / .15); }
.ma-pw button { border: 0; background: transparent; padding: 0 16px; align-self: stretch; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-primary); cursor: pointer; }
.ma-who { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.ma-who legend { font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
@media (max-width: 520px) { .ma-who { grid-template-columns: 1fr; } }
.ma-choice { position: relative; cursor: pointer; }
.ma-choice input { position: absolute; opacity: 0; inset: 0; }
.ma-choice span { display: grid; gap: 2px; padding: var(--space-4) var(--space-5); border-radius: 16px; border: 1.5px solid var(--color-border); background: var(--color-bg); transition: border-color .15s, background .15s; height: 100%; }
.ma-choice small { color: var(--color-text-muted); font-size: var(--text-xs); }
.ma-choice input:checked + span { border-color: var(--brand-navy); background: var(--brand-yellow-soft, #FDF3D3); box-shadow: inset 0 0 0 1px var(--brand-navy); }
.ma-choice input:focus-visible + span { outline: 3px solid var(--focus-ring, rgb(10 61 107 / .4)); outline-offset: 2px; }
[data-theme="dark"] .ma-choice input:checked + span { background: rgb(255 255 255 / .06); border-color: var(--brand-yellow); box-shadow: inset 0 0 0 1px var(--brand-yellow); }
.ma-submit { width: 100%; justify-content: center; }
.ma-link { background: none; border: 0; padding: 0; color: var(--color-primary); font: 600 var(--text-sm)/1.4 var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: center; display: inline-block; margin-top: var(--space-4); }
.ma-form .ma-link { margin-top: 0; }
[data-theme="dark"] .ma-link, [data-theme="dark"] .ma-pw button { color: var(--brand-yellow); }
.ma-fine { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
.ma-pledge .ma-fine { text-align: left; margin-top: var(--space-3); }
.ma-hint, .ma-err, .ma-ok { padding: 12px 16px; border-radius: 12px; font-size: var(--text-sm); line-height: 1.5; }
.ma-hint { background: var(--brand-yellow-soft, #FDF3D3); color: var(--ink-on-soft); }
.ma-err { background: var(--color-error-highlight, #FBE7E5); color: var(--color-error); margin-bottom: var(--space-4); }
.ma-ok { background: var(--color-success-highlight, #E3F4EA); color: var(--brand-green-text, var(--color-success)); margin-bottom: var(--space-4); }

/* Aside */
.ma-aside { padding-top: var(--space-4); }
.ma-aside .display strong { color: var(--ink); }
[data-theme="dark"] .ma-aside .display strong { color: var(--brand-yellow); }
.ma-points { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-4); }
.ma-points li { display: grid; gap: 2px; padding-left: var(--space-5); border-left: 3px solid var(--color-divider); }
.ma-points li:first-child { border-left-color: var(--brand-yellow); }
.ma-points span { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Pledge intent + confirm */
.ma-intent { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: 16px; background: var(--color-surface-sand); margin-bottom: var(--space-6); }
.ma-intent div { display: grid; gap: 2px; min-width: 0; }
.ma-intent small { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--color-text-muted); }
.ma-intent span:not(.ma-av) { color: var(--color-text-muted); font-size: var(--text-sm); }
.ma-intent--lg { margin-top: var(--space-6); }
.ma-intent--lg b { font-family: var(--font-display); font-size: var(--text-xl); }
.ma-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-navy); color: var(--brand-yellow); font: 700 var(--text-lg)/1 var(--font-display); flex: none; }
.ma-av--lg { width: 64px; height: 64px; font-size: var(--text-2xl, 1.75rem); }
.ma-confirm { max-width: 760px; margin-inline: auto; width: 100%; }
.ma-amount { display: grid; gap: var(--space-5); }
.ma-label { font-weight: 600; font-size: var(--text-sm); }
.ma-custom { max-width: 140px; }
.ma-cap .pc-money { max-width: 240px; }
.ma-dl { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-8); margin: var(--space-8) 0; }
.ma-dl div { border-bottom: 1px solid var(--color-divider); padding-bottom: var(--space-3); }
.ma-dl dt { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.ma-dl dd { margin: 4px 0 0; font-size: var(--text-sm); line-height: 1.55; }
@media (max-width: 640px) { .ma-dl { grid-template-columns: 1fr; } }
.ma-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.ma-actions--center { justify-content: center; }
.ma-actions .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Dashboard */
.ma-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; }
.ma-hello > div:first-child { max-width: 640px; }
.ma-hello .display strong { color: var(--ink); }
[data-theme="dark"] .ma-hello .display strong { color: var(--brand-yellow); }
.ma-hello .lede-sm { margin-top: var(--space-3); }
.ma-thanks { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-radius: 18px; background: var(--color-surface); border-left: 4px solid var(--brand-yellow); }
.ma-thanks div { display: grid; gap: 2px; }
.ma-thanks span:not(.ma-big-check) { color: var(--color-text-muted); font-size: var(--text-sm); }
.ma-big-check { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-navy); color: var(--brand-yellow); flex: none; }
.ma-big-check svg { width: 26px; height: 26px; }

.ma-player { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-5), 3vw, var(--space-8)); box-shadow: 0 18px 40px rgb(7 44 78 / .07); }
.ma-player__head { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.ma-player__head > div:nth-child(2) { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.ma-player__head h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; margin-top: 6px; }
.ma-player__head h3 small { font-size: .6em; color: var(--color-text-muted); font-weight: 500; }
.ma-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--color-surface-sand); color: var(--color-text-muted); margin-right: 6px; }
.ma-tag--tennis, .ma-tag--softball, .ma-tag--baseball { background: var(--brand-navy); color: #fff; }
[data-theme="dark"] .ma-tag--tennis, [data-theme="dark"] .ma-tag--softball, [data-theme="dark"] .ma-tag--baseball { background: rgb(255 255 255 / .12); }
.ma-muted { color: var(--color-text-muted); font-size: var(--text-sm); }
.ma-big { display: grid; justify-items: end; text-align: right; gap: 2px; }
.ma-big b { font-family: var(--font-display); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); line-height: 1; color: var(--ink); }
[data-theme="dark"] .ma-big b { color: var(--brand-yellow); }
.ma-big span { font-size: var(--text-sm); color: var(--color-text-muted); max-width: 22ch; }
.ma-big--wait b { color: var(--color-text-faint, var(--color-text-muted)); }
@media (max-width: 560px) { .ma-big { justify-items: start; text-align: left; flex-basis: 100%; padding-top: var(--space-2); border-top: 1px solid var(--color-divider); } }
.ma-ptabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--color-surface-sand); margin: var(--space-6) 0 var(--space-2); width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ma-ptabs button { border: 0; background: transparent; padding: 10px 16px; border-radius: 999px; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-text-muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ma-ptabs button[aria-selected="true"] { background: var(--brand-navy); color: #fff; }
.ma-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand-yellow); color: var(--brand-navy-deep); font-size: 11px; }
.ma-ppanel[hidden] { display: none; }
.ma-ev { margin-top: var(--space-4); }
.ma-ev b { color: var(--color-text); }
.ma-empty { padding: var(--space-8) var(--space-5); text-align: center; color: var(--color-text-muted); background: var(--color-surface-sand); border-radius: 16px; margin-top: var(--space-4); }
.ht-table tr.is-me td { background: var(--brand-yellow-soft, #FDF3D3); }
[data-theme="dark"] .ht-table tr.is-me td { background: rgb(255 255 255 / .06); }
.ma-ppanel .ma-link { justify-self: start; }

/* Photos & videos */
.ma-media { margin-top: var(--space-8); }
.ma-media + .ma-media { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); }
.ma-media .kicker { margin-bottom: var(--space-2); }
.ma-media__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.2; margin-bottom: var(--space-6); max-width: 30ch; text-wrap: balance; }
.ma-media__title strong { font-weight: 700; color: var(--ink); }
[data-theme="dark"] .ma-media__title strong { color: var(--brand-yellow); }
.ma-phrase { font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); line-height: 1.3; color: var(--color-text); padding-left: 12px; border-left: 3px solid var(--brand-yellow); margin: 0 0 10px; }
.ma-gallery { display: grid; gap: var(--space-4); }
.ma-gallery--1 { grid-template-columns: minmax(0, 760px); }
.ma-gallery--2 { grid-template-columns: 1fr 1fr; }
.ma-gallery--3, .ma-gallery--4 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(200px, auto); grid-auto-flow: dense; }
.ma-photo { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.ma-photo__img { position: relative; flex: 1; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--color-surface-sand); aspect-ratio: 4 / 3; }
.ma-gallery--1 .ma-photo__img { aspect-ratio: 16 / 10; }
.ma-gallery--2 .ma-photo__img { aspect-ratio: 4 / 5; }
.ma-gallery--3 .ma-photo__img, .ma-gallery--4 .ma-photo__img { aspect-ratio: auto; min-height: 200px; }
.ma-gallery--3 .is-feature, .ma-gallery--4 .is-feature { grid-column: span 2; grid-row: span 2; }
.ma-gallery--3 .is-feature .ma-photo__img, .ma-gallery--4 .is-feature .ma-photo__img { min-height: 420px; }
.ma-photo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease, transform .5s ease; }
.ma-photo__img.is-in img { opacity: 1; }
.ma-photo__img:hover img { transform: scale(1.03); }
.ma-photo__img:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 3px; }
.ma-photo figcaption { margin-top: 8px; font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width: 720px) {
  .ma-gallery--2, .ma-gallery--3, .ma-gallery--4 { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .ma-gallery--3 .is-feature, .ma-gallery--4 .is-feature { grid-column: 1 / -1; grid-row: auto; }
  .ma-gallery--3 .is-feature .ma-photo__img, .ma-gallery--4 .is-feature .ma-photo__img { min-height: 0; aspect-ratio: 4 / 3; }
  .ma-gallery--3 .ma-photo__img, .ma-gallery--4 .ma-photo__img { min-height: 0; aspect-ratio: 1; }
  .ma-gallery--2 .ma-photo__img { aspect-ratio: 1; }
  .ma-gallery .ma-phrase { font-size: var(--text-sm); }
}
.ma-vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.ma-vidwrap { display: flex; flex-direction: column; min-width: 0; }
.ma-vid { display: grid; gap: 4px; text-align: left; padding: 0; border: 0; background: transparent; color: var(--color-text); cursor: pointer; font: inherit; flex: 1; align-content: start; }
.ma-vid__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep)); color: #fff; margin-bottom: 8px; overflow: hidden; }
.ma-vid__thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--brand-yellow); }
.ma-vid__thumb svg { width: 60px; height: 60px; transition: transform .2s ease; }
.ma-vid__thumb em { position: absolute; left: 16px; bottom: 14px; font-style: normal; font-size: var(--text-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); }
.ma-vid:hover .ma-vid__thumb svg { transform: scale(1.08); }
.ma-vid:focus-visible .ma-vid__thumb { outline: 3px solid var(--brand-navy); outline-offset: 3px; }
.ma-vid small { color: var(--color-text-muted); font-size: var(--text-xs); }

/* Pledges */
.ma-sec { display: grid; gap: var(--space-5); margin-top: var(--space-4); }
.ma-sec__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); flex-wrap: wrap; }
.ma-sec__head h3 { font-family: var(--font-display); font-size: var(--text-2xl, 1.75rem); }
.ma-total { color: var(--color-text-muted); font-size: var(--text-sm); }
.ma-total b { font-family: var(--font-display); font-size: var(--text-xl); color: var(--ink); margin-left: 6px; }
[data-theme="dark"] .ma-total b { color: var(--brand-yellow); }
.ma-pledges { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-4); }
@media (max-width: 400px) { .ma-pledges { grid-template-columns: 1fr; } }
.ma-pledge { background: var(--color-surface); border-radius: 20px; padding: var(--space-6); display: grid; gap: var(--space-4); align-content: start; }
.ma-pledge__top { display: flex; justify-content: space-between; gap: var(--space-3); align-items: flex-start; }
.ma-pledge__top > div { display: grid; gap: 2px; }
.ma-pledge__top b { font-family: var(--font-display); font-size: var(--text-lg); }
.ma-pledge__nums { display: grid; gap: 0; border-radius: 14px; background: var(--color-surface-sand); overflow: hidden; }
.ma-pledge__nums > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 14px; font-size: var(--text-sm); }
.ma-pledge__nums > div + div { border-top: 1px solid var(--color-divider); }
.ma-pledge__nums span { color: var(--color-text-muted); }
.ma-pledge__nums b { text-align: right; }
.ma-pledge__nums .is-total { background: var(--brand-navy); border-top: 0 !important; }
.ma-pledge__nums .is-total span { color: var(--on-navy-muted); }
.ma-pledge__nums .is-total b { color: var(--brand-yellow); font-family: var(--font-display); font-size: var(--text-xl); }
.ma-pledge .ma-actions { margin-top: 0; }
.ma-st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; background: var(--color-surface-sand); color: var(--color-text-muted); white-space: nowrap; }
.ma-st svg { width: 14px; height: 14px; }
.ma-st--paid { background: var(--color-success-highlight, #E3F4EA); color: var(--brand-green-text, var(--color-success)); }
.ma-st--due { background: var(--brand-yellow-soft, #FDF3D3); color: var(--ink-on-soft); }
.ma-extra { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Toast + modal */
.ma-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--brand-navy-deep); color: #fff; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: var(--text-sm); box-shadow: 0 12px 30px rgb(0 0 0 / .25); opacity: 0; pointer-events: none; transition: .25s ease; z-index: 1000; max-width: calc(100vw - 32px); text-align: center; }
.ma-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ma-toast.is-err { background: #9B2C2C; }
.ma-modal { position: fixed; inset: 0; background: rgb(7 22 38 / .6); display: grid; place-items: center; padding: 16px; z-index: 999; overflow-y: auto; }
.ma-modal__box { background: var(--color-surface); color: var(--color-text); border-radius: 24px; width: min(620px, 100%); box-shadow: 0 30px 60px rgb(0 0 0 / .3); overflow: hidden; }
.ma-modal__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-divider); }
.ma-modal__head h2 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; }
.ma-modal__x { border: 0; background: var(--color-surface-sand); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--color-text); cursor: pointer; flex: none; }
.ma-modal__x svg { width: 18px; height: 18px; }
.ma-modal__body { padding: var(--space-6); }
.ma-modal__foot { padding: var(--space-4) var(--space-6) var(--space-6); display: flex; justify-content: flex-end; gap: var(--space-3); }
.ma-modal__body video, .ma-modal__img { display: block; width: 100%; max-height: 72vh; border-radius: 14px; background: #0b1622; object-fit: contain; }
.ma-modal__body .ma-form { gap: var(--space-4); }

/* ============ Past results ============ */
.rs-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: var(--space-8) 0 var(--space-6); }
.rs-stats div { background: var(--color-surface); border-radius: 18px; padding: var(--space-5) var(--space-6); display: grid; gap: 4px; }
.rs-stats div:last-child { background: var(--brand-navy); }
.rs-stats b { font-family: var(--font-display); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1; color: var(--ink); }
.rs-stats span { font-size: var(--text-sm); color: var(--color-text-muted); }
.rs-stats div:last-child b { color: var(--brand-yellow); }
.rs-stats div:last-child span { color: var(--on-navy-muted); }
[data-theme="dark"] .rs-stats b { color: #fff; }
@media (max-width: 640px) { .rs-stats { grid-template-columns: 1fr; } }
.rs-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.rs-list { display: grid; gap: var(--space-5); }
.rs-card { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-5), 3vw, var(--space-8)); }
.rs-card__head { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; align-items: flex-start; }
.rs-card__head > div:first-child { display: grid; gap: 4px; min-width: 0; }
.rs-card__head h3 { font-family: var(--font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.15; margin-top: 6px; }
.rs-nums { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.rs-nums div { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: var(--color-surface-sand); min-width: 92px; }
.rs-nums b { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; color: var(--ink); }
.rs-nums span { font-size: var(--text-xs); color: var(--color-text-muted); }
.rs-nums .is-total { background: var(--brand-navy); }
.rs-nums .is-total b { color: var(--brand-yellow); }
.rs-nums .is-total span { color: var(--on-navy-muted); }
[data-theme="dark"] .rs-nums b { color: #fff; }
.rs-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-6); }
.rs-top__p { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: var(--space-4); border-radius: 16px; border: 1px solid var(--color-divider); }
.rs-top__p span { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 var(--text-base)/1 var(--font-display); background: var(--color-surface-sand); color: var(--color-text); }
.rs-top__p--1 span { background: var(--brand-yellow); color: var(--brand-navy-deep); }
.rs-top__p small { color: var(--color-text-muted); font-size: var(--text-xs); }
@media (max-width: 640px) { .rs-top { grid-template-columns: 1fr; } }
.rs-more { margin-top: var(--space-5); border-top: 1px solid var(--color-divider); padding-top: var(--space-4); }
.rs-more summary { cursor: pointer; font-weight: 600; color: var(--color-primary); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.rs-more summary::-webkit-details-marker { display: none; }
.rs-more summary::after { content: "+"; font-size: 1.2em; line-height: 1; }
.rs-more[open] summary::after { content: "–"; }
[data-theme="dark"] .rs-more summary { color: var(--brand-yellow); }
.rs-tables { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-6); align-items: start; }
@media (max-width: 860px) { .rs-tables { grid-template-columns: 1fr; } }
.rs-tables .ht-table table { min-width: 0; }

/* ============ Live-data helpers on sport pages ============ */
.ht-announce { background: var(--brand-yellow-soft, #FDF3D3); color: var(--ink-on-soft); padding: 12px 0; font-size: var(--text-sm); font-weight: 500; }
.ht-announce .container { display: flex; align-items: center; gap: 10px; }
.ht-announce__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-coral); flex: none; }
.ht-board-links { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.ht-board-event { margin-top: var(--space-4); color: var(--color-text-muted); font-size: var(--text-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ht-board-event[hidden] { display: none; }
.ht-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ht-status--upcoming { background: var(--color-surface-sand); color: var(--color-text-muted); }
.ht-status--live { background: var(--brand-coral); color: #fff; }
.ht-status--completed { background: var(--brand-navy); color: #fff; }
.ht-table td.ht-td-empty { text-align: center; color: var(--color-text-muted); font: 400 var(--text-sm)/1.5 var(--font-body); width: auto; padding: var(--space-8) var(--space-4); }
.ht-player--empty { grid-column: 1 / -1; justify-content: center; color: var(--color-text-muted); text-align: center; }
.pc-badge.is-open { background: var(--color-success-highlight, #E3F4EA); color: var(--brand-green-text, var(--color-success)); }
.pc-badge.is-open::before { background: var(--brand-green, #2E9E5B); }
select.is-needed { border-color: var(--brand-coral-deep) !important; box-shadow: 0 0 0 3px rgb(232 106 81 / .25); }
.ma-wrap { grid-template-columns: minmax(0, 1fr); }
.ma-hello > * { min-width: 0; }
.ma-player__head > div:nth-child(2) { display: block; }
.ma-player__head h3 { display: block; }
.ma-player__head .ma-muted { display: block; margin-top: 2px; }
@media (max-width: 560px) {
  .ma-hello .ma-actions { width: 100%; }
  .ma-hello .ma-actions .btn { flex: 1 1 auto; justify-content: center; padding-inline: 14px; }
  .ma-hello .ma-actions .btn-primary { flex-basis: 100%; }
}
.rs-card__head .ma-tag { justify-self: start; }
.rs-tables .ht-table + .ht-table td:first-child { font: 600 var(--text-sm)/1.4 var(--font-body); color: var(--color-text); width: auto; }
.ma-empty { max-width: none; }
/* Gallery: 3+ photos — feature on the left, every row filled evenly */
.ma-gallery--many { grid-template-columns: repeat(6, 1fr); grid-auto-flow: row dense; }
.ma-gallery--many .ma-photo { grid-column: span 2; }
.ma-gallery--many .ma-photo.is-feature { grid-column: span 4; grid-row: span 2; }
.ma-gallery--many .ma-photo.is-span3 { grid-column: span 3; }
.ma-gallery--many .ma-photo.is-span6 { grid-column: span 6; }
.ma-gallery--many .ma-photo__img { aspect-ratio: 4 / 3; }
.ma-gallery--many .is-feature .ma-photo__img { aspect-ratio: auto; min-height: 380px; }
.ma-gallery--many .is-span3 .ma-photo__img { aspect-ratio: 16 / 10; }
.ma-gallery--many .is-span6 .ma-photo__img { aspect-ratio: 21 / 9; }
@media (max-width: 720px) {
  .ma-gallery--many { grid-template-columns: 1fr 1fr; }
  .ma-gallery--many .ma-photo, .ma-gallery--many .ma-photo.is-span3, .ma-gallery--many .ma-photo.is-span6 { grid-column: span 1; }
  .ma-gallery--many .ma-photo.is-feature, .ma-gallery--many .ma-photo.is-wide-m { grid-column: 1 / -1; grid-row: auto; }
  .ma-gallery--many .ma-photo__img, .ma-gallery--many .is-span3 .ma-photo__img, .ma-gallery--many .is-span6 .ma-photo__img { aspect-ratio: 1; }
  .ma-gallery--many .is-feature .ma-photo__img, .ma-gallery--many .is-wide-m .ma-photo__img { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .ma-ptabs { width: 100%; border-radius: 16px; overflow: visible; }
  .ma-ptabs button { flex: 1 1 0; justify-content: center; white-space: normal; text-align: center; line-height: 1.15; padding: 10px 6px; font-size: 13px; border-radius: 12px; }
}

/* Share photos and videos */
.ma-media__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: 8px; min-height: 36px; }
.ma-media__foot figcaption { margin: 0; min-width: 0; }
.ma-media__foot--end { justify-content: flex-end; margin-top: 4px; }
.ma-share { position: relative; flex: none; }
.ma-share__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 11px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--ink); font: 600 var(--text-xs)/1 var(--font-body); cursor: pointer; transition: border-color .2s ease, background .2s ease; white-space: nowrap; }
.ma-share__btn svg { width: 15px; height: 15px; }
.ma-share__btn .ma-share__chev { width: 13px; height: 13px; transition: transform .2s ease; }
.ma-share__btn[aria-expanded="true"] { border-color: var(--brand-navy); background: var(--brand-sky); }
.ma-share__btn[aria-expanded="true"] .ma-share__chev { transform: rotate(180deg); }
.ma-share__btn:hover { border-color: var(--brand-navy); }
.ma-share__btn:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 2px; }
.ma-share__btn--all { padding: 11px 16px 11px 15px; font-size: var(--text-sm); background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }
.ma-share__btn--all:hover, .ma-share__btn--all[aria-expanded="true"] { background: var(--brand-navy-hover); border-color: var(--brand-navy-hover); color: #fff; }
[data-theme="dark"] .ma-share__btn { color: var(--color-text); }
[data-theme="dark"] .ma-share__btn[aria-expanded="true"] { background: var(--color-surface-sand); }
[data-theme="dark"] .ma-share__btn--all { background: var(--brand-yellow); border-color: var(--brand-yellow); color: #0b1a2a; }
.ma-shareall { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: 18px; background: var(--brand-sand); border-left: 4px solid var(--brand-yellow); }
[data-theme="dark"] .ma-shareall { background: var(--color-surface-sand); }
.ma-shareall__txt { display: grid; gap: 2px; min-width: 0; }
.ma-shareall__txt b { font-family: var(--font-display); font-size: var(--text-base); color: var(--color-text); }
.ma-shareall__txt span { font-size: var(--text-sm); color: var(--color-text-muted); }
.ma-share__menu { position: fixed; z-index: 1000; width: 380px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 14px; border-radius: 18px; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-divider); box-shadow: 0 24px 50px rgb(7 22 38 / .22); }
.ma-share__head { display: grid; gap: 2px; padding: 2px 6px 10px; }
.ma-share__head b { font-family: var(--font-display); font-size: var(--text-base); }
.ma-share__head span { font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-share__lbl { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); padding: 8px 6px 4px; }
.ma-share__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ma-share__grid--one { grid-template-columns: 1fr 1fr; }
.ma-share__menu [data-net] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--color-text); font: 500 var(--text-sm)/1.2 var(--font-body); text-align: left; cursor: pointer; min-height: 42px; }
.ma-share__menu [data-net]:hover, .ma-share__menu [data-net]:focus-visible { background: var(--brand-sand); outline: none; }
[data-theme="dark"] .ma-share__menu [data-net]:hover, [data-theme="dark"] .ma-share__menu [data-net]:focus-visible { background: var(--color-surface-sand); }
.ma-share__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--brand-sky); color: var(--ink); }
.ma-share__ic svg { width: 17px; height: 17px; }
[data-theme="dark"] .ma-share__ic { background: var(--color-surface-sand); color: var(--color-text); }
.ma-share__scrim { position: fixed; inset: 0; background: rgb(7 22 38 / .45); z-index: 999; }
.ma-share__menu.is-sheet { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-height: 82vh; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.ma-sharebox { display: grid; gap: var(--space-4); }
.ma-sb__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ma-sb__thumbs--1 { grid-template-columns: 1fr; }
.ma-sb__thumbs--2 { grid-template-columns: 1fr 1fr; }
.ma-sb__t { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--color-surface-sand) center / cover no-repeat; display: grid; place-items: center; }
.ma-sb__thumbs--1 .ma-sb__t { aspect-ratio: 16 / 9; }
.ma-sb__t.is-video { background: linear-gradient(150deg, var(--brand-navy), var(--brand-navy-deep)); }
.ma-sb__t.is-video svg { width: 38px; height: 38px; }
.ma-sb__more { font-weight: 700; color: var(--color-text-muted); }
.ma-sb__count { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--brand-green-text); }
.ma-sb__count svg { width: 18px; height: 18px; }
.ma-f textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font: 400 var(--text-sm)/1.5 var(--font-body); resize: vertical; min-height: 140px; }
.ma-f textarea:focus { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px rgb(10 61 107 / .15); }
.ma-sharebox__note { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.5; margin: 0; }
@media (max-width: 720px) {
  .ma-shareall { flex-direction: column; align-items: stretch; }
  .ma-shareall .ma-share__btn--all { width: 100%; justify-content: center; }
  .ma-gallery .ma-media__foot { flex-wrap: wrap; gap: 6px; }
  .ma-gallery .ma-share__btn { padding: 6px 10px; }
  .ma-modal__foot { flex-wrap: wrap; }
  .ma-modal__foot .btn { flex: 1; }
}

/* Pledges for a player */
.ma-pl__intro { margin-top: var(--space-6); }
.ma-pl__intro .kicker { margin-bottom: var(--space-2); }
.ma-pl__intro .ma-media__title { margin-bottom: var(--space-5); }
.ma-pl__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-6); }
.ma-pl__stats > div { background: var(--brand-sand); border-radius: 16px; padding: var(--space-4) var(--space-5); display: grid; gap: 2px; }
[data-theme="dark"] .ma-pl__stats > div { background: var(--color-surface-sand); }
.ma-pl__stats b { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.1; color: var(--ink); }
[data-theme="dark"] .ma-pl__stats b { color: var(--brand-yellow); }
.ma-pl__stats span { font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-pl__ev + .ma-pl__ev { margin-top: var(--space-6); }
.ma-pl__evhead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-divider); }
.ma-pl__evhead > div { display: grid; gap: 2px; min-width: 0; }
.ma-pl__evhead b { font-family: var(--font-display); font-size: var(--text-base); }
.ma-pl__evhead span { font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-pl__evhead .ma-pl__evtot { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-text); white-space: nowrap; }
.ma-pl__list { list-style: none; margin: 0; padding: 0; }
.ma-pl__row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); }
.ma-pl__row.is-me { background: linear-gradient(90deg, var(--brand-yellow-soft), transparent 70%); border-radius: 12px; padding-left: 10px; margin-left: -10px; }
[data-theme="dark"] .ma-pl__row.is-me { background: var(--color-surface-sand); }
.ma-pl__row .ma-av { flex: none; }
.ma-pl__row .ma-av--anon { background: var(--brand-sky); color: var(--brand-coral-deep); }
.ma-av--anon svg { width: 18px; height: 18px; }
.ma-pl__who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ma-pl__who b { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ma-pl__who small { font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-pl__amt { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.ma-pl__amt small { font-family: var(--font-body); font-weight: 600; font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-pl__note { margin: var(--space-5) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-anon { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--space-5); padding: var(--space-4); border-radius: 14px; background: var(--brand-sand); cursor: pointer; }
[data-theme="dark"] .ma-anon { background: var(--color-surface-sand); }
.ma-anon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-navy); flex: none; }
.ma-anon span { display: grid; gap: 2px; }
.ma-anon small { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width: 720px) {
  .ma-ptabs { display: grid; grid-template-columns: 1fr 1fr; }
  .ma-ptabs button { white-space: nowrap; padding: 11px 6px; }
  .ma-pl__stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ma-pl__stats > div { padding: 12px; }
  .ma-pl__stats b { font-size: 1.25rem; }
}
.ma-pl__list, .ma-pl__note { max-width: none; }
@media (max-width: 720px) { .ma-pl__stats { grid-template-columns: 1fr 1fr 1.5fr; } }

/* Sample accounts */
.ht-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-8); }
.ht-sample-card { background: var(--color-surface); border-radius: 24px; padding: clamp(var(--space-5), 3vw, var(--space-8)); box-shadow: 0 18px 40px rgb(7 44 78 / .07); display: flex; flex-direction: column; gap: var(--space-3); }
.ht-sample-card__tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-coral-deep); }
[data-theme="dark"] .ht-sample-card__tag { color: var(--brand-yellow); }
.ht-sample-card h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; }
.ht-sample-card p { color: var(--color-text-muted); flex: 1; }
.ht-cred { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: var(--space-2) 0 var(--space-3); }
.ht-cred > div { background: var(--brand-sand); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
[data-theme="dark"] .ht-cred > div { background: var(--color-surface-sand); }
.ht-cred dt { font-size: var(--text-xs); color: var(--color-text-muted); }
.ht-cred dd { margin: 0; font: 600 var(--text-base)/1.3 var(--font-body); color: var(--color-text); overflow-wrap: anywhere; user-select: all; }
.ht-sample-card .btn { align-self: flex-start; }
.ma-sample { display: grid; gap: 6px; margin-top: var(--space-6); padding: var(--space-5); border-radius: 18px; background: var(--color-surface); border: 1px dashed var(--color-border); }
.ma-sample > b { font-family: var(--font-display); font-size: var(--text-base); }
.ma-sample > span { font-size: var(--text-sm); color: var(--color-text-muted); }
.ma-sample small { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.6; }
.ma-sample small b { color: var(--color-text); font-weight: 600; }
.ma-sample--center { text-align: left; max-width: 560px; margin: var(--space-8) auto 0; }
.ma-sample__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; align-items: center; }
.ma-chiplink { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--color-border); background: var(--color-surface); color: var(--ink); font: 600 var(--text-xs)/1 var(--font-body); text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.ma-chiplink:hover { border-color: var(--brand-navy); background: var(--brand-sky); }
[data-theme="dark"] .ma-chiplink { color: var(--color-text); }
.ma-demo { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-6); border-radius: 20px; background: var(--brand-yellow-soft); border-left: 4px solid var(--brand-yellow); }
[data-theme="dark"] .ma-demo { background: var(--color-surface-sand); }
.ma-demo__txt { display: grid; gap: 4px; min-width: 0; }
.ma-demo__txt > b { font-family: var(--font-display); font-size: var(--text-base); color: var(--ink); }
[data-theme="dark"] .ma-demo__txt > b { color: var(--color-text); }
.ma-demo__txt > span { font-size: var(--text-sm); color: var(--color-text-muted); }
.ma-demo__try { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.ma-demo .btn { flex: none; }
@media (max-width: 720px) {
  .ht-samples { grid-template-columns: 1fr; }
  .ht-sample-card .btn { align-self: stretch; text-align: center; justify-content: center; }
  .ma-demo { flex-direction: column; align-items: stretch; padding: var(--space-5); }
}
.ma-fine a, .ht-note a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] .ma-fine a, [data-theme="dark"] .ht-note a { color: var(--brand-yellow); }
dl a[href$="privacy.html"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
[data-theme="dark"] dl a[href$="privacy.html"] { color: var(--brand-yellow); }

/* ---------- Locked photos: blurred until the family says yes ---------- */
.ma-lock { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; padding: var(--space-5); border-radius: 20px; background: var(--color-surface-sand); margin-top: var(--space-4); }
.ma-lock__tiles { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; isolation: isolate; }
.ma-lock__tile { position: relative; overflow: hidden; background: var(--brand-navy); }
.ma-lock__tile:first-child { grid-row: span 2; }
.ma-lock__tile img { width: 100%; height: 100%; object-fit: cover; filter: blur(16px) saturate(.9) brightness(.92); transform: scale(1.25); }
.ma-lock__tiles::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgb(10 61 107 / .18), rgb(10 61 107 / .38)); pointer-events: none; }
.ma-lock__badge { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); color: #0A3D6B; box-shadow: 0 10px 24px rgb(7 44 78 / .22); }
.ma-lock__badge svg { width: 24px; height: 24px; }
.ma-lock__txt { display: grid; gap: var(--space-2); align-content: center; }
.ma-lock__phrase { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; color: var(--color-text); font-weight: 600; }
.ma-lock__txt > span { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; }
.ma-lock__btn { justify-self: start; margin-top: var(--space-2); }
.ma-lock__state { display: flex; gap: 8px; align-items: flex-start; margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.ma-lock__state svg { width: 18px; height: 18px; flex: none; color: var(--brand-green-text); margin-top: 1px; }
.ma-lock__state--yes { color: var(--brand-green-text); }
.ma-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-yellow); flex: none; margin-top: 6px; box-shadow: 0 0 0 4px rgb(255 196 0 / .22); }
.ma-lock .ma-fine { text-align: left; }
.ma-lock--sm { grid-template-columns: 1fr; gap: var(--space-4); padding: 0; background: none; margin-top: var(--space-4); }
.ma-lock--sm .ma-lock__tiles { aspect-ratio: 16 / 9; }
.ma-lock--sm .ma-lock__phrase { font-size: var(--text-base); }
@media (max-width: 720px) { .ma-lock { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-4); } }

/* Code box */

/* More players to cheer on */
.ma-others__head { align-items: flex-end; }
.ma-others__head p { margin-top: 4px; max-width: 52ch; }
.ma-ocs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--space-5); }
.ma-oc { background: var(--color-surface); border-radius: 22px; padding: var(--space-5); box-shadow: 0 14px 32px rgb(7 44 78 / .06); display: flex; flex-direction: column; }
.ma-oc[hidden] { display: none; }
.ma-oc__head { display: flex; align-items: center; gap: 12px; }
.ma-oc__name { display: grid; flex: 1; min-width: 0; }
.ma-oc__name b { font-family: var(--font-display); font-size: var(--text-lg); }
.ma-oc__name b small { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text-muted); font-weight: 500; }
.ma-oc__name > small { color: var(--color-text-muted); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-oc__stat { text-align: right; display: grid; }
.ma-oc__stat b { font: 700 var(--text-2xl, 1.75rem)/1 var(--font-display); color: var(--ink); }
.ma-oc__stat small { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
.ma-oc__stat--wait small { font-weight: 600; }
.ma-more { justify-self: center; }

/* A family's yes or no */
.ma-ask { border: 1.5px solid rgb(255 196 0 / .5); }
.ma-ask__title { margin-top: var(--space-2); }
.ma-ask__title strong { color: var(--ink); }
.ma-ask > .ma-muted { margin-bottom: var(--space-4); max-width: 62ch; }
.ma-ask__row { display: flex; gap: 14px; align-items: center; padding: var(--space-4) 0; border-top: 1px solid var(--color-divider, var(--color-border)); flex-wrap: wrap; }
.ma-ask__who { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.ma-ask__who q { font-style: normal; color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.5; }
.ma-ask__who small { color: var(--color-text-muted); font-size: var(--text-xs); }
.ma-ask__act { display: flex; gap: 8px; }
.ma-sharing { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--color-surface-sand); margin-top: var(--space-4); font-size: var(--text-sm); }
.ma-sharing__p { display: inline-flex; gap: 8px; align-items: center; background: var(--color-surface); padding: 4px 6px 4px 12px; border-radius: 999px; }
.ma-sharing .ma-link { font-size: var(--text-xs); margin: 0; padding: 4px 6px; }

/* Sample email preview + one-click answer page */
.ma-lock__peek { margin-top: var(--space-2); padding: 0; border: 0; background: none; font: 600 var(--text-sm)/1.4 var(--font-body); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.ma-mail { border: 1px solid var(--color-divider); border-radius: 16px; overflow: hidden; background: var(--color-surface); }
.ma-mail__meta { display: grid; gap: 4px; padding: 12px 16px; background: var(--color-surface-sand); font-size: var(--text-xs); color: var(--color-text-muted); }
.ma-mail__meta b { color: var(--color-text); margin-right: 6px; }
.ma-mail__body { padding: 16px 18px 6px; font-size: var(--text-sm); line-height: 1.6; color: var(--color-text); }
.ma-mail__body p { margin: 0 0 12px; }
.ma-mail__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 !important; }
.ma-mail__small { font-size: var(--text-xs); color: var(--color-text-muted); }
.ap-section { min-height: 62vh; display: flex; align-items: center; }
.ap-wrap { max-width: 640px; width: 100%; }
.ap-card { text-align: center; padding: clamp(28px, 5vw, 48px); }
.ap-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-surface-sand); color: var(--ink); margin: 0 auto var(--space-4); }
.ap-ic svg { width: 30px; height: 30px; }
.ap-ic--yes { background: rgb(46 125 90 / .12); color: var(--brand-green-text); }
.ap-title { margin: var(--space-2) auto var(--space-4); max-width: 20ch; }
.ap-card .lede-sm { max-width: 46ch; margin: 0 auto; }
.ap-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--space-6); }
.ap-fine { margin-top: var(--space-4); }

/* Program intro on the Hit-a-Thon home */
.ht-program__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(var(--space-6), 4vw, var(--space-12)); align-items: center; }
.ht-program__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ht-program__home { color: var(--ink); font-weight: 600; text-decoration: none; margin-top: 4px; }
.ht-program__home:hover { text-decoration: underline; }
@media (max-width: 860px) { .ht-program__inner { grid-template-columns: 1fr; } .ht-program__links { flex-direction: row; flex-wrap: wrap; } }
.ht-player--empty { grid-column: 1 / -1; padding: 18px; border: 1px dashed var(--color-border); border-radius: var(--radius-md); color: var(--color-text-muted); background: var(--color-surface); }
.ht-player--empty a { color: var(--ink); font-weight: 600; margin-left: 6px; }

/* Demo vs real account label */
.ma-mode { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 var(--space-4); padding: 10px 14px; border-radius: var(--radius-md); font-size: var(--text-sm); }
.ma-mode b { font-weight: 700; }
.ma-mode--sample { background: var(--brand-yellow-soft); color: var(--ink-on-soft); }
.ma-mode--live { background: var(--color-surface-sand); color: var(--color-text); border-left: 3px solid var(--brand-green, #2e7d5b); }
.ma-preview-note { margin: 0 0 var(--space-4); padding: 10px 14px; border-radius: var(--radius-md); background: var(--brand-yellow-soft); color: var(--ink-on-soft); font-size: var(--text-sm); }

/* Pledge history ledger */
.ma-ledger { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--space-3); }
.ma-ledger > div { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 14px 16px; }
.ma-ledger span { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--color-text-muted); }
.ma-ledger b { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }
.ma-ledger small { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Registrations */
.ma-regs { display: grid; gap: 12px; }
.ht-reg-steps { list-style: none; padding: 0; margin: 0 0 var(--space-8); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); counter-reset: rs; }
.ht-reg-steps li { position: relative; background: var(--color-surface); border-radius: var(--radius-md); padding: 16px 16px 16px 58px; border: 1px solid var(--color-divider); }
.ht-reg-steps li::before { counter-increment: rs; content: counter(rs); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.ht-reg-steps b { display: block; color: var(--ink); }
.ht-reg-steps span { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 760px) { .ht-reg-steps { grid-template-columns: 1fr; } }
.ht-reg-root { max-width: 820px; margin: 0 auto; }
.ht-reg-note { max-width: 820px; margin: var(--space-6) auto 0; }
.ht-reg-soon .ma-actions { margin-top: var(--space-6); }
.ht-reg-form fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: 14px; }
.ht-reg-form legend { font-weight: 700; color: var(--ink); font-size: var(--text-lg); margin-bottom: 10px; padding: 0; }
.ht-reg-form select, .ht-reg-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); }
.ht-reg-email { margin: 0; }
.ma-chk { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--color-divider); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; }
.ma-chk input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand-navy); }
.ma-chk b { display: block; font-weight: 600; }
.ma-chk small { display: block; color: var(--color-text-muted); font-size: var(--text-sm); }

.ma-ledger > div { border-top: 3px solid var(--brand-navy-hover); }
.ma-ledger > div:nth-child(2) { border-top-color: var(--brand-green); }
.ma-ledger > div:nth-child(2) b { color: var(--brand-green-text); }
.ma-ledger > div:nth-child(3) { border-top-color: var(--brand-yellow); }
.ma-ledger > div:nth-child(4) { border-top-color: var(--brand-coral); }
[data-theme='dark'] .ma-ledger > div:nth-child(1) { border-top-color: #A9D2F5; }
.ht-sport img[src*="tennis-kid"] { object-position: 50% 62%; }
.ht-reg-root:has(.ht-reg-soon) { margin-bottom: var(--space-8); }
.ht-reg-soon { border-top: 4px solid var(--brand-yellow, #F4C430); }
.ht-reg-later { margin: 0 0 var(--space-4); color: var(--color-text-muted); }
.ht-reg-later b { color: var(--ink); }
img[src*="ht-home-plate"] { object-position: 50% 72%; }

/* Loading states that can never get stuck */
.ma-boot__wait { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; color: var(--color-text-muted); }
.ma-spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--color-divider); border-top-color: var(--color-primary); animation: maSpin .9s linear infinite; flex-shrink: 0; }
@keyframes maSpin { to { transform: rotate(360deg); } }
.ma-boot__slow { max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; animation: maReveal .4s ease 9s forwards; }
.ma-boot .ma-boot__wait { animation: maHide .2s ease 9s forwards; }
@keyframes maReveal { to { max-height: 900px; opacity: 1; visibility: visible; } }
@keyframes maHide { to { max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; } }
.ma-boot__slow, .ma-boot__nojs { color: var(--color-text); }
.ma-boot__slow h2, .ma-boot__nojs h2 { margin: 0 0 var(--space-3); }
.ma-boot .ma-actions { margin-top: var(--space-5); justify-content: center; }
@media (prefers-reduced-motion: reduce) { .ma-spin { animation-duration: 2.5s; } }

/* ---------- Event forms (waiver + photo and video release) ---------- */
.ma-modal--forms .ma-modal__box { width: min(720px, 100%); }
.ma-forms { display: grid; gap: var(--space-5); }
.ma-forms__intro { font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); }
.ma-forms__intro a { color: var(--brand-navy); font-weight: 600; }
.ma-forms__doc { max-height: 44vh; overflow-y: auto; padding: var(--space-5); border: 1px solid var(--color-divider); border-radius: 16px; background: var(--color-surface-sand, #F7F1E6); font-size: var(--text-sm); line-height: 1.65; color: var(--color-text); }
.ma-forms__doc:focus-visible { outline: 3px solid var(--focus-ring, rgb(10 61 107 / .4)); outline-offset: 2px; }
.ma-forms__doc h3 { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.25; color: var(--brand-navy); margin: var(--space-5) 0 var(--space-2); }
.ma-forms__doc h3:first-child { margin-top: 0; }
.ma-forms__doc h4 { font-size: var(--text-sm); font-weight: 700; margin: var(--space-4) 0 4px; }
.ma-forms__doc p + p { margin-top: var(--space-2); }
.ma-fs { border: 0; padding: 0; margin: 0; display: grid; gap: var(--space-3); min-width: 0; }
.ma-fs legend { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.ma-fs legend em { font-family: var(--font-body, inherit); font-style: normal; font-weight: 400; font-size: var(--text-sm); color: var(--color-text-muted); }
.ma-select { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--color-border); background: var(--color-bg); color: var(--color-text); font-family: inherit; font-size: var(--text-base); font-weight: 500; line-height: 1.3; }
.ma-f textarea.is-bad, .ma-chk:has(input.is-bad) { border-color: var(--color-error); }
.ma-sig { font-family: var(--font-display) !important; font-size: var(--text-lg) !important; letter-spacing: .01em; }
.ma-forms__record { white-space: pre-wrap; word-break: break-word; max-height: 55vh; overflow-y: auto; padding: var(--space-4); border-radius: 14px; background: var(--color-surface-sand, #F7F1E6); border: 1px solid var(--color-divider); font: 400 var(--text-xs)/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--color-text); margin-top: var(--space-3); }
[data-theme="dark"] .ma-forms__doc, [data-theme="dark"] .ma-forms__record { background: rgb(255 255 255 / .04); }
[data-theme="dark"] .ma-forms__doc h3, [data-theme="dark"] .ma-forms__intro a { color: var(--brand-yellow); }
/* Tall popups: header and buttons stay put, the middle scrolls */
.ma-modal__box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; }
.ma-modal__head, .ma-modal__foot { flex: none; }
.ma-modal__body { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.ma-modal--forms .ma-forms__doc { max-height: none; overflow: visible; }
@media (max-width: 520px) { .ma-modal { padding: 8px; } .ma-modal__box { max-height: calc(100dvh - 16px); border-radius: 20px; } .ma-modal--forms .ma-modal__body { padding: var(--space-5); } }

/* AceMate video */
.ht-watch-link { display: inline-flex; align-items: center; gap: 10px; margin-top: var(--space-5); color: #fff; font-weight: 600; text-decoration: none; }
.ht-watch-link:hover { color: var(--brand-yellow); }
.ht-watch-link__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-yellow); color: var(--brand-navy); }
.ht-watch-link__icon svg { width: 16px; height: 16px; margin-left: 2px; }
.ht-video__grid { display: grid; grid-template-columns: 1.1fr minmax(0, 380px); column-gap: clamp(var(--space-8), 6vw, var(--space-16)); row-gap: var(--space-6); align-items: center; justify-content: space-between; }
.ht-video__text p { margin-top: var(--space-4); max-width: 54ch; }
.ht-video__who { list-style: none; margin: var(--space-6) 0; padding: 0; display: grid; gap: var(--space-3); }
.ht-video__who li { display: grid; gap: 2px; padding: var(--space-3) var(--space-5); border-radius: 14px; background: rgb(255 255 255 / .06); border-left: 3px solid var(--brand-yellow); }
.ht-video__who span { color: var(--on-navy-muted); }
.ht-video__media { text-align: center; grid-column: 2; grid-row: 1 / span 2; }
.ht-video__text { grid-column: 1; grid-row: 1; align-self: end; }
.ht-video__extra { grid-column: 1; grid-row: 2; align-self: start; }
.ht-video__extra .ht-video__who { margin-top: 0; }
.ht-video__frame { position: relative; width: 100%; max-width: 380px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 24px 60px rgb(0 0 0 / .35); outline: 3px solid var(--brand-yellow); outline-offset: 6px; }
.ht-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ht-video__yt { display: inline-block; margin-top: var(--space-5); color: var(--brand-yellow); font-weight: 600; font-size: var(--text-sm); }
.ht-video__yt { min-height: 44px; padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; }
.ht-video__help { color: var(--on-navy-muted); font-size: var(--text-sm); line-height: 1.5; max-width: 48ch; margin: 0 auto; }
@media (max-width: 860px) {
  .ht-video__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .ht-video__text, .ht-video__media, .ht-video__extra { grid-column: 1; grid-row: auto; }
  .ht-video__frame { max-width: 320px; }
}

.ht-video--wide .ht-video__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.ht-video--wide .ht-video__frame { max-width: none; aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .ht-video--wide .ht-video__grid { grid-template-columns: 1fr; } .ht-video--wide .ht-video__frame { max-width: none; } }
