:root{--paper:#101311;--surface:#1a201c;--raised:#232b25;--ink:#fffffd;--muted:#a2ada6;--line:#303b33;--green:#51cd87;--red:#ff7777;--yellow:#e5c418;--orange:#f78131;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper);color-scheme:dark;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid var(--yellow);outline-offset:4px}
.app{width:100%;max-width:520px;height:100dvh;margin:auto;padding:calc(clamp(16px,3dvh,28px) + env(safe-area-inset-top)) 24px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:clamp(18px,4dvh,40px)}header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.brand{display:flex;gap:14px;align-items:center;text-decoration:none;color:var(--ink);font-size:clamp(34px,5.5dvh,46px);font-weight:750;letter-spacing:-1.7px}.brand-light{font-weight:400}.brand img{width:clamp(58px,9dvh,80px);height:clamp(58px,9dvh,80px);border-radius:20px}.icon-button,.popup-close{border:0;background:var(--raised);color:var(--ink);border-radius:50%;width:43px;height:43px;display:grid;place-items:center}.icon-button svg{width:23px;height:23px}main{flex:1;min-height:0;display:flex;align-items:center}main>section{width:100%;max-height:100%;min-height:0}h1,h2,p{margin-top:0}.tagline{font-size:clamp(21px,3.3dvh,28px);font-weight:500;line-height:1.35;letter-spacing:-.5px;margin:0 0 clamp(20px,4dvh,34px);color:var(--ink)}.intro,.fine{color:var(--muted);line-height:1.5}.intro{font-size:14px;margin-bottom:18px}.fine{font-size:12px;margin:14px 0}h1{font-size:30px;letter-spacing:-1.2px;line-height:1.12;margin-bottom:16px}h2{font-size:18px;font-weight:500;margin-bottom:10px}
form label{display:block;font-size:12px;font-weight:500;margin:14px 0 8px}input:not([type=checkbox]){width:100%;min-width:0;border:0;border-radius:12px;padding:15px 16px;background:var(--raised);font-size:16px;color:var(--ink);outline:none}input:focus{box-shadow:0 0 0 2px #788e7b}.password-field{position:relative}.password-field input{padding-right:70px}.password-field button{position:absolute;right:12px;top:0;height:100%;border:0;background:transparent;color:var(--muted);font-size:12px}.check{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:400;margin:18px 0}.check input{width:18px;height:18px;accent-color:var(--green)}.error,.copy-error{color:var(--red)!important}.error{font-size:12px;line-height:1.4;margin:10px 0}.error:empty{display:none}.primary,.secondary{width:100%;display:flex;justify-content:center;align-items:center;gap:12px;border:0;border-radius:13px;min-height:44px;padding:14px 18px;font-size:14px;font-weight:600;color:var(--ink);background:var(--raised)}.primary{background:#fffffd;color:#151a16;justify-content:space-between}.primary span{font-size:20px}.secondary{margin-top:12px}.text-button{border:0;background:transparent;color:var(--muted);padding:10px 0;font-size:12px}.danger{color:var(--red);width:100%}
.status{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--green);margin-bottom:18px}.status-dot,.live i{height:6px;width:6px;border-radius:50%;background:currentColor}.status.offline{color:var(--red)}.status.pending{color:var(--muted)}.clubs{display:grid;gap:16px}.club{border:0;border-radius:22px;padding:24px;min-height:0;height:clamp(116px,18dvh,160px);display:flex;flex-direction:column;justify-content:space-between;text-align:left;transition:transform .15s}.club:active{transform:scale(.98)}.fitnesspark{background:#232b24;color:#fffffd}.basicfit{background:#24201b;color:#ff913f}.club-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.club-symbol{display:flex;align-items:center}.club-symbol img{display:block;width:clamp(150px,44vw,205px);height:auto;max-height:55px;object-fit:contain}.bf-logo{width:clamp(150px,44vw,205px);height:55px;object-fit:contain}.round-arrow{font-size:26px;line-height:1;opacity:.85}.club-hint{font-size:11px;color:inherit;opacity:.7}.club-bottom{line-height:1}
dialog{width:calc(100% - 24px);max-width:420px;max-height:calc(100dvh - 24px);margin:auto;overflow:hidden;padding:44px 22px 22px;border:0;border-radius:26px;background:#181e19;color:var(--ink);box-shadow:0 28px 100px #0008}dialog::backdrop{background:#050906b8;backdrop-filter:blur(8px)}.popup-close{position:absolute;right:11px;top:10px;width:32px;height:32px;font-size:24px;z-index:2}.center-section{text-align:center;padding:15px 0}.pulse-mark{width:210px;height:90px;margin:10px auto 26px;display:flex;align-items:center;justify-content:center;animation:breathe 2s ease infinite}.pulse-mark img{width:190px;height:76px;object-fit:contain;border-radius:0}dialog[data-club=''] .pulse-mark img{width:76px;border-radius:20px}#progressMessage{color:#c3cdc5;font-size:14px;margin:0}.progress-track{height:3px;width:140px;margin:26px auto 16px;background:#343f36;border-radius:3px;overflow:hidden}.progress-track span{display:block;height:100%;width:40%;background:#c9d7cc;animation:progress 1.6s ease infinite}.pass-logo{display:block;width:180px;height:50px;object-fit:contain;margin:0 auto 18px}.pass-heading{text-align:center}.pass-heading .intro{font-size:12px;margin-bottom:14px}.qr-card,.invite-qr-card{background:white;border-radius:18px;padding:10px;color:#25372b;width:min(100%,calc(100dvh - 290px),310px);margin:auto}.qr-label{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:.7px;padding:3px 4px 8px;color:#607367}.live{display:flex;align-items:center;gap:5px;color:#16843e;font-weight:700}.live i{width:5px;height:5px}#qrImage,#inviteQR{width:100%;height:auto;aspect-ratio:1;object-fit:contain;display:block}.freshness{text-align:center;color:var(--green);font-size:10px;line-height:1.4;margin:12px 0}#refreshButton{margin-top:8px}#friendsButton{padding:11px;min-height:38px;margin:0 0 14px;background:#30271e;color:#ff9c54}.offline-icon{color:var(--red);font-size:35px;margin:0 auto 16px}#problemTitle{color:var(--red);font-size:28px}#problemMessage{font-size:13px}#retryButton{margin-top:20px}
.back{padding:0;margin-bottom:16px;display:block}.friend-list{display:grid;gap:0;margin:8px 0 18px}.friend-row{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 4px;background:none;color:var(--ink);border:0;font-size:14px;text-align:left}.friend-row+.friend-row{border-top:1px solid #303b33}.friend-row span:last-child{color:var(--orange);font-size:22px}.primary.basicfit-action{background:#e97625;color:white}#reloadFriends{display:block;margin:12px auto 0}#friends h1,#invite h1{font-size:27px}#friends .intro,#invite .intro{font-size:12px}.invite-qr-card{width:min(100%,calc(100dvh - 390px),240px);padding:4px}.invite-link-label{display:block;font-size:10px;color:var(--muted);margin:14px 0 6px}.invite-link{font-size:11px!important;padding:12px!important;margin-bottom:12px}.setting-row{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin:20px 0}.setting-row span{color:var(--muted)}.setting-row strong{font-weight:500}.install-note{background:var(--surface);padding:18px;border-radius:16px;margin-top:16px}.install-note p{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0}.install-note h2{font-size:16px}.eyebrow{font-size:10px;color:var(--muted);letter-spacing:1px}
@keyframes breathe{50%{opacity:.65}}@keyframes progress{from{transform:translateX(-100%)}to{transform:translateX(350%)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-height:680px){.app{padding-top:16px;gap:20px}.brand img{width:58px;height:58px}.brand{font-size:34px}.tagline{font-size:21px;margin-bottom:18px}.club{height:115px;padding:20px}.status{margin-bottom:12px}form label{margin-top:10px}input:not([type=checkbox]){padding:12px 14px}.check{margin:14px 0}dialog{padding:40px 18px 16px}.pass-logo{height:40px;margin-bottom:12px}.pass-heading .intro{font-size:11px;margin-bottom:10px}.qr-card{width:min(100%,calc(100dvh - 270px),280px)}.freshness{margin:9px 0}.secondary{padding:11px}.setting-row{margin:14px 0}.fine{font-size:11px;margin:10px 0}.install-note{padding:12px;margin-top:10px}.install-note h2{font-size:14px;margin-bottom:5px}}
@media(orientation:landscape) and (max-height:520px){.app{max-width:850px;padding:12px 24px;gap:12px;display:grid;grid-template-columns:210px 1fr;align-items:center}header{height:100%;align-items:start;position:relative;justify-content:flex-start}.brand{font-size:34px;gap:10px;align-self:center}.brand img{width:60px;height:60px}.icon-button{position:absolute;bottom:0;left:0}main{height:100%}.tagline{font-size:18px;margin-bottom:14px}.tagline br{display:none}.status{margin-bottom:12px}.clubs{grid-template-columns:1fr 1fr;gap:10px}.club{height:150px;padding:16px}.club-symbol img,.bf-logo{width:130px;max-width:100%;height:42px}.club-top{flex-direction:column;align-items:start;gap:14px}.round-arrow{display:none}#loginForm{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}#loginForm>label[for=username]{grid-column:1;grid-row:1}#username{grid-column:1;grid-row:2}#loginForm>label[for=password]{grid-column:2;grid-row:1}.password-field{grid-column:2;grid-row:2}.check{grid-column:1;margin:10px 0!important}#loginSubmit{grid-column:2;grid-row:3;min-height:38px;padding:10px}#loginError{grid-column:1/3;font-size:10px;margin:0}.install-note{display:none}.setting-row{margin:12px 0}#settings h1{font-size:22px;margin:6px 0}.fine{margin:8px 0}dialog{max-width:720px;padding:40px 24px 20px}#pass{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px;align-items:center}#passLogo{grid-column:1;margin:0 auto;height:42px}.pass-heading{grid-column:1}.pass-heading .intro{margin:0}#friendsButton{grid-column:1;margin:0}.qr-card{grid-column:2;grid-row:1/6;width:min(100%,calc(100dvh - 100px),260px)}#freshness{grid-column:1;margin:0}#refreshButton{grid-column:1;margin:0}#invite{display:grid;grid-template-columns:1fr 1fr;gap:6px 20px;align-items:center}#invite .back{margin:0;grid-column:1}#invite .pass-logo{height:35px;margin:0;grid-column:1}#inviteTitle{font-size:21px;margin:0;grid-column:1}#inviteDescription{font-size:11px;margin:0;grid-column:1}.invite-qr-card{grid-column:2;grid-row:1/5;width:min(100%,calc(100dvh - 150px),230px)}.invite-link-label{display:none}#inviteLink{grid-column:2;grid-row:5;margin:0}#copyInviteButton{grid-column:1;padding:10px;min-height:38px}#copyStatus{grid-column:2;margin:0}.pulse-mark{height:65px;margin:0 auto 18px}.pulse-mark img{height:65px}.progress-track{margin:18px auto 0}}
dialog[data-panel=pass],dialog[data-panel=invite]{height:min(740px,calc(100dvh - 24px))}
#pass,#invite{height:100%;min-height:0;display:flex;flex-direction:column}
#pass>.pass-logo,#pass>.pass-heading,#pass>button,#pass>.freshness,#invite>.back,#invite>.pass-logo,#invite>h1,#invite>.intro,#invite>label,#invite>input,#invite>button,#invite>.freshness{flex-shrink:0}
#pass .qr-card,#invite .invite-qr-card{flex:1;min-height:0;height:0;display:flex;flex-direction:column;width:100%;max-width:310px}
#invite .invite-qr-card{max-width:240px}
#pass .qr-label{flex-shrink:0;width:100%}
#pass #qrImage,#invite #inviteQR{flex:1;min-height:0;height:0;aspect-ratio:auto;object-fit:contain}
@media(orientation:landscape) and (max-height:520px){dialog[data-panel=pass],dialog[data-panel=invite]{height:auto}#pass,#invite{display:grid;height:auto}#pass .qr-card{height:min(260px,calc(100dvh - 100px));width:min(100%,260px);min-height:140px}#invite .invite-qr-card{height:min(220px,calc(100dvh - 145px));width:min(100%,230px);min-height:100px}#pass>.pass-logo,#pass>.pass-heading,#pass>button,#pass>.freshness,#invite>*{flex-shrink:initial}}

:root{--paper:#181818;--surface:#232323;--raised:#2a2a2a;--line:#3b3b3b}
html,body{background:#181818}dialog{background:#242424}
.club .club-hint{opacity:.85}

/* Compact layout and original club logos. */
.app{gap:24px}.app main{align-items:flex-start}.brand{gap:12px}.brand img{width:96px;height:64px;border-radius:0;object-fit:contain}
.tagline{margin-bottom:22px}.clubs{gap:14px}.club{height:clamp(118px,16dvh,146px);padding:20px 24px}.status{margin-bottom:16px}
.fitnesspark{background:#292929;color:#fffffd}.basicfit{background:#eb6800;color:#fffffe}
.fitnesspark .club-symbol{border:2px solid #ffd600;padding:10px 12px;border-radius:9px}.fitnesspark .club-symbol img{width:176px;max-width:100%;height:35px}
.fitnesspark .round-arrow{color:#ffd600}
.bf-logo{width:190px;height:55px}.club-top{gap:12px}
@media(max-height:680px){.app{gap:18px}.brand img{width:83px;height:56px}.club{height:112px;padding:16px 20px}.fitnesspark .club-symbol{padding:9px 10px}.fitnesspark .club-symbol img{width:150px;height:30px}.bf-logo{width:165px;height:48px}.tagline{margin-bottom:18px}}
@media(orientation:landscape) and (max-height:520px){.app{gap:12px}.brand{gap:8px}.brand img{width:80px;height:58px}.clubs{gap:10px}.club{height:142px;padding:14px}.fitnesspark .club-symbol{padding:8px}.fitnesspark .club-symbol img,.bf-logo{width:128px;max-width:100%;height:38px}.tagline{margin-bottom:14px}}

.header-actions {
 display: flex;
 align-items: center;
 gap: 8px;
}
.install-shortcut {
 min-height: 36px;
 padding: 0 10px;
 border: 0;
 border-radius: 9px;
 background: var(--raised);
 color: var(--ink);
 font-size: 11px;
 font-weight: 600;
 white-space: nowrap;
}
.header-actions .icon-button { width: 38px; height: 38px; flex-shrink: 0; }
.status { position: relative; width: max-content; }
.status-dot { width: 8px; height: 8px; }
.status.pending .status-dot { visibility: hidden; }
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip-path: inset(50%);
 white-space: nowrap;
}
@media (max-width: 390px) {
 .brand { font-size: 32px; gap: 7px; white-space: nowrap; }
 .brand img { width: 60px; height: 48px; }
}
@media (orientation: landscape) and (max-height: 520px) {
 .header-actions { position: absolute; bottom: 0; left: 0; }
 .header-actions .icon-button { position: static; }
}

.brand img { width: 136px; height: auto; }
@media (max-height: 680px), (max-width: 390px) {
 .brand img { width: 116px; }
}

.app { gap: clamp(18px, 4dvh, 32px); }
header { flex-direction: column; justify-content: flex-start; gap: clamp(12px, 3dvh, 24px); }
.header-actions { position: static; justify-content: center; min-height: 38px; }
.header-actions .status { margin: 0 4px 0 0; }
.brand { align-self: center; }
.app:has(#menu:not([hidden])) .brand img {
 width: auto;
 height: clamp(88px, calc(100dvh - 420px), 240px);
 max-width: min(76vw, 300px);
}

.club {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto auto;
 align-items: center;
 gap: clamp(8px, 3vw, 20px);
 height: clamp(84px, 15dvh, 124px);
 padding: 14px clamp(12px, 5vw, 24px);
}
.club-logo { display: block; width: 100%; height: clamp(40px, 8dvh, 64px); object-fit: contain; object-position: center; }
.club .club-hint { width: 68px; max-width: none; line-height: 1.3; text-align: center; }
.club .round-arrow { display: block; font-size: 21px; }
.fitnesspark .club-symbol { border: 0; }

#freshness { color: #fff; }
.basicfit-action svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#copyInviteButton, #addFriendButton { align-items: center; line-height: 1.1; }
.qr-actions { display: grid; gap: 8px; flex-shrink: 0; }
.qr-actions .secondary { width: 100%; height: 42px; margin: 0; padding: 8px; font-size: 12px; }
#invite > .qr-size { flex-shrink: 0; align-self: center; padding: 6px 8px; }
dialog.qr-compact #qrImage, dialog.qr-compact #inviteQR { transform: scale(.333333); }
@media (orientation: landscape) and (max-height: 520px) {
 .app { display: flex; max-width: 760px; gap: 14px; }
 header { height: auto; align-items: center; gap: 6px; }
 .brand img { width: 86px; }
 .app:has(#menu:not([hidden])) .brand img { height: clamp(65px, 20dvh, 92px); }
 main { width: 100%; }
 .club { height: 92px; }
 .qr-actions { grid-column: 1; }
 #invite > .qr-size { grid-column: 1; grid-row: 6; justify-self: start; }
}
