/* ==========================================================================
   After Court - public site
   ========================================================================== */

/* Header ------------------------------------------------------------------ */
.site-header { position: sticky; top: 0; z-index: 70; padding-top: var(--safe-top); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.02rem; font-weight: 900; letter-spacing: .08em; }
.brand-copy small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.account-trigger { display: flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.menu-who { padding: 8px 12px 4px; display: grid; gap: 2px; min-width: 0; max-width: 260px; }
.menu-who strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-who small { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-theme .sun { display: none; }
:root[data-theme="dark"] .menu-theme .sun { display: inline; }
:root[data-theme="dark"] .menu-theme .moon { display: none; }
.account-trigger:hover { background: var(--surface-2); }
.account-trigger strong { font-size: .88rem; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-trigger .avatar { width: 34px; height: 34px; font-size: .8rem; }
.nav-toggle { display: none; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

@media (max-width: 900px) {
  .header-inner { gap: 10px; }
  .nav-toggle { display: inline-grid; }
  .brand-copy small { display: none; }
  .nav { position: fixed; inset: calc(var(--header-h) + var(--safe-top)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-110%); visibility: hidden; transition: transform .22s ease, visibility .22s; margin: 0; z-index: -1; }
  body.nav-open .nav { transform: none; visibility: visible; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 60; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .account-trigger strong { display: none; }
  .account-trigger { padding: 4px; }
  .hide-mobile { display: none !important; }
}

.announce { background: var(--ink); color: #fff; font-size: .88rem; font-weight: 600; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce a { color: var(--lime); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

main.site-main { min-height: 60vh; }

/* Footer ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #c9d4cc; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 60px 0 40px; }
.footer-top h4 { color: #fff; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.footer-top a { display: block; padding: 5px 0; color: #aebcb3; font-size: .94rem; }
.footer-top a:hover { color: var(--lime); }
.footer-brand p { color: #93a39a; max-width: 36ch; font-size: .94rem; margin-top: 14px; }
.footer-brand .brand-copy small { color: #8a9b91; }
.footer-brand .brand { color: #fff; }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.social-row a { display: inline-flex; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .82rem; font-weight: 700; color: #dfe8e2; }
.social-row a:hover { border-color: var(--lime); color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #81928a; }
.footer-bottom a { display: inline; color: #a2b2a9; padding: 0; margin-left: 18px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; } .footer-bottom a { margin: 0 14px 0 0; } }

/* Hero -------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 520px at 85% -10%, #16664d 0%, transparent 60%), linear-gradient(160deg, #0a2a20 0%, #0b1411 70%); color: #fff; }
.hero-bg { position: absolute; inset: 0; background-image: url("../img/court.svg"); background-repeat: no-repeat; background-position: 108% 50%; background-size: min(920px, 90vw); opacity: .13; pointer-events: none; transform: rotate(-4deg) scale(1.1); }
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .38; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 15, .92), rgba(8, 20, 15, .35)); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 84px 20px 96px; }
.hero-copy .eyebrow { color: var(--lime); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; letter-spacing: -.035em; line-height: .96; text-transform: uppercase; font-style: italic; margin-bottom: 22px; }
.hero h1 .accent { color: var(--lime); }
.hero p.lead { font-size: 1.18rem; color: #c3d0c8; max-width: 52ch; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .hero-ctas .btn { flex: 1 1 100%; justify-content: center; } }
.hero-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); }
.hero-card .eyebrow { margin-bottom: 14px; }
.hero-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.hero-card .meta { color: #b3c3b9; font-size: .94rem; margin-bottom: 18px; }
.hero-card .meter { background: rgba(255, 255, 255, .14); }
.hero-card .meter > span { background: var(--lime); }
.hero-empty { text-align: center; padding: 20px 8px; }
.hero-empty img { width: 72px; margin: 0 auto 14px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 56px 16px 64px; } }

.stat-strip { position: relative; margin-top: -42px; z-index: 2; }
.stat-strip .inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.stat-strip .stat { background: var(--surface); padding: 22px 24px; }
.stat strong { display: block; font-size: 2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.stat > span { color: var(--muted); font-size: .84rem; font-weight: 600; }

/* Feature blocks ------------------------------------------------------------ */
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: var(--lime); display: grid; place-items: center; margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 2.2rem; font-weight: 900; font-style: italic; color: var(--lime); letter-spacing: -.04em; margin-bottom: 10px; }
.step h3 { color: #fff; margin-bottom: 6px; }
.step p { color: #9fb0a5; margin: 0; font-size: .94rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Event cards ----------------------------------------------------------------- */
.event-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-cover { position: relative; aspect-ratio: 16 / 7; background: linear-gradient(135deg, #0f4d3a, #0a2a20); background-size: cover; background-position: center; display: flex; align-items: flex-start; justify-content: space-between; padding: 14px; overflow: hidden; }
.event-cover::before { content: ""; position: absolute; inset: 0; background-image: url("../img/court.svg"); background-size: 130%; background-position: 60% 50%; opacity: .14; }
.event-cover.has-image::before { display: none; }
.event-cover.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55)); }
.event-cover > * { position: relative; z-index: 1; }
.event-cover .logo-mini { width: 44px; height: 44px; border-radius: 12px; background: #fff; object-fit: cover; padding: 0; }
.event-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.event-head { display: flex; gap: 14px; align-items: flex-start; }
.date-chip { flex: none; width: 56px; text-align: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); padding: 7px 0 8px; line-height: 1; }
.date-chip small { display: block; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ok); margin-bottom: 4px; }
:root[data-theme="dark"] .date-chip small { color: var(--lime); }
.date-chip strong { font-size: 1.5rem; font-weight: 900; letter-spacing: -.03em; }
.event-head h3 { margin: 0 0 4px; font-size: 1.2rem; }
.event-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.division-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.event-foot strong { color: var(--text); }

/* Event detail ----------------------------------------------------------------- */
.event-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0f4d3a, #0a2a20); background-size: cover; background-position: center; }
.event-hero::before { content: ""; position: absolute; inset: 0; background-image: url("../img/court.svg"); background-size: 70%; background-position: 110% 40%; background-repeat: no-repeat; opacity: .1; }
.event-hero.has-image::before { display: none; }
.event-hero.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 16, 12, .9), rgba(6, 16, 12, .45)); }
.event-hero .container { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; display: flex; gap: 24px; align-items: center; }
.event-hero .logo { width: 88px; height: 88px; border-radius: 22px; background: #fff; object-fit: cover; flex: none; box-shadow: var(--shadow); }
.event-hero .logo-fallback { display: grid; place-items: center; background: var(--lime); }
.event-hero .logo-fallback img { width: 56px; }
.event-hero h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin-bottom: 10px; }
.event-hero p { color: #c5d3ca; max-width: 62ch; margin: 0 0 14px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.event-meta .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #fff; }
@media (max-width: 640px) { .event-hero .container { flex-direction: column; align-items: flex-start; padding-top: 36px; padding-bottom: 36px; } .event-hero .logo { width: 68px; height: 68px; } }

.info-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 36px; }
.info-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-tile .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--ok); }
.info-tile .ico svg { width: 20px; height: 20px; }
.info-tile small { display: block; color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.info-tile strong { font-size: .98rem; }

.division-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.division-card + .division-card { margin-top: 14px; }
.division-card.is-full { opacity: .85; }
.division-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.division-title h3 { margin: 0; font-size: 1.25rem; }
.division-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 14px 0 12px; }
.division-facts small { display: block; color: var(--muted); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.division-facts strong { font-size: 1.1rem; }
.division-facts em { font-style: normal; color: var(--muted); font-weight: 500; font-size: .85rem; }
.division-card .cta { min-width: 190px; }
@media (max-width: 720px) { .division-card { grid-template-columns: 1fr; gap: 16px; } .division-card .cta { min-width: 0; } .division-card .cta .btn { width: 100%; } }

.prose { max-width: 70ch; line-height: 1.7; }
.prose h2, .prose h3 { margin-top: 1.6em; }

.results-table td:first-child { width: 60px; font-weight: 900; font-size: 1.1rem; }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; font-size: .85rem; background: var(--surface-2); }
.medal.m1 { background: #ffd54a; color: #4a3500; } .medal.m2 { background: #d6dbe0; color: #2b3138; } .medal.m3 { background: #e0a878; color: #4a2a0c; }

/* Wizard (registration) --------------------------------------------------------- */
.wizard { max-width: 760px; margin: 0 auto; }
.wizard-head { margin-bottom: 24px; }
.wizard-event { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 14px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 24px; }
.wizard-event strong { font-size: 1rem; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; counter-reset: ps; }
.progress-steps li { list-style: none; position: relative; padding-top: 14px; font-size: .78rem; font-weight: 700; color: var(--faint); border-top: 4px solid var(--line); border-radius: 4px; counter-increment: ps; }
.progress-steps li::before { content: counter(ps) ". "; }
.progress-steps li.done { color: var(--text); border-top-color: var(--ok); }
.progress-steps li.current { color: var(--text); border-top-color: var(--lime-deep); }
.progress-steps { padding: 0; margin-bottom: 28px; }
.reg-step { display: none; } .reg-step.active { display: block; animation: flash-in .25s ease; }
.reg-step h2 { font-size: 1.4rem; margin-bottom: 4px; }
.reg-step .step-sub { color: var(--muted); margin-bottom: 22px; }
.reg-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.inline-error { padding: 12px 14px; border-radius: 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: .92rem; margin-top: 14px; }
.partner-state { margin-top: 12px; }
.partner-found { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); }
.partner-found .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 900; flex: none; }
.partner-found strong { display: block; color: var(--text); }
.partner-found small { color: var(--muted); }
.partner-missing { padding: 16px; border-radius: var(--radius); background: var(--warn-bg); color: var(--warn); }
.partner-missing p { margin: 6px 0 0; font-size: .92rem; }
.fee-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.fee-box .row-line { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.fee-box .row-line:last-child { border-bottom: 0; }
.fee-box .total { background: var(--surface-2); font-weight: 800; font-size: 1.1rem; }
.pay-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 20px; align-items: center; }
.pay-box img.qr { width: 156px; height: 156px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; border: 1px solid var(--line); }
.pay-box h3 { margin-bottom: 4px; }
@media (max-width: 560px) { .pay-box { grid-template-columns: 1fr; } .pay-box img.qr { margin: 0 auto; } }
.review-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.review-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.review-list > div:last-child { border-bottom: 0; }
.review-list small { color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .7rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.choice:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }

/* Auth modal ------------------------------------------------------------------- */
.auth-modal { width: min(440px, calc(100vw - 24px)); }
.auth-modal .modal-body { padding: 8px 28px 28px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 8px; }
.auth-top .brand img { width: 34px; height: 34px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); margin: 12px 28px 6px; }
.auth-tab { border: 0; background: transparent; padding: 10px; border-radius: 999px; font-weight: 800; font-size: .92rem; color: var(--muted); }
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.auth-form { display: none; gap: 14px; margin-top: 14px; }
.auth-form.active { display: grid; }
.auth-form h3 { margin: 4px 0 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; }
.google-btn:hover { background: var(--surface-2); }
.google-g { font-weight: 900; color: #4285f4; }
.social-auth { display: grid; gap: 10px; }
.fb-btn { background: #1877f2; border-color: #1877f2; color: #fff; }
.fb-btn:hover { background: #166fe5; }
.fb-f { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #1877f2; font: 900 17px/1 Arial, sans-serif; padding-top: 4px; box-sizing: border-box; }
.auth-switch { text-align: center; color: var(--muted); font-size: .9rem; margin: 0; }
.auth-switch button, .forgot-link { border: 0; background: none; color: var(--ok); font-weight: 800; padding: 0; }
:root[data-theme="dark"] .auth-switch button, :root[data-theme="dark"] .forgot-link { color: var(--lime); }
.forgot-link { justify-self: end; font-size: .86rem; }
.identity-note { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .86rem; color: var(--muted); }
.identity-note strong { display: block; color: var(--text); }

/* Membership ------------------------------------------------------------------- */
.membership-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.price-card { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 20px); background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 28px; overflow: hidden; }
.price-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("../img/court.svg"); background-size: 140%; background-position: 50% 110%; background-repeat: no-repeat; opacity: .08; }
.price-card > * { position: relative; }
.price-card .amount { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--lime); }
.price-card .amount small { font-size: .95rem; color: #9fb0a5; font-weight: 600; letter-spacing: 0; }
.perk-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.perk-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: #d6e0d9; }
.perk-list li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .72rem; font-weight: 900; display: grid; place-items: center; margin-top: 2px; }
@media (max-width: 960px) { .membership-layout { grid-template-columns: 1fr; } .price-card { position: relative; top: auto; order: -1; } }

.step-title { display: flex; gap: 14px; align-items: center; margin: 4px 0 18px; }
.step-title .num { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 900; font-size: .85rem; display: grid; place-items: center; flex: none; }
.step-title h2 { margin: 0; font-size: 1.25rem; }
.step-title p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.form-section + .form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

.member-card { position: relative; overflow: hidden; border-radius: 24px; padding: 30px; color: #fff; background: radial-gradient(500px 300px at 100% 0%, #1b7a5a 0%, transparent 60%), linear-gradient(150deg, #0c3a2c, #0b1411); box-shadow: var(--shadow-lg); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.member-card::before { content: ""; position: absolute; inset: 0; background-image: url("../img/court.svg"); background-size: 120%; background-position: 80% 90%; background-repeat: no-repeat; opacity: .1; }
.member-card > * { position: relative; }
.member-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.member-card .top img { width: 44px; }
.member-card .name { font-size: 1.7rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.member-card .ref { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--lime); font-weight: 700; }
.member-card .bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.member-card small { display: block; color: #9fb0a5; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.member-card .bottom strong { font-size: 1rem; }

/* Shop --------------------------------------------------------------------------- */
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; height: 100%; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-img { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.product-img { flex: none; }
.product-img img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img img.photo { transform: scale(1.04); }
.product-img .placeholder { width: 38%; opacity: .5; }
.product-img .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.product-info small { color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; }
.product-info h3 { margin: 0; font-size: 1.02rem; }
.price { font-weight: 800; font-size: 1.05rem; }
.price s { color: var(--faint); font-weight: 500; font-size: .88rem; margin-left: 6px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-pills a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 700; font-size: .88rem; }
.filter-pills a.active, .filter-pills a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
:root[data-theme="dark"] .filter-pills a.active, :root[data-theme="dark"] .filter-pills a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }

.product-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); }
.gallery-thumbs button.active { border-color: var(--ink); }
:root[data-theme="dark"] .gallery-thumbs button.active { border-color: var(--lime); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.option-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.option span { display: inline-flex; flex-direction: column; align-items: center; min-width: 56px; padding: 11px 16px; border-radius: 12px; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: .92rem; line-height: 1.2; }
.option span em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--warn); margin-top: 2px; }
.option input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
:root[data-theme="dark"] .option input:checked + span { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.option input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.option input:focus-visible + span { box-shadow: var(--focus); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 46px; min-height: 44px; border: 0; text-align: center; padding: 0; border-radius: 0; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 860px) { .product-page { grid-template-columns: 1fr; gap: 28px; } }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { width: 84px; height: 84px; border-radius: 14px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { margin: 0 0 2px; font-size: 1rem; }
.summary { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 20px); }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--muted); }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; color: var(--text); font-size: 1.2rem; font-weight: 900; }
.summary .line.discount { color: var(--ok); font-weight: 700; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } .summary { position: static; } .cart-line { grid-template-columns: 64px 1fr; } .cart-line .thumb { width: 64px; height: 64px; } .cart-line .line-end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; } }

.timeline { display: flex; flex-wrap: wrap; gap: 6px; }
.order-card { padding: 22px; }
.order-items { display: grid; gap: 6px; margin: 14px 0; font-size: .94rem; }
.order-items div { display: flex; justify-content: space-between; gap: 12px; }

/* Dashboard ----------------------------------------------------------------------- */
.dash-head { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.dash-head .who { display: flex; gap: 18px; align-items: center; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .dash-grid { grid-template-columns: 1fr; } }
.reg-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.reg-row + .reg-row { margin-top: 12px; }
.reg-row .main { min-width: 0; }
.reg-row .main small { color: var(--muted); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.reg-row .main strong { display: block; font-size: 1.02rem; }
.reg-row .main span { color: var(--muted); font-size: .9rem; }
.reg-row .side { text-align: right; display: grid; gap: 8px; justify-items: end; flex: none; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .05em; font-size: .85rem; color: var(--muted); }
@media (max-width: 560px) { .reg-row { flex-direction: column; align-items: flex-start; } .reg-row .side { text-align: left; justify-items: start; } }

/* Message / status ------------------------------------------------------------------ */
.message-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 48px 32px; }
.message-card .big { font-size: 4rem; font-weight: 900; letter-spacing: -.05em; color: var(--lime-deep); line-height: 1; margin-bottom: 8px; font-style: italic; }
.status-hero { text-align: center; padding: 40px 28px; }
.status-hero .badge { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center; font-size: 2rem; font-weight: 900; background: var(--lime); color: var(--ink); }
.status-hero .badge.warn { background: var(--warn-bg); color: var(--warn); }
.status-hero .badge.bad { background: var(--bad-bg); color: var(--bad); }
.code-box { display: inline-block; margin: 8px 0 24px; padding: 16px 28px; border-radius: var(--radius); background: var(--ink); color: var(--lime); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.6rem; letter-spacing: .12em; font-weight: 800; }
.code-box small { display: block; font-family: var(--font); font-size: .66rem; color: #9fb0a5; letter-spacing: .16em; margin-bottom: 4px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 4px; font-weight: 800; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 4px 18px; margin: 0; max-width: 70ch; }

.cta-band { background: var(--lime); color: var(--ink); border-radius: var(--radius-lg); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(11, 20, 17, .75); max-width: 50ch; }
.cta-band .btn-dark { background: var(--ink); color: #fff; }

.contact-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.contact-card p { margin: 0 0 6px; color: var(--muted); white-space: pre-line; }

.gate-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--ink); }
.gate-card { max-width: 420px; width: 100%; background: var(--surface); border-radius: var(--radius-lg); padding: 32px; }
.qty { align-self: flex-start; }
.nav .nav-theme { display: none; }
@media (max-width: 520px) {
  .header-actions .theme-toggle { display: none; }
  .nav .nav-theme { display: block; width: 100%; text-align: left; padding: 14px 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: .92rem; }
  .header-inner { gap: 8px; }
}

/* Page headings: stacked, left aligned */
.section-head.stack { display: block; }
.section-head.stack h1, .section-head.stack h2 { margin: 0 0 6px; }
.section-head.stack p { max-width: 62ch; margin: 8px 0 0; }
/* A single event gets a wide card on desktop */
@media (min-width: 900px) {
  .events-grid.single { grid-template-columns: minmax(0, 1fr); }
  .events-grid.single .event-card { flex-direction: row; }
  .events-grid.single .event-cover { aspect-ratio: auto; flex: 1.35; min-height: 300px; }
  .events-grid.single .event-body { flex: 1; justify-content: center; padding: 28px 30px; }
}
.section-head h1 { margin: 0; }

/* Header: one menu on phones + admin shortcut ----------------------------------- */
.nav-title, .nav-mobile-only { display: none; }
.admin-btn { width: auto; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .86rem; }
.admin-btn svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .nav { max-height: calc(100dvh - var(--header-h) - var(--safe-top)); overflow-y: auto; overscroll-behavior: contain; }
  .nav-mobile-only { display: flex; flex-direction: column; gap: 2px; }
  .nav-title { display: block; padding: 16px 12px 4px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: .8; }
  .nav > .nav-title:first-child { padding-top: 2px; }
  .nav .nav-admin { display: flex; align-items: center; gap: 10px; color: var(--text); }
  .nav .nav-admin svg { width: 18px; height: 18px; }
  .nav-foot { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
  .nav-foot form { margin: 0; }
  .nav .nav-theme, .nav .nav-signout { display: block; width: 100%; text-align: left; padding: 14px 12px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); border-radius: 12px; }
  .nav .nav-theme:hover, .nav .nav-signout:hover { background: var(--surface-2); color: var(--text); }
  .header-actions .theme-toggle { display: none; }
  .admin-btn { width: 40px; padding: 0; justify-content: center; }
  .admin-btn span { display: none; }
}

/* ==========================================================================
   Open Play
   ========================================================================== */
.op-in-box { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--lime); color: var(--ink); }
.op-in-box h2 { margin: 0 0 4px; font-size: 1.35rem; color: var(--ink); }
.op-in-box p { margin: 2px 0; font-weight: 600; color: var(--ink); }
.op-in-box .op-ref { font-weight: 500; font-size: .85rem; opacity: .75; margin-top: 6px; }
.op-check { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--ink); color: var(--lime); display: inline-flex; align-items: center; justify-content: center; }
.op-check svg { width: 24px; height: 24px; }
.op-cancel { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.op-cancel button { min-height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--faint); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.op-cancel button:hover { color: var(--muted); }
.op-cancel span { color: var(--faint); font-size: .78rem; }
.op-pay-title { font-size: clamp(1.3rem, 4vw, 1.8rem); text-transform: uppercase; margin: 6px 0 8px; }
.op-timer { font-weight: 600; margin-bottom: 12px; }
.op-timer b { font-variant-numeric: tabular-nums; }
/* Home page: Open Play carousel (swipe on phones) */
.show-mobile { display: none; }
@media (max-width: 900px) { .show-mobile { display: flex; } }
.op-home { padding-bottom: 32px; }
.op-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 4px 2px 14px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.op-slide { scroll-snap-align: start; display: flex; min-height: 168px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.op-slide:hover { border-color: var(--line-strong); }
:root { --op-block: #e6e7e2; --op-block-line: #d3d5cd; }
:root[data-theme="dark"] { --op-block: #1e2924; --op-block-line: #2c3a33; }
.op-slide-date { width: 76px; flex: none; background: var(--op-block); border-right: 1px solid var(--op-block-line); color: var(--text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.op-slide-date span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.op-slide-date strong { font-size: 2rem; font-weight: 900; line-height: 1; }
.op-slide.is-mine { border: 2px solid var(--court); }
.op-slide.is-mine .op-slide-date { background: var(--lime); border-right-color: var(--lime); color: var(--ink); }
.op-slide.is-mine .op-slide-date span { color: var(--court); }
.op-slide-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.op-slide-time { font-size: .8rem; font-weight: 700; color: var(--muted); }
.op-slide-body h3 { margin: 0; font-size: .98rem; font-weight: 800; line-height: 1.3; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-slide-venue { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-slide-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: .88rem; }
.op-slide-foot strong { font-weight: 900; font-size: 1.05rem; margin-left: auto; white-space: nowrap; }
.op-slide-foot .op-in { flex: none; white-space: nowrap; align-self: center; }
.op-slide-full { font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.op-slide-all { align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: var(--surface-2); font-weight: 800; min-width: 180px; }
.op-slide-all b { font-size: 1.6rem; }
.op-home-all { margin-top: 6px; }
@media (max-width: 900px) {
  .op-rail { grid-auto-columns: 86%; margin: 0 -20px; padding: 4px 20px 14px; scroll-padding-left: 20px; }
}
@media (max-width: 640px) {
  .op-rail { margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-left: 16px; }
}
.op-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.op-tabs a { min-height: 44px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: .95rem; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.op-tabs a:hover { color: var(--text); }
.op-tabs a.active { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.op-day { font-size: 1rem; font-weight: 700; color: var(--muted); margin: 28px 0 12px; }
.op-day:first-of-type { margin-top: 4px; }
.op-list { display: grid; gap: 12px; }
.op-card-wrap { position: relative; }
.op-card-share { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.op-card-share:hover { color: var(--text); border-color: var(--line-strong); }
.op-card-share svg { width: 18px; height: 18px; }
.op-card-share span:not(.sr-only) { display: none; }
.op-share { display: inline-flex; align-items: center; gap: 8px; }
.op-share svg { width: 16px; height: 16px; }
.op-card { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.op-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.op-card.is-mine { border: 2px solid var(--court); }
:root[data-theme="dark"] .op-card.is-mine { border-color: var(--lime); }
.op-card.is-mine .op-when { background: var(--lime); border-right-color: var(--lime); }
.op-card.is-mine .op-when strong, .op-card.is-mine .op-when span { color: var(--ink); }
.op-in { align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: var(--court); color: var(--lime); }
.op-when { width: 112px; flex: none; background: var(--op-block); border-right: 1px solid var(--op-block-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 6px; text-align: center; }
.op-when strong { font-size: 1rem; font-weight: 800; }
.op-when span { font-size: .7rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.op-badge { margin-top: 4px; font-style: normal; font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--lime); }
.op-badge-bad { background: var(--bad-bg); color: var(--bad); }
.op-badge-done { background: var(--surface); color: var(--muted); border: 1px solid var(--line-strong); }
.op-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.op-body h3 { margin: 0; font-size: 1rem; font-weight: 800; line-height: 1.3; text-transform: uppercase; }
.op-venue { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9rem; }
.op-venue svg { width: 16px; height: 16px; flex: none; }
.op-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.op-meta strong { font-weight: 800; }

.op-hero { --sun: #ffc21a; --sun-2: #ffa31a; --sun-ink: #2a1700; position: relative; overflow: hidden; background: var(--sun); color: var(--sun-ink); padding: 18px 0 30px; }
.op-hero::before { content: ""; position: absolute; right: -70px; top: -40px; width: 300px; height: 300px; border: 4px solid rgba(42, 23, 0, .14); border-radius: 28px; transform: rotate(-12deg); pointer-events: none; }
.op-hero::after { content: ""; position: absolute; right: 60px; top: -40px; width: 4px; height: 340px; background: rgba(42, 23, 0, .1); transform: rotate(-12deg); pointer-events: none; }
.op-hero > .container-mid { position: relative; z-index: 1; }
.op-hero h1 { color: var(--sun-ink); font-size: clamp(1.7rem, 6vw, 2.6rem); font-weight: 900; font-style: normal; line-height: 1.08; margin: 12px 0 14px; text-transform: uppercase; letter-spacing: -.015em; max-width: 22ch; }
.op-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.op-share-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sun-ink); color: var(--sun); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s ease; }
.op-share-btn:hover, .op-share-btn:focus-visible { transform: scale(1.06); }
.op-share-btn svg { width: 20px; height: 20px; }
.op-back { color: var(--sun-ink); font-size: .9rem; font-weight: 700; opacity: .8; }
.op-back:hover { opacity: 1; color: var(--sun-ink); }
.op-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.op-pill-kind { background: var(--sun-ink); color: var(--sun); font-weight: 800; letter-spacing: .06em; }
.op-pill-soft { background: rgba(42, 23, 0, .12); color: var(--sun-ink); font-weight: 800; letter-spacing: .04em; }
.op-pill-live { background: #fff; color: #c0392b; font-weight: 800; letter-spacing: .04em; }
.op-facts { display: flex; flex-direction: column; gap: 6px; color: var(--sun-ink); font-size: .98rem; font-weight: 600; }
.op-facts span { display: flex; gap: 8px; align-items: flex-start; }
.op-facts svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.op-share { margin-top: 16px; }
.op-desc { white-space: pre-line; margin-bottom: 24px; }
.op-players-head { margin: 8px 0 16px; }
.op-players-head h2 { margin: 0; font-size: 1.3rem; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 10px; margin-bottom: 28px; }
.op-player { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.op-player strong { font-size: .9rem; line-height: 1.25; word-break: break-word; }
.op-photo { width: 76px; height: 76px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--surface); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; flex: none; color: var(--text); }
.op-photo img { width: 100%; height: 100%; object-fit: cover; }
.op-dupr { font-size: .8rem; font-weight: 700; color: var(--info); }
.op-note { font-size: .8rem; color: var(--muted); }
.op-join h2 { margin: 0 0 6px; font-size: 1.3rem; }
.op-me { display: flex; align-items: center; gap: 12px; padding: 4px 0 2px; }
.op-me .op-photo { width: 40px; height: 40px; font-size: .95rem; box-shadow: none; }
.op-me > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.op-me .muted { font-size: .85rem; }
.op-join .field input + input { margin-top: 8px; }
.op-join input[hidden], .op-join button[hidden], .op-join [hidden] { display: none !important; }
.op-guests { display: grid; gap: 10px; }
.op-guest { display: grid; gap: 8px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.op-guest-top { display: flex; align-items: center; gap: 10px; }
.op-guest-n { font-size: .82rem; font-weight: 800; color: var(--muted); }
.op-guest-top .op-seg { margin-left: auto; }
.op-guest-top .op-seg button { min-height: 30px; padding: 0 12px; font-size: .8rem; }
.op-remove { border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: 6px 2px; }
.op-remove:hover { color: var(--bad); }
.op-add-player { justify-self: start; border: 0; background: none; padding: 6px 0; font: inherit; font-weight: 800; color: var(--court); cursor: pointer; }
:root[data-theme="dark"] .op-add-player { color: var(--lime); }
.op-add-player span { font-weight: 600; color: var(--muted); font-size: .86rem; }
.op-accepts { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.op-accepts .check > span { font-weight: 600; }
.op-accepts small { display: block; margin-top: 2px; font-weight: 500; }
.op-doc-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--info); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.op-accepts .op-policy { margin: -4px 0 4px 34px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .86rem; }
.op-seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 3px; justify-self: start; }
.op-seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.op-seg button.on { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .op-seg button.on { background: var(--lime); color: var(--ink); }
.op-guest-input { position: relative; }
.op-guest-input input { width: 100%; padding-right: 44px; }
.op-guest-input input[readonly] { background: var(--surface-2); font-weight: 700; }
.op-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; font-size: 1.3rem; color: var(--muted); cursor: pointer; }
.op-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.op-suggest button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border: 0; background: transparent; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.op-suggest button + button { border-top: 1px solid var(--line); }
.op-suggest button:hover, .op-suggest button:focus-visible { background: var(--surface-2); }
.op-suggest .op-photo { width: 36px; height: 36px; font-size: .8rem; box-shadow: none; }
.op-suggest span:not(.op-photo) { flex: 1; font-weight: 600; }
.op-suggest em { font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.op-suggest-empty { padding: 12px 14px; color: var(--muted); font-size: .88rem; }
.op-tag { justify-self: start; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.op-join details { margin-top: 4px; font-size: .88rem; }
.op-join summary { cursor: pointer; color: var(--info); font-weight: 600; }
.op-policy { white-space: pre-line; color: var(--muted); padding: 8px 0; max-height: 240px; overflow: auto; }
.op-total { background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 6px; font-size: .95rem; }
.op-line { display: flex; justify-content: space-between; gap: 12px; }
.op-line[hidden] { display: none; }
.op-grand { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 800; font-size: 1.05rem; }
@media (max-width: 520px) {
  .op-when { width: 92px; }
  .op-photo { width: 64px; height: 64px; }
  .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 6px; }
  .op-player strong { font-size: .8rem; }
}
.op-badge-live { background: #c0392b; color: #fff; }
.op-in-due { background: var(--warn-bg); color: var(--warn); }
.op-card.is-owing { border: 2px solid var(--warn); }

/* Phone: app-style bottom tabs. The top bar keeps logo, admin shield and cart. */
.tabbar { display: none; }
.me-page { padding-top: 20px; }
.me-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.me-who { display: grid; gap: 4px; min-width: 0; }
.me-who strong { font-size: 1.2rem; font-weight: 800; }
.me-who > span:not(.pill) { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.me-who .pill { justify-self: start; margin-top: 2px; }
.me-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.me-title { padding: 12px 16px 6px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.me-group a, .me-group button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 16px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.me-group .me-title + a, .me-group .me-title + button { border-top: 0; }
.me-group a:hover, .me-group button:hover { background: var(--surface-2); }
.me-group a > span, .me-group button > span { flex: 1; }
.me-group svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.me-group a > svg:last-child { width: 16px; height: 16px; }
.me-theme .sun-label { display: none; }
:root[data-theme="dark"] .me-theme .sun-label { display: inline; }
:root[data-theme="dark"] .me-theme .moon-label { display: none; }
.me-out { margin: 8px 0 0; }
.me-out button { width: 100%; min-height: 50px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--bad); font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 900px) {
  .tabbar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 6px calc(4px + var(--safe-right)) calc(6px + env(safe-area-inset-bottom)) calc(4px + var(--safe-left)); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 0; border: 0; background: none;
    font: inherit; font-size: .68rem; font-weight: 700; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--text); }
  .tabbar a.on > svg, .tabbar a.on .tab-avatar { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 14px; width: 52px; height: 28px; box-sizing: border-box; }
  .tab-avatar { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; }
  .tab-avatar img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin: auto; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .nav-toggle, .site-header details.menu, .header-actions .theme-toggle { display: none !important; }
  .nav { display: none; }
  .header-actions .btn[data-open-auth="signin"] { display: none; }
}
.me-theme > i { display: inline-flex; font-style: normal; }

/* Phone cart: badge on the Shop tab and a "View cart" bar inside the shop */
.shop-cartbar { display: none; }
@media (max-width: 900px) {
  .header-actions .hdr-cart { display: none; }
  .tabbar .tab-ic { position: relative; display: inline-flex; font-style: normal; }
  .tabbar a.on .tab-ic > svg { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 14px; width: 52px; height: 28px; box-sizing: border-box; }
  .tab-badge { position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: var(--ink);
    font-size: .66rem; font-weight: 900; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
  .tabbar a.on .tab-badge { background: var(--ink); color: var(--lime); right: -2px; }
  .shop-cartbar { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 8px); z-index: 50; display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 12px 16px;
    border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; box-shadow: var(--shadow); }
  .shop-cartbar svg { width: 20px; height: 20px; color: var(--lime); }
  .shop-cartbar span { flex: 1; }
  .shop-cartbar b { color: var(--lime); }
}
.op-terms { line-height: 1.6; }
.op-terms .op-doc-link { font-weight: 700; }
.op-doc { margin: 6px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .86rem; }

/* Props: celebration banner ------------------------------------------------ */
.props-ban { position: relative; overflow: hidden; display: grid; gap: 4px; margin: 0 0 20px; padding: 18px 18px 16px; border-radius: 20px;
  background: #ff6b4a; color: #fff; text-decoration: none; box-shadow: 0 10px 24px -12px rgba(255, 107, 74, .7); }
.props-ban:hover { color: #fff; transform: translateY(-1px); }
.props-ban > span:not(.cf) { position: relative; z-index: 1; }
.pb-eb { font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; opacity: .92; }
.pb-tt { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 900; font-style: italic; line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }
.pb-ds { font-size: .92rem; opacity: .96; max-width: 40ch; }
.pb-ds b { font-weight: 800; }
.pb-faces { display: flex; margin: 8px 0 10px; }
.pb-face { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ff6b4a; background: #ffe3da; color: #7a2414; font-size: .72rem; font-weight: 900;
  display: grid; place-items: center; overflow: hidden; margin-right: -9px; }
.pb-face img { width: 100%; height: 100%; object-fit: cover; }
.pb-more { background: #fff; }
.pb-btn { justify-self: start; background: #fff; color: #7a2414; font-weight: 900; border-radius: 999px; padding: 10px 18px; font-size: .92rem; }
.props-ban .cf { position: absolute; width: 8px; height: 14px; border-radius: 2px; z-index: 0; animation: cf-float 3.2s ease-in-out infinite; }
.props-ban .c1 { background: var(--lime); top: 12px; right: 26px; transform: rotate(25deg); }
.props-ban .c2 { background: #ffc21a; top: 36px; right: 74px; transform: rotate(-30deg); animation-delay: .4s; }
.props-ban .c3 { background: #fff; top: 16px; right: 128px; width: 7px; height: 7px; border-radius: 50%; animation-delay: .8s; }
.props-ban .c4 { background: #7fd6f5; top: 64px; right: 20px; transform: rotate(-12deg); animation-delay: 1.2s; }
.props-ban .c5 { background: #f7b6e4; top: 86px; right: 96px; transform: rotate(40deg); animation-delay: .2s; }
.props-ban .c6 { background: var(--lime); bottom: 22px; right: 44px; width: 7px; height: 7px; border-radius: 50%; animation-delay: 1s; }
.props-ban .c7 { background: #ffc21a; bottom: 40px; right: 150px; transform: rotate(15deg); animation-delay: .6s; }
.props-ban .c8 { background: #fff; top: 10px; right: 190px; transform: rotate(70deg); width: 6px; height: 11px; animation-delay: 1.4s; }
@keyframes cf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) { .props-ban .cf { animation: none; } }
.tab-dot { position: absolute; top: -2px; right: -6px; width: 10px; height: 10px; border-radius: 50%; background: #ff6b4a; border: 2px solid var(--surface); }
.tabbar a.on .tab-dot { right: 2px; }
@media (max-width: 900px) { .tabbar a.on .tab-ic > svg { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 14px; width: 52px; height: 28px; box-sizing: border-box; } }

/* Props: give props on a past session ------------------------------------- */
.gp { margin-top: 24px; }
.gp-head h2 { margin: 0 0 4px; font-size: 1.3rem; }
.gp-head p { margin: 0 0 8px; font-size: .9rem; }
.gp-row { padding: 14px 0; border-top: 1px solid var(--line); transition: background .2s; }
.gp-who { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.gp-nm { flex: 1; min-width: 0; display: grid; }
.gp-nm small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-done .gp-nm small { color: var(--text); font-weight: 600; }
.gp-caret { font-size: 1.4rem; color: var(--faint); transition: transform .15s; }
.gp-row.is-open .gp-caret { transform: rotate(90deg); }
.gp-row .gp-chips { margin-top: 12px; }
.gp-who .op-photo { width: 36px; height: 36px; font-size: .75rem; box-shadow: none; }
.gp-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-count { font-size: .78rem; font-weight: 700; color: var(--muted); }
.gp-done .gp-count { color: var(--ok); }
.gp-full .gp-count { color: var(--bad); }
.gp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; transition: transform .1s, background .15s; }
.gp-chip:active { transform: scale(.96); }
.gp-chip.sk.on { background: #7fd6f5; border-color: #7fd6f5; color: #063447; }
.gp-chip.ch.on { background: #f7b6e4; border-color: #f7b6e4; color: #5c1046; }
.gp-chip:disabled { opacity: .6; }

/* Player profile card ------------------------------------------------------ */
.op-player.is-tap { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; border-radius: 14px; transition: transform .1s; }
.op-player.is-tap:active { transform: scale(.97); }
.op-player.is-tap:focus-visible { outline: 2px solid var(--info); outline-offset: 4px; }
.pc-dlg { width: min(420px, calc(100vw - 24px)); padding: 0; }
.pc-dlg .modal-close { position: absolute; top: 10px; right: 10px; z-index: 4; background: rgba(255, 255, 255, .85); }
.pc-loading { padding: 60px 20px; text-align: center; color: var(--muted); }
.pc { position: relative; display: grid; gap: 18px; padding: 0 18px 20px; overflow-y: auto; max-height: calc(100dvh - 40px); }
.pc-hero { margin: 0 -18px; height: 92px; background: #ffc21a; position: relative; overflow: hidden; }
.pc-hero::before { content: ""; position: absolute; right: -40px; top: -30px; width: 190px; height: 160px; border: 3px solid rgba(42, 23, 0, .16); border-radius: 22px; transform: rotate(-12deg); }
.pc-hero::after { content: ""; position: absolute; left: 30px; top: -20px; width: 3px; height: 160px; background: rgba(42, 23, 0, .1); transform: rotate(-12deg); }
.pc-id { display: grid; justify-items: center; text-align: center; gap: 6px; margin-top: -66px; position: relative; z-index: 1; }
.pc-ph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ink); color: var(--lime);
  font-weight: 900; font-size: 1.7rem; border: 4px solid var(--surface); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; }
.pc-zoom { padding: 0; cursor: zoom-in; }
.pc-zoom:focus-visible { outline: 2px solid var(--info); outline-offset: 3px; }
.pc-name { margin: 4px 0 0; font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pc-tag { font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pc-tag-member { background: var(--lime); color: var(--ink); }
.pc-private { margin: 0; text-align: center; color: var(--muted); }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pc-stat { display: grid; justify-items: center; align-content: center; gap: 6px; padding: 12px 6px; text-align: center; min-height: 78px; }
.pc-stat + .pc-stat { border-left: 1px solid var(--line); }
.pc-stat b { font-size: 1.35rem; font-weight: 900; line-height: 1; }
.pc-stat em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--faint); }
.pc-stat b + small { font-size: .72rem; font-weight: 700; color: var(--muted); margin-top: -2px; }
.pc-dupr { background: #0a1d5c; color: #fff; font-size: .66rem; font-weight: 800; border-radius: 5px; padding: 2px 7px; letter-spacing: .05em; }
.pc-lab { font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pc-sec { display: grid; gap: 10px; }
.pc-sec-h { display: flex; align-items: center; gap: 8px; }
.pc-sec-h strong { font-size: 1rem; font-weight: 900; }
.pc-count { font-size: .74rem; font-weight: 900; padding: 2px 9px; border-radius: 999px; background: #ff6b4a; color: #fff; }
.pc-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pc-legend .pc-dot.sk { margin-left: 6px; }
.pc-dot.ch { background: #f7b6e4; }
.pc-dot.sk { background: #7fd6f5; }
.pc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-pill { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .86rem; font-weight: 700; }
.pc-pill i { font-style: normal; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: .78rem; font-weight: 900; }
.pc-pill.sk i { background: #ddf3fc; color: #063447; }
.pc-pill.ch i { background: #fce3f5; color: #5c1046; }
.pc-pill.sk.top i { background: #7fd6f5; }
.pc-pill.ch.top i { background: #f7b6e4; }
.pc-empty { padding: 14px; border-radius: 14px; border: 1px dashed var(--line-strong); text-align: center; color: var(--muted); font-size: .88rem; }
.pc-games { display: grid; gap: 8px; }
.pc-game { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pc-game:hover { border-color: var(--line-strong); background: var(--surface-2); }
.pc-date { width: 48px; flex: none; display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; background: var(--op-block, #e6e7e2); line-height: 1.05; }
.pc-date small { font-size: .6rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.pc-date b { font-size: 1.15rem; font-weight: 900; }
.pc-game-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pc-game-txt b { font-size: .9rem; font-weight: 800; }
.pc-game-txt small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-go { font-size: 1.4rem; color: var(--faint); }
.pc-big { position: absolute; inset: 0; z-index: 5; border: 0; padding: 16px; margin: 0; background: var(--surface); cursor: zoom-out;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font: inherit; color: var(--text); }
.pc-big[hidden] { display: none; }
.pc-big img { display: block; width: 100%; max-width: 400px; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.pc-big span { font-weight: 800; text-align: center; }
.ap-photo { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ap-ph { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 900; font-size: 1.4rem; }
.ap-ph img { width: 100%; height: 100%; object-fit: cover; }
.ap-photo-acts { display: grid; gap: 6px; min-width: 0; }
.ap-photo-acts label.btn { cursor: pointer; }
.ap-remove { font-size: .88rem; }
.gp-chip.sk:not(.on) { border-color: #a9e2f7; }
.gp-chip.ch:not(.on) { border-color: #f4c6e7; }
.tab-dot.with-badge { right: auto; left: -6px; }
.tabbar a.on .tab-dot.with-badge { left: 2px; }
.op-desc-text { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.op-desc.is-open .op-desc-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.op-desc-more { margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--court); cursor: pointer; }
:root[data-theme="dark"] .op-desc-more { color: var(--lime); }
.gp-head .pc-legend { display: flex; margin: 6px 0 4px; }

/* Player grid: dashed circles for open slots, member tag */
.op-photo.op-empty { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; color: var(--muted); font-size: 1rem; font-weight: 800; }
.op-open { text-decoration: none; color: var(--faint); }
.op-open-lab { font-size: .78rem; font-weight: 700; color: var(--faint); }
a.op-open:hover .op-empty { border-color: var(--court); background: var(--surface-2); }
:root[data-theme="dark"] a.op-open:hover .op-empty { border-color: var(--lime); }
.op-member { font-size: .66rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--court); }
:root[data-theme="dark"] .op-member { color: var(--lime); }
.op-rate { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 700; color: var(--muted); }
.op-dupr-tag, .op-self-tag { font-size: .66rem; font-weight: 900; letter-spacing: .03em; padding: 2px 6px; border-radius: 5px; line-height: 1.2; }
.op-dupr-tag { background: #1e3a8a; color: #fff; }
/* DUPR connect (profile + /account/dupr) */
.dp-card > span { display: block; }
.dp-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 560px) { .dp-row { flex-wrap: wrap; } .dp-row .dp-info { flex: 1 1 calc(100% - 70px); } .dp-row > .btn { margin-left: auto; } }
body.dp-page .cw { display: none; }   /* keep the chat bubble off DUPR's sign-in box */
.dp-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dp-info small { color: var(--muted); }
.dp-note { margin-top: 8px; }
/* Connect page: the DUPR box fills the screen between the header and the tabs, so there's one scroll area only */
body.dp-page .site-footer, body.dp-page .pnudge, body.dp-page .dnudge { display: none; }
.dp-shell { display: flex; flex-direction: column; gap: 10px; width: min(760px, 100%); margin: 0 auto; padding: 12px 16px;
  height: calc(100dvh - var(--header-h) - var(--safe-top)); }
@media (max-width: 900px) { .dp-shell { height: calc(100dvh - var(--header-h) - var(--safe-top) - 66px - env(safe-area-inset-bottom)); } }
.dp-shell-card { height: auto; padding-top: 28px; padding-bottom: 40px; }
.dp-head { display: flex; align-items: flex-start; gap: 10px; flex: none; }
.dp-head h1 { font-size: 1.3rem; margin: 0; }
.dp-head p { margin: 2px 0 0; font-size: .86rem; line-height: 1.35; }
.dp-back { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 800; }
.dp-err { color: var(--bad); font-weight: 600; }
.dp-frame { flex: 1; min-height: 0; width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: block; }
.dp-done { text-align: center; display: grid; justify-items: center; gap: 6px; }
.dp-done h1 { margin: 0; font-size: 1.6rem; }
.dp-done p { margin: 0; }
.dp-done-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 1.6rem; font-weight: 900; margin-bottom: 6px; }
.dp-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(320px, 100%); margin: 10px 0; }
.dp-rates > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.dp-rates small { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dp-rates b { font-size: 1.35rem; }
.dp-done-acts { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; justify-content: center; }
.op-self-tag { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
.op-member { line-height: 1.2; text-align: center; }
.op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 700px) { .op-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

/* Props: focused give-props page, list of games, done screen ------------------ */
.gp-cta { display: flex; align-items: center; gap: 14px; margin: 24px 0 0; padding: 16px 18px; border-radius: 18px; background: #ff6b4a; color: #fff; text-decoration: none; }
.gp-cta:hover { color: #fff; }
.gp-cta-txt { flex: 1; display: grid; gap: 2px; }
.gp-cta-txt b { font-size: 1.1rem; font-weight: 900; }
.gp-cta-txt small { font-size: .86rem; opacity: .95; }
.gp-cta-go { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #7a2414; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.pb-games { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.pb-game { display: grid; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: .78rem; line-height: 1.3; }
.pb-game b { font-size: .84rem; font-weight: 800; }
.me-badge { font-style: normal; font-size: .72rem; font-weight: 900; padding: 1px 8px; border-radius: 999px; background: #ff6b4a; color: #fff; margin-left: 6px; }
.pp-page { padding-top: 16px; padding-bottom: 120px; }
.pp-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pp-x { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-size: 1.4rem; text-decoration: none; }
.pp-title { display: grid; gap: 2px; min-width: 0; }
.pp-eb { font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #ff6b4a; }
.pp-title strong { font-size: 1.15rem; font-weight: 900; line-height: 1.2; }
.pp-title small { font-size: .84rem; color: var(--muted); }
.pp-progress { font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.pp-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 16px; }
.pp-bar i { display: block; height: 100%; background: #ff6b4a; border-radius: 999px; transition: width .25s; }
.pp-list { display: grid; gap: 8px; }
.pp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.pp-row:hover { border-color: var(--line-strong); }
.pp-row .op-photo { width: 46px; height: 46px; font-size: .9rem; box-shadow: none; }
.pp-nm { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-nm strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-nm small { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-state { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--faint); font-size: 1.2rem; flex: none; }
.pp-row.is-done { border-color: #ffd2c6; background: #fff6f3; }
:root[data-theme="dark"] .pp-row.is-done { background: rgba(255, 107, 74, .1); border-color: rgba(255, 107, 74, .35); }
.pp-row.is-done .pp-nm small { color: var(--text); font-weight: 600; }
.pp-row.is-done .pp-state { background: #ff6b4a; color: #fff; font-size: .9rem; }
.pp-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.pp-foot .btn { max-width: 720px; margin: 0 auto; }
@media (max-width: 900px) { .pp-foot { bottom: calc(64px + env(safe-area-inset-bottom)); } }
dialog.modal.pp-sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 90dvh; }
@media (min-width: 700px) { dialog.modal.pp-sheet { width: min(520px, calc(100vw - 32px)); margin: auto; border-radius: 24px; } }
.pp-person { position: relative; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; overflow-y: auto; }
.pp-band { position: relative; overflow: hidden; margin: 0 -18px; height: 104px; background: #ff6b4a; display: grid; justify-items: center; align-content: start; gap: 10px; padding-top: 10px; }
.pp-band .pp-handle { width: 40px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.pp-band-eb { font-size: .7rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.pp-band .cf { position: absolute; width: 8px; height: 14px; border-radius: 2px; animation: cf-float 3.2s ease-in-out infinite; }
.pp-band .c1 { background: var(--lime); top: 18px; left: 26px; transform: rotate(25deg); }
.pp-band .c2 { background: #ffc21a; top: 54px; left: 70px; transform: rotate(-30deg); animation-delay: .4s; }
.pp-band .c3 { background: #fff; top: 30px; right: 90px; width: 7px; height: 7px; border-radius: 50%; animation-delay: .8s; }
.pp-band .c4 { background: #7fd6f5; top: 62px; right: 34px; transform: rotate(-12deg); animation-delay: 1.2s; }
.pp-band .c5 { background: #f7b6e4; top: 70px; left: 24px; transform: rotate(40deg); animation-delay: .2s; }
.pp-band .c6 { background: var(--lime); top: 16px; right: 150px; width: 6px; height: 6px; border-radius: 50%; animation-delay: 1s; }
.pp-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #7a2414; font-size: 1.3rem; cursor: pointer; }
.pp-person .pp-who { margin-top: -52px; position: relative; z-index: 1; }
.pp-person .pp-big { border: 4px solid var(--surface); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .45); background: var(--ink); color: var(--lime); }
.pp-next { background: #ff6b4a; color: #fff; border: 0; }
.pp-next:hover { background: #f25a38; color: #fff; }
.pp-count { justify-self: center; margin-top: 4px; font-size: .78rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pp-person.is-max .pp-count { background: #ff6b4a; color: #fff; }
.pp-count.pp-full { background: var(--bad-bg); color: var(--bad); }
.pp-person.is-max .gp-chip:not(.on) { opacity: .4; }
.pp-who { display: grid; justify-items: center; text-align: center; gap: 4px; }
.pp-big { width: 76px; height: 76px; font-size: 1.3rem; }
.pp-who strong { font-size: 1.2rem; font-weight: 900; margin-top: 4px; }
.pp-who small { color: var(--muted); font-size: .86rem; }
.pp-grp { display: grid; gap: 8px; }
.pp-gl { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pp-next { margin-top: 4px; }
.pp-games { display: grid; gap: 10px; }
.pp-game { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.pp-game:hover { border-color: var(--line-strong); }
.pp-game-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-game-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-game-txt small { font-size: .82rem; color: var(--muted); }
.pp-left { font-size: .76rem; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: #ff6b4a; color: #fff; white-space: nowrap; }
.pp-ok { font-size: .76rem; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.pp-done { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 8px; margin-top: 8px; padding: 40px 22px 30px; border-radius: 24px; background: #ff6b4a; color: #fff; }
.pp-done h1 { margin: 6px 0 0; color: #fff; font-size: 1.9rem; font-weight: 900; }
.pp-done p { margin: 0; max-width: 34ch; opacity: .96; }
.pp-chk { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #ff6b4a; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; position: relative; z-index: 1; }
.pp-done > *:not(.cf) { position: relative; z-index: 1; }
.pp-done .cf { position: absolute; width: 8px; height: 14px; border-radius: 2px; animation: cf-float 3.2s ease-in-out infinite; }
.pp-done .c1 { background: var(--lime); top: 18px; left: 22px; transform: rotate(25deg); }
.pp-done .c2 { background: #ffc21a; top: 40px; right: 30px; transform: rotate(-30deg); animation-delay: .4s; }
.pp-done .c3 { background: #fff; top: 90px; left: 50px; width: 7px; height: 7px; border-radius: 50%; animation-delay: .8s; }
.pp-done .c4 { background: #7fd6f5; bottom: 70px; right: 40px; animation-delay: 1.2s; }
.pp-done .c5 { background: #f7b6e4; bottom: 30px; left: 30px; transform: rotate(40deg); animation-delay: .2s; }
.pp-done .c6 { background: var(--lime); bottom: 110px; right: 80px; width: 7px; height: 7px; border-radius: 50%; animation-delay: 1s; }
.pp-done .pb-faces { margin: 8px 0 6px; }
.pp-done-acts { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.pp-done-link { color: #fff; font-weight: 800; opacity: .92; }
.pp-done-link:hover { color: #fff; opacity: 1; }

/* Props banner on wider screens: text left, faces + button right, not a big empty box */
.pb-side { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 760px) {
  .props-ban { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; padding: 26px 30px; }
  .props-ban > span:not(.cf):not(.pb-side) { grid-column: 1; }
  .props-ban .pb-side { grid-column: 2; grid-row: 1 / span 4; justify-items: center; align-self: center; gap: 14px; }
  .props-ban .pb-tt { max-width: none; font-size: 1.9rem; }
  .props-ban .pb-ds { max-width: 56ch; }
  .props-ban .pb-faces { margin: 0; }
  .props-ban .pb-face { width: 44px; height: 44px; font-size: .82rem; }
  .props-ban .pb-btn { padding: 12px 22px; font-size: 1rem; }
  .props-ban .c1 { right: 34%; } .props-ban .c2 { right: 40%; top: 20px; } .props-ban .c3 { right: 28%; }
  .props-ban .c5 { right: 46%; top: 70px; } .props-ban .c7 { right: 31%; bottom: 18px; } .props-ban .c8 { right: 52%; top: 14px; }
}

/* Payment upload (pay page) */
.pu-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; display: grid; gap: 12px; justify-items: center; }
.pu-step { display: flex; align-items: center; gap: 10px; font-weight: 700; justify-self: stretch; }
.pu-step b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: .85rem; flex: none; }
.pu-qr { width: min(240px, 70vw); aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); background: #fff; padding: 8px; border: 1px solid var(--line); }
.pu-acct { justify-self: stretch; display: grid; gap: 8px; margin: 0; background: var(--surface-2); border-radius: var(--radius); padding: 12px 14px; }
.pu-acct div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.pu-acct dt { color: var(--muted); font-size: .88rem; }
.pu-acct dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pu-copy { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 700; margin-left: 6px; cursor: pointer; color: var(--text); }
.pu-note { justify-self: stretch; color: var(--muted); font-size: .92rem; margin: 0; white-space: pre-line; }
.pu-form { display: grid; gap: 12px; margin-top: 16px; }
.pu-drop { display: grid; place-items: center; min-height: 92px; border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 14px; text-align: center; color: var(--muted); font-weight: 600; cursor: pointer; position: relative; }
.pu-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pu-drop.has-file { border-style: solid; border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }

/* Member price (shown to non-members when a session has a member discount) */
.op-price-big { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 4px; }
.op-price-big strong { font-size: 1.6rem; font-weight: 900; }
.op-price-big span { color: var(--muted); font-weight: 600; }
.op-member-strip { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 10px 12px;
  border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .92rem; }
.op-member-strip a { background: var(--ok); color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.op-price-col { margin-left: auto; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1.15; }
.op-member-pill s { opacity: .7; font-weight: 600; }
.op-member-pill { font-size: .72rem; font-weight: 800; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }

/* Edit page (admins edit the home page in place) */
.pe-launch { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; }
@media (max-width: 900px) { .pe-launch { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.pe-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff;
  font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pe-btn svg { width: 18px; height: 18px; }
.pe-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: flex; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: 18px; padding: 10px 10px 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 760px; margin: 0 auto; }
@media (max-width: 900px) { .pe-bar { bottom: calc(80px + env(safe-area-inset-bottom)); } }
.pe-msg { font-size: .86rem; opacity: .85; }
.pe-acts { display: flex; gap: 8px; flex: none; }
.pe-ghost { background: transparent; border: 1px solid rgba(255,255,255,.3); box-shadow: none; }
.pe-save { background: var(--lime); color: var(--ink); }
.pe-text { white-space: pre-line; }
.pe-on [data-edit] { outline: 2px dashed color-mix(in srgb, var(--lime) 80%, #000 0%); outline-offset: 3px; border-radius: 4px; cursor: text; min-width: 1ch; display: inline-block; }
.pe-on [data-edit]:focus { outline-style: solid; background: color-mix(in srgb, var(--lime) 18%, transparent); }
.pe-on [data-edit].pe-changed { outline-color: #f59e0b; }
.pe-on .hero [data-edit] { outline-color: rgba(255,255,255,.7); }
[data-section][data-hidden] { display: none !important; }
.pe-on [data-section][data-hidden] { display: block !important; }
.pe-on [data-section][data-hidden] > :not(.pe-toggle) { opacity: .4; }
.pe-on .pe-sec { position: relative; }
.pe-toggle { position: relative; z-index: 5; display: flex; width: max-content; margin: 12px 16px 12px auto; align-items: center; gap: 8px; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 6px 8px 6px 12px; font-size: .78rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); opacity: 1 !important; }
.pe-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pe-toggle i { width: 34px; height: 20px; border-radius: 999px; background: rgba(255,255,255,.3); position: relative; transition: background .15s; }
.pe-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pe-toggle input:checked + i { background: var(--lime); }
.pe-toggle input:checked + i::after { transform: translateX(14px); }
.pe-photo { position: absolute; top: 14px; right: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 14px;
  background: rgba(0,0,0,.65); color: #fff; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.pe-photo svg { width: 16px; height: 16px; }
.pe-on .hero { position: relative; }
/* Edit page: buttons and lists */
[data-btn][data-btn-hidden] { display: none !important; }
.pe-on [data-btn][data-btn-hidden] { display: inline-flex !important; opacity: .4; }
.pe-on [data-btn] { outline: 2px dashed var(--lime); outline-offset: 3px; }
.pe-on [data-btn].pe-changed { outline-color: #f59e0b; }
.pe-on [data-part] { outline: 2px dashed var(--lime); outline-offset: 3px; border-radius: 4px; cursor: text; min-width: 2ch; display: inline-block; }
.pe-on [data-part]:focus { outline-style: solid; background: color-mix(in srgb, var(--lime) 18%, transparent); }
.pe-item { position: relative; }
.pe-item-ctl { display: flex; gap: 6px; margin-top: 10px; }
.pe-item-ctl button { width: 36px; height: 32px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font-size: .95rem; }
.pe-add { display: block; margin: 14px auto 0; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px dashed var(--line-strong); background: transparent;
  color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.pe-btn-dlg { width: min(460px, calc(100vw - 24px)); }

/* Chat button */
.cw { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 65; }
@media (max-width: 900px) { .cw { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.pe-on .cw, body:has(.pp-foot) .cw { display: none; }
.cw-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ink); color: var(--lime); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); cursor: pointer; transition: transform .15s; }
.cw-btn:hover { transform: scale(1.05); }
.cw-btn svg { width: 27px; height: 27px; }
.cw-dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; border: 2px solid var(--ink); }
.cw.is-open .cw-btn { display: none; }
.cw-panel { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); width: min(380px, calc(100vw - 24px)); max-height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; background: var(--surface); color: var(--text); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.3); overflow: hidden; }
.cw-panel[hidden] { display: none; }
@media (max-width: 900px) { .cw-panel { left: 12px; right: 12px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 170px); } }
.cw-head { background: var(--ink); color: #fff; padding: 14px 14px 14px 16px; display: flex; gap: 12px; align-items: center; flex: none; }
.cw-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); object-fit: cover; }
.cw-head b { display: block; font-size: 1rem; }
.cw-head small { opacity: .75; font-size: .8rem; }
.cw-x { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.cw-body { padding: 14px 14px 16px; overflow-y: auto; }
.cw-hi { background: var(--surface-2); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: .92rem; margin-bottom: 12px; }
.cw-q { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.cw-q summary { list-style: none; cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; }
.cw-q summary::-webkit-details-marker { display: none; }
.cw-q summary::after { content: "›"; opacity: .5; transition: transform .15s; }
.cw-q[open] summary::after { transform: rotate(90deg); }
.cw-q p { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: .88rem; white-space: pre-line; }
.cw-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; background: #0084ff; color: #fff; border-radius: 999px; padding: 12px; font-weight: 800; text-decoration: none; }
.cw-cta svg { width: 20px; height: 20px; }
.cw-alt { text-align: center; margin-top: 10px; font-size: .85rem; color: var(--muted); }
.cw-alt a { color: var(--text); font-weight: 700; }

/* Home: shop as a swipe row (like the Open Play cards) */
.shop-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 42px) / 4)); gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.shop-slide { scroll-snap-align: start; min-width: 0; display: flex; }
.shop-slide:not(.shop-slide-all) > * { flex: 1; min-width: 0; }
.shop-slide-all { align-items: center; justify-content: center; flex-direction: column; gap: 8px; border: 2px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--text); text-decoration: none; font-weight: 800; min-height: 200px; width: 170px; justify-self: start; text-align: center; padding: 16px; }
.shop-slide-all:hover { border-color: var(--text); }
.shop-slide-all b { font-size: 1.6rem; line-height: 1; }
@media (max-width: 900px) { .shop-rail { grid-auto-columns: 46%; } }
@media (max-width: 640px) { .shop-rail { grid-auto-columns: 66%; width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 4px 20px 14px; scroll-padding-left: 20px; } }

/* ==========================================================================
   Mobile polish (phones and small tablets)
   ========================================================================== */
@media (max-width: 900px) {
  /* Nothing under 12px: small uppercase labels, badges and tags */
  .eyebrow, .kv > div small, .date-chip small, .info-tile small, .member-card small, .product-info small,
  .option span em, .reg-row .main small, .code-box small, .op-slide-full, .op-in, .op-suggest em,
  .pc-dupr, .pc-lab, .op-member, .op-dupr-tag, .op-self-tag, .me-badge, .pp-gl, .op-member-pill, .pb-eb { font-size: .75rem; }
  .tabbar a, .tabbar button { font-size: .72rem; letter-spacing: -.01em; }
  /* Back links: a thumb-sized tap area */
  .op-back, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 900px) {
  /* Slim footer: the tab bar already links every section */
  .site-footer .footer-nav, .site-footer .footer-brand p { display: none; }
  .footer-top { padding: 28px 0 12px; gap: 18px; }
  .footer-top a { padding: 10px 0; }
  .footer-bottom { padding: 8px 0 20px; }
  .footer-bottom a { display: inline-block; padding: 12px 0; }
  .social-row a { min-height: 44px; display: inline-flex; align-items: center; }
  /* Chat button: smaller, and out of the way on pages with a fixed action bar */
  .cw-btn { width: 48px; height: 48px; }
  .cw-btn svg { width: 23px; height: 23px; }
  .cw-dot { top: 4px; right: 4px; width: 10px; height: 10px; }
  body:has(.m-actionbar) .cw { display: none; }
  /* Fixed action bar, just above the tab bar */
  .m-actionbar { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .m-actionbar .m-ab-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .m-actionbar .m-ab-info b { font-size: 1.1rem; font-weight: 900; }
  .m-actionbar .m-ab-info small { font-size: .8rem; font-weight: 600; color: var(--muted); }
  .m-actionbar .m-ab-info small.urgent { color: var(--bad); }
  .m-actionbar .btn { flex: none; min-height: 48px; padding-left: 26px; padding-right: 26px; }
  body:has(.m-actionbar) { padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
}
.m-actionbar { display: none; }
@media (max-width: 900px) { .m-actionbar { display: flex; } }

/* Home on phones: shorter, action first. Sections the "Edit page" tool can show/hide stay visible while editing. */
@media (max-width: 900px) {
  .hero-grid { gap: 20px; padding: 30px 16px 28px; }
  .hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
  .hero p.lead { font-size: 1.02rem; margin-bottom: 20px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 16px; }
  .section-head p { font-size: .95rem; }
  body:not(.pe-on) [data-section="about"], body:not(.pe-on) [data-section="how"] { display: none; }
  /* Tournament cards: a slim green strip instead of a big empty block when there's no banner photo */
  .event-cover:not(.has-image) { aspect-ratio: auto; min-height: 0; padding: 12px 16px; }
  .event-cover:not(.has-image)::before { background-size: 60%; }
  .event-cover.has-image { aspect-ratio: 16 / 6; }
  .event-body { padding: 14px 16px 16px; gap: 10px; }
}
@media (max-width: 640px) {
  .hero-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-ctas .btn { flex: none; min-height: 50px; padding: 0 10px; font-size: .95rem; justify-content: center; text-align: center; }
  .hero-ctas .btn .arrow { display: none; }
  .hero-ctas .btn:only-child { grid-column: 1 / -1; }
  body:not(.pe-on) .hero-card { display: none; }
}

/* Action bar steps aside when its form is on screen */
.m-actionbar { transition: transform .2s ease, opacity .2s ease; }
.m-actionbar.is-away { transform: translateY(120%); opacity: 0; pointer-events: none; }
/* Open play session: price, member price and slots at a glance (phones) */
.op-quick { display: none; }
@media (max-width: 900px) {
  .op-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .op-quick > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
  .op-quick small { font-size: .75rem; font-weight: 700; color: var(--muted); }
  .op-quick b { font-size: 1.05rem; font-weight: 800; }
  .op-quick b.ok { color: var(--ok); }
  .op-quick .op-q-note { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); }
}

/* Tournament page on phones: compact header and facts, no empty gap */
@media (max-width: 900px) {
  .event-hero .container { padding-top: 22px; padding-bottom: 22px; gap: 14px; }
  .event-hero .logo { width: 52px; height: 52px; border-radius: 14px; }
  .event-hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
  .event-hero p { font-size: .95rem; margin-bottom: 10px; }
  .event-hero + .section-tight { padding-top: 16px; }
  .info-tiles { margin-top: 0 !important; margin-bottom: 18px; gap: 0; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
  .info-tiles .info-tile { border: 0; border-radius: 0; box-shadow: none; padding: 12px 14px; }
  .info-tiles .info-tile + .info-tile { border-top: 1px solid var(--line); }
  .info-tiles .info-tile .ico { width: 36px; height: 36px; }
}

/* Shop on phones: two products per row, swipeable category chips, smaller photo on the product page */
@media (max-width: 900px) {
  .m-actionbar .m-ab-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .filter-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px 4px; }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pills a { flex: none; min-height: 40px; display: inline-flex; align-items: center; }
  .gallery-main { max-height: 52vh; }
}
@media (max-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
  .shop-grid .product-card { border-radius: var(--radius); }
  .shop-grid .product-img { aspect-ratio: 1 / 1; }
  .shop-grid .product-img .badges { top: 8px; left: 8px; }
  .shop-grid .product-info { padding: 10px 12px 12px; gap: 3px; }
  .shop-grid .product-info h3 { font-size: .95rem; line-height: 1.25; }
  .shop-grid .product-info .price { font-size: 1rem; }
}
@media (max-width: 900px) { .op-slide-date span, .division-facts small { font-size: .75rem; } }

/* Home on phones, round 2: about 3 screens instead of 4.6 */
@media (max-width: 900px) {
  /* Stop the iPhone "bounce" that pulls the page up past the footer and shows a blank area */
  html, body { overscroll-behavior-y: none; }
  /* Footer bottom line: copyright, then Privacy · Terms on one line, clear of the chat button */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0; padding-right: 64px; }
  .footer-bottom > span:last-child { display: flex; gap: 20px; }
  .footer-bottom a { margin: 0; }
}
@media (max-width: 640px) {
  /* Tournaments: one swipeable row instead of stacked cards */
  #events .grid-3 { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; grid-template-columns: none; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 2px 16px 10px; scroll-padding-left: 16px; }
  #events .grid-3::-webkit-scrollbar { display: none; }
  #events .grid-3 > * { scroll-snap-align: start; }
  /* Membership: just the price card */
  body:not(.pe-on) [data-section="membership"] .membership-layout > div:first-child { display: none; }
  /* Shop row: smaller cards, more per screen */
  .shop-rail { grid-auto-columns: 44%; }
  .shop-rail .product-img { aspect-ratio: 1 / 1; }
  .shop-rail .product-info { padding: 10px 12px 12px; gap: 3px; }
  .shop-rail .product-info h3 { font-size: .95rem; line-height: 1.25; }
  /* "Ready to play?" band: the tab bar already has Sign in */
  body:not(.pe-on) [data-section="cta"] { display: none; }
}

/* Tournament page tabs and tab content on phones */
@media (max-width: 900px) {
  .event-hero ~ .section-tight .tabs { display: flex; width: 100%; margin: 0 0 14px; }
  .event-hero ~ .section-tight .tab { flex: 1 0 auto; min-height: 42px; padding: 8px 14px; text-align: center; }
  .event-hero ~ .section-tight .tab-panel > .prose { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 16px 18px; line-height: 1.55; font-size: .98rem; overflow-wrap: anywhere; }
  .event-hero ~ .section-tight .tab-panel > .prose h3 { margin: 1.1em 0 .4em; font-size: 1.05rem; }
  .event-hero ~ .section-tight .tab-panel > .prose h3:first-child { margin-top: 0; }
  .event-hero ~ .section-tight .tab-panel > .table-wrap, .event-hero ~ .section-tight .tab-panel > h3 { margin-left: 0; margin-right: 0; }
}

/* Footer social links as round icon buttons */
.social-row a { width: 44px; height: 44px; padding: 0 !important; border-radius: 50%; justify-content: center; align-items: center; }
.social-row a svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  /* Only one tournament: full width, no swipe gap */
  #events .grid-3:has(> :only-child) { grid-auto-columns: 100%; }
  /* Banner posters: show more of the image */
  .event-cover.has-image { aspect-ratio: 16 / 9; background-position: center; }
  .event-head h3 { font-size: 1.1rem; line-height: 1.25; }
  .division-chips .chip { font-size: .78rem; padding: 4px 10px; }
}

/* Membership form: size chart pop-up and a tidy submit area */
.size-chart-btn { background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 700; cursor: pointer; }
.size-chart-dlg { max-width: min(720px, calc(100vw - 24px)); }
.size-chart-dlg .modal-body { padding: 12px; }
.size-chart-dlg img { display: block; width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 12px; }
.form-actions-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.form-actions-stack .form-note { text-align: center; }
@media (min-width: 901px) { .form-actions-stack { align-items: center; } .form-actions-stack .btn-block { width: auto; min-width: 320px; } }

/* Admin > Memberships > Shirts */
.shirt-kpis { margin-bottom: 16px; }
.shirt-mode { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.shirt-mode label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; cursor: pointer; }
.shirt-mode label:has(input:checked) { background: var(--ink); color: #fff; }
.shirt-mode input { width: 14px; height: 14px; }
.shirt-table td, .shirt-table th { white-space: nowrap; }
.shirt-table tr.is-short td { background: var(--bad-bg); }
.shirt-qty { max-width: 96px; min-height: 40px; }
.shirt-size-form select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; max-width: 110px; }
.shirt-state { display: inline-block; font-size: .8rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.shirt-state.st-ready { background: var(--info-bg); color: var(--info); }
.shirt-state.st-instock { background: var(--warn-bg); color: var(--warn); }
.shirt-state.st-outofstock { background: var(--bad-bg); color: var(--bad); }
.shirt-state.st-claimed { background: var(--ok-bg); color: var(--ok); }
@media (max-width: 640px) {
  .shirt-table th:nth-child(4), .shirt-table td:nth-child(4) { display: none; }
  .shirt-table td, .shirt-table th { padding-left: 8px; padding-right: 8px; white-space: normal; }
  .shirt-qty { max-width: 76px; }
  .shirt-table .pill { display: inline-block; margin-top: 4px; }
}

/* Admin > Inventory */
.inv-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.inv-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.inv-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; }
.inv-group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.inv-group-head .sub { display: block; }
.inv-total { flex: none; font-size: .8rem; font-weight: 800; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.inv-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-opt { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .88rem; }
.inv-opt b { font-weight: 900; }
.inv-opt.st-low { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.inv-opt.st-out { background: var(--bad-bg); border-color: transparent; color: var(--bad); }
.inv-opt.st-untracked { color: var(--muted); border-style: dashed; }
.inv-diff { font-weight: 800; font-size: .9rem; }
.inv-diff.pos { color: var(--ok); }
.inv-diff.neg { color: var(--bad); }
.inv-diff.ok { color: var(--ok); }
.inv-form { display: grid; gap: 16px; }
.inv-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.inv-add select { flex: 1 1 220px; }
.inv-blocks { display: grid; gap: 12px; }
.inv-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface-2); }
.inv-block-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.inv-x { border: 0; background: none; color: var(--bad); font: inherit; font-weight: 700; font-size: .88rem; min-height: 40px; cursor: pointer; }
.inv-size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.inv-size { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.inv-size span { font-weight: 800; font-size: .9rem; }
.inv-size input { min-height: 42px; padding: 8px 10px; text-align: center; }
.inv-size small { color: var(--muted); font-size: .75rem; text-align: center; }
.inv-cost { margin-top: 10px; max-width: 260px; }
.inv-count-rows { display: grid; gap: 6px; }
.inv-count-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 92px 44px; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.inv-count-name { font-weight: 800; }
.inv-count-sys { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.inv-count-row input { min-height: 42px; padding: 8px 10px; text-align: center; }
.inv-count-row .inv-diff { text-align: right; }
.inv-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.danger-zone { margin-top: 20px; padding: 16px; border-radius: var(--radius); background: var(--bad-bg); }
.danger-zone strong { color: var(--bad); }
.danger-zone p { margin: 4px 0 10px; font-size: .88rem; }
@media (max-width: 640px) {
  .inv-groups { grid-template-columns: 1fr; }
  .inv-count-row { grid-template-columns: minmax(0, 1fr) 80px 40px; }
  .inv-count-sys { grid-column: 1; grid-row: 2; font-size: .78rem; }
  .inv-count-row input { grid-row: 1 / span 2; grid-column: 2; }
  .inv-count-row .inv-diff { grid-row: 1 / span 2; grid-column: 3; }
  .inv-add .btn { flex: 1 1 auto; }
}

/* ---- Inventory v2: simpler, phone-first ---- */
.inv-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.inv-action { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.inv-action:hover { border-color: var(--text); transform: translateY(-1px); }
.inv-action > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.inv-action b { font-size: 1.05rem; }
.inv-action small { color: var(--muted); font-size: .88rem; }
.inv-action i { font-style: normal; font-weight: 900; font-size: 1.2rem; color: var(--muted); }
.inv-action-ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.inv-action-ic.dark { background: var(--ink); color: var(--lime); }
.inv-action-ic svg { width: 24px; height: 24px; }
.inv-attn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: var(--radius); border: 0; background: var(--bad-bg); color: var(--bad); font: inherit; font-size: .95rem; text-align: left; cursor: pointer; }
.inv-attn .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.inv-attn > span:nth-child(2) { flex: 1; }
.inv-attn .go { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.inv-attn.ok { background: var(--ok-bg); color: var(--ok); cursor: default; }
.inv-tabs { margin-bottom: 14px; }
.inv-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.inv-filters input[type=search] { flex: 1 1 220px; }
.inv-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.inv-chips::-webkit-scrollbar { display: none; }
.inv-chips button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.inv-chips button b { margin-left: 4px; font-weight: 900; opacity: .6; }
.inv-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.inv-chips button.on b { opacity: 1; color: var(--lime); }
:root[data-theme="dark"] .inv-chips button.on { background: var(--lime); color: var(--ink); border-color: var(--lime); }
:root[data-theme="dark"] .inv-chips button.on b { color: var(--ink); }
.inv-list { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.inv-row-main { display: flex; flex-direction: column; min-width: 0; }
.inv-row-main small { color: var(--muted); font-size: .82rem; }
.inv-sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-sz { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); font-weight: 900; font-size: .9rem; }
.inv-sz em { font-style: normal; font-weight: 700; color: var(--muted); font-size: .8rem; }
.inv-sz.s-low { background: var(--warn-bg); color: var(--warn); }
.inv-sz.s-out { background: var(--bad-bg); color: var(--bad); }
.inv-sz.s-low em, .inv-sz.s-out em { color: inherit; opacity: .8; }
.inv-sz.s-na { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.inv-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-feed { display: grid; gap: 8px; }
.inv-ev { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); }
a.inv-ev:hover { border-color: var(--text); }
.inv-ev-ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: var(--surface-2); color: var(--muted); }
.inv-ev-ic svg { width: 20px; height: 20px; }
.ev-delivery .inv-ev-ic { background: var(--lime); color: var(--ink); }
.ev-count .inv-ev-ic { background: var(--ink); color: var(--lime); }
.ev-sale .inv-ev-ic { background: var(--info-bg); color: var(--info); }
.ev-shirt .inv-ev-ic { background: var(--ok-bg); color: var(--ok); }
.inv-ev-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inv-ev-body > span { color: var(--text); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-ev-body small { color: var(--muted); font-size: .8rem; }
.inv-ev-n { flex: none; font-weight: 900; font-size: 1.05rem; }
.inv-ev-n.pos { color: var(--ok); } .inv-ev-n.neg { color: var(--bad); }
/* forms */
.inv-form { padding-bottom: 8px; }
.inv-step h3, .inv-block h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.1rem; }
.inv-n { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-size: .82rem; font-weight: 900; }
.inv-pick input[type=search] { margin-bottom: 10px; }
.inv-pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.inv-pick-btn { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-height: 52px; }
.inv-pick-btn b { font-size: .95rem; }
.inv-pick-btn small { grid-row: 2; color: var(--muted); font-size: .8rem; }
.inv-pick-btn i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 900; font-size: 1.2rem; color: var(--ok); }
.inv-pick-btn:hover { border-color: var(--text); }
.inv-pick-btn.all { background: var(--lime-soft); border-color: transparent; }
:root[data-theme="dark"] .inv-pick-btn.all { background: rgba(215,255,24,.12); }
.inv-block { background: var(--surface); padding: 18px; }
.inv-block-head { margin-bottom: 0; }
.inv-steppers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.inv-stepper { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.inv-st-label { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.inv-st-label b { font-size: 1rem; }
.inv-st-label small { color: var(--muted); font-size: .78rem; }
.inv-st-ctl { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.inv-st-ctl button { width: 40px; height: 44px; border: 0; background: none; font: inherit; font-size: 1.3rem; font-weight: 800; color: var(--text); cursor: pointer; }
.inv-st-ctl button:active { background: var(--surface-2); }
.inv-st-ctl input { width: 56px; min-height: 44px; border: 0; border-radius: 0; padding: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.inv-st-ctl input::-webkit-outer-spin-button, .inv-st-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inv-st-ctl input:focus { box-shadow: none; }
.inv-stepper .inv-diff { width: 34px; text-align: right; flex: none; }
.inv-cost { margin-top: 12px; max-width: 220px; }
.inv-peso { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); padding-left: 12px; }
.inv-peso span { color: var(--muted); font-weight: 800; }
.inv-peso input { border: 0; box-shadow: none !important; }
.inv-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--ok); list-style: none; }
.inv-more summary::-webkit-details-marker { display: none; }
.inv-more summary::before { content: "+"; font-weight: 900; }
.inv-more[open] summary::before { content: "−"; }
.inv-savebar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); }
.inv-savebar-info { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.inv-savebar-info b { font-size: 1.05rem; }
.inv-savebar-info small { color: #b3c3b9; font-size: .85rem; }
.inv-savebar .btn { min-width: 130px; }
.inv-savebar .btn:disabled { opacity: .45; }
/* Memberships > Shirts */
.shirt-stockline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lbl sizes link"; align-items: center; gap: 10px 14px; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.shirt-stockline .lbl { grid-area: lbl; font-weight: 800; font-size: .9rem; }
.shirt-stockline .sizes { grid-area: sizes; display: flex; flex-direction: row; gap: 6px; flex-wrap: wrap; min-width: 0; }
.shirt-stockline > .link { grid-area: link; white-space: nowrap; font-size: .9rem; }
@media (max-width: 760px) {
  .shirt-stockline { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lbl link" "sizes sizes"; }
}
.shirt-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.shirt-filters input[type=search] { flex: 1 1 220px; }
.shirt-list { display: grid; gap: 8px; }
.shirt-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 160px 150px; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.shirt-who { display: flex; flex-direction: column; min-width: 0; }
.shirt-who small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shirt-size-form select { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.shirt-act { text-align: right; }
.shirt-act .faint { font-size: .85rem; }
.shirt-state.st-instock { background: var(--warn-bg); color: var(--warn); }
.shirt-state.st-nosize { background: var(--surface-2); color: var(--muted); }
@media (max-width: 760px) {
  .inv-actions { grid-template-columns: 1fr; gap: 8px; }
  .inv-action { padding: 14px 16px; }
  .inv-row { grid-template-columns: 1fr; gap: 8px; }
  .inv-steppers { grid-template-columns: 1fr; }
  .inv-pick-list { grid-template-columns: 1fr; }
  .inv-savebar { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .shirt-row { grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "who size" "state act"; row-gap: 10px; }
  .shirt-who { grid-area: who; } .shirt-size-form { grid-area: size; } .shirt-row > .shirt-state { grid-area: state; justify-self: start; } .shirt-act { grid-area: act; }
}
.inv-feed > *, .inv-list > *, .shirt-list > * { min-width: 0; }
.inv-ev { overflow: hidden; }
@media (max-width: 760px) { .shirt-row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Profile checklist ---------- */
.pc-ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), var(--line) 0); }
.pc-ring b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: .82rem; font-weight: 900; }
.pc-ring.sm { width: 34px; height: 34px; }
.pc-ring.sm b { width: 26px; height: 26px; font-size: .62rem; }
.pc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.pc-head h2 { font-size: 1.15rem; margin: 0; }
.pc-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.pc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.pc-list li > a, .pc-list li.done { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--radius); border: 1px solid var(--line); min-height: 52px; }
.pc-list li > a { color: var(--text); text-decoration: none; background: var(--bg); }
.pc-list li > a:hover { border-color: var(--line-strong); }
.pc-list li > a > span:nth-child(2), .pc-list li.done > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-list small { color: var(--muted); font-size: .8rem; }
.pc-list li > a > i { font-style: normal; font-weight: 800; color: var(--ok); }
.pc-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: .75rem; font-weight: 900; }
.pc-list li.done { color: var(--muted); border-style: dashed; }
.pc-list li.done .pc-ic { background: var(--ok); border-color: var(--ok); color: #fff; }
/* reminder banner: amber card under the header */
.pnudge { padding-top: 10px; padding-bottom: 10px; }
.pnudge-card { --nb: var(--warn-bg); display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; border-radius: var(--radius);
  background: var(--nb); color: var(--text); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.pnudge .pc-ring { background: conic-gradient(var(--warn) calc(var(--p) * 1%), color-mix(in srgb, var(--warn) 22%, transparent) 0); }
.pnudge .pc-ring b { background: var(--nb); color: var(--text); }
.pnudge-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .88rem; line-height: 1.3; }
.pnudge-txt b { font-size: .92rem; }
.pnudge-txt span { color: var(--muted); }
.pnudge-go { flex: none; background: var(--warn); color: var(--surface); font-weight: 800; font-size: .86rem; padding: 9px 16px;
  border-radius: 99px; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.pnudge-go:hover { filter: brightness(1.08); }
.pnudge-later { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text);
  font-size: 1.35rem; line-height: 1; cursor: pointer; opacity: .55; }
.pnudge-later:hover { opacity: 1; background: color-mix(in srgb, var(--warn) 15%, transparent); }
/* DUPR reminder: same card, DUPR blue */
.dnudge .pnudge-card { --nb: color-mix(in srgb, #1e3a8a 9%, var(--surface)); border-color: color-mix(in srgb, #1e3a8a 35%, transparent); }
.dnudge .pnudge-go { background: #1e3a8a; color: #fff; }
.dnudge .pnudge-later:hover { background: color-mix(in srgb, #1e3a8a 12%, transparent); }
@media (max-width: 420px) { .dnudge .dupr-badge { display: none; } }
:root[data-theme="dark"] .dnudge .pnudge-card { --nb: color-mix(in srgb, #3b5bdb 18%, var(--bg)); }
:root[data-theme="dark"] .dnudge .pnudge-go { background: #3b5bdb; }
.lqnudge .pnudge-card { --nb: color-mix(in srgb, var(--lime) 30%, var(--surface)); border-color: var(--lime-deep); }
.lqnudge .pnudge-go { background: var(--ink); color: var(--lime); border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: .86rem; }
.lqn-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px color-mix(in srgb, #16a34a 25%, transparent); animation: lqn-pulse 1.6s ease-in-out infinite; }
@keyframes lqn-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, #16a34a 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .lqn-dot { animation: none; } }
body.dp-page .lqnudge { display: none; }
.me-dupr { font-style: normal; font-size: .7rem; font-weight: 800; background: #1e3a8a; color: #fff; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
:root[data-theme="dark"] .pnudge-card { --nb: color-mix(in srgb, var(--warn) 15%, var(--bg)); }
@media (max-width: 600px) {
  .pnudge-card { gap: 10px; padding-left: 12px; }
}
@media (max-width: 360px) {
  .pnudge .pc-ring { display: none; }
  .pnudge-go { padding: 8px 12px; }
}
/* profile page */
.pc-bar { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.pc-bar-top { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; }
.pc-bar-top span { color: var(--muted); }
.pc-bar-top a { color: var(--text); font-weight: 700; }
.pc-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pc-track i { display: block; height: 100%; background: var(--ok); border-radius: inherit; }
.pc-need input { border-color: var(--warn); }
.ap-photo.pc-need .ap-ph { box-shadow: 0 0 0 3px var(--warn-bg), 0 0 0 4px var(--warn); }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }
/* admin */
.pc-ticks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.pc-tick { align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.pc-tick span { display: flex; flex-direction: column; }
.pc-tick small { color: var(--muted); font-weight: 500; }
.pc-mini { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .85rem; }
.pc-mini i { width: 44px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--warn) var(--p), var(--line) 0); }
.pc-mini.done i { background: var(--ok); }

/* ---------- Shop: tap a photo to view it full screen ---------- */
.gallery-zoom { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-zoom:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.gallery-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-zoom-ic { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 20, 17, .62); color: #fff; backdrop-filter: blur(4px); }
.gallery-zoom-ic svg { width: 17px; height: 17px; }
/* The pop-up takes the photo's shape (sized in JS); controls float over the photo */
dialog.pv { border: 0; padding: 0; margin: auto; inset: 0; width: min(560px, calc(100vw - 24px)); height: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: var(--radius-lg); background: #0b1411; color: #fff;
  overflow: hidden; box-shadow: var(--shadow-lg); transition: width .22s ease, height .22s ease; }
dialog.pv::backdrop { background: rgba(5, 9, 7, .74); backdrop-filter: blur(3px); }
.pv-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pv-track::-webkit-scrollbar { display: none; }
.pv-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.pv-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.pv-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 10px 18px 16px; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .42), transparent); }
.pv-count { font-weight: 800; font-size: .88rem; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pv-x { pointer-events: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.pv-x:hover { background: rgba(0, 0, 0, .65); }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .42); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
  padding-bottom: 4px; backdrop-filter: blur(4px); }
.pv-nav:hover { background: rgba(0, 0, 0, .62); }
.pv-nav:disabled { opacity: 0; pointer-events: none; }
.pv-nav.prev { left: 10px; } .pv-nav.next { right: 10px; }
@media (hover: none), (max-width: 700px) { .pv-nav { display: none; } }
.pv-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; display: flex; gap: 6px; padding: 6px 9px;
  border-radius: 99px; background: rgba(0, 0, 0, .4); pointer-events: none; backdrop-filter: blur(4px); }
.pv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: width .2s, background .2s; }
.pv-dots i.on { width: 18px; border-radius: 99px; background: var(--lime); }

/* ---------- Admin product form: drag options into order ---------- */
.repeater-row.v-row { grid-template-columns: 40px repeat(4, minmax(0, 1fr)); }
.v-grip { align-self: end; width: 40px; height: 44px; border: 0; border-radius: 10px; background: var(--bg); color: var(--muted);
  font-size: 1.1rem; font-weight: 900; letter-spacing: -2px; cursor: grab; touch-action: none; user-select: none; }
.v-grip:hover, .v-grip:focus-visible { color: var(--text); background: var(--line); }
.repeater-row.v-row.dragging { border-style: solid; border-color: var(--ok); background: var(--surface); box-shadow: var(--shadow); position: relative; z-index: 2; }
.v-row.dragging .v-grip { cursor: grabbing; color: var(--ok); }
.v-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.v-hint { color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) {
  .repeater-row.v-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 10px; }
  .repeater-row.v-row > .v-grip { grid-column: 1; grid-row: 1 / 3; align-self: stretch; height: auto; width: 36px; }
}

/* ---------- Profile photo cropper ---------- */
.crop-dlg { width: min(440px, calc(100vw - 24px)); }
.crop-dlg .modal-head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius); background: #111;
  touch-action: none; cursor: grab; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55); outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: -2px; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 900; color: var(--muted); }
.crop-zoom input { flex: 1; accent-color: var(--ok); height: 32px; }

/* Inventory: titles and notes */
.inv-h-title { font-weight: 700; color: var(--muted); }
.inv-ev-note { display: block; margin-top: 4px; padding: 6px 9px; border-radius: 8px; background: var(--warn-bg); color: var(--text);
  font-size: .84rem; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.inv-ev-body .inv-ev-note { white-space: pre-line; text-overflow: clip; }
.inv-note textarea { min-height: 84px; }
#actSearch { flex: 1 1 200px; min-width: 0; }

/* Memberships: tappable names on the Shirts tab, low-key delete */
.shirt-name { all: unset; cursor: pointer; font-weight: 800; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shirt-name:hover, .shirt-name:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: var(--ok); }
.shirt-name:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; border-radius: 4px; }
.del-mini { padding: 8px 24px 14px; text-align: right; }
.del-mini summary { display: inline-block; list-style: none; cursor: pointer; font-size: .8rem; color: var(--faint); padding: 6px 0; }
.del-mini summary::-webkit-details-marker { display: none; }
.del-mini summary:hover { color: var(--bad); text-decoration: underline; }
.del-mini[open] summary { color: var(--bad); }
.del-mini form { text-align: left; margin-top: 6px; padding: 12px; border-radius: var(--radius); background: var(--bad-bg); }
.del-mini form p { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }

/* Email budget */
.email-meter { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 18px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .88rem; }
.email-meter i { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ok) var(--p), var(--line) 0); }
.email-meter.low i { background: linear-gradient(90deg, var(--warn) var(--p), var(--line) 0); }
.email-meter.full { border-color: var(--bad); } .email-meter.full i { background: var(--bad); }
.em-always { opacity: .85; align-items: flex-start; } .em-lock { width: 20px; text-align: center; }

/* Open play session page: link to the live queue */
.op-lq { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.op-lq svg { width: 22px; height: 22px; flex: none; color: var(--court-2); }
.op-lq span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.op-lq small { color: var(--muted); font-size: .84rem; }
.op-lq i { font-style: normal; font-weight: 800; }
.op-lq.live { background: var(--lime); border-color: var(--lime-deep); color: var(--ink); }
.op-lq.live svg, .op-lq.live small { color: var(--ink); }

/* six tabs: keep labels on one line on small phones */
@media (max-width: 900px) {
  .tabbar a, .tabbar button { font-size: .64rem; white-space: nowrap; }
  .tabbar a.on > svg, .tabbar a.on .tab-avatar, .tabbar a.on .tab-ic > svg { padding: 3px 11px; width: 46px; }
}

/* Ranking reward on the booking form */
.op-reward { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--lime-soft); border: 1px solid var(--lime-deep); cursor: pointer; }
.op-reward input { margin-top: 3px; accent-color: var(--court-2); }
.op-reward span { display: flex; flex-direction: column; gap: 2px; }
.op-reward b { color: var(--ink); }
.op-reward small { color: #3d4a3a; font-size: .8rem; }
:root[data-theme="dark"] .op-reward { background: rgba(215, 255, 24, .1); }
:root[data-theme="dark"] .op-reward b, :root[data-theme="dark"] .op-reward small { color: var(--text); }

/* My rewards */
.rw-list { display: grid; gap: 10px; }
.rw-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.rw-card.off { opacity: .7; }
.rw-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--court); color: var(--lime); font-weight: 900; font-size: 1.3rem; }
.rw-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rw-when { font-size: .86rem; color: var(--muted); }
@media (max-width: 560px) {
  .rw-card { flex-wrap: wrap; align-items: flex-start; }
  .rw-body { flex: 1 1 calc(100% - 64px); }
  .rw-card > .pill { margin-left: 60px; }
}

/* Open play chat ------------------------------------------------------------ */
.op-pill-sale { background: var(--lime); color: var(--ink); font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.op-badge-sale { background: var(--lime); color: var(--ink); }
section.ch { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 12px); }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; flex-wrap: wrap; }
.ch-head h2 { margin: 0; font-size: 1.15rem; }
.ch-head small { color: var(--muted); font-size: .8rem; }
.ch-guest .ch-head { padding-bottom: 16px; }
.ch-note { margin: 0 18px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .8rem; line-height: 1.45; }
.ch-note b { color: var(--text); }
.ch-sell { display: flex; align-items: center; gap: 12px; margin: 0 18px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: default; }
label.ch-sell { cursor: pointer; }
.ch-sell > div { flex: 1; min-width: 0; }
.ch-sell strong { display: block; font-size: .92rem; }
.ch-sell span { color: var(--muted); font-size: .78rem; }
.ch-sell .btn { white-space: nowrap; }
.ch input.ch-sw[type=checkbox] { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border: 0; padding: 0; min-height: 0; border-radius: 99px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.ch input.ch-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow-sm); }
.ch input.ch-sw:checked { background: var(--lime); }
.ch input.ch-sw:checked::after { transform: translateX(18px); background: var(--ink); }
.ch input.ch-sw:focus-visible { box-shadow: var(--focus); }
.ch-ask { margin: 0 18px 10px; border: 1px solid var(--lime-deep); background: var(--lime-soft); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.ch-ask strong { font-size: .92rem; }
.ch-ask span { font-size: .82rem; color: var(--muted); }
.ch-row { display: flex; gap: 8px; }
.ch-row .btn { flex: 1; }
.ch-list { max-height: 460px; overflow-y: auto; padding: 14px 18px 8px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.ch-empty { color: var(--muted); font-size: .88rem; margin: 6px 0 10px; text-align: center; }
.ch-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.ch-av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: var(--muted); overflow: hidden; }
.ch-av img { width: 100%; height: 100%; object-fit: cover; }
.ch-body { min-width: 0; }
.ch-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .84rem; }
.ch-top b { font-weight: 700; }
.ch-top time { color: var(--faint); font-size: .74rem; margin-left: auto; }
.ch-tag { font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; }
.t-booked { background: var(--ok-bg); color: var(--ok); }
.t-sell { background: var(--lime); color: var(--ink); }
.t-host { background: var(--ink); color: var(--lime); }
.ch-text { margin-top: 3px; background: var(--surface-2); padding: 9px 12px; border-radius: 4px 14px 14px 14px; font-size: .92rem; line-height: 1.4; width: fit-content; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg.me .ch-text { background: var(--court); color: #fff; }
.ch-removed .ch-text { background: none; border: 1px dashed var(--line-strong); color: var(--faint); font-style: italic; }
.ch-acts { display: flex; gap: 12px; margin-top: 3px; }
.ch-acts button { border: 0; background: none; padding: 2px 0; font: inherit; font-size: .74rem; font-weight: 700; color: var(--faint); cursor: pointer; }
.ch-acts button:hover { color: var(--bad); }
.ch-done { font-size: .74rem; color: var(--faint); }
.ch-sys { align-self: center; text-align: center; font-size: .78rem; color: var(--text); background: var(--lime-soft); padding: 6px 12px; border-radius: 99px; }
.ch-form { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.ch-form input { flex: 1; min-width: 0; min-height: 46px; border-radius: 99px; padding: 0 16px; }
.ch-form .btn { border-radius: 99px; min-height: 46px; }
.ch-closed { margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; }
.ch-dlg { max-width: 440px; width: calc(100% - 24px); }
.ch-dlg h3 { margin: 0 0 6px; }
.ch-dlg p { margin: 0 0 12px; font-size: .88rem; }
.ch-pick { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; }
.ch-pick label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-weight: 600; cursor: pointer; }
.ch-pick label.on { border-color: var(--court); box-shadow: 0 0 0 2px var(--court) inset; }
.ch-pick small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.ch-dlg-acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.ch-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .88rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
@media (max-width: 640px) { .ch-list { max-height: 60vh; } }
.ch-give { margin: 0 18px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 8px; }
.ch-give strong { font-size: .92rem; }
.ch-give > span { color: var(--muted); font-size: .78rem; margin-top: -4px; }
.ch-give-box { position: relative; }
.ch-give-box input { width: 100%; min-height: 44px; border-radius: 12px; }
.ch-give-list { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ch-give-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 600; text-align: left; cursor: pointer; color: var(--text); }
.ch-give-list button:first-child { border-top: 0; }
.ch-give-list button:hover { background: var(--surface-2); }
.ch-give-list small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.ch-give-none { margin: 0; padding: 10px 12px; color: var(--muted); font-size: .84rem; }
.ch-give-ok p { margin: 0 0 8px; font-size: .9rem; }
/* Chat, compact (overrides above): no inner scroll box; tighter messages; one seller card */
.ch-head { padding: 12px 14px 8px; }
.ch-head h2 { font-size: 1.05rem; }
.ch-note { margin: 0 14px 8px; padding: 0; background: none; font-size: .78rem; }
.ch-note > summary { list-style: none; cursor: pointer; color: var(--muted); padding: 6px 10px; border-radius: 10px; background: var(--surface-2); }
.ch-note > summary::-webkit-details-marker { display: none; }
.ch-note > summary b { color: var(--text); margin-right: 4px; }
.ch-note > summary::after { content: " ›"; }
.ch-note[open] > summary::after { content: " ⌄"; }
.ch-note p { margin: 6px 2px 0; line-height: 1.45; }
.ch-seller { margin: 0 14px 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: grid; gap: 8px; }
.ch-sell-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .88rem; cursor: pointer; }
.ch input.ch-sw[type=checkbox] { width: 40px; height: 24px; }
.ch input.ch-sw::after { width: 18px; height: 18px; }
.ch input.ch-sw:checked::after { transform: translateX(16px); }
.ch-wait { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.ch-wait b { color: var(--text); }
.ch-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: .82rem; font-weight: 700; color: var(--bad); cursor: pointer; }
.ch-give { margin: 0; padding: 0; border: 0; gap: 0; }
.ch-give-box input { min-height: 40px; font-size: .9rem; }
.ch-ask { margin: 0 14px 8px; padding: 10px 12px; gap: 6px; }
.ch-list { max-height: none; overflow: visible; padding: 10px 14px 6px; gap: 6px; }
.ch-msg { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
.ch-msg + .ch-msg:not(.cont) { margin-top: 4px; }
.ch-msg.cont { margin-top: -2px; }
.ch-av { width: 28px; height: 28px; font-size: .64rem; }
.ch-msg.cont .ch-av { background: none; height: 0; }
.ch-top { font-size: .8rem; gap: 5px; }
.ch-top time { font-size: .7rem; }
.ch-tag { font-size: .58rem; padding: 1px 6px; }
.ch-line { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.ch-text { margin-top: 0; padding: 6px 10px; font-size: .88rem; border-radius: 4px 12px 12px 12px; }
.ch-msg.cont .ch-text { border-radius: 12px; }
.ch-acts { display: inline-flex; gap: 8px; margin: 0 0 4px; flex: none; }
.ch-acts button, .ch-done { font-size: .68rem; }
.ch-sys { font-size: .74rem; padding: 4px 10px; }
.ch-earlier { align-self: center; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.ch-form { padding: 8px 14px 12px; }
.ch-form input { min-height: 40px; }
.ch-form .btn { min-height: 40px; padding: 0 16px; }
.ch-closed { padding: 10px 14px 12px; font-size: .8rem; }
@media (max-width: 640px) { .ch-list { max-height: none; } }
.ch-acts { display: none; }
.ch-msg.show-acts .ch-acts { display: inline-flex; }
.ch-msg:not(.ch-removed) .ch-text { cursor: pointer; }
@media (hover: hover) { .ch-msg:hover .ch-acts { display: inline-flex; } }
/* Slot offers (someone wants to give you their slot) on the homepage and Me */
.offer-strip { padding: 14px 0 0; }
.offer-stack { display: grid; gap: 10px; margin-bottom: 14px; }
.offer-card { margin: 0; box-shadow: var(--shadow-sm); }
.offer-card span { line-height: 1.45; }
.offer-card .ch-row { max-width: 420px; }

/* ===== Homepage (open play first) ===== */
.hero-short .hero-grid { grid-template-columns: minmax(0, 1fr); padding: 44px 20px 40px; }
/* Room for the numbers strip that overlaps the bottom of the banner, so the buttons never touch it. */
@media (min-width: 901px) { .hero-short:has(+ .stat-strip) .hero-grid { padding-bottom: 92px; } }
.hero-short h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 14px; }
.hero-short .lead { max-width: 60ch; }
.hero-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; padding: 6px 12px; font-size: .86rem; margin: 4px 0 18px; color: #e6ede8; }
.hero-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; box-shadow: 0 0 0 4px rgba(255, 90, 78, .25); }
.hero-edit-only { display: none !important; }
.pe-on .hero-edit-only { display: block !important; }
.home-me { padding: 18px 0 4px; }
.home-me .eyebrow { margin-bottom: 8px; }
.hm-next { display: grid; gap: 10px; background: var(--ink); color: #fff; border-radius: 22px; padding: 18px; text-decoration: none; position: relative; overflow: hidden; }
.hm-next::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(215, 255, 24, .3), transparent 70%); pointer-events: none; }
.hm-in { width: fit-content; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .72rem; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; }
.hm-in.due { background: var(--warn-bg); color: var(--warn); }
.hm-next h3 { margin: 0; font-size: 1.3rem; font-weight: 900; line-height: 1.15; color: #fff; }
.hm-meta { color: #b9c6be; font-size: .9rem; }
.hm-chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.hm-chip { display: inline-flex; align-items: center; gap: 6px; background: #1b2a24; border: 1px solid #2a3b33; color: #fff; border-radius: 99px; padding: 7px 12px; font-size: .84rem; font-weight: 700; cursor: pointer; }
.hm-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hm-chip.hm-live { background: #c0392b; border-color: #c0392b; }
.hm-none { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.hm-none div { flex: 1; } .hm-none b { display: block; } .hm-none span { color: var(--muted); font-size: .88rem; }
.home-me .offer-stack { margin: 10px 0 0; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 26px; }
.home-col { min-width: 0; }
.home-sec { padding: 22px 0 6px; }
.hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hs-head h2 { margin: 0; font-size: 1.4rem; font-weight: 900; letter-spacing: -.01em; }
.hs-head .eyebrow { margin-bottom: 4px; }
.hs-more { font-weight: 700; color: var(--ok); font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hw-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.hw-days::-webkit-scrollbar { display: none; }
.hw-day { flex: none; min-width: 56px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 7px 6px; font: inherit; font-weight: 700; font-size: .72rem; color: var(--muted); cursor: pointer; }
.hw-day b { display: block; font-size: 1.1rem; color: var(--text); }
.hw-day:disabled { opacity: .45; cursor: default; }
.hw-day.on { background: var(--ink); border-color: var(--ink); color: #b9c6be; } .hw-day.on b { color: var(--lime); }
.hw-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; scroll-behavior: smooth; }
.hw-rail::-webkit-scrollbar { display: none; }
.hw-card { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; text-decoration: none; color: var(--text); align-content: start; }
.hw-card.is-mine { border-color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.hw-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hw-time { font-weight: 900; font-size: 1.1rem; line-height: 1.1; } .hw-time small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hw-card h3 { margin: 0; font-size: .92rem; font-weight: 800; line-height: 1.3; }
.hw-venue { color: var(--muted); font-size: .8rem; }
.hw-bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; } .hw-bar i { display: block; height: 100%; background: var(--court-2); border-radius: 99px; }
.hw-foot { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; } .hw-foot strong { font-size: 1.02rem; }
.hw-tag { font-size: .62rem; font-weight: 800; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; text-transform: uppercase; white-space: nowrap; }
.t-live { background: #c0392b; color: #fff; } .t-sale { background: var(--lime); color: var(--ink); } .t-full { background: var(--ink); color: var(--lime); } .t-in { background: var(--ok-bg); color: var(--ok); } .t-few { background: var(--warn-bg); color: var(--warn); }
.hw-all { place-content: center; justify-items: center; text-align: center; border-style: dashed; border-width: 2px; border-color: var(--line-strong); font-weight: 800; }
.hw-all b { font-size: 1.6rem; }
.hw-sale { margin-top: 10px; display: flex; align-items: center; gap: 12px; background: var(--lime); color: var(--ink); border-radius: 18px; padding: 12px 14px; text-decoration: none; }
.hw-sale .ic { width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 900; }
.hw-sale > span:nth-child(2) { flex: 1; min-width: 0; } .hw-sale b { display: block; } .hw-sale small { font-size: .82rem; color: #3b4a10; }
.hw-sale em { font-style: normal; font-weight: 800; white-space: nowrap; }
.hr-box { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.hr-pod { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 16px 14px 0; background: linear-gradient(180deg, var(--lime-soft), var(--surface)); }
.hr-p { text-align: center; text-decoration: none; color: var(--text); display: grid; justify-items: center; gap: 2px; min-width: 0; }
.hr-ph { width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 900; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; margin-bottom: 4px; }
.hr-ph img { width: 100%; height: 100%; object-fit: cover; }
.hr-p1 .hr-ph { width: 68px; height: 68px; background: var(--lime); color: var(--ink); }
.hr-p b { font-size: .84rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hr-p small { color: var(--muted); font-size: .74rem; }
.hr-st { margin-top: 6px; width: 100%; background: var(--ink); color: var(--lime); border-radius: 10px 10px 0 0; font-weight: 900; padding: 6px 0; }
.hr-p1 .hr-st { padding: 14px 0; } .hr-p3 .hr-st { padding: 3px 0; }
.hr-row { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--text); text-decoration: none; }
.hr-row .n { font-weight: 900; color: var(--muted); text-align: center; }
.hr-row .a { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: .7rem; font-weight: 800; overflow: hidden; } .hr-row .a img { width: 100%; height: 100%; object-fit: cover; }
.hr-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-row .w { font-weight: 800; } .hr-row .w small { color: var(--muted); font-weight: 600; }
.hr-row.me { background: var(--lime-soft); } .hr-row.me .n { color: var(--ink); }
.hr-empty { margin: 0; padding: 16px; color: var(--muted); font-size: .9rem; }
.hr-reward { padding: 10px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: 8px; }
.hm-price { position: relative; top: auto; padding: 24px 20px; }
.hm-price .amount { margin-top: 10px; }
.hm-price .perk-list { margin-top: 16px; gap: 8px; }
.hm-price-cta { margin-top: 20px; display: grid; gap: 10px; justify-items: start; }
.hm-price-cta .btn { width: 100%; }
.hm-price-more { justify-self: center; color: #b9c6be; font-size: .85rem; font-weight: 700; text-decoration: none; }
.hm-price-more:hover { color: var(--lime); }
.hm-member { background: var(--court); color: #fff; border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hm-member > div { flex: 1; min-width: 200px; display: grid; gap: 3px; }
.hm-member .eyebrow { margin: 0; } .hm-member b { font-size: 1.1rem; } .hm-member span { color: #b9c6be; font-size: .88rem; } .hm-member small { color: var(--lime); font-weight: 800; }
.home-rail-sec { padding-top: 26px; padding-bottom: 10px; }
.ev-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.ev-rail::-webkit-scrollbar { display: none; }
.ev-slide { scroll-snap-align: start; min-width: 0; display: flex; } .ev-slide > * { flex: 1; min-width: 0; }
@media (min-width: 900px) {
  /* Desktop: open play across the full width, then rankings and membership side by side, same height. */
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-col-b { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 26px; align-items: stretch; }
  .home-col-b > .home-sec { display: flex; flex-direction: column; }
  .home-col-b .hr-box { flex: 1; }
  .home-col-b .hm-price { flex: 1; display: flex; flex-direction: column; }
  .home-col-b .hm-price-cta { margin-top: auto; padding-top: 20px; }
  #open-play .op-rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); margin: 0; padding: 4px 0 14px; scroll-padding-left: 0; }
  #open-play .hw-day { min-width: 64px; }
  .hw-rail { grid-auto-columns: calc(50% - 5px); }
  .ev-rail { grid-auto-columns: calc(33.33% - 8px); }
  .home-me { padding-top: 26px; }
}
@media (min-width: 1200px) { #open-play .op-rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); } }
.hs-sub { margin: 4px 0 0; color: var(--muted); font-size: .9rem; max-width: 52ch; }

/* Profile not finished yet: the Me tab (phones) and the header avatar (desktop) glow until it's complete. */
@keyframes pp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(181, 219, 0, .55); } 50% { box-shadow: 0 0 14px 3px rgba(215, 255, 24, .8), 0 0 0 4px rgba(181, 219, 0, .25); } }
.account-trigger.needs-pp { position: relative; border-color: var(--lime-deep); background: var(--lime-soft); animation: pp-glow 2.2s ease-in-out infinite; }
.account-trigger .pp-n { position: absolute; top: -5px; right: -5px; z-index: 1; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--lime); font-style: normal; font-size: .68rem; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.tabbar a.needs-pp .tab-ic > svg, .tabbar a.needs-pp .tab-avatar { background: var(--lime-soft); color: var(--ink); border-radius: 999px; padding: 3px 14px; width: 52px; height: 28px; box-sizing: border-box; animation: pp-glow 2.2s ease-in-out infinite; }
.tabbar a.needs-pp .tab-avatar { padding: 0; width: 28px; }
.tabbar a.needs-pp.on .tab-ic > svg { background: var(--lime); }
.tabbar .pp-badge { background: var(--ink); color: var(--lime); right: -4px; }
@media (prefers-reduced-motion: reduce) { .account-trigger.needs-pp, .tabbar a.needs-pp .tab-ic > svg, .tabbar a.needs-pp .tab-avatar { animation: none; box-shadow: 0 0 0 3px rgba(181, 219, 0, .45); } }
@media (max-width: 900px) { .tabbar a.needs-pp .tab-ic > svg { padding: 3px 11px; width: 46px; } }
/* Desktop: Open Play link glows while there are props to give */
.nav a.needs-props { position: relative; background: var(--lime-soft); color: var(--ink); animation: pp-glow 2.2s ease-in-out infinite; }
.nav-n { font-style: normal; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: .68rem; font-weight: 900; display: inline-grid; place-items: center; vertical-align: 1px; }
@media (prefers-reduced-motion: reduce) { .nav a.needs-props { animation: none; } }
/* Player card: 4th stat box with the After Court rank */
.pc-stats:has(.pc-rank) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pc-rank { text-decoration: none; color: var(--text); gap: 4px; }
.pc-rank:hover { background: var(--surface-2); }
.pc-rank small { font-size: .7rem; font-weight: 600; color: var(--muted); line-height: 1.2; }
.pc-rank .pc-rank-all { color: var(--ok); font-weight: 800; }
@media (max-width: 520px) {
  .pc-stats:has(.pc-rank) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-stats:has(.pc-rank) .pc-stat:nth-child(3) { border-left: 0; }
  .pc-stats:has(.pc-rank) .pc-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Laptop widths: the top bar must fit brand + 5 links + Sign in + Join free without cutting off */
@media (min-width: 901px) and (max-width: 1200px) {
  .header-inner { gap: 14px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 10px; font-size: .88rem; }
  .header-actions { gap: 8px; }
  .site-header .brand-copy small { display: none; }
}
@media (min-width: 901px) and (max-width: 1000px) {
  .nav a { padding: 8px 7px; font-size: .84rem; }
  .header-actions .theme-toggle { display: none; }
}
/* Player session page tabs: Details · Participants · Props · Chat */
.sp-tabs { position: sticky; top: calc(var(--header-h) + var(--safe-top) + 6px); z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.sp-tabs button { border: 0; background: none; padding: 10px 4px; border-radius: 10px; font: inherit; font-weight: 800; font-size: .88rem; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.sp-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.sp-tabs i { font-style: normal; font-size: .72rem; font-weight: 800; color: var(--muted); }
.sp-tabs em { font-style: normal; font-size: .68rem; font-weight: 900; background: #ff6b4a; color: #fff; border-radius: 99px; padding: 1px 7px; }
.sp-tabs em.sale { background: var(--lime); color: var(--ink); }
[data-sp-panel][hidden] { display: none !important; }
[data-sp-panel="chat"] section.ch { margin-top: 0; }
.sp-note { display: grid; gap: 4px; } .sp-note span { color: var(--muted); font-size: .9rem; }
@media (max-width: 420px) { .sp-tabs button { font-size: .8rem; } .sp-tabs em.sale { display: none; } }
/* Get the app banner + install guide */
.ia-wrap { padding-top: 14px; }
.ia-wrap:not(:has(> .ia-banner:not([hidden]))) { display: none; }
.ia-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--ink); color: #fff; margin-bottom: 14px; position: relative; }
.ia-banner[hidden] { display: none; }
.ia-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.ia-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ia-txt b { font-size: .95rem; } .ia-txt span { font-size: .8rem; color: #b9c6be; line-height: 1.35; }
.ia-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #b9c6be; cursor: pointer; font-size: .8rem; }
.me-page .ia-banner { margin: 0 0 16px; }
.ia-dlg { width: min(440px, calc(100vw - 24px)); }
.ia-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ia-steps li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.ia-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; display: grid; place-items: center; }
.ia-ic { width: 18px; height: 18px; vertical-align: -3px; color: var(--info); }
.me-group [hidden] { display: none !important; }
.ia-steps .ia-ic { display: inline-block; margin: 0 2px; }
.ia-txt b { font-size: .9rem; line-height: 1.25; } .ia-txt span { font-size: .78rem; }
.ia-banner { gap: 10px; padding: 10px 10px 10px 12px; }
.ia-icon { width: 40px; height: 40px; }
/* Tagline under the club name: show it on every screen size, a touch smaller so the header still fits. */
@media (max-width: 1200px) {
  .site-header .brand-copy small { display: block; font-size: .56rem; letter-spacing: .12em; white-space: nowrap; }
}
/* Community chat (floating chat button) */
.cw-panel.cw-community { height: min(560px, calc(100dvh - 120px)); }
@media (max-width: 900px) { .cw-panel.cw-community { height: calc(100dvh - 170px - var(--safe-top)); } }
.cw-community .cw-list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; border-top: 0; padding: 12px 14px 8px; gap: 6px; }
.cw-community .ch-form { flex: none; }
.cw-community .ch-form input { font-size: 16px; }   /* 16px stops iPhones zooming in on the box */
.cw-signin { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.cw-signin .btn { flex: none; }
.cw-note { flex: none; margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); text-align: center; }
.cw-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #ff6b4a; color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--surface); }
.cw-dot[hidden] { display: none; }
.cw-flag { font-size: .64rem; font-weight: 800; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; text-transform: uppercase; background: #ffe2db; color: #c2410c; }
.cw-flagged .ch-text { outline: 2px solid #ffb4a2; }
.cw-community .cw-list { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.cw-n[hidden] { display: none; }

/* Chat button: three player faces (the latest people chatting) on a lime circle with a white ring. */
.cw-btn { width: 64px; height: 64px; padding: 0; border-radius: 50%; background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 3px var(--surface), 0 10px 28px rgba(0, 0, 0, .35); display: block; }
.cw-faces { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.cw-row { display: flex; }
.cw-face { width: 23px; height: 23px; border-radius: 50%; border: 2px solid var(--lime); overflow: hidden; margin-left: -7px;
  display: grid; place-items: center; font-size: .52rem; font-weight: 800; letter-spacing: 0; line-height: 1; flex: none; }
.cw-face:first-child { margin-left: 0; }
.cw-face img { width: 100%; height: 100%; object-fit: cover; }
.cw-face.f1 { background: #ff6b4a; color: #fff; z-index: 3; }
.cw-face.f2 { background: var(--ink); color: var(--lime); z-index: 2; }
.cw-face.f3 { background: #4f8cff; color: #fff; z-index: 1; }
.cw-face.emo { font-size: .8rem; background: #fff; }
.cw-bub { width: 20px; height: 16px; animation: cw-bub 4s ease-in-out 1.5s infinite; transform-origin: 20% 90%; }
@keyframes cw-bub { 0%, 70%, 100% { transform: scale(1); } 76% { transform: scale(1.25) rotate(-8deg); } 82% { transform: scale(.95); } 88% { transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .cw-bub { animation: none; } }
.cw-btn .cw-n { top: -9px; right: -11px; min-width: 24px; height: 24px; padding: 0 6px; font-size: .74rem; background: #ff3b30; color: #fff; border: 2px solid var(--surface); z-index: 4; }
@media (max-width: 900px) { .cw-btn { width: 60px; height: 60px; } }

/* Chat open: blur the page behind it and stop the page from scrolling. */
.cw-backdrop { position: fixed; inset: 0; z-index: 0; background: rgba(11, 20, 17, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cw-backdrop[hidden] { display: none; }
.cw.is-open { z-index: 120; }
.cw.is-open .cw-panel { z-index: 1; }
html.cw-open, html.cw-open body { overflow: hidden; overscroll-behavior: none; }

/* @tags in the community chat */
.cw-at { flex: none; max-height: 210px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); background: var(--surface); padding: 4px; }
.cw-at[hidden] { display: none; }
.cw-at button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--text); text-align: left; cursor: pointer; }
.cw-at button:hover, .cw-at button:focus-visible { background: var(--surface-2); }
.cw-at .ch-av { width: 30px; height: 30px; flex: none; }
.cw-tag { display: inline; border: 0; padding: 0 3px; margin: 0; border-radius: 6px; background: rgba(79, 140, 255, .16); color: #2563eb; font: inherit; font-weight: 800; cursor: pointer; }
span.cw-tag { cursor: default; }
.ch-msg.me .cw-tag { background: rgba(255, 255, 255, .2); color: #fff; }
.cw-tag.me { background: var(--lime); color: var(--ink); }
.cw-at-me .ch-text { box-shadow: inset 3px 0 0 var(--lime); }
.cw-btn .cw-n.cw-n-at { background: #2563eb; font-size: .85rem; }
:root[data-theme="dark"] .cw-tag:not(.me) { color: #8ab4ff; }

/* Phone notifications */
.pn-banner .pn-bell { width: 44px; height: 44px; border-radius: 11px; background: var(--lime); display: grid; place-items: center; font-size: 22px; flex: none; }
.pn-state { font-size: .78rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.pn-state.is-on { color: var(--ok); }
.pn-back { display: inline-block; margin-bottom: 10px; font-weight: 700; color: var(--muted); }
.pn-h1 { font-size: 1.8rem; margin: 2px 0 6px; }
.pn-lead { margin: 0 0 18px; }
.pn-card { padding: 18px; margin-bottom: 16px; }
.pn-status { display: flex; gap: 12px; align-items: center; }
.pn-status .pn-bell { width: 46px; height: 46px; border-radius: 14px; background: var(--lime); display: grid; place-items: center; font-size: 22px; flex: none; }
.pn-status b { display: block; font-size: 1.05rem; }
.pn-status span { color: var(--muted); font-size: .9rem; line-height: 1.4; display: block; margin-top: 2px; }
.pn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pn-actions:not(:has(> :not([hidden]))) { display: none; }
.pn-actions .btn-primary { flex: 1 1 100%; }
.pn-devices { margin: 12px 0 0; font-size: .82rem; }
.pn-h3 { margin: 0 0 6px; }
.pn-row { margin-top: 8px; }
.pn-foot { font-size: .82rem; text-align: center; }
.sa-app { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.sa-app-ic { font-size: 1.4rem; }
.sa-app b { display: block; font-size: 1rem; }
.sa-app small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.ia-have { border: 0; background: none; padding: 0; margin: 0; font: inherit; font-size: .78rem; color: var(--lime); text-decoration: underline; cursor: pointer; white-space: nowrap; }
/* First open in the app: "turn on notifications" card */
.pn-intro { position: fixed; inset: 0; z-index: 150; display: grid; align-items: end; background: rgba(11, 20, 17, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pn-sheet { background: var(--surface); color: var(--text); border-radius: 24px 24px 0 0; padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); text-align: center; max-width: 520px; width: 100%; margin: 0 auto; }
@media (min-width: 600px) { .pn-intro { align-items: center; } .pn-sheet { border-radius: 24px; } }
.pn-sheet .pn-bell { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 16px; background: var(--lime); display: grid; place-items: center; font-size: 28px; }
.pn-sheet h3 { margin: 0 0 4px; font-size: 1.35rem; }
.pn-sheet p { margin: 0 0 8px; color: var(--muted); }
.pn-sheet ul { text-align: left; margin: 0 0 18px; padding-left: 20px; line-height: 1.5; font-size: .95rem; }
.pn-skip { display: block; margin: 10px auto 4px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.pn-sheet small { color: var(--faint); font-size: .78rem; }
.ia-tip { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .88rem; line-height: 1.45; }
/* Open play sessions shown on the Events tab */
.ev-op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ev-op-grid .op-slide { width: auto; min-width: 0; max-width: none; flex: none; }
@media (max-width: 640px) { .ev-op-grid { grid-template-columns: 1fr; } }

/* Bottom tabs: instant press feedback and the loading bar (static/app.js) */
.tabbar a, .tabbar button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tabbar .pressing .tab-ic, .tabbar .pressing > svg { transform: scale(.9); transition: transform .08s ease; }
.tabbar .tab-ic, .tabbar a > svg { transition: transform .15s ease; }
.nav-progress { position: fixed; top: var(--safe-top, 0px); left: 0; height: 3px; width: 0; z-index: 300; background: var(--lime); box-shadow: 0 0 8px rgba(215, 255, 24, .7); pointer-events: none; }
.nav-progress.go { animation: nav-progress 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes nav-progress { 0% { width: 0; } 30% { width: 45%; } 100% { width: 88%; } }
@media (prefers-reduced-motion: reduce) { .nav-progress.go { animation-duration: .01s; } }
/* iPhone tab tick: an invisible real switch over each tab (static/app.js) */
.tabbar a, .tabbar button { position: relative; }
.tabbar .tab-tick { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0;
  -webkit-appearance: none; appearance: none; background: none; cursor: pointer; z-index: 2; }
/* Signed out on phones: "Join free" top right of the header */
@media (max-width: 900px) {
  .header-actions .hdr-join { padding: 8px 14px; font-size: .85rem; white-space: nowrap; }
}
@media (max-width: 370px) {
  .site-header .brand-copy small { display: none; }   /* very small phones: keep the button, drop the tagline */
}
/* Notification nudges */
.pn-ctx:has(> .ia-banner[hidden]), .pn-ctx:empty { display: none; }
.pn-ctx { margin: 0 0 16px; }
.tabbar .tab-ic .pn-dot { position: absolute; top: -2px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: #ff3b30; border: 2px solid var(--surface); }
.pn-off { margin-left: 6px; font-size: .85em; cursor: help; }


/* Admin -> DUPR matches (dupr_matches.py) */
.dm-sessions { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.dm-sess { flex: none; display: grid; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; min-width: 170px; }
.dm-sess small { color: var(--muted); }
.dm-sess.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.dm-list { display: grid; }
.dm-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 18px; border-top: 1px solid var(--line); }
.dm-no { font-weight: 900; color: var(--muted); padding-top: 4px; }
.dm-teams { display: grid; gap: 6px; min-width: 0; }
.dm-team { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.dm-team span { min-width: 0; overflow-wrap: anywhere; }
.dm-team small { font-size: .72rem; color: var(--muted); }
.dm-team b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.dm-team.win b { color: var(--ok); }
.dm-probs { margin: 4px 0 0; padding-left: 18px; color: var(--warn); font-size: .85rem; }
.dm-err { margin: 2px 0 0; color: var(--bad); font-size: .82rem; }
.dm-acts { display: grid; justify-items: end; gap: 6px; text-align: right; }
.dm-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.dm-del { color: var(--bad); }
.dm-void { background: color-mix(in srgb, var(--bad) 5%, transparent); }
@media (max-width: 640px) { .dm-row { grid-template-columns: 34px minmax(0, 1fr); } .dm-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; } .dm-btns { justify-content: flex-start; } }

/* Unread chat count (chat.py) on the session's Chat tab and on My open play cards */
.chat-n { font-style: normal; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 999px; background: #ff3b30; color: #fff; font-size: .7rem; font-weight: 900; line-height: 1; vertical-align: 2px; }
.chat-n-card { height: 20px; padding: 0 7px; font-size: .72rem; vertical-align: 3px; }

/* DUPR mark (dupr.dupr_badge): stand-in until DUPR's official logo files arrive */
.dupr-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #1e3a8a; color: #fff;
  font-weight: 900; font-size: .74rem; letter-spacing: .04em; line-height: 1; padding: 5px 8px; border-radius: 6px; vertical-align: middle; }
.dupr-badge-sm { font-size: .62rem; padding: 3px 6px; border-radius: 5px; vertical-align: 1px; }
.dupr-badge-card { font-size: .66rem; padding: 4px 7px; margin-top: 4px; }
.dupr-badge-pill { font-size: .72rem; padding: 6px 10px; border-radius: 999px; }
.dupr-badge-nudge { font-size: .72rem; padding: 4px 7px; }
.dupr-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
:root[data-theme="dark"] .dupr-badge { background: #3b5bdb; }
.op-card .op-when span.dupr-badge, .op-slide .op-slide-time span.dupr-badge { color: #fff; opacity: 1; letter-spacing: .04em; }

/* Member price on cards: regular price crossed out next to the member price */
.op-price-row { display: inline-flex; align-items: baseline; gap: 8px; }
.op-price-row s, .op-was { color: var(--muted); font-weight: 600; font-size: .85em; margin-right: 6px; }
.op-price-row s { margin-right: 0; }
.dupr-badge-title { font-size: .62rem; padding: 4px 7px; margin-left: 4px; vertical-align: 3px; letter-spacing: .04em; }
.dm-flag { margin: 4px 0 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: .85rem; }
.dm-report.is-done { opacity: .65; }
.dm-mine { margin-bottom: 12px; }

/* ---------- Loyalty card (design B: cream card, pickleball stamps, AC navy) ---------- */
.lc { --lc-navy: #16213f; --lc-ball: #c6e800; --lc-paper: #f8f5ea; --lc-muted: #7a745f; --lc-line: #c9c2ab;
  display: block; position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 16px; text-decoration: none;
  background: var(--lc-paper); color: var(--lc-navy); border: 1px solid #ded8c4; box-shadow: 0 12px 30px rgba(22,33,63,.12); }
.lc-link { transition: transform .15s ease, box-shadow .15s ease; }
.lc-link:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(22,33,63,.18); }
.lc-top { display: flex; align-items: center; gap: 12px; }
.lc-logo { width: 42px; height: 42px; border-radius: 50%; object-fit: contain; background: var(--lc-navy); flex: none; }
.lc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.lc-name small { font-size: .66rem; letter-spacing: .18em; font-weight: 800; color: var(--lc-muted); }
.lc-name b { font-size: 1.1rem; font-weight: 900; }
.lc-count { display: flex; align-items: baseline; gap: 3px; }
.lc-count b { font-size: 1.9rem; font-weight: 900; line-height: 1; color: var(--lc-navy); }
.lc-count span { color: var(--lc-muted); font-weight: 700; }
/* Stamps per row come from the card size (--lc-cols) so rows are even; a shorter last row sits in the middle */
.lc-grid { --lc-cols: 5; --lc-gap: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--lc-gap);
  margin: 16px auto 14px; max-width: calc(var(--lc-cols) * 70px); }
.lc-slot { flex: 0 0 calc((100% - (var(--lc-cols) - 1) * var(--lc-gap)) / var(--lc-cols)); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--lc-line); color: #a39c86;
  font-size: .82rem; font-weight: 800; }
.lc-slot em, .lc-slot i { font-style: normal; }
.lc-slot.gift { border: 2px solid var(--lc-navy); color: var(--lc-navy); font-size: 1rem; }
.lc-slot.on { border: 0; }
.lc-slot svg { width: 100%; height: 100%; display: block; }
.lc-ball { fill: var(--lc-ball); }
.lc-holes circle { fill: var(--lc-paper); }
.lc-slot.half { border: 2px dashed var(--lc-line); }
.lc-halfring { fill: none; stroke: transparent; }
/* Invite a friend */
.ref-link { display: flex; gap: 8px; }
.ref-link input { flex: 1; min-width: 0; font-size: .85rem; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2, inherit); }
.ref-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ref-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 700; font-size: .9rem; }
.ref-list em { font-style: normal; font-weight: 600; font-size: .8rem; color: var(--muted); }
.ref-list em.ok { color: var(--ok); font-weight: 800; }
.ref-pick { display: flex; flex-direction: column; gap: 8px; }
.ref-results { display: flex; flex-wrap: wrap; gap: 6px; }
.ref-opt { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-weight: 700; cursor: pointer; color: inherit; }
.ref-opt:hover { border-color: var(--ink); }
.lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.lc-next { color: var(--lc-navy); font-weight: 600; }
.lc-next b { font-weight: 900; }
.lc-exp { color: #fff; background: var(--lc-navy); font-weight: 700; font-size: .78rem; white-space: nowrap; padding: 4px 10px; border-radius: 99px; }
.hm-lc { margin-top: 14px; max-width: 520px; }
.me-lc { margin: 4px 0 18px; }
.lc-ms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lc-ms li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-weight: 700; }
.lc-ms li em { margin-left: auto; font-style: normal; font-size: .75rem; font-weight: 800; color: var(--ok); }
.lc-ms li.done { background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }
.lc-ms-at { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 900; }
.lc-hist { display: flex; flex-direction: column; gap: 6px; }
.lc-h { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.lc-h > b { flex: none; width: 40px; text-align: center; font-weight: 900; color: var(--ok); }
.lc-h > b.neg { color: var(--bad); }
.lc-h span { display: flex; flex-direction: column; font-weight: 700; }
.lc-h small { color: var(--muted); font-weight: 600; }

/* Share stats (statcards) */
.sc-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.sc-bar .btn { display: inline-flex; align-items: center; gap: 8px; }
.sc-bar .btn svg { width: 18px; height: 18px; }
.sc-note { font-size: .8rem; color: var(--muted); margin: 0 0 14px; }
.sc-card { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 12px 30px rgba(11,20,17,.15); }
.sc-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.sc-row { display: grid; grid-template-columns: 32px 40px 1fr auto 48px; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.sc-row.top { background: color-mix(in srgb, var(--lime) 28%, var(--surface)); }
.sc-row > b { font-weight: 900; text-align: center; }
.sc-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--court, #0c3a2c); color: #fff; font-weight: 900; font-size: .8rem; }
.sc-av img { width: 100%; height: 100%; object-fit: cover; }
.sc-nm { font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-nm a { color: inherit; text-decoration: none; }
.sc-wl { font-weight: 900; }
.sc-pc { color: var(--muted); font-weight: 700; text-align: right; }
.op-res-link { display: block; margin: 8px 0 0; font-weight: 800; color: var(--text); text-decoration: none; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--lime) 30%, var(--surface)); }

/* Participants: name, then one rating pill, then Official Member (logo + 2 lines); navy initials, lime guests */
.op-grid { align-items: start; }
.op-player strong { min-height: 2.5em; display: flex; align-items: flex-start; justify-content: center; }
.op-photo.is-ini { background: #16213f; color: #fff; border-color: #fff; }
.op-photo.is-guest { background: #e8fb8f; color: #0b1411; border-color: #fff; }
.op-rate { gap: 4px; padding: 3px 9px 3px 3px; border-radius: 99px; font-size: .78rem; font-weight: 900; white-space: nowrap; background: #ebe9e1; color: #3d4240; }
.op-rate .op-dupr-tag, .op-rate .op-self-tag { font-size: .6rem; letter-spacing: .06em; padding: 2px 6px; border-radius: 99px; }
.op-rate:has(.op-dupr-tag) { background: #e3e8f6; color: #16213f; }
.op-rate .op-self-tag { background: #fff; color: #3d4240; border: 1px solid #d4d1c6; }
.op-member { display: inline-flex; align-items: center; gap: 5px; text-align: left; color: #16213f; letter-spacing: .08em; }
.op-member img { width: 22px; height: 22px; border-radius: 50%; flex: none; object-fit: contain; background: #16213f; }
.op-member span { display: block; font-size: .56rem; line-height: 1.1; }
:root[data-theme="dark"] .op-rate { background: rgba(255,255,255,.08); color: var(--text); }
:root[data-theme="dark"] .op-rate:has(.op-dupr-tag) { background: rgba(59,91,219,.25); color: #dbe4ff; }
:root[data-theme="dark"] .op-member { color: var(--lime); }
/* Interested / waitlist */
.op-interest { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-strong); }
.op-interest.on { border-style: solid; background: color-mix(in srgb, var(--lime) 22%, var(--surface)); }
.op-interest > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-interest span { font-size: .84rem; color: var(--muted); }
.op-interest form { flex: none; }
.op-int-head { margin-top: 6px; }
.op-int .op-photo { width: 52px; height: 52px; font-size: .95rem; opacity: .85; }
.op-int strong { min-height: 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 640px) { .op-int .op-photo { width: 46px; height: 46px; } }

/* Profile: partners */
.pm-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pm-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); }
.pm-card small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.pm-card b { font-weight: 800; line-height: 1.2; }
.pm-card span:last-child { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pm-card.best { background: color-mix(in srgb, var(--lime) 28%, var(--surface)); border-color: color-mix(in srgb, var(--lime) 60%, var(--line)); }
.pm-card.tough { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.pm-face { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; margin: 4px 0;
  background: var(--ink); color: var(--lime); font-weight: 900; }
.pm-face img { width: 100%; height: 100%; object-fit: cover; }
.pm-list .pf-li { gap: 10px; }
.pm-nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pm-nm a { color: inherit; }
.pm-bar { flex: 0 0 70px; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pm-bar i { display: block; height: 100%; background: var(--lime-deep, #9bc400); }

/* How it works (/help) */
.hp .container-narrow { max-width: 760px; }
.hp-hero { margin-bottom: 18px; }
.hp-hero h1 { margin: 6px 0 8px; font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.05; }
.hp-hero p { margin: 0; font-size: 1.02rem; }
.hp-jump { position: sticky; top: calc(var(--header-h, 64px) + var(--safe-top, 0px)); z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 0; margin: 0 0 8px; background: var(--bg); }
.hp-jump::-webkit-scrollbar { display: none; }
.hp-jump a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .86rem; }
.hp-jump a:hover { border-color: var(--line-strong); }
.hp-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-top: 14px; scroll-margin-top: calc(var(--header-h, 64px) + 70px); }
.hp-sec > .btn { margin-top: 14px; }
.hp-sec-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.hp-sec-head h2 { margin: 0; font-size: 1.35rem; }
.hp-sec-head p { margin: 2px 0 0; color: var(--muted); }
.hp-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; background: var(--lime); }
.hp-steps { counter-reset: hp; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hp-steps li { counter-increment: hp; position: relative; padding: 2px 0 2px 42px; line-height: 1.5; }
.hp-steps li::before { content: counter(hp); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 900; font-size: .85rem; }
:root[data-theme="dark"] .hp-steps li::before { background: var(--lime); color: var(--ink); }
.hp-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.hp-tip { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: .92rem; }
.hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hp-card { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.hp-card p { margin: 4px 0 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.hp-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hp-perks span { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: .86rem; }
.hp-help { display: grid; gap: 4px; margin-top: 14px; padding: 14px; border-radius: 14px; border: 1px dashed var(--line-strong); }
@media (max-width: 560px) {
  .hp-sec { padding: 16px; border-radius: 18px; }
  .hp-grid { grid-template-columns: 1fr; }
  .hp-sec > .btn { width: 100%; }
}

/* Home: "New here?" link to the player guide (How it works) */
.home-guide { display: flex; align-items: center; gap: 14px; margin: 18px 0 4px; padding: 14px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.home-guide:hover { border-color: var(--line-strong); }
.home-guide-wrap { margin-top: 8px; margin-bottom: 40px; }
.home-guide-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--ink); }
.home-guide-ic svg { width: 22px; height: 22px; }
.home-guide-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.home-guide-txt small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.home-guide-go { flex: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .86rem; }
:root[data-theme="dark"] .home-guide-go { background: var(--lime); color: var(--ink); }
@media (max-width: 560px) {
  .home-guide { padding: 12px 14px; gap: 12px; }
  .home-guide-go { display: none; }
  .home-guide-txt::after { content: "How it works →"; font-weight: 800; font-size: .86rem; color: var(--ok); margin-top: 2px; }
}

/* Home: "You finished #N in October!" pop-up (monthly Top 10 reward) */
.rk-pop { width: min(400px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.rk-pop::backdrop { background: rgba(6, 12, 9, .6); backdrop-filter: blur(3px); }
.rk-pop[open] { animation: rkIn .45s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes rkIn { from { transform: translateY(24px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.rk-pop-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rk-pop-top { position: relative; padding: 28px 20px 22px; text-align: center; color: #fff;
  background: radial-gradient(circle at 50% 0%, rgba(215,255,24,.35), transparent 60%), linear-gradient(160deg, #10251b, #070d0a); }
.rk-pop-medal { font-size: 2.6rem; line-height: 1; }
.rk-pop-rank { font-size: 4.2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--lime); margin-top: 6px; font-style: italic; }
.rk-pop-eb { margin-top: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.rk-pop-body { padding: 20px 20px 22px; }
.rk-pop-body h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.15; }
.rk-pop-body > p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.rk-pop-reward { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--lime); color: var(--ink); }
.rk-pop-reward > span { font-size: 1.6rem; }
.rk-pop-reward b { display: block; font-size: 1.02rem; }
.rk-pop-reward small { display: block; font-size: .8rem; opacity: .8; margin-top: 2px; }
.rk-pop .rk-pop-how { margin: 10px 0 0; font-size: .84rem; }
.rk-pop-acts { display: grid; gap: 8px; margin-top: 16px; }

/* ===================================================================
   Official DUPR partner (home strip + footer badge)
   =================================================================== */
.dp-strip { display: flex; align-items: center; gap: 16px; margin: 16px 0 6px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.dp-strip-head { flex: none; display: grid; gap: 6px; justify-items: start; }
.dp-strip-logo { width: 108px; height: auto; display: block; }
:root[data-theme="dark"] .dp-strip-logo { content: url('/static/img/dupr-logo-white.png'); }
.dp-strip-eb { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #0f4299; }
:root[data-theme="dark"] .dp-strip-eb { color: #8fb0ff; }
.dp-strip-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dp-strip-txt b { font-size: 1.02rem; line-height: 1.25; }
.dp-strip-txt small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.dp-strip-go { flex: none; padding: 10px 16px; border: 0; border-radius: 999px; background: #0f4299; color: #fff; font: inherit; font-weight: 800; font-size: .86rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dp-strip-go:hover { background: #0c3780; }
@media (max-width: 560px) {
  .dp-strip { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
  .dp-strip-head { display: flex; align-items: center; gap: 10px; flex-basis: 100%; }
  .dp-strip-logo { width: 74px; }
  .dp-strip-txt { flex-basis: 100%; }
  .dp-strip-go { width: 100%; text-align: center; padding: 11px 16px; }
}
.ft-dupr { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); color: #c9d4cc; font-size: .78rem; font-weight: 700; }
.ft-dupr img { width: 64px; height: auto; display: block; }

/* ===================================================================
   Supported by: sponsor logos in a loop (sponsors.py)
   =================================================================== */
.sp-strip { padding: 26px 0 30px; overflow: hidden; }
.sp-strip-h { text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sp-marquee { position: relative; overflow: hidden; padding: 0 16px; }
.sp-track { display: flex; justify-content: center; gap: 14px; }
.sp-marquee.is-moving { padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sp-marquee.is-moving .sp-track { justify-content: flex-start; width: max-content; animation: spScroll var(--sp-dur, 30s) linear infinite; }
.sp-marquee.is-moving:hover .sp-track, .sp-marquee.is-moving:focus-within .sp-track { animation-play-state: paused; }
@keyframes spScroll { from { transform: translateX(0); } to { transform: translateX(var(--sp-shift, -50%)); } }
.sp-marquee.is-scroll { overflow-x: auto; scrollbar-width: none; }
.sp-marquee.is-scroll .sp-track { justify-content: flex-start; width: max-content; }
.sp-logo-link { flex: none; display: grid; place-items: center; width: 150px; height: 72px; padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-sizing: border-box; }
.sp-logo-link:hover { border-color: var(--line-strong); }
.sp-logo-link img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
:root[data-theme="dark"] .sp-logo-link { background: #fff; }
@media (max-width: 560px) { .sp-logo-link { width: 124px; height: 60px; padding: 10px 14px; } .sp-strip { padding: 20px 0 24px; } }

/* ===================================================================
   Phone design pass: less scrolling to get to what players came for
   =================================================================== */
@media (max-width: 900px) {
  /* "Finish your profile": one slim line (shown on Home and Me only) */
  [data-pnudge] { padding-top: 8px; padding-bottom: 4px; }
  [data-pnudge] .pnudge-card { padding: 6px 6px 6px 10px; gap: 10px; border-radius: 14px; }
  [data-pnudge] .pnudge-txt > span { display: none; }
  [data-pnudge] .pnudge-txt b { font-size: .88rem; }
  [data-pnudge] .pc-ring.sm { transform: scale(.82); }
  [data-pnudge] .pnudge-go { padding: 7px 14px; font-size: .82rem; }
  [data-pnudge] .pnudge-later { width: 30px; height: 30px; }

  /* Page tops: smaller title, less space before the content */
  .page { padding-top: 14px; }
  .page .section-head h1 { font-size: 1.75rem; line-height: 1.1; margin: 2px 0 4px; }
  .page .section-head p { font-size: .9rem; margin: 0; }
  .page .section-head { margin-bottom: 14px; gap: 6px; }

  /* Chat bubble: smaller, tucked in; hidden where a bottom booking bar is showing */
  .cw-btn { transform: scale(.8); transform-origin: bottom right; }
  .cw { right: 10px; }
  body:has(.m-actionbar) .cw { display: none; }

  /* Footer: short on phones (the tab bar already links every section) */
  .site-footer .footer-top { padding: 18px 0 6px; gap: 10px; grid-template-columns: 1fr; }
  .site-footer .footer-top > div:not(.footer-brand):not(.footer-nav) h4 { display: none; }
  .site-footer .footer-top > div:not(.footer-brand):not(.footer-nav) { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; }
  .site-footer .footer-top a { padding: 4px 0; }
  .site-footer .social-row a { width: 40px; height: 40px; min-height: 0; flex: none; }   /* round, not stretched by the 44px tap rule */
  .site-footer .footer-bottom { padding: 6px 0 18px; font-size: .78rem; }

  /* Home: tighter rhythm between sections; signed-in players skip the big welcome banner */
  .home-sec { padding-top: 22px; padding-bottom: 6px; }
  .section, .home-rail-sec { padding-top: 34px; padding-bottom: 34px; }
  body:has(.home-me) .hero { display: none; }
  body:has(.home-me) .ia-wrap:empty { display: none; }
  .home-me { padding-top: 14px; }
}

/* Admin -> Sponsors */
.sp-add { margin-bottom: 18px; }
.sp-list { display: grid; gap: 10px; }
.sp-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.sp-item-top { display: flex; align-items: center; gap: 12px; }
.sp-logo { flex: none; width: 96px; height: 52px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 6px; box-sizing: border-box; }
.sp-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sp-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sp-info small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.sp-item-top > .pill { flex: none; }
.sp-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.sp-acts form { display: inline-flex; gap: 4px; }
@media (max-width: 560px) { .sp-item-top { flex-wrap: wrap; } .sp-info { flex-basis: calc(100% - 110px); } }
/* Footer: "Partner with After Court" (sponsorship inquiries) */
.ft-partner { display: grid; gap: 4px; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.22); max-width: 380px; }
.ft-partner b { color: #fff; font-size: .92rem; }
.ft-partner span { color: #aab8ae; font-size: .82rem; line-height: 1.45; }
.ft-partner a { justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .82rem; text-decoration: none; }
@media (max-width: 900px) { .site-footer .ft-partner a { padding: 9px 16px; } }

/* ===================================================================
   Message the club (messages.py): player conversation + Admin -> Inbox
   =================================================================== */
.ib-box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.ib-list { display: flex; flex-direction: column; gap: 12px; padding: 16px; max-height: min(60vh, 560px); overflow-y: auto; background: var(--surface-2); }
.ib-msg { display: grid; gap: 3px; max-width: 82%; }
.ib-msg small { color: var(--muted); font-size: .72rem; padding: 0 4px; }
.ib-msg.from-me { align-self: flex-end; justify-items: end; }
.ib-msg.from-club { align-self: flex-start; }
.ib-bubble { padding: 10px 14px; border-radius: 18px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.from-me .ib-bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.from-club .ib-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
:root[data-theme="dark"] .from-me .ib-bubble { background: var(--lime); color: var(--ink); }
.ib-topic { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 999px; background: rgba(215,255,24,.9); color: var(--ink); font-size: .68rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }
.from-club .ib-topic { background: var(--surface-2); color: var(--text); }
.ib-empty { margin: auto; text-align: center; color: var(--muted); display: grid; gap: 4px; padding: 24px 10px; font-size: .9rem; }
.ib-empty span { font-size: 1.8rem; }
.ib-empty b { color: var(--text); }
.ib-form { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.ib-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; resize: vertical; min-height: 84px; }
.ib-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ib-topics::-webkit-scrollbar { display: none; }
.ib-chip { flex: none; cursor: pointer; }
.ib-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ib-chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; font-weight: 700; }
.ib-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.ib-chip input:focus-visible + span { outline: 2px solid var(--lime); }
:root[data-theme="dark"] .ib-chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.ib-form-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Admin list */
.ib-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.ib-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; font-size: .86rem; }
.ib-tabs a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ib-tabs b { margin-left: 4px; opacity: .7; }
.ib-threads { display: grid; gap: 8px; }
.ib-thread { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.ib-thread.unread { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--lime); }
.ib-thread.unread strong { font-weight: 900; }
.ib-thread-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ib-thread-top { display: flex; justify-content: space-between; gap: 8px; }
.ib-thread-top small { color: var(--muted); flex: none; }
.ib-thread-sub { color: var(--muted); font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-thread .ib-topic { background: var(--surface-2); color: var(--text); margin-bottom: 0; }
.ib-who { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; flex-wrap: wrap; }
.ib-who .avatar { width: 46px; height: 46px; }
.ib-who-main { flex: 1; min-width: 0; }
.ib-who-main h1 { margin: 0; font-size: 1.35rem; }
.ib-who-main small { color: var(--muted); overflow-wrap: anywhere; }
.ib-who-acts { display: flex; gap: 6px; align-items: center; }
/* Footer button for visitors */
.ft-partner button { justify-self: start; margin-top: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
body:has(.ib-form) .cw { display: none; }   /* keep the chat bubble off the message box */

/* Chat tab in the phone's bottom bar (7 tabs) + Community / Help desk inside the chat panel */
@media (max-width: 900px) {
  .tabbar.t7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .tabbar.t7 a, .tabbar.t7 button { font-size: .64rem; letter-spacing: -.01em; white-space: nowrap; }
  .tabbar.t7 a.on .tab-ic > svg, .tabbar.t7 a.on > svg, .tabbar.t7 a.on .tab-avatar,
  .tabbar.t7 a.needs-pp .tab-ic > svg { width: 44px; padding: 3px 10px; }
  .tabbar .tab-chat { cursor: pointer; }
  .tabbar .tab-chat.on { color: var(--text); }
  .tabbar .tab-chat.on .tab-ic > svg { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 3px 10px; width: 44px; height: 28px; box-sizing: border-box; }
  .cw-btn { display: none !important; }   /* the Chat tab replaces the floating button on phones */
}
@media (max-width: 360px) { .tabbar.t7 a, .tabbar.t7 button { font-size: .58rem; } }
.tabbar .tab-badge.tab-red { background: #ff3b30; color: #fff; }
.tabbar .tab-dot[hidden] { display: none; }
.cw.cw-show { display: block !important; }
.cx-seg { flex: none; display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.cx-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: 8px 10px; font: inherit; font-weight: 700; font-size: .86rem; color: var(--muted); cursor: pointer; }
.cx-seg button.on { background: var(--ink); color: var(--lime); border-color: transparent; }
:root[data-theme="dark"] .cx-seg button.on { background: var(--lime); color: var(--ink); }
.cx-seg em { font-style: normal; background: #ff3b30; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: .7rem; font-weight: 800; display: inline-grid; place-items: center; }
.cx-pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cx-pane[hidden] { display: none; }
.hd-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--surface-2); }
.hd-list .ib-msg { max-width: 86%; }
.hd-list .ib-bubble { font-size: .92rem; }
.cx-pane .ch-form { flex: none; }
.cx-pane .ch-form input { font-size: 16px; }
.cx-full { flex: none; display: block; text-align: center; font-size: .8rem; color: var(--muted); padding: 0 0 10px; }

/* Chat -> Messages: players' one-to-one conversations */
.cx-seg { gap: 5px; padding: 8px 10px; }
.cx-seg button { padding: 8px 6px; font-size: .8rem; white-space: nowrap; }
.pm-pane { position: relative; }
.pm-inbox, .pm-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pm-inbox[hidden], .pm-chat[hidden] { display: none; }
.pm-search { flex: none; padding: 10px 12px 6px; }
.pm-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px 10px 36px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23889' stroke-width='2.2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center; }
.pm-req { flex: none; margin: 4px 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff7e0; border: 1px solid #f3dc8a; font: inherit; font-size: .84rem; color: #6b5300; cursor: pointer; text-align: left; }
.pm-req[hidden] { display: none; }
.pm-req b { color: #3d2f00; }
.pm-req .go { margin-left: auto; font-weight: 800; color: #3d2f00; }
.pm-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px 6px 8px; }
.pm-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; border-radius: 12px; }
.pm-row + .pm-row { border-top: 1px solid var(--line); border-radius: 0; }
.pm-row:hover { background: var(--surface-2); }
.pm-av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--ink); color: var(--lime); overflow: hidden; }
.pm-av.sm { width: 36px; height: 36px; font-size: .78rem; }
.pm-av img { width: 100%; height: 100%; object-fit: cover; }
.pm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.pm-top, .pm-line { display: flex; }
.pm-line { display: block; }
.pm-top { display: flex; justify-content: space-between; gap: 8px; }
.pm-top b { font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-top small { color: var(--muted); font-size: .74rem; flex: none; }
.pm-line { color: var(--muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-row.unread .pm-line { color: var(--text); font-weight: 700; }
.pm-n { flex: none; font-style: normal; background: #ff3b30; color: #fff; border-radius: 999px; min-width: 20px; height: 20px; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.pm-older { display: block; width: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; padding: 12px; cursor: pointer; }
.pm-sec { margin: 10px 8px 2px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pm-head { flex: none; position: relative; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pm-back, .pm-more { flex: none; width: 36px; height: 36px; border: 0; background: none; border-radius: 50%; font-size: 1.25rem; color: var(--text); cursor: pointer; }
.pm-more { margin-left: auto; color: var(--muted); }
.pm-back:hover, .pm-more:hover { background: var(--surface-2); }
.pm-peer { min-width: 0; }
.pm-peer-btn { display: flex; align-items: center; gap: 10px; border: 0; background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; padding: 0; min-width: 0; }
.pm-peer-btn b { display: block; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm-peer-btn small { color: var(--muted); font-size: .76rem; }
.pm-menu { position: absolute; right: 10px; top: 48px; z-index: 5; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 6px; display: grid; }
.pm-menu[hidden] { display: none; }
.pm-menu button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .9rem; color: var(--text); text-align: left; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.pm-menu button:hover { background: var(--surface-2); }
.pm-menu button.red { color: #d92d20; }
.pm-menu-h { margin: 6px 12px 4px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.pm-conv { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--surface-2); }
.pm-day { align-self: center; font-size: .72rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; margin: 6px 0 2px; }
.pm-b { max-width: 80%; padding: 9px 13px; border-radius: 18px; font-size: .93rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-b.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pm-b.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
:root[data-theme="dark"] .pm-b.me { background: var(--lime); color: var(--ink); }
.pm-seen { align-self: flex-end; font-size: .7rem; color: var(--muted); }
.pm-foot { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.pm-foot[hidden] { display: none; }
.pm-foot b { color: var(--text); }
.pm-foot-acts { display: flex; gap: 8px; }
.pm-chat .ch-form input { font-size: 16px; }
.pm-chat .ch-form[hidden] { display: none; }
.pc-acts { display: flex; justify-content: center; margin: 2px 0 4px; }
.pc-acts .btn { gap: 8px; min-width: 60%; justify-content: center; }
.pc-acts svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .pm-req { background: rgba(243, 220, 138, .12); border-color: rgba(243, 220, 138, .35); color: #f3dc8a; }
:root[data-theme="dark"] .pm-req b, :root[data-theme="dark"] .pm-req .go { color: #f6e7ae; }
.auth-agree { font-size: .82rem; line-height: 1.4; align-items: flex-start; }
.auth-agree input { margin-top: 2px; flex: none; }
.auth-terms { margin: 8px 0 0; font-size: .78rem; color: var(--muted); text-align: center; }

/* Courtside: the brands behind the club (home page, after Open Play). Deals have a coupon stub; Showcase posts link out. */
.cs { position: relative; margin: 26px 0 8px; padding: 22px 18px 18px; background: var(--ink); color: #fff; border-radius: 26px; overflow: hidden; isolation: isolate; }
.cs::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .13; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), var(--lime) calc(50% - 1px), var(--lime) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent 30%, var(--lime) 30%, var(--lime) calc(30% + 2px), transparent calc(30% + 2px), transparent 70%, var(--lime) 70%, var(--lime) calc(70% + 2px), transparent calc(70% + 2px)); }
.cs-eb { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--lime); text-transform: uppercase; }
.cs-eb i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(214, 255, 0, .2); }
.cs h2 { margin: 6px 0 2px; font-size: 1.5rem; color: #fff; line-height: 1.15; }
.cs-sub { margin: 0 0 14px; color: rgba(255, 255, 255, .65); font-size: .9rem; }
.cs-brands { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -4px; scrollbar-width: none; }
.cs-brands::-webkit-scrollbar { display: none; }
.cs-brand { flex: none; display: grid; justify-items: center; gap: 6px; width: 70px; padding: 0; border: 0; background: none; font: inherit; font-size: .7rem; color: rgba(255, 255, 255, .75); text-align: center; line-height: 1.2; cursor: pointer; }
.cs-brand > span { width: 60px; height: 60px; border-radius: 50%; padding: 3px; background: rgba(255, 255, 255, .18); box-sizing: border-box; }
.cs-brand.new > span { background: conic-gradient(var(--lime), #7dff9b, var(--lime)); }
.cs-brand.on > span { background: #fff; }
.cs-brand img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--ink); box-sizing: border-box; background: #fff; display: block; }
.cs-brand.on { color: #fff; font-weight: 800; }
.cs-ticket { background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden; position: relative; }
.cs-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #e9eee9; overflow: hidden; cursor: pointer; }
.cs-shot > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-shot.is-logo > img { object-fit: contain; padding: 18%; box-sizing: border-box; }
.cs-who { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 80px); background: rgba(11, 20, 17, .72); color: #fff; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: .78rem; font-weight: 700; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs-who img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.cs-who span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-count { position: absolute; right: 12px; top: 12px; background: rgba(11, 20, 17, .72); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 99px; }
.cs-count[hidden] { display: none; }
.cs-bars { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; gap: 4px; }
.cs-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cs-bars i.on { background: #fff; }
.cs-perf { position: relative; height: 0; border-top: 2px dashed #d7ddd9; margin: 0 18px; }
.cs-perf::before, .cs-perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); }
.cs-perf::before { left: -30px; } .cs-perf::after { right: -30px; }
.cs-stub { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.cs-stub-main { flex: 1; min-width: 0; }
.cs-stub-main b { display: block; font-size: 1rem; line-height: 1.3; }
.cs-stub-main small { display: block; color: #6b7a72; font-size: .78rem; margin-top: 3px; }
.cs-stub-main small[hidden] { display: none; }
.cs-tag { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-bottom: 5px; }
.cs-tag[hidden] { display: none; }
.cs-tag.deal { background: var(--lime); color: var(--ink); } .cs-tag.show { background: #e8eef9; color: #2457c5; }
.cs-code { flex: none; display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.cs-code[hidden] { display: none; }
.cs-code > span { font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.cs-code b { font-size: 1rem; letter-spacing: .06em; }
.cs-visit { flex: none; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--ink); font-weight: 800; font-size: .9rem; color: var(--ink); text-decoration: none; }
.cs-more { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: .84rem; }
.cs-more > span { color: rgba(255, 255, 255, .6); }
.cs-more a, .cs-more button { color: var(--lime); font-weight: 800; border: 0; background: none; font: inherit; font-weight: 800; padding: 0; cursor: pointer; white-space: nowrap; }
@media (min-width: 901px) {
  .cs { padding: 26px 26px 22px; }
  .cs-ticket { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .cs-shot { aspect-ratio: 16 / 10; height: 100%; }
  .cs-ticket .cs-perf { display: none; }
  .cs-ticket .cs-stub { flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 24px; border-left: 2px dashed #d7ddd9; }
  .cs-ticket .cs-stub-main { flex: none; }
  .cs-ticket .cs-stub-main b { font-size: 1.2rem; }
}
/* Full-screen viewer */
.csv { position: fixed; inset: 0; z-index: 400; background: #000; color: #fff; display: flex; flex-direction: column; }
.csv[hidden] { display: none; }
html.csv-open, html.csv-open body { overflow: hidden; }
.csv-bars { display: flex; gap: 4px; padding: calc(12px + env(safe-area-inset-top)) 12px 0; }
.csv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.csv-bars i.on { background: #fff; }
.csv-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.csv-top img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; }
.csv-top b { font-size: .95rem; } .csv-top small { opacity: .65; font-size: .76rem; }
.csv-x { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.5rem; cursor: pointer; }
.csv-img { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 14px 70px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.csv-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; }
.csv-ticket { margin: -56px 14px 0; position: relative; background: #fff; color: var(--ink); border-radius: 20px; max-width: 560px; align-self: center; width: calc(100% - 28px); box-sizing: border-box; }
.csv-ticket .cs-perf::before, .csv-ticket .cs-perf::after { background: #000; }
.csv-go { display: flex; gap: 10px; padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); }
.csv-go .btn { flex: 1; justify-content: center; }
.csv-go [hidden] { display: none; }
.cs-brand.feat > span { background: var(--lime); box-shadow: 0 0 0 3px rgba(214, 255, 0, .25); }
.cs-brand.feat.on > span { background: #fff; box-shadow: 0 0 0 3px var(--lime); }
/* Player card: DUPR, Self rating, Open plays and Rank in a 2x2 grid (3 boxes stay in one row) */
.pc-stats:has(> .pc-stat:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.pc-stats:has(> .pc-stat:nth-child(4)) > .pc-stat { border-left: 0 !important; border-top: 0 !important; }
.pc-stats:has(> .pc-stat:nth-child(4)) > .pc-stat:nth-child(even) { border-left: 1px solid var(--line) !important; }
.pc-stats:has(> .pc-stat:nth-child(4)) > .pc-stat:nth-child(n+3) { border-top: 1px solid var(--line) !important; }
/* Courtside autoplay: the current segment fills up, then the next post shows */
.cs-bars i { position: relative; overflow: hidden; }
.cs-bars i b { position: absolute; inset: 0; width: 0; background: #fff; border-radius: inherit; }
.cs-bars i.on b { width: 100%; }
.cs.is-auto .cs-bars i.cur b { animation: cs-fill 6s linear forwards; }
.cs.is-auto.is-paused .cs-bars i.cur b { animation-play-state: paused; }
.cs-bars i.on { background: rgba(255, 255, 255, .45); }
@keyframes cs-fill { from { width: 0; } to { width: 100%; } }
.cs-shot > img { transition: opacity .25s; }

/* ===== Home page, tighter (phones): one spacing rhythm, one-line headings, slimmer Courtside ===== */
@media (max-width: 900px) {
  body:has(.home-grid) .site-main { --home-gap: 30px; }
  body:has(.home-grid) .home-sec,
  body:has(.home-grid) .home-rail-sec,
  body:has(.home-grid) #faq,
  body:has(.home-grid) main > .section-tight { padding-top: var(--home-gap) !important; padding-bottom: 0 !important; }
  body:has(.home-grid) .section-alt, body:has(.home-grid) .section-dark { margin-top: var(--home-gap); padding-top: 30px !important; padding-bottom: 30px !important; }
  body:has(.home-grid) .home-guide-wrap { margin-top: var(--home-gap); margin-bottom: 24px; }
  body:has(.home-grid) .home-me { padding-top: 14px !important; padding-bottom: 0; }
  body:has(.home-grid) .home-me + .container, body:has(.home-grid) .dp-strip { margin-top: 14px; }

  /* Section headings: always one line, small "See all" link on the right */
  .hs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .hs-head > div { min-width: 0; }
  .hs-head h2 { font-size: 1.3rem; line-height: 1.15; margin: 2px 0 0; }
  .hs-head .eyebrow { font-size: .68rem; margin-bottom: 2px; }
  .hs-head .hs-more { font-size: .8rem; white-space: nowrap; flex: none; padding-bottom: 2px; }
  .hs-sub { font-size: .86rem; margin: 4px 0 0; }
  body:has(.home-grid) .section-head h2 { font-size: 1.35rem; }
  body:has(.home-grid) .section-head { margin-bottom: 14px; }

  /* Not booked: one slim line */
  .hm-none { padding: 10px 12px; border-radius: 16px; gap: 10px; }
  .hm-none b { font-size: .92rem; } .hm-none span { font-size: .8rem; }

  /* Rankings with no games yet: a compact strip */
  .hr-box:has(.hr-empty) .hr-empty { padding: 12px 14px; margin: 0; font-size: .84rem; }
  .hr-box:has(.hr-empty) .hr-reward { padding: 10px 14px; font-size: .78rem; }

  /* Courtside keeps its original header and logos; only the gap above it follows the rhythm */
  .cs { margin-top: var(--home-gap, 30px); }

  /* One card look on Home: same corners and a soft shadow */
  body:has(.home-grid) .hr-box, body:has(.home-grid) .op-card-wrap > *, body:has(.home-grid) .ev-slide > *,
  body:has(.home-grid) .shop-slide > *, body:has(.home-grid) .home-guide { border-radius: 18px; }
  body:has(.home-grid) .hr-box, body:has(.home-grid) .home-guide { box-shadow: 0 6px 18px rgba(11, 20, 17, .05); }
}
@media (max-width: 900px) {
  .hs-head h2 { font-size: 1.2rem; }
  .hs-head .hs-more { font-size: .76rem; }
}
@media (max-width: 900px) { body:has(.home-me) #open-play { padding-top: 22px !important; } }
/* Membership on Home stays exactly as it was (original spacing) */
@media (max-width: 900px) { body:has(.home-grid) .home-sec[data-section="membership"] { padding-top: 22px !important; padding-bottom: 6px !important; } }

/* ===== Open Play on Home: highlighted (its own lime band, slot meter, who's in, a clear Book button) ===== */
.opx { position: relative; isolation: isolate; }
.opx::before { content: ""; position: absolute; z-index: -1; inset: 0 -16px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(11, 20, 17, .05) calc(50% - 1px), rgba(11, 20, 17, .05) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #e9f7c4 0%, #f2fadc 65%, rgba(243, 244, 239, 0) 100%); }
@media (min-width: 901px) { .opx::before { inset: 8px -22px -6px; border-radius: 26px; } .opx { padding-left: 4px; padding-right: 4px; } }
:root[data-theme="dark"] .opx::before { background: linear-gradient(180deg, rgba(214, 255, 0, .10), rgba(214, 255, 0, .03) 70%, transparent); }
.opx .hs-head h2 { font-size: 1.5rem; }
@media (max-width: 900px) { .opx .hs-head h2 { font-size: 1.45rem; } body:has(.home-grid) .opx { padding-bottom: 14px !important; } }
.opx .eyebrow.accent { color: #1f7a3d; }
.opx .hs-more { color: #1f7a3d; font-weight: 800; }
/* Day chips: a dot (or the number) under days with open plays */
.opx .hw-day { background: var(--surface); display: grid; justify-items: center; gap: 1px; }
.opx .hw-day:disabled { background: transparent; }
.hw-n { display: grid; place-items: center; height: 14px; font-style: normal; }
.hw-n i { display: block; width: 6px; height: 6px; border-radius: 50%; background: #1f7a3d; }
.hw-n i.many { width: auto; height: 14px; padding: 0 5px; border-radius: 99px; font-style: normal; font-size: .6rem; font-weight: 800; line-height: 14px; color: #fff; }
.hw-day.on .hw-n i { background: var(--lime); } .hw-day.on .hw-n i.many { color: var(--ink); }
/* Cards */
.opx .op-slide, .opx-list .op-slide { border-radius: 20px; border-color: rgba(11, 20, 17, .08); box-shadow: 0 10px 26px rgba(11, 20, 17, .08); min-height: 0; }
.opx .op-slide.is-mine, .opx-list .op-slide.is-mine { border: 2px solid #1f7a3d; }
.opx .op-slide-body, .opx-list .op-slide-body { gap: 4px; }
.opx-meter { margin-top: 8px; }
.opx-bar { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.opx-bar i { display: block; height: 100%; border-radius: 99px; background: #1f7a3d; }
.opx-bar.warn i { background: #f59e0b; } .opx-bar.full i { background: #dc2626; }
.opx-mrow { display: flex; justify-content: space-between; gap: 8px; margin-top: 5px; font-size: .76rem; color: var(--muted); }
.opx-mrow b { color: var(--text); } .opx-mrow .warn { color: #b45309; font-weight: 800; } .opx-mrow .full { color: #dc2626; font-weight: 800; }
.opx-faces { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .76rem; color: var(--muted); min-width: 0; }
.opx-faces .row { display: flex; flex: none; }
.opx-faces .row > span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -7px; display: grid; place-items: center; font-size: .54rem; font-weight: 800; color: #fff; overflow: hidden; background: #0b1411; }
.opx-faces .row > span:first-child { margin-left: 0; }
.opx-faces .row > span.f1 { background: #ff6b4a; } .opx-faces .row > span.f2 { background: #4f8cff; } .opx-faces .row > span.f4 { background: #22a06b; } .opx-faces .row > span.f5 { background: #a855f7; }
.opx-faces .row img { width: 100%; height: 100%; object-fit: cover; }
.opx-faces .who { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .opx-faces .who b { color: var(--text); }
.opx-foot { margin-top: 10px !important; flex-wrap: nowrap !important; }
.opx-price { min-width: 0; line-height: 1.15; }
.opx-price s { color: var(--muted); font-size: .8rem; margin-right: 4px; font-weight: 600; }
.opx-price b { font-size: 1.2rem; font-weight: 900; }
.opx-price small { display: block; font-size: .66rem; font-weight: 800; color: #1f7a3d; text-transform: uppercase; letter-spacing: .03em; }
.opx-price small.muted { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: .74rem; }
.opx-btn { flex: none; background: var(--lime); color: var(--ink); font-weight: 900; border-radius: 14px; padding: 10px 14px; font-size: .9rem; box-shadow: 0 6px 16px rgba(170, 210, 0, .35); white-space: nowrap; }
.opx-btn.wait { background: var(--ink); color: #fff; box-shadow: none; }
.opx-btn.in { background: #dcfce7; color: #166534; box-shadow: none; }
.opx-btn.due { background: #fff1d6; color: #9a5b00; box-shadow: none; }
.opx-btn.live { background: #fee2e2; color: #b91c1c; box-shadow: none; }
.opx-btn .chat-n { font-style: normal; margin-left: 4px; }
.opx .hw-day.on { background: var(--ink); border-color: var(--ink); }
.opx-price small, .opx-price small.muted { text-decoration: none; white-space: nowrap; }
@media (min-width: 901px) {
  .opx-foot { flex-wrap: wrap !important; }
  .opx-price { flex: 1 1 100%; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
  .opx-btn { flex: 1 1 100%; text-align: center; }
}
/* Price on one line, the button full width under it (phones too) */
.opx-foot { flex-wrap: wrap !important; }
.opx-price { flex: 1 1 100%; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.opx-btn { flex: 1 1 100%; text-align: center; }
/* Open Play band in dark mode: readable chips, links and labels */
:root[data-theme="dark"] .opx .hw-day:not(.on) { background: var(--surface); color: var(--text); border-color: var(--line); }
:root[data-theme="dark"] .opx .hw-day:not(.on) b { color: var(--text); }
:root[data-theme="dark"] .opx .hw-day:disabled { background: transparent; color: var(--muted); }
:root[data-theme="dark"] .opx .hs-more, :root[data-theme="dark"] .opx .eyebrow.accent, :root[data-theme="dark"] .opx-price small:not(.muted) { color: var(--lime); }
:root[data-theme="dark"] .opx-price small.muted { color: var(--muted); }
:root[data-theme="dark"] .opx .hw-day.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
:root[data-theme="dark"] .opx .hw-day.on b { color: var(--ink); }
:root[data-theme="dark"] .opx .hw-day.on .hw-n i { background: var(--ink); } :root[data-theme="dark"] .opx .hw-day.on .hw-n i.many { color: var(--lime); }
:root[data-theme="dark"] .hw-n i { background: var(--lime); } :root[data-theme="dark"] .hw-n i.many { color: var(--ink); }
:root[data-theme="dark"] .opx-bar i { background: var(--lime); }
:root[data-theme="dark"] .opx-bar.warn i { background: #f59e0b; } :root[data-theme="dark"] .opx-bar.full i { background: #ef4444; }
:root[data-theme="dark"] .opx .op-slide.is-mine, :root[data-theme="dark"] .opx-list .op-slide.is-mine { border-color: var(--lime); }
/* Home stat strip on phones: 2 x 2 under the hero */
@media (max-width: 900px) {
  .stat-strip { margin-top: 14px; }
  .stat-strip .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 18px; box-shadow: 0 6px 18px rgba(11, 20, 17, .06); }
  .stat-strip .stat { padding: 14px 16px; }
  .stat-strip .stat strong { font-size: 1.45rem; }
  .stat-strip .stat span { font-size: .78rem; }
}
@media (max-width: 900px) {
  .stat-strip { margin-bottom: 18px; }
  .stat-strip .stat strong, .stat-strip .stat strong * { font-size: 1.45rem; }
}
/* Home: active members see their membership badge instead of the price card */
.hm-badge { min-height: 0; padding: 22px; gap: 18px; color: #fff; text-decoration: none; transition: transform .15s; }
.hm-badge:hover { transform: translateY(-2px); }
.hm-badge .top img { width: 40px; }
.hm-badge-status { font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 5px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); }
.hm-badge small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 700; }
.hm-badge .name { font-size: 1.4rem; font-weight: 900; line-height: 1.15; margin: 4px 0 2px; }
.hm-badge .ref { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--lime); font-variant-numeric: tabular-nums; }
.hm-badge .bottom { display: flex; gap: 22px; flex-wrap: wrap; }
.hm-badge .bottom strong { display: block; font-size: .92rem; }
.hm-badge-more, .hm-badge-renew { font-size: .82rem; font-weight: 800; color: var(--lime); }
.hm-badge-renew { color: #ffb020; }
.hm-badge-shirt { margin: 12px 2px 0; font-size: .86rem; color: var(--muted); }
#membership .hm-badge { max-width: 520px; }

/* ===== Host a Tournament (/host) ===== */
.ht { --g: #1f7a3d; }
.ht-hero { position: relative; overflow: hidden; background: radial-gradient(600px 320px at 90% 0%, #1b7a5a 0%, transparent 60%), linear-gradient(160deg, #0c3a2c, #0b1411 70%); color: #fff; padding: 40px 0 38px; }
.ht-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none; background:
  linear-gradient(90deg, transparent calc(50% - 1px), var(--lime) calc(50% - 1px), var(--lime) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(0deg, transparent 30%, var(--lime) 30%, var(--lime) calc(30% + 2px), transparent calc(30% + 2px), transparent 70%, var(--lime) 70%, var(--lime) calc(70% + 2px), transparent calc(70% + 2px)); }
.ht-hero .container { position: relative; }
.ht-eb { font-size: .72rem; font-weight: 800; letter-spacing: .16em; color: var(--lime); text-transform: uppercase; }
.ht-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 8px 0 10px; letter-spacing: -.02em; color: #fff; }
.ht-hero h1 em { font-style: normal; color: var(--lime); }
.ht-hero p { color: rgba(255, 255, 255, .75); margin: 0 0 18px; font-size: 1rem; max-width: 46ch; }
.ht-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.ht-ctas a { display: grid; place-items: center; min-height: 50px; border-radius: 99px; font-weight: 800; text-decoration: none; }
.ht-ctas .p { background: var(--lime); color: var(--ink); } .ht-ctas .s { border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.ht-trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.ht-trust span { font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; }
.ht-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: -20px; position: relative; box-shadow: 0 10px 24px rgba(11, 20, 17, .08); }
.ht-stats div { background: var(--surface); padding: 14px 16px; } .ht-stats b { display: block; font-size: 1.45rem; font-weight: 900; } .ht-stats small { color: var(--muted); font-size: .78rem; }
.ht-sec { padding: 34px 0 0; }
.ht-sec .eyebrow { color: var(--g); } .ht-sec h2 { font-size: 1.45rem; margin: 4px 0 14px; }
.ht-photos { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; gap: 8px; }
.ht-photos figure { margin: 0; position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.ht-photos figure:first-child { grid-column: span 2; grid-row: span 2; }
.ht-photos.n1 figure:first-child { grid-column: 1 / -1; }
.ht-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-photos figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(11, 20, 17, .7); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.ht-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ht-svc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.ht-svc i { font-style: normal; font-size: 1.3rem; display: block; margin-bottom: 6px; }
.ht-svc b { display: block; font-size: .88rem; line-height: 1.2; } .ht-svc small { display: block; color: var(--muted); font-size: .76rem; margin-top: 3px; line-height: 1.3; }
.ht-svc.star { border-color: #c8e600; background: #f7fde4; }
.ht-for { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-for span { padding: 8px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; }
.ht-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.ht-step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.ht-step::before { counter-increment: s; content: counter(s); width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 900; }
.ht-step b { display: block; } .ht-step small { color: var(--muted); font-size: .84rem; }
.ht-pk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ht-p { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; position: relative; }
.ht-p.pop { border: 2px solid var(--ink); } .ht-p.pop::before { content: "Most picked"; position: absolute; top: -11px; left: 16px; background: var(--ink); color: var(--lime); font-size: .66rem; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; text-transform: uppercase; }
.ht-p h3 { margin: 0; font-size: 1.1rem; } .ht-p > small { color: var(--muted); font-size: .82rem; }
.ht-p ul { margin: 10px 0 12px; padding: 0; list-style: none; display: grid; gap: 5px; font-size: .86rem; }
.ht-p li::before { content: "✓ "; color: var(--g); font-weight: 900; }
.ht-p a { display: block; text-align: center; padding: 11px; border-radius: 12px; font-weight: 800; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ht-p.pop a { background: var(--lime); }
.ht-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.ht-faq summary { font-weight: 800; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.ht-faq summary::-webkit-details-marker { display: none; } .ht-faq summary::after { content: "+"; } .ht-faq details[open] summary::after { content: "–"; }
.ht-faq p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.ht-form { background: var(--ink); color: #fff; border-radius: 24px; padding: 22px 18px; margin-top: 34px; scroll-margin-top: 80px; max-width: 760px; }
.ht-form h2 { color: #fff; margin: 4px 0 4px; font-size: 1.4rem; } .ht-form > p { color: rgba(255, 255, 255, .7); margin: 0 0 14px; font-size: .9rem; }
.ht-f { display: grid; gap: 12px; }
.ht-f > label, .ht-f .two > label { display: grid; gap: 5px; font-size: .76rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.ht-f input:not([type=radio]):not([type=checkbox]), .ht-f textarea { width: 100%; box-sizing: border-box; background: #fff; color: var(--ink); border: 0; border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; font-weight: 500; }
.ht-f .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ht-f .two > label { min-width: 0; }
/* iPhone draws date boxes wider than their column; keep it inside and left-aligned like the other boxes */
.ht-f input[type=date] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 44px; text-align: left; }
.ht-f input[type=date]::-webkit-date-and-time-value { text-align: left; margin: 0; }
@media (max-width: 560px) { .ht-f .two { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.ht-f fieldset { border: 0; padding: 0; margin: 0; } .ht-f legend { font-size: .76rem; font-weight: 700; color: rgba(255, 255, 255, .8); margin-bottom: 6px; padding: 0; }
.ht-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ht-chips label { cursor: pointer; } .ht-chips input { position: absolute; opacity: 0; pointer-events: none; }
.ht-chips span { display: block; padding: 8px 11px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); font-size: .8rem; font-weight: 700; color: #fff; }
.ht-chips input:checked + span { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.ht-chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.ht-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ht-send { display: block; width: 100%; border: 0; background: var(--lime); color: var(--ink); font: inherit; font-weight: 900; font-size: 1rem; text-align: center; padding: 14px; border-radius: 14px; margin-top: 4px; cursor: pointer; text-decoration: none; }
.ht-note { font-size: .74rem; color: rgba(255, 255, 255, .6); text-align: center; }
.ht-sent { text-align: center; padding: 10px 4px; } .ht-sent > span { font-size: 2.4rem; } .ht-sent p { color: rgba(255, 255, 255, .75); }
.ht-banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 22px; border-radius: 18px; background: linear-gradient(120deg, #0c3a2c, #0b1411); color: #fff; text-decoration: none; }
.ht-banner-ic { font-size: 1.6rem; } .ht-banner b { display: block; } .ht-banner small { color: rgba(255, 255, 255, .7); font-size: .82rem; }
.ht-banner-home { margin: 14px 0 0; }
.ht-banner em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--lime); white-space: nowrap; font-size: .88rem; }
:root[data-theme="dark"] .ht-svc.star { background: rgba(214, 255, 0, .08); border-color: rgba(214, 255, 0, .4); }
:root[data-theme="dark"] .ht-sec .eyebrow, :root[data-theme="dark"] .ht-p li::before { color: var(--lime); }
:root[data-theme="dark"] .ht-p.pop { border-color: var(--lime); } :root[data-theme="dark"] .ht-p a { color: var(--text); } :root[data-theme="dark"] .ht-p.pop a { color: var(--ink); }
@media (max-width: 900px) {
  .ht-stats { grid-template-columns: 1fr 1fr; }
  .ht-grid { grid-template-columns: 1fr 1fr; }
  .ht-steps { grid-template-columns: 1fr; }
  .ht-pk { grid-template-columns: 1fr; gap: 16px; }
  .ht-photos { grid-template-columns: 2fr 1fr; grid-auto-rows: 110px; }
  .ht-banner { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; align-items: start; }
  .ht-banner em { grid-column: 2; margin-left: 0; }
}

/* Clickable links inside chat and message bubbles */
.msg-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.msg-link:hover { text-decoration-thickness: 2px; }

/* Open Play page: the same cards as the home page, one per row, on the lime court background */
.opx-list { display: grid; gap: 14px; margin-bottom: 26px; }
.opx-list .op-slide { min-height: 0; }
.opx-list { max-width: 640px; }
.op-slide.is-done { opacity: .78; }
.op-slide.is-done .op-slide-date { background: var(--op-block); }
.opx-done { margin-top: 2px; }
body:has(.opx-page) .site-main { position: relative; isolation: isolate; }
body:has(.opx-page) .site-main::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(11, 20, 17, .05) calc(50% - 1px), rgba(11, 20, 17, .05) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(180deg, #e9f7c4 0%, #f2fadc 55%, rgba(243, 244, 239, 0) 100%); }
:root[data-theme="dark"] body:has(.opx-page) .site-main::before { background: linear-gradient(180deg, rgba(214, 255, 0, .10), rgba(214, 255, 0, .03) 60%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body:has(.opx-page) .site-main::before { background: linear-gradient(180deg, rgba(214, 255, 0, .10), rgba(214, 255, 0, .03) 60%, transparent); } }
.opx-int { font-size: .76rem; color: var(--muted); margin-top: 4px; }

/* Open Play page, compact cards: start time in the side block, price + button on one row */
.op-compact .op-clock { width: 84px; gap: 0; }
.op-compact .op-clock strong { font-size: 1.55rem; letter-spacing: -.02em; }
.op-compact .op-clock span { font-size: .78rem; letter-spacing: .08em; color: var(--text); margin-top: 2px; }
.op-compact .op-clock small { font-size: .7rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.op-compact .op-slide-body { padding: 12px 14px; }
.opx-first { margin-top: 8px; font-size: .84rem; font-weight: 700; color: #1f7a3d; background: rgba(31, 122, 61, .08); border-radius: 10px; padding: 7px 10px; }
.opx-first b { font-weight: 900; }
.opx-first { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.opx-first .opx-eyes { font-weight: 800; }
.opx-first .t { flex: 1; min-width: 0; }
.opx-int-in { color: var(--muted); font-weight: 500; }
.opx-faces .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.opx-foot.opx-row { flex-wrap: nowrap !important; align-items: center; gap: 10px; }
.opx-row .opx-price { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; row-gap: 0; }
.opx-row .opx-price small { flex-basis: 100%; }
.opx-row .opx-btn { flex: none; padding: 10px 16px; }
:root[data-theme="dark"] .opx-first { color: var(--lime); background: rgba(214, 255, 0, .08); }
.opx-eyes { flex: none; margin-left: auto; font-size: .74rem; font-weight: 800; color: var(--muted); background: rgba(11, 20, 17, .05); border-radius: 999px; padding: 2px 8px; }
:root[data-theme="dark"] .opx-eyes { background: rgba(255, 255, 255, .08); }
.op-self-need { background: #fff8e1; border: 1px solid #f3dca0; border-radius: 14px; padding: 10px 12px; }
.op-self-need small { line-height: 1.4; }
:root[data-theme="dark"] .op-self-need { background: rgba(255, 200, 60, .08); border-color: rgba(255, 200, 60, .3); }

/* Home: What's new carousel (whatsnew.py) */
.wnh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 28px) / 3)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.wnh-rail::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .wnh-rail { grid-auto-columns: 62%; } }
@media (max-width: 640px) { .wnh-rail { grid-auto-columns: 82%; width: 100vw; margin: 0 0 0 calc(50% - 50vw); padding: 4px 20px 14px; scroll-padding-left: 20px; } }
.wnh-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: var(--text); text-decoration: none; box-shadow: 0 8px 22px rgba(11, 20, 17, .07); transition: transform .15s, box-shadow .15s; }
.wnh-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 20, 17, .12); }
.wnh-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #0b1411; overflow: hidden; }
.wnh-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wnh-media.no-img { background: radial-gradient(130% 140% at 0% 0%, #1f7a3d 0%, #0e2a1f 45%, #0b1411 100%); }
.wnh-media.no-img i { position: absolute; left: 70%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(214, 255, 0, .18); }
.wnh-media.no-img i:nth-child(1) { width: 190px; height: 190px; } .wnh-media.no-img i:nth-child(2) { width: 90px; height: 90px; border-color: rgba(214, 255, 0, .32); }
.wnh-media.no-img b { position: absolute; left: 70%; top: 50%; transform: translate(-50%, -50%); font-size: 1.6rem; }
.wnh-media em { position: absolute; left: 12px; bottom: 12px; font-style: normal; background: var(--lime); color: var(--ink); font-size: .7rem; font-weight: 900; border-radius: 999px; padding: 4px 10px; }
.wnh-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.wnh-body b { font-size: 1.05rem; line-height: 1.25; }
.wnh-body small { color: var(--muted); font-size: .86rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wnh-go { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: .86rem; color: #1f7a3d; }
:root[data-theme="dark"] .wnh-go { color: var(--lime); }

/* Unpaid open play: banner + list */
.payn-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--warn); color: var(--surface); }
.unp-list { display: grid; gap: 10px; }
.unp-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.unp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.unp-main small { color: var(--muted); }
.unp-amt { white-space: nowrap; }

/* Tournament 2nd entry discount */
.se-chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-style: normal; font-size: .72rem;
  font-weight: 800; background: color-mix(in srgb, var(--lime, #dbff1a) 70%, transparent); color: #0b1411; vertical-align: middle; }
.se-why { margin: 0; padding: 10px 18px 12px; font-size: .84rem; color: var(--muted); }
.fee-box .row-line:has(+ .se-why) { border-bottom: 0; }
.se-note { display: block; margin-top: 2px; font-weight: 700; color: var(--accent, #1a7a4a); }

/* Tournament draft / publish */
.pub-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px;
  margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pub-bar.is-draft { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.pub-txt { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 220px; font-size: .9rem; }
.pub-acts { display: flex; align-items: center; gap: 12px; }
.draft-note { justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Registrations: Upcoming / Past */
.reg-period { margin-bottom: 8px; }
.reg-period-note { align-self: center; font-size: .82rem; color: var(--muted); padding: 0 6px; }

/* Event page: the banner shown whole above the title (never cropped or covered) */
.event-banner { position: relative; overflow: hidden; background: #0b1411; }
.event-banner::before { content: ""; position: absolute; inset: -40px; background: var(--bn) center / cover no-repeat;
  filter: blur(36px) brightness(.45); }
.event-banner img { position: relative; display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
.event-hero.under-banner .container { padding-top: 22px; padding-bottom: 26px; }
.event-hero.under-banner h1 { font-size: clamp(1.5rem, 3.6vw, 2.4rem); }
@media (max-width: 640px) { .event-hero.under-banner .logo { width: 64px; height: 64px; border-radius: 16px; } .event-hero.under-banner .container { gap: 14px; } }
@media (max-width: 640px) {
  /* Phones: a floating card with the logo and title, overlapping the bottom of the banner */
  .event-hero.under-banner { background: transparent; color: var(--text); margin-top: -28px; z-index: 2; overflow: visible; }
  .event-hero.under-banner::before, .event-hero.under-banner::after { display: none; }
  .event-hero.under-banner .container { width: calc(100% - 32px); margin: 0 auto; padding: 14px 16px 16px; display: grid; grid-template-columns: 52px 1fr;
    column-gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 14px 34px rgba(11, 20, 17, .16); }
  .event-hero.under-banner .container > div { display: contents; }
  .event-hero.under-banner .logo { width: 52px; height: 52px; border-radius: 14px; box-shadow: none; }
  .event-hero.under-banner h1 { font-size: 1.3rem; margin: 0; color: var(--text); line-height: 1.2; text-wrap: balance; }
  .event-hero.under-banner p { grid-column: 1 / -1; color: var(--muted); margin: 10px 0 0; font-size: .92rem; }
  .event-hero.under-banner .event-meta { grid-column: 1 / -1; margin-top: 10px; }
  .event-hero.under-banner .event-meta .chip { color: var(--text); border-color: var(--line); background: var(--surface-2); }
  .event-hero.under-banner + .section-tight .info-tiles { margin-top: 18px !important; }
}

/* Tournament registration: DUPR eligibility from the connected account */
.dupr-elig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: .9rem; }
.dupr-elig b { font-size: 1.15rem; font-weight: 900; }
.dupr-elig > span:not(.dupr-badge) { color: var(--muted); flex: 1; min-width: 180px; }
.dupr-elig .dupr-badge { flex: none; width: auto; }
.dupr-elig.bad { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.dupr-elig.bad > span { color: var(--text); font-weight: 600; }
.partner-found small.pf-ok { display: block; color: var(--ok); font-weight: 800; }
.partner-found small.pf-bad { display: block; color: var(--warn); font-weight: 700; white-space: normal; }
.partner-found.is-bad { background: var(--warn-bg); color: var(--text); }
.partner-found.is-bad .tick { background: var(--warn); color: #fff; }

/* Home: sections in the admin's order (Edit page -> Arrange sections) */
.home-blk { display: contents; }
@media (max-width: 900px) { body:has(.home-grid) .home-me + .home-blk > .container:first-child { margin-top: 14px; } }
.pe-arrange { max-width: 1180px; margin: 18px auto 0; width: calc(100% - 32px); background: var(--surface); border: 2px dashed var(--accent, #1a7a4a);
  border-radius: 18px; padding: 14px 16px; }
.pe-ar-head b { display: block; font-size: 1rem; } .pe-ar-head small { color: var(--muted); font-size: .82rem; }
.pe-arrange ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pe-arrange li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pe-arrange li span { flex: 1; font-weight: 700; font-size: .92rem; }
.pe-arrange li button { width: 38px; height: 34px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 900; font-size: 1rem; cursor: pointer; }
.pe-arrange li button:disabled { opacity: .3; cursor: default; }

/* Open play Participants: big profile circles that fill their column (4 per row on phones, 6 on wider screens) */
.op-grid { gap: 22px 12px; }
.op-grid .op-photo { width: min(100%, 104px); height: auto; aspect-ratio: 1; font-size: 1.6rem; border-width: 3px; }
.op-grid .op-player strong { font-size: .98rem; margin-top: 4px; }
.op-grid .op-rate { font-size: .74rem; padding: 2px 7px 2px 2px; gap: 3px; margin-top: 2px; }
.op-grid .op-rate .op-dupr-tag, .op-grid .op-rate .op-self-tag { font-size: .54rem; padding: 2px 5px; }
@media (min-width: 700px) { .op-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 18px; } }
@media (max-width: 520px) {
  .op-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
  .op-grid .op-photo { width: 100%; max-width: 96px; font-size: 1.45rem; }
  .op-grid .op-player strong { font-size: .9rem; }
  .op-grid .op-rate { font-size: .68rem; padding: 2px 6px 2px 2px; }
  .op-grid .op-rate .op-dupr-tag, .op-grid .op-rate .op-self-tag { font-size: .5rem; padding: 2px 4px; letter-spacing: .04em; }
}

/* Header player search */
dialog.modal.ps-dlg { width: min(520px, calc(100vw - 24px)); margin: max(8vh, calc(env(safe-area-inset-top, 0px) + 16px)) auto auto; max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 32px); }
.ps-dlg .modal-body { padding: 16px 20px 20px; overflow-y: auto; }
.ps-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
.ps-field:focus-within { border-color: var(--ink); }
.ps-field svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.ps-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--text); padding: 0; height: 100%; }
.ps-field input:focus, .ps-field input:focus-visible { outline: 0; box-shadow: none; border: 0; }
.ps-results { margin-top: 12px; display: grid; gap: 4px; }
.ps-hint { margin: 10px 4px; color: var(--muted); font-size: .92rem; }
.ps-row { display: flex; align-items: center; gap: 6px; border-radius: 14px; }
.ps-row:hover, .ps-row:focus-within { background: color-mix(in srgb, var(--text) 6%, transparent); }
.ps-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px; color: inherit; text-decoration: none; border-radius: 14px; }
.ps-msg { flex: none; width: 44px; height: 44px; margin-right: 4px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.ps-msg svg { width: 20px; height: 20px; }
.ps-msg:hover { border-color: var(--ink); }
.ps-av { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; }
.ps-av img { width: 100%; height: 100%; object-fit: cover; }
.ps-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ps-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-txt small { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: .8rem; }
.ps-mem { color: var(--text); font-weight: 700; }
/* Phones: sit just under the status bar / notch (the home-screen app draws under it) */
@media (max-width: 520px) { dialog.modal.ps-dlg { margin-top: calc(env(safe-area-inset-top, 0px) + 12px); } }

/* Messages: photos */
.ch-form .pm-pic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; border: 1.5px solid var(--line); background: var(--surface); }
.ch-form .pm-pic:hover { color: var(--text); border-color: var(--ink); }
.ch-form .pm-pic svg { width: 21px; height: 21px; }
.ch-form .pm-pic[hidden] { display: none; }
.pm-attach { display: flex; align-items: center; gap: 10px; margin: 0 12px; padding: 8px 8px 8px 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.pm-attach[hidden] { display: none; }
.pm-attach img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; }
.pm-attach span { flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; color: var(--muted); }
.pm-attach button { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pm-b.pic { padding: 4px; width: min(240px, 72%); }
.pm-b.pic .pm-img { display: block; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.pm-b.pic .pm-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.pm-b.pic .pm-cap { display: block; padding: 6px 9px 5px; }
.pm-b.pic.only.me, .pm-b.pic.only.them { background: transparent; border: 0; padding: 0; }
.dm-adm-img { display: block; max-width: 240px; max-height: 280px; border-radius: 12px; margin-bottom: 6px; }
/* Help desk pages: photo in a message + "Add a photo" */
.ib-img { display: block; margin: 2px 0 6px; border-radius: 12px; overflow: hidden; max-width: 260px; }
.ib-img img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.ib-photo { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; padding: 8px 14px; border: 1.5px dashed var(--line); border-radius: 99px; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; }
.ib-photo svg { width: 18px; height: 18px; }
.ib-photo.has { border-style: solid; color: var(--text); }
/* Community chat: photos */
.ch-img { display: block; margin: 2px 0 4px; border-radius: 14px; overflow: hidden; max-width: min(260px, 100%); background: var(--surface-2); }
.ch-img img { display: block; width: 100%; height: auto; max-height: 320px; object-fit: cover; }
.ch-img-lock { display: flex; width: fit-content; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; }
.cx-pane .pm-attach { margin-top: 8px; }
.hd-list .ib-img { max-width: 240px; }

/* Open play: Pay now / Pay later */
.op-paychoice { display: grid; gap: 8px; margin: 4px 0 12px; }
.op-pc { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.op-pc input { margin-top: 3px; accent-color: var(--ink); }
.op-pc span { display: grid; gap: 2px; }
.op-pc b { font-size: .98rem; }
.op-pc small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.op-pc:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.op-pc.is-off { opacity: .7; cursor: default; border-style: dashed; }
.op-pc-agree { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg, #fff6e0); border: 1px solid #e0a84a; font-size: .88rem; line-height: 1.4; cursor: pointer; }
.op-pc-agree[hidden] { display: none; }
.op-pc-agree input { margin-top: 2px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
:root[data-theme="dark"] .op-pc:has(input:checked) { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime) inset; }
:root[data-theme="dark"] .op-pc-agree { background: rgba(224, 168, 74, .12); }

/* Unpaid open play banner: red so it stands out */
.paynudge .pnudge-card { --nb: #fdecec; border-color: #f1a9a9; }
.paynudge .payn-ic { background: #c62828; color: #fff; }
.paynudge .pnudge-txt b { color: #b71c1c; }
.paynudge .pnudge-go { background: #c62828; color: #fff; }
.paynudge .pnudge-later:hover { background: rgba(198, 40, 40, .12); }
:root[data-theme="dark"] .paynudge .pnudge-card { --nb: rgba(229, 57, 53, .16); border-color: rgba(229, 57, 53, .5); }
:root[data-theme="dark"] .paynudge .pnudge-txt b { color: #ff8a80; }
:root[data-theme="dark"] .paynudge .payn-ic, :root[data-theme="dark"] .paynudge .pnudge-go { background: #e53935; }

/* How to pay (secure payment page steps) */
.htp { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-align: left; }
.htp > summary { list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 800; font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.htp > summary::-webkit-details-marker { display: none; }
.htp > summary::before { content: "?"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: .78rem; }
.htp > summary::after { content: "›"; margin-left: auto; font-size: 1.2rem; color: var(--muted); transition: transform .15s ease; }
.htp[open] > summary::after { transform: rotate(90deg); }
.htp-body { padding: 0 14px 14px; font-size: .9rem; line-height: 1.45; }
.htp-h { display: block; margin: 4px 0 6px; font-size: .9rem; }
.htp-h span { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.htp ol { margin: 0 0 12px; padding-left: 1.25em; display: grid; gap: 6px; }
.htp-note { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: .85rem; }
:root[data-theme="dark"] .htp > summary::before { background: var(--lime); color: var(--ink); }
