From fdc95b5ed6f25a20418b7386d4efd6ecdbbf4083 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 1 Nov 2026 11:54:47 -0600 Subject: [PATCH 1/3] Light and dark themes as token sets (Marty 2026-11-01: LinkSpin got light and dark for vision-impaired readers and people who struggle with bright or dark screens, and InstantAdPay gets the same treatment) site.css keeps its near-black mint look as the dark set and gains :root[data-theme="light"]: light mint-grey ground (#E8F0EC), white panels, dark ink (#0B1A14), muted #50665C, the mint family darkened to a teal that reads as text on white (#0A6B56, hover #075744), white ink on mint buttons, cyan/violet/amber/gold/ok/warn/bad retuned so every text-on-fill pair clears WCAG AA 4.5:1 (qa/theme-contrast.mjs: 8,169 pairs, 0 fails, worst 4.76:1). New tokens, same names as LinkSpin where the role matches: mint-deep/pale/faint/soft-2/line/line-2, ok/ok-ink/ok-soft, warn, bad-soft, gold/gold-2/gold-ink/gold-soft/gold-faint/gold-line, amber-soft/line/ink, cyan-soft/line, violet-soft/line, muted-soft/line, ink-faint, line-soft, ground-soft, field-bg, nav-bg, side-bg, pill-bg, panel-grad, panel-grad-deep, plate-grad, sh-lg, plus color-scheme. A .seg segmented control (pill, mint when on) for the theme switch. Audit of stray literals: every raw hex/rgba that encoded a surface, text, border or soft fill in site.css now reads a token (nav and sidebar backings, menu hover/on fills, chips, badges, split strip, spend banner, pager, pipeline columns, tank/line chips, toolkit tiers, chat bubbles, the genViz diagram strokes, the Shorts report link that was white at 45 percent on black). Scripts that draw UI read tokens: my.js charts take their colours from getComputedStyle at draw time (CH proxy), the wallet check, tank badges, ledger deltas, Game Pass badges (gold with gold-ink), Friday bank dots and promo errors use var(--ok)/(--warn)/(--gold)/(--bad); admin.js ticket thread fills, welcome.js pop-up card, support.js ticket styles, engine-room.js lamps, admin-kits.js preview border and blog-page.js bar likewise. Left as literals on purpose: button glows and drop shadows, the modal and ad-viewer backdrops, the ticker mask, iframe/video/QR backings that must stay white or black, the hero arc and isometric art, the welcome pop-up's brand mint button gradient (dark text on a fixed mint fill passes in both themes), the game return bars and ribbons (game-brand colours), canvas-drawn share images, var() fallbacks, print styles, the sticky-note yellow (#fde68a/#7c2d12, 8.5:1 in both themes), and the refuel rail / Spooky Doors / Gem Kingdom shop pages that carry their own palettes. Co-Authored-By: Claude Fable 5.1 --- public/assets/admin-kits.js | 2 +- public/assets/admin.js | 14 +- public/assets/blog-page.js | 2 +- public/assets/engine-room.js | 4 +- public/assets/my.js | 46 +++---- public/assets/site.css | 241 +++++++++++++++++++++-------------- public/assets/support.js | 8 +- public/assets/welcome.js | 22 ++-- 8 files changed, 194 insertions(+), 145 deletions(-) diff --git a/public/assets/admin-kits.js b/public/assets/admin-kits.js index e4bc3ee..e5a6879 100644 --- a/public/assets/admin-kits.js +++ b/public/assets/admin-kits.js @@ -34,7 +34,7 @@ $('kitPlaceholder').addEventListener('click', async () => { try { const r = await post('/api/admin/kits/placeholder', { month: $('kitMonth').value.trim() }); say('placeholder art: ' + r.sizes.join(', ')); load(); } catch (e) { say(e.message); } }); $('kitPreview').addEventListener('click', () => { const q = 'month=' + encodeURIComponent($('kitMonth').value.trim()) + '&size=' + encodeURIComponent($('kitPrevSize').value) + '&username=' + encodeURIComponent($('kitPrevName').value || 'yourname') + ($('kitPrevGif').checked ? '&variant=gif' : '') + '&t=' + Date.now(); - $('kitPrevBox').innerHTML = 'preview'; + $('kitPrevBox').innerHTML = 'preview'; }); load(); })(); diff --git a/public/assets/admin.js b/public/assets/admin.js index ab1f841..f215d4c 100644 --- a/public/assets/admin.js +++ b/public/assets/admin.js @@ -299,7 +299,7 @@ $('tankAdmSub').textContent = r.waiting.length + ' waiting' + (nReady ? ' (' + nReady + ' ready to activate)' : '') + ' · cap ' + r.cap + ' open per adopter · ' + r.ttlDays + '-day window · ready members held ' + (r.holdHours || 24) + ' h, then auto-assigned in rotation'; // ready = wallet linked: activation is held (never the company) until someone adopts them or the 24-hour safety net assigns them (2026-10-27) const left = w => { const ms = (w.holdUntil || 0) - Date.now(); if (ms <= 0) return 'assigning now'; const m = Math.round(ms / 60000); return (m >= 60 ? Math.floor(m / 60) + ' h ' + (m % 60) + ' min' : m + ' min') + ' left'; }; - const rb = w => w.ready ? ' Ready to activate · ' + left(w) + '' : ''; + const rb = w => w.ready ? ' Ready to activate · ' + left(w) + '' : ''; $('tankWait').innerHTML = 'WaitingEmailJoinedLast sign-in' + (r.waiting.length ? r.waiting.map(w => '' + esc(w.name) + rb(w) + '' + esc(w.email) + '' + when(w.joined) + '' + (w.lastSeen ? when(w.lastSeen) : 'never') + '').join('') : 'empty') + ((r.aligned || []).length ? 'Aligned to their network sponsor (LinkSpin) instead of the tank' + r.aligned.slice(0, 15).map(x => '' + esc(x.email) + '' + esc(x.toName || x.to) + '' + when(x.at) + '' + esc(x.via || '') + '').join('') : ''); $('tankAdopt').innerHTML = 'MemberAdopted byWhenWindow endsStatus' + (r.adoptions.length ? r.adoptions.map(a => '' + esc(a.adopteeName) + '' + esc(a.adopterName) + '' + when(a.ts) + '' + (a.status === 'released' ? '' : when(a.expires)) + '' + esc(a.status) + '').join('') : 'none yet'); @@ -503,11 +503,11 @@ let h = '

Payment trace

' + r.buyersNow + ' qualifying buyer' + (r.buyersNow === 1 ? '' : 's') + ' · every purchase this member was part of, newest first.

'; if (!r.purchases.length) h += '

No purchases involving them yet.

'; for (const p of r.purchases) { - h += '
' + when(p.ts) + ' · ' + nm(p.buyerId) + ' bought $' + (p.priceCents / 100).toFixed(0) + ' (' + polOf(p.paidWei) + ' POL)' + (p.sponsorId ? ' · sponsor ' + nm(p.sponsorId) : '') + ' · ' + esc(p.tx.slice(0, 12)) + '…
'; + h += '
' + when(p.ts) + ' · ' + nm(p.buyerId) + ' bought $' + (p.priceCents / 100).toFixed(0) + ' (' + polOf(p.paidWei) + ' POL)' + (p.sponsorId ? ' · sponsor ' + nm(p.sponsorId) : '') + ' · ' + esc(p.tx.slice(0, 12)) + '…
'; for (const t of p.tiers) { let line = 'L' + t.tier + ' ' + t.pct + '%: '; - for (const x of t.skipped) line += '' + nm(x.id) + ' skipped (' + (x.reason === 'unqualified' ? 'had ' + x.buyersThen + ' of ' + (t.tier === 2 ? 2 : 5) + ' buyers then' : esc(x.reason)) + ') → '; - line += t.paidTo ? '' + nm(t.paidTo) + ' ' + polOf(t.amountWei) + ' POL' : 'no catcher → company'; + for (const x of t.skipped) line += '' + nm(x.id) + ' skipped (' + (x.reason === 'unqualified' ? 'had ' + x.buyersThen + ' of ' + (t.tier === 2 ? 2 : 5) + ' buyers then' : esc(x.reason)) + ') → '; + line += t.paidTo ? '' + nm(t.paidTo) + ' ' + polOf(t.amountWei) + ' POL' : 'no catcher → company'; h += '
' + line + '
'; } h += '
platform ' + polOf(p.adminWei) + ' POL
'; @@ -651,7 +651,7 @@ const r = await api('/api/admin/promos', { code: $('pcCode').value, credits: $('pcCredits').value, partner: $('pcPartner').value, maxUses: $('pcMax').value, expires: $('pcExpires').value || null, active: true }); msg.textContent = 'Saved ' + r.code.code + ': ' + r.code.credits + ' credits.'; msg.style.color = 'var(--mint)'; $('pcCode').value = ''; $('pcCredits').value = ''; $('pcPartner').value = ''; loadPromos(); - } catch (e) { msg.textContent = e.message; msg.style.color = '#ff8a8a'; } + } catch (e) { msg.textContent = e.message; msg.style.color = 'var(--bad)'; } }); async function loadTraffic() { loadPromos().catch(e => IAP.status(e.message, 'bad')); @@ -997,11 +997,11 @@ ['Wallet linked', rq.wallet ? 'yes' : 'no'], ['Joined', esc(ctWhen(rq.created))], ['Last seen', esc(ctWhen(rq.lastSeen) || 'never')]] : []).concat([['Private link', '' + esc(v.link) + '']])) + '
' + '

Thread

' + v.messages.length + ' message' + (v.messages.length === 1 ? '' : 's') + '
' - + v.messages.map(m => '
' + + v.messages.map(m => '
' + '
' + esc(SP_AUTHOR[m.author] || m.author) + (m.internal ? ' · internal note' : '') + (m.via && m.via !== 'web' ? ' · via ' + esc(m.via) : '') + '' + esc(ctWhen(m.created)) + '
' + '
' + spLink(m.body) + '
' + (m.author === 'admin' && !m.internal && t.platform !== 'linkspin' && window.IAPKB ? '

' : '') - + (m.bodyEn ? '
🌐 ' + esc(m.langName || m.lang) + ', in English (your reply goes back in ' + esc(m.langName || m.lang) + ' with your English underneath)\n' + spLink(m.bodyEn) + '
' : '') + + (m.bodyEn ? '
🌐 ' + esc(m.langName || m.lang) + ', in English (your reply goes back in ' + esc(m.langName || m.lang) + ' with your English underneath)\n' + spLink(m.bodyEn) + '
' : '') + ((m.attachments || []).length ? '
' + m.attachments.map(a => 'attachment').join('') + '
' : '') + '
').join('') + '
' + '

Reply

emailed to the requester' + (rq.member ? ' and put in their Help tab and inbox' : '') + '
' diff --git a/public/assets/blog-page.js b/public/assets/blog-page.js index 7620de6..c776956 100644 --- a/public/assets/blog-page.js +++ b/public/assets/blog-page.js @@ -11,7 +11,7 @@ share.querySelectorAll('a').forEach(a => { a.href = a.href.replace(encodeURIComponent('https://instantadpay.com' + location.pathname), encodeURIComponent(link)); }); const bar = document.createElement('div'); bar.id = 'viralBar'; - bar.style.cssText = 'margin-top:18px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card, rgba(255,255,255,.03));display:flex;gap:10px;align-items:center;flex-wrap:wrap'; + bar.style.cssText = 'margin-top:18px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--ink-faint);display:flex;gap:10px;align-items:center;flex-wrap:wrap'; bar.innerHTML = '
Your link for this article
' + link.replace(/[&<>]/g, '') + '
Share this and anyone who joins from it is yours, same as your invite link.
'; bar.querySelector('button').onclick = async () => { try { await navigator.clipboard.writeText(link); IAP.status('Link copied.', 'ok'); } catch (e) { IAP.status('Copy failed.', 'bad'); } }; share.parentNode.insertBefore(bar, share); diff --git a/public/assets/engine-room.js b/public/assets/engine-room.js index dd00a30..976a5e8 100644 --- a/public/assets/engine-room.js +++ b/public/assets/engine-room.js @@ -21,7 +21,7 @@ + '.er-dial{border:1px solid rgba(127,127,127,.3);border-radius:10px;padding:10px 12px;text-align:center;min-width:0}.er-dial svg{width:100%;max-width:200px;height:auto;display:block;margin:0 auto}' + '.er-dial .v{font-size:22px;font-weight:700;margin-top:-6px}.er-dial .c{font-size:12px;opacity:.8}.er-row{display:flex;flex-wrap:wrap;gap:8px}' + '.er-light{display:flex;gap:6px;align-items:center;border:1px solid rgba(127,127,127,.3);border-radius:999px;padding:4px 10px;font-size:12.5px}.er-dot{width:10px;height:10px;border-radius:50%;background:rgba(127,127,127,.45);flex:none}' - + '.er-dot.on{background:#e8a317}.er-dot.green{background:#2fa36b}.er-dot.amber{background:#e8a317}.er-dot.grey{background:rgba(127,127,127,.45)}.er-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px}' + + '.er-dot.on{background:var(--warn,#e8a317)}.er-dot.green{background:var(--ok,#2fa36b)}.er-dot.amber{background:var(--warn,#e8a317)}.er-dot.grey{background:rgba(127,127,127,.45)}.er-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px}' + '.er-part{border:1px solid rgba(127,127,127,.3);border-radius:8px;padding:8px 10px;font-size:13px;display:grid;gap:3px;min-width:0}.er-part b{display:flex;flex-wrap:wrap;gap:2px 6px;align-items:center}.er-next{border:1px solid rgba(127,127,127,.4);border-radius:10px;padding:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}' + '.er-next .w{flex:1 1 220px;font-size:13px}.er-h{font-size:12px;letter-spacing:.06em;text-transform:uppercase;opacity:.75;margin:0}.er-streak{font-size:13.5px;line-height:1.5}.er-goal{display:flex;gap:6px;align-items:center;justify-content:center;margin-top:6px;font-size:12px}.er-goal input{width:70px}'; if (!document.getElementById('erCss')) { const st = document.createElement('style'); st.id = 'erCss'; st.textContent = css; document.head.appendChild(st); } @@ -29,7 +29,7 @@ function dial(pct, value, caption, aria, warn) { const p = pct == null ? 0 : Math.max(0, Math.min(100, pct)); const a = Math.PI * (1 - p / 100); const x = 100 + 80 * Math.cos(a), y = 100 - 80 * Math.sin(a); - const col = warn ? '#e8a317' : 'currentColor'; + const col = warn ? 'var(--warn,#e8a317)' : 'currentColor'; return ''; diff --git a/public/assets/my.js b/public/assets/my.js index e765bc0..7f48d32 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -52,7 +52,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str } function actNote(text) { let n = $('actIntentNote'); - if (!n && text) { n = document.createElement('p'); n.id = 'actIntentNote'; n.className = 'small'; n.style.cssText = 'margin:8px 0;color:#22c55e;font-weight:600'; } + if (!n && text) { n = document.createElement('p'); n.id = 'actIntentNote'; n.className = 'small'; n.style.cssText = 'margin:8px 0;color:var(--ok);font-weight:600'; } if (!n) return null; n.hidden = !text; n.textContent = text || ''; return n; @@ -395,7 +395,8 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str })); host.appendChild(bar); } - const CH = { mint: '#43e8c3', cyan: '#54ccff', violet: '#9d7dff', amber: '#ffb238', track: 'rgba(139,166,156,.18)' }; + // chart colours come from the live theme tokens (2026-11-01): read at draw time so a theme switch repaints correctly + const CH = new Proxy({}, { get: (_, k) => { const cs = getComputedStyle(document.documentElement); const v = { mint: '--mint', cyan: '--cyan', violet: '--violet', amber: '--amber', track: '--muted-soft' }[k]; return (v && cs.getPropertyValue(v).trim()) || { mint: '#43e8c3', cyan: '#54ccff', violet: '#9d7dff', amber: '#ffb238', track: 'rgba(139,166,156,.18)' }[k]; } }); function bars(el, xel, data) { // data: [{v,label,tip,alt}] if (!el) return; const max = Math.max(1, ...data.map(d => d.v)); @@ -417,7 +418,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str off -= len; } out += '' + esc(center.big) + '' - + '' + esc(center.small) + ''; + + '' + esc(center.small) + ''; el.innerHTML = out; } function legend(el, rows) { @@ -655,7 +656,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const r = await (await fetch('/api/leaderboard?period=week')).json(); const esc = t => String(t == null ? '' : t).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); let h = r.prize ? '

Prize this week: ' + esc(r.prize) + '

' : ''; - h += r.top.length ? '' + r.top.slice(0, 5).map(x => '').join('') + '
' + x.rank + '' + esc(x.name) + '' + x.sales + ' sold · $' + x.usd + '
' + h += r.top.length ? '' + r.top.slice(0, 5).map(x => '').join('') + '
' + x.rank + '' + esc(x.name) + '' + x.sales + ' sold · $' + x.usd + '
' : '

No packages sold yet this week. First sale takes the top spot.

'; h += r.me ? '

You: #' + r.me.rank + ' · ' + r.me.sales + ' sold · $' + r.me.usd + '

' : '

You: no sales yet this week. Sales are $20+ packages bought by people you sponsor.

'; h += '

Full leaderboard: week, month, all time →

'; @@ -703,7 +704,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const pane = document.querySelector('#pane-buy .card'); if (!pane) return; let box = document.getElementById('starterBox'); if (!box) { box = document.createElement('div'); box.id = 'starterBox'; pane.insertBefore(box, pane.children[1] || null); } const esc = t => String(t).replace(/[&<>"]/g, c => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c])); - box.style.cssText = 'border:1px solid var(--gold, #e2b04a);border-radius:12px;padding:12px 14px;margin:0 0 14px;background:rgba(226,176,74,.08)'; + box.style.cssText = 'border:1px solid var(--gold, #e2b04a);border-radius:12px;padding:12px 14px;margin:0 0 14px;background:var(--gold-soft)'; box.innerHTML = v.eligible ? 'Welcome from ' + esc(v.game) + '!
Your first package, $5 or more, comes with +' + v.bonus + ' bonus ad credits, and ' + esc(v.perk) + ' waiting for you in ' + esc(v.game) + '.' : 'You are a member. ' + (v.granted ? 'Your +' + v.bonus + ' welcome credits are in your balance. ' : '') + 'Your ' + esc(v.perk) + ' is waiting in ' + esc(v.game) + '.
Back to ' + esc(v.game) + ' to collect it'; @@ -804,7 +805,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str if (tw && tw.count) tn.innerHTML = '' + tw.count + (tw.count === 1 ? ' person is' : ' people are') + ' waiting for a sponsor in the holding tank \u00b7 ' + tw.names.map(esc).join(', ') + (tw.count > tw.names.length ? ' and more' : '') + '. Adopt them from My line' + (tw.eligible ? '.' : ' (you need your own $20 package first).') - + (tw.ready ? ' ' + tw.ready + ' of them ' + (tw.ready === 1 ? 'has' : 'have') + ' linked a wallet and ' + (tw.ready === 1 ? 'is' : 'are') + ' ready to switch on payouts.' : ''); + + (tw.ready ? ' ' + tw.ready + ' of them ' + (tw.ready === 1 ? 'has' : 'have') + ' linked a wallet and ' + (tw.ready === 1 ? 'is' : 'are') + ' ready to switch on payouts.' : ''); } } catch (e) {} // Share the presentation (2026-10-15): instantadpay.com/presentation?ref= sets the same sponsor cookie as /join @@ -853,7 +854,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const el = $(id); if (!el || el.hidden || !el.offsetParent) { if (Date.now() - t0 < 20000) setTimeout(tick, 300); return; } el.scrollIntoView({ behavior: 'smooth', block: 'start' }); - el.style.transition = 'box-shadow .4s'; el.style.boxShadow = '0 0 0 3px #45e3c4'; + el.style.transition = 'box-shadow .4s'; el.style.boxShadow = '0 0 0 3px var(--mint)'; setTimeout(() => { el.style.boxShadow = ''; }, 2600); const inp = inputId && $(inputId); if (inp && !inp.closest('[hidden]')) setTimeout(() => { try { inp.focus({ preventScroll: true }); } catch (e) {} }, 500); }; @@ -916,6 +917,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str $('authArea').hidden = !!signedIn; $('memberArea').hidden = !signedIn; if ($('mcFinish')) $('mcFinish').hidden = !walletOnly; + if (IAP.themeSync) IAP.themeSync(signedIn ? me : null); // appearance (2026-11-01): the account's theme wins at sign-in, a local choice is pushed up when the account has none if (!signedIn) return; TANK_HOLD = (!me.memberId && me.tankHold) || null; if ($('adminLink')) $('adminLink').hidden = !me.isAdmin; // admin portal link, only for ADMIN_EMAIL @@ -964,7 +966,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const who = []; if (me.email) who.push(me.email); // members kept asking whether the wallet was really connected (Marty, 2026-09-12): say it, with a green check - if (me.address) who.push('Wallet connected ' + me.address.slice(0, 8) + '…' + me.address.slice(-6) + ''); + if (me.address) who.push('Wallet connected ' + me.address.slice(0, 8) + '…' + me.address.slice(-6) + ''); else who.push('No wallet connected yet (link one below)'); if (me.memberId) who.push('on-chain member #' + me.memberId + '' + (me.onchainSponsorId ? ', sponsored by #' + me.onchainSponsorId : '')); @@ -977,7 +979,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str $('activateCard').hidden = !(me.address && !me.memberId); renderBix(me); // BixPay Visa card: Wallet card, Overview announcement, Profile field, promo pill (2026-10-29; nothing while bixpayLive is off) { let hn = $('tankHoldNote'); // held for an adopter: say so, and no activate button - if (!hn) { hn = document.createElement('p'); hn.id = 'tankHoldNote'; hn.className = 'small'; hn.style.cssText = 'margin:8px 0 0;color:#22c55e'; $('activateBtn').insertAdjacentElement('beforebegin', hn); } + if (!hn) { hn = document.createElement('p'); hn.id = 'tankHoldNote'; hn.className = 'small'; hn.style.cssText = 'margin:8px 0 0;color:var(--ok)'; $('activateBtn').insertAdjacentElement('beforebegin', hn); } hn.hidden = !TANK_HOLD; hn.textContent = TANK_HOLD ? tankHoldText(TANK_HOLD) : ''; $('activateBtn').hidden = !!TANK_HOLD; } runActivateIntent(me).catch(() => {}); // arrived from the one-tap "Switch on payouts" link (tank assignment chat/email) $('activityArea').hidden = !me.memberId; @@ -1080,9 +1082,9 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str for (const t of p.tiers) { const me = t.paidTo === r.memberId, skippedMe = t.skipped.some(x => x.id === r.memberId); let line = 'Level ' + t.tier + ' (' + t.pct + '%): '; - for (const x of t.skipped) line += '' + nm(x.id) + ' skipped (' + (x.reason === 'unqualified' ? 'not qualified: had ' + x.buyersThen + ' of ' + (t.tier === 2 ? 2 : 5) + ' qualifying buyers then' : esc(x.reason)) + ') → '; - line += t.paidTo ? '' + nm(t.paidTo) + ' paid ' + pol(t.amountWei) + '' : 'no eligible catcher within reach → company'; - h += '
' + line + '
'; + for (const x of t.skipped) line += '' + nm(x.id) + ' skipped (' + (x.reason === 'unqualified' ? 'not qualified: had ' + x.buyersThen + ' of ' + (t.tier === 2 ? 2 : 5) + ' qualifying buyers then' : esc(x.reason)) + ') → '; + line += t.paidTo ? '' + nm(t.paidTo) + ' paid ' + pol(t.amountWei) + '' : 'no eligible catcher within reach → company'; + h += '
' + line + '
'; } h += '
Platform (20%): ' + pol(p.adminWei) + (isBuyer ? '' : '') + '
'; } @@ -1132,7 +1134,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str box.innerHTML = '

Credit activity

' + '

Every credit that came in or went out, newest first. Earned credits are spent before purchased ones, so an earn followed by a buy shows as two lines here. Views a campaign delivers roll up into one line per day.

' + '
' - + r.items.map(i => '').join('') + + r.items.map(i => '').join('') + '
' + when(i.ts) + '' + (i.delta > 0 ? '+' : '') + i.delta.toLocaleString() + '' + esc(i.note) + '
' + when(i.ts) + '' + (i.delta > 0 ? '+' : '') + i.delta.toLocaleString() + '' + esc(i.note) + '
'; el.appendChild(box); pageList('credits', box, 'tbody tr'); @@ -1192,7 +1194,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str if (!convSel || !goals.some(g => g.px === convSel)) convSel = goals[0].px; const when = ts => ts ? new Date(ts).toLocaleString([], { month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' }) : 'never'; list.innerHTML = '
' - + goals.map(g => '' + + goals.map(g => '' + '' + '' + '' @@ -1900,7 +1902,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const rows = listApply('tank', r.waiting).sort((a, b) => (b.ready ? 1 : 0) - (a.ready ? 1 : 0)); // ready to activate always on top (stable: the chosen order stays inside each group) el.innerHTML = ''; el.appendChild(listBar('tank', r.waiting.length, rows.length, () => renderTank(el, r), { hide: ['payouts'] })); // nobody in the tank has payouts on - const readyBadge = w => w.ready ? ' Ready to activate \u00b7 ' + (w.holdUntil > Date.now() ? holdLeft(w.holdUntil - Date.now()) + ' left' : 'assigning now') + '' : ''; + const readyBadge = w => w.ready ? ' Ready to activate \u00b7 ' + (w.holdUntil > Date.now() ? holdLeft(w.holdUntil - Date.now()) + ' left' : 'assigning now') + '' : ''; el.insertAdjacentHTML('beforeend', rows.length ? rows.map(w => '
' + esc(w.name) + readyBadge(w) + '' + 'joined ' + ago(w.joined) + '' + memberChips(w) + '' + 'last sign-in: ' + ago(w.lastSeen) + '' @@ -1989,7 +1991,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str + '

Get your BixPay card How it works

' + '

' + esc(b.whose === 'you' ? b.using : b.using.replace(/\s*Add yours in Profile\.$/, '')) + (b.whose !== 'you' ? ' Add yours in Profile' : '') + '

' + '

' + esc(BIX_SIGNUP_NOTE.split('. ')[0]) + '. ' + esc(BIX_SIGNUP_NOTE.slice(BIX_SIGNUP_NOTE.indexOf('. ') + 2)) + '

' - + (bixInApp() ? '

' + esc(BIX_INAPP_NOTE) + '

' : '') + + (bixInApp() ? '

' + esc(BIX_INAPP_NOTE) + '

' : '') + '
The fine print

' + esc(BIX_COMPLIANCE) + '

'; wc.querySelectorAll('[data-goto="profile"]').forEach(a => a.addEventListener('click', e => { e.preventDefault(); const m = document.querySelector('.bo-menu [data-pane="profile"]'); if (m) m.click(); setTimeout(() => { const i = $('pfBixLink'); if (i) { i.scrollIntoView({ behavior: 'smooth', block: 'center' }); i.focus(); } }, 300); })); } @@ -2046,7 +2048,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str const gpLen = d => d >= 365 && d % 365 === 0 ? (d === 365 ? '1 year' : (d / 365) + ' years') : d + ' days'; function renderPassTiers(card, gp, highlight) { const rows = gp.passes || []; const top = rows.find(r => r.tier === gp.tier); - const state = top ? '' + esc(top.name) + ' active · until ' + esc(gpCT(top.until)) + '' + const state = top ? '' + esc(top.name) + ' active · until ' + esc(gpCT(top.until)) + '' : 'No pass active'; const caps = gp.caps || {}; const capsLine = caps.enforced ? 'Today: ' + gpPol(caps.used && caps.used.total) + ' of ' + gpPol(caps.total) + ' POL used across the games (' + gpPol(caps.used && caps.used.daily) + ' of ' + gpPol(caps.daily) + ' on daily play).' : ''; @@ -2116,9 +2118,9 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str if ((gp.passes || []).some(r => r.tier !== 'weekly')) return renderPassTiers(card, gp, highlight); // Five Dollar Friday + the pass (Marty 2026-10-23): the package that starts the pass also gets the Friday bonus, so say so on Fridays let fdf = ''; try { const f = await (await fetch('/api/friday')).json(); if (f && f.on && f.live) { const base = gp.price || 500, got = Math.round(base * (1 + (Number(f.pct) || 20) / 100)); - fdf = '

\u{1F383} It\u2019s Five Dollar Friday. The $' + (gp.usd || 5) + ' package that starts your pass gets +' + (Number(f.pct) || 20) + '% too, so you get the ' + (gp.days || 7) + '-day pass and keep ' + got.toLocaleString() + ' ad credits. Tap Get the Pass first, then buy the package.

'; } } catch (e) {} // the tier boxes above show only when a tier above weekly is on sale or the member holds one (never an admin-only view: tier tests live in Admin > Game Pass) + fdf = '

\u{1F383} It\u2019s Five Dollar Friday. The $' + (gp.usd || 5) + ' package that starts your pass gets +' + (Number(f.pct) || 20) + '% too, so you get the ' + (gp.days || 7) + '-day pass and keep ' + got.toLocaleString() + ' ad credits. Tap Get the Pass first, then buy the package.

'; } } catch (e) {} // the tier boxes above show only when a tier above weekly is on sale or the member holds one (never an admin-only view: tier tests live in Admin > Game Pass) const caps = gp.caps || {}; const price = gp.price || 500; - const state = gp.active ? 'Pass active \u00b7 until ' + esc(gpDate(gp.until)) + '' + const state = gp.active ? 'Pass active \u00b7 until ' + esc(gpDate(gp.until)) + '' : gp.waiting ? 'Waiting for a $' + (gp.usd || 5) + ' package' : 'Not active'; const capsLine = caps.enforced ? 'Today: ' + gpPol(caps.used && caps.used.total) + ' of ' + gpPol(caps.total) + ' POL used across the games (' + gpPol(caps.used && caps.used.daily) + ' of ' + gpPol(caps.daily) + ' on daily play).' @@ -3736,7 +3738,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str (function () { const btn = document.getElementById('promoApply'), inp = document.getElementById('promoCode'), msg = document.getElementById('promoMsg'); if (!btn || !inp) return; - const say = (t, ok) => { msg.hidden = false; msg.textContent = t; msg.style.color = ok ? 'var(--mint)' : '#ff8a8a'; }; + const say = (t, ok) => { msg.hidden = false; msg.textContent = t; msg.style.color = ok ? 'var(--mint)' : 'var(--bad)'; }; const go = async () => { const code = inp.value.trim(); if (!code) { say('Enter a promo code.', false); return; } btn.disabled = true; @@ -3761,9 +3763,9 @@ async function loadFridayBank() { const wd = d => WD[new Date(d + 'T12:00:00Z').getUTCDay()]; document.getElementById('fbankCount').textContent = b.banked + ' banked'; document.getElementById('fbankDays').innerHTML = (b.days || []).map(d => { - const st = d.banked ? ['#43e8c3', '✓'] : d.future ? ['var(--line-strong)', '·'] : d.day === b.today ? ['#ffb238', '○'] : ['var(--line-strong)', '×']; + const st = d.banked ? ['var(--mint)', '✓'] : d.future ? ['var(--line-strong)', '·'] : d.day === b.today ? ['var(--amber)', '○'] : ['var(--line-strong)', '×']; return '' + st[1] + '' + wd(d.day) + ''; - }).join('') + 'Fri: +' + b.banked + ' hunts'; + }).join('') + 'Fri: +' + b.banked + ' hunts'; const t = (b.days || []).find(d => d.day === b.today); let msg = ''; if (b.isFriday) msg = b.banked ? 'It\'s Friday. Your ' + b.banked + ' banked hunt' + (b.banked === 1 ? '' : 's') + ' are live on PolHunter today.' : 'It\'s Friday. Bank hunts Saturday through Thursday for next Friday.'; diff --git a/public/assets/site.css b/public/assets/site.css index e21ef7a..a54da18 100644 --- a/public/assets/site.css +++ b/public/assets/site.css @@ -13,6 +13,20 @@ --mono:"Consolas","JetBrains Mono",monospace; --disp:"Sora","Segoe UI",system-ui,sans-serif; --radius:18px; + /* 2026-11-01 theme tokens (mirrored from LinkSpin): every surface, text, border and soft fill that used to be a literal + in this file, the page inline styles and the UI-drawing scripts. Light values live in :root[data-theme="light"] at + the end of this file; themehead.js sets data-theme on before the first paint. */ + --mint-deep:#1fb894; --mint-pale:#8ffbe3; + --mint-faint:rgba(67,232,195,.06); --mint-soft-2:rgba(67,232,195,.16); --mint-line:rgba(67,232,195,.38); --mint-line-2:rgba(67,232,195,.6); + --ok:#22c55e; --ok-ink:#04140a; --ok-soft:rgba(34,197,94,.15); --warn:#f0a742; --bad-soft:rgba(255,143,125,.12); + --gold:#ffd15c; --gold-2:#f2c94c; --gold-ink:#1a1206; --gold-soft:rgba(242,201,76,.14); --gold-faint:rgba(242,201,76,.04); --gold-line:rgba(242,201,76,.55); + --amber-soft:rgba(255,178,56,.12); --amber-line:rgba(255,178,56,.4); --amber-ink:#1a1206; + --cyan-soft:rgba(84,204,255,.1); --cyan-line:rgba(84,204,255,.3); --violet-soft:rgba(157,125,255,.12); --violet-line:rgba(157,125,255,.32); + --muted-soft:rgba(139,166,156,.12); --muted-line:rgba(139,166,156,.4); --ink-faint:rgba(255,255,255,.04); --line-soft:rgba(84,150,128,.08); + --ground-soft:rgba(4,8,7,.5); --field-bg:rgba(4,8,7,.65); --nav-bg:rgba(4,8,7,.75); --side-bg:rgba(10,18,15,.92); --pill-bg:rgba(16,28,24,.7); + --panel-grad:linear-gradient(165deg,rgba(24,36,31,.6),rgba(13,19,17,.66)); --panel-grad-deep:linear-gradient(170deg,#0e1c17,#080f0c); --plate-grad:linear-gradient(160deg,#12241e,#0a1411); + --sh-lg:0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(67,232,195,.08); + color-scheme:dark; } *{box-sizing:border-box} [hidden]{display:none!important} /* beats any display: set by a class (chat panel bug) */ @@ -26,7 +40,7 @@ a:hover{text-decoration:underline} .wrap{max-width:1100px;margin:0 auto;padding:0 22px} h1,h2,h3{font-family:var(--disp);letter-spacing:-.015em} /* ── nav: capsule pill ─────────────────────────────── */ -nav{position:sticky;top:0;z-index:10;background:rgba(4,8,7,.7);backdrop-filter:blur(16px); +nav{position:sticky;top:0;z-index:10;background:var(--nav-bg);backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);border-bottom:1px solid var(--line)} nav .wrap{display:flex;align-items:center;gap:20px;min-height:66px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px} .logo{font-family:var(--disp);font-weight:800;font-size:20px;color:var(--ink)} @@ -36,13 +50,13 @@ nav .wrap{display:flex;align-items:center;gap:20px;min-height:66px;flex-wrap:wra .byline b{color:var(--ink);font-weight:600} .bo-side .byline{padding:4px 8px 10px;white-space:normal} @media (max-width:560px){nav .byline{font-size:9.5px}} -nav .links{display:flex;gap:4px;flex:1;flex-wrap:wrap;background:rgba(16,28,24,.7);border:1px solid var(--line); +nav .links{display:flex;gap:4px;flex:1;flex-wrap:wrap;background:var(--pill-bg);border:1px solid var(--line); border-radius:999px;padding:5px 8px;width:fit-content;flex:0 1 auto;margin:0 auto} nav .links a{color:var(--muted);font-size:13.5px;font-weight:600;padding:7px 14px;border-radius:999px} nav .links a:hover{color:var(--ink);text-decoration:none} -nav .links a.active{color:var(--mint);background:rgba(67,232,195,.1)} +nav .links a.active{color:var(--mint);background:var(--mint-soft)} #navWallet{font-size:13px;margin-left:auto} -.rehearsal{background:rgba(67,232,195,.07);border-bottom:1px solid var(--line);color:var(--muted); +.rehearsal{background:var(--mint-faint);border-bottom:1px solid var(--line);color:var(--muted); text-align:center;font-size:12.5px;padding:7px 12px} .rehearsal b{color:var(--mint)} /* ── buttons ───────────────────────────────────────── */ @@ -50,14 +64,14 @@ nav .links a.active{color:var(--mint);background:rgba(67,232,195,.1)} padding:13px 26px;font-weight:700;font-size:15px;cursor:pointer;font-family:var(--disp); box-shadow:0 4px 30px rgba(67,232,195,.35);transition:transform .16s ease,box-shadow .16s ease,background .16s ease} .btn:hover{transform:translateY(-2px);background:var(--mint-hi);box-shadow:0 8px 44px rgba(67,232,195,.5);text-decoration:none} -.btn.sec{background:transparent;color:var(--mint);border:1px solid rgba(67,232,195,.6);box-shadow:none} -.btn.sec:hover{background:rgba(67,232,195,.08);box-shadow:0 4px 26px rgba(67,232,195,.2)} +.btn.sec{background:transparent;color:var(--mint);border:1px solid var(--mint-line-2);box-shadow:none} +.btn.sec:hover{background:var(--mint-soft);box-shadow:0 4px 26px rgba(67,232,195,.2)} .btn.small{padding:8px 17px;font-size:13px} /* a third, quieter button for actions that are not the main move (Archive). NOT ".ghost": that is the giant footer wordmark and it sets color:transparent, which made the Archive button invisible (Marty, 2026-09-23). */ .btn.quiet{background:transparent;color:var(--muted);border:1px solid var(--line-strong);box-shadow:none} -.btn.quiet:hover{background:rgba(139,166,156,.1);color:var(--ink);border-color:var(--muted);box-shadow:none} +.btn.quiet:hover{background:var(--muted-soft);color:var(--ink);border-color:var(--muted);box-shadow:none} /* the member's campaign actions sat flush against each other on desktop; the mobile rule already had a gap, this gives the wide layout the same room */ /* Campaign actions (Marty, 2026-09-23): the column is narrow, so these stack. Left-aligned pills @@ -68,6 +82,13 @@ nav .links a.active{color:var(--mint);background:rgba(67,232,195,.1)} text-align:center;line-height:1.25;white-space:normal} .camp-table td.act .btn:last-child{margin-bottom:0} .btn:disabled{opacity:.45;cursor:default;transform:none;box-shadow:none} +/* ── segmented control + the Light / Dark / Auto theme switch (2026-11-01): member-area header, Profile pane, admin header ── */ +.seg{display:inline-flex;border:1px solid var(--line-strong);border-radius:999px;overflow:hidden;background:var(--pill-bg);vertical-align:middle} +.seg button{background:transparent;border:0;border-right:1px solid var(--line-strong);padding:6px 12px;font:700 12px var(--disp);color:var(--muted);cursor:pointer;line-height:1.2} +.seg button:last-child{border-right:0} .seg button:hover{color:var(--ink)} .seg button.on{background:var(--mint);color:var(--mint-ink)} +.theme-seg button{min-width:0} +.bo-top .theme-seg{margin-left:auto;flex:none} .bo-top .bo-rehearsal:not([hidden]) + .theme-seg{margin-left:0} +@media (max-width:560px){.bo-top .theme-seg button{padding:6px 9px;font-size:11px}} /* ── hero: centered, light-trail set-piece ─────────── */ .hero{position:relative;text-align:center;padding:120px 0 84px;overflow:visible} .hero h1{font-size:clamp(36px,5.4vw,62px);font-weight:700;line-height:1.08;margin:0 auto 18px;max-width:820px;text-wrap:balance} @@ -99,7 +120,7 @@ section{padding:64px 0 8px} .cmp{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden} .cmp th,.cmp td{padding:13px 16px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left} .cmp th{font-family:var(--disp);font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)} -.cmp th:last-child,.cmp td:last-child{color:var(--ink);background:rgba(67,232,195,.06)} +.cmp th:last-child,.cmp td:last-child{color:var(--ink);background:var(--mint-faint)} .cmp td:first-child{font-weight:700;white-space:nowrap} .cmp td:nth-child(2){color:var(--muted)} .cmp tr:last-child td{border-bottom:0} @@ -113,11 +134,11 @@ h3{font-size:16.5px;margin:0 0 8px;font-weight:700} /* icon-plate feature cards */ .plates{display:grid;gap:16px;grid-template-columns:1fr} @media(min-width:760px){.plates{grid-template-columns:1fr 1fr 1fr}} -.platecard{background:linear-gradient(170deg,rgba(22,38,32,.6),rgba(10,18,15,.7));border:1px solid var(--line); +.platecard{background:var(--panel-grad);border:1px solid var(--line); border-radius:var(--radius);padding:26px 22px;text-align:center;transition:border-color .2s ease,transform .2s ease} .platecard:hover{border-color:var(--line-strong);transform:translateY(-4px)} .plate{width:88px;height:88px;margin:0 auto 18px;border-radius:22px;display:grid;place-items:center; - background:linear-gradient(160deg,#12241e,#0a1411);border:1px solid var(--line-strong); + background:var(--plate-grad);border:1px solid var(--line-strong); box-shadow:0 0 34px rgba(67,232,195,.15),inset 0 1px 0 rgba(143,251,227,.15)} .plate svg{width:38px;height:38px;stroke:var(--mint);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round} .platecard p{color:var(--muted);font-size:14px;margin:0} @@ -129,15 +150,15 @@ h3{font-size:16.5px;margin:0 0 8px;font-weight:700} .flankitem .plate svg{width:24px;height:24px} .flankitem p{color:var(--muted);font-size:13.5px;margin:0} /* ledger mockup frame */ -.mockup{background:linear-gradient(170deg,#0e1c17,#080f0c);border:1px solid var(--line-strong);border-radius:20px; - box-shadow:0 30px 80px rgba(0,0,0,.6),0 0 60px rgba(67,232,195,.08);overflow:hidden} +.mockup{background:var(--panel-grad-deep);border:1px solid var(--line-strong);border-radius:20px; + box-shadow:var(--sh-lg);overflow:hidden} .mockup .bar{display:flex;gap:6px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line)} -.mockup .bar i{width:9px;height:9px;border-radius:50%;background:#1e3a31;display:inline-block} -.mockup .bar .addr{font-family:var(--mono);font-size:11px;color:var(--muted);margin-left:8px;background:rgba(4,8,7,.6); +.mockup .bar i{width:9px;height:9px;border-radius:50%;background:var(--line-strong);display:inline-block} +.mockup .bar .addr{font-family:var(--mono);font-size:11px;color:var(--muted);margin-left:8px;background:var(--ground-soft); border-radius:999px;padding:3px 12px} .mockup .body{padding:6px 0} .mockup .mrow{display:flex;justify-content:space-between;gap:10px;padding:9px 16px;font-family:var(--mono); - font-size:12px;border-bottom:1px solid rgba(84,150,128,.08)} + font-size:12px;border-bottom:1px solid var(--line-soft)} .mockup .mrow span:last-child{color:var(--mint)} .mockup .mrow.dim span:last-child{color:var(--muted)} /* 2-col story block: iso illustration + checklist */ @@ -147,24 +168,24 @@ h3{font-size:16.5px;margin:0 0 8px;font-weight:700} .checks li{padding:7px 0 7px 30px;position:relative;color:var(--muted);font-size:14.5px} .checks li::before{content:"✓";position:absolute;left:0;top:6px;width:20px;height:20px;border-radius:50%; background:var(--mint-soft);color:var(--mint);font-size:12px;font-weight:700;display:grid;place-items:center; - border:1px solid rgba(67,232,195,.35)} + border:1px solid var(--mint-line)} .chips{display:flex;gap:8px;margin:14px 0 4px;flex-wrap:wrap} .chip-t{border:1px solid var(--line-strong);border-radius:999px;padding:5px 16px;font-size:12.5px;color:var(--muted);font-family:var(--disp);font-weight:600} .chip-t.on{background:var(--mint);color:var(--mint-ink);border-color:var(--mint)} .iso{filter:drop-shadow(0 24px 50px rgba(0,0,0,.5))} /* level cycler: light the paying generation */ -#genViz .edge path{stroke:#22523f;transition:stroke .5s ease} -#genViz .node-o{fill:#122e25;stroke:#2f6b55;stroke-width:1.3;transition:stroke .5s ease,fill .5s ease} -#genViz .node-d{fill:#3f8f74;transition:fill .5s ease} -#genViz[data-lvl="1"] .e1 path,#genViz[data-lvl="2"] .e2 path,#genViz[data-lvl="3"] .e3 path{stroke:#43e8c3} -#genViz[data-lvl="1"] .g1 .node-o,#genViz[data-lvl="2"] .g2 .node-o,#genViz[data-lvl="3"] .g3 .node-o{stroke:#43e8c3;fill:#11362b} -#genViz[data-lvl="1"] .g1 .node-d,#genViz[data-lvl="2"] .g2 .node-d,#genViz[data-lvl="3"] .g3 .node-d{fill:#43e8c3} +#genViz .edge path{stroke:var(--line-strong);transition:stroke .5s ease} +#genViz .node-o{fill:var(--panel-solid);stroke:var(--mint-line);stroke-width:1.3;transition:stroke .5s ease,fill .5s ease} +#genViz .node-d{fill:var(--mint-deep);transition:fill .5s ease} +#genViz[data-lvl="1"] .e1 path,#genViz[data-lvl="2"] .e2 path,#genViz[data-lvl="3"] .e3 path{stroke:var(--mint)} +#genViz[data-lvl="1"] .g1 .node-o,#genViz[data-lvl="2"] .g2 .node-o,#genViz[data-lvl="3"] .g3 .node-o{stroke:var(--mint);fill:var(--mint-soft-2)} +#genViz[data-lvl="1"] .g1 .node-d,#genViz[data-lvl="2"] .g2 .node-d,#genViz[data-lvl="3"] .g3 .node-d{fill:var(--mint)} .chips button{cursor:pointer;background:transparent;font:inherit} .chips button.chip-t{border:1px solid var(--line-strong);color:var(--muted)} .chips button.chip-t.on{background:var(--mint);color:var(--mint-ink);border-color:var(--mint)} /* pricing tiles: mint discipline */ .tiles{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));align-items:stretch} -.tile{position:relative;background:linear-gradient(170deg,rgba(22,38,32,.55),rgba(10,18,15,.65));border:1px solid var(--line); +.tile{position:relative;background:var(--panel-grad);border:1px solid var(--line); border-radius:var(--radius);padding:26px 18px;text-align:center;display:flex;flex-direction:column;gap:6px; transition:transform .2s ease,border-color .2s ease} .tile:hover{transform:translateY(-5px);border-color:var(--line-strong)} @@ -173,7 +194,7 @@ h3{font-size:16.5px;margin:0 0 8px;font-weight:700} .tile .cr{color:var(--mint);font-weight:700;font-size:14.5px} .tile .bonus{font-size:12px;color:var(--mint-hi)} .tile .pol{font-family:var(--mono);font-size:12px;color:var(--muted);flex:1} -.tile.hot{border:1px solid rgba(67,232,195,.65);box-shadow:0 0 44px rgba(67,232,195,.14)} +.tile.hot{border:1px solid var(--mint-line-2);box-shadow:0 0 44px rgba(67,232,195,.14)} .tile.hot::before{content:"MOST POPULAR";position:absolute;top:-11px;left:50%;transform:translateX(-50%); background:var(--mint);color:var(--mint-ink);font-family:var(--disp);font-size:10px;font-weight:800; letter-spacing:.12em;border-radius:999px;padding:4px 14px} @@ -181,14 +202,14 @@ h3{font-size:16.5px;margin:0 0 8px;font-weight:700} .split{display:flex;gap:8px;margin:18px 0} .split div{border-radius:12px;padding:16px 6px;text-align:center;font-size:13px;font-weight:700;font-family:var(--disp); border:1px solid var(--line-strong);color:var(--mint)} -.split .s50{flex:5;background:rgba(67,232,195,.16);box-shadow:0 0 30px rgba(67,232,195,.12)} -.split .s20{flex:2;background:rgba(67,232,195,.09)} -.split .s10{flex:1;background:rgba(67,232,195,.05)} -.split .sa{flex:2;background:rgba(139,166,156,.08);color:var(--muted)} +.split .s50{flex:5;background:var(--mint-soft-2);box-shadow:0 0 30px rgba(67,232,195,.12)} +.split .s20{flex:2;background:var(--mint-soft)} +.split .s10{flex:1;background:var(--mint-faint)} +.split .sa{flex:2;background:var(--muted-soft);color:var(--muted)} section[id]{scroll-margin-top:84px} /* anchored menu targets clear the sticky nav */ /* ticker */ .ticker{overflow:hidden;contain:layout paint;border-top:1px solid var(--line);border-bottom:1px solid var(--line); - background:rgba(67,232,195,.04);white-space:nowrap;padding:10px 0; + background:var(--mint-faint);white-space:nowrap;padding:10px 0; -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)} .ticker .inner{display:inline-block;font-family:var(--mono);font-size:12.5px;padding-left:100%;animation:tick 120s linear infinite} @@ -216,32 +237,32 @@ tr:last-child td{border-bottom:0} .feed .t-TierPaid{color:var(--mint)} .feed .t-AdminPaid{color:var(--muted)} .feed .tx a{color:var(--muted);font-size:12px} -.badge{display:inline-block;background:var(--mint-soft);color:var(--mint);border:1px solid rgba(67,232,195,.35); +.badge{display:inline-block;background:var(--mint-soft);color:var(--mint);border:1px solid var(--mint-line); border-radius:999px;padding:3px 13px;font-size:12px;font-weight:700} -.spend-banner{background:linear-gradient(160deg,rgba(242,201,76,.14),rgba(242,201,76,.04));border-color:rgba(242,201,76,.55);text-align:center;padding:22px 20px} -.spend-banner .lbl{font-family:var(--disp);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#f2c94c} -.spend-banner .big{font-family:var(--disp);font-size:clamp(40px,6vw,64px);font-weight:800;color:#f2c94c;line-height:1.05;margin:6px 0 4px;font-variant-numeric:tabular-nums} +.spend-banner{background:linear-gradient(160deg,var(--gold-soft),var(--gold-faint));border-color:var(--gold-line);text-align:center;padding:22px 20px} +.spend-banner .lbl{font-family:var(--disp);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-2)} +.spend-banner .big{font-family:var(--disp);font-size:clamp(40px,6vw,64px);font-weight:800;color:var(--gold-2);line-height:1.05;margin:6px 0 4px;font-variant-numeric:tabular-nums} .spend-banner .big .unit{font-size:20px;font-weight:700;color:var(--ink)} .spend-banner .sub{color:var(--ink);font-size:15px} .spend-banner .rates{display:flex;gap:8px 18px;flex-wrap:wrap;justify-content:center;margin-top:12px;font-size:12.5px;color:var(--muted)} .spend-banner .rates b{color:var(--ink)} .boot-spin{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:60vh} -.boot-spin .ring{width:46px;height:46px;border-radius:50%;border:4px solid rgba(67,232,195,.18);border-top-color:var(--mint);animation:bootspin .9s linear infinite} +.boot-spin .ring{width:46px;height:46px;border-radius:50%;border:4px solid var(--mint-soft-2);border-top-color:var(--mint);animation:bootspin .9s linear infinite} @keyframes bootspin{to{transform:rotate(360deg)}} .bo-top{flex-wrap:wrap} .ad-strip{flex:1 1 100%;font-size:13.5px;padding:8px 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .ad-strip a{color:var(--ink)} .ad-strip b{color:var(--mint)} .ad-foot{text-align:center} -.pv{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:0 0 16px;background:rgba(4,8,7,.35)} +.pv{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:0 0 16px;background:var(--ground-soft)} .pv-head b{display:block;font-size:18px;margin:4px 0 2px} .done-big{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 16px;text-align:center} .done-big .tick{width:84px;height:84px;border-radius:50%;display:grid;place-items:center;font-size:48px;font-weight:800;color:var(--mint-ink);background:var(--mint);box-shadow:0 0 0 10px rgba(67,232,195,.15),0 10px 30px rgba(67,232,195,.35)} .done-big b{font-family:var(--disp);font-size:22px;margin-top:8px} -.badge.amber{background:rgba(139,166,156,.1);border-color:rgba(139,166,156,.4);color:var(--muted)} +.badge.amber{background:var(--muted-soft);border-color:var(--muted-line);color:var(--muted)} /* faq */ details{border:1px solid var(--line);border-radius:14px;margin:0 0 10px;background:var(--panel)} -details[open]{border-color:rgba(67,232,195,.45)} +details[open]{border-color:var(--mint-line)} summary{cursor:pointer;padding:16px 20px;font-weight:700;font-family:var(--disp);font-size:15px;list-style:none} summary::before{content:"+";color:var(--mint);font-weight:800;margin-right:12px} details[open] summary::before{content:"−"} @@ -249,7 +270,7 @@ details p{margin:0;padding:0 20px 18px 42px;color:var(--muted);font-size:14.5px} /* closing cta card */ .closer{position:relative;display:grid;gap:26px;align-items:center;grid-template-columns:1fr; padding:44px 36px;border-radius:24px;overflow:hidden;margin:80px 0 0; - background:linear-gradient(160deg,#0d1d17,#060c0a);border:1px solid var(--line-strong)} + background:var(--panel-grad-deep);border:1px solid var(--line-strong)} @media(min-width:880px){.closer{grid-template-columns:1.2fr .8fr}} .closer::before{content:"";position:absolute;width:460px;height:460px;right:-140px;top:-260px;border-radius:50%; background:radial-gradient(circle,rgba(67,232,195,.2),transparent 65%);pointer-events:none} @@ -266,7 +287,7 @@ footer{border-top:1px solid var(--line);margin-top:90px;padding:34px 0 0;color:v box-shadow:0 12px 40px rgba(0,0,0,.55)} #status.ok{border-color:var(--mint)} #status.bad{border-color:var(--bad)} -input,select,textarea{background:rgba(4,8,7,.65);border:1px solid var(--line-strong);color:var(--ink);border-radius:11px; +input,select,textarea{background:var(--field-bg);border:1px solid var(--line-strong);color:var(--ink);border-radius:11px; padding:11px 14px;font-size:14.5px;font-family:inherit} input[type=range]{padding:0;border:0;background:transparent;accent-color:var(--mint);height:28px;vertical-align:middle} input:focus,select:focus,textarea:focus{border-color:var(--mint)} @@ -277,18 +298,18 @@ textarea{resize:vertical;font:inherit} .bo-body{background:var(--ground)} .bo{display:grid;grid-template-columns:236px 1fr;min-height:100vh} .bo-side{position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;display:flex;flex-direction:column;gap:22px; - padding:22px 16px;background:rgba(10,18,15,.92);border-right:1px solid var(--line)} + padding:22px 16px;background:var(--side-bg);border-right:1px solid var(--line)} .bo-side .logo{font-size:19px;padding:0 8px} .bo-menu{display:flex;flex-direction:column;gap:4px} .bo-menu button{display:flex;align-items:center;gap:11px;background:transparent;border:0;color:var(--muted); font:600 14px var(--disp);padding:11px 12px;border-radius:11px;cursor:pointer;text-align:left; border-left:3px solid transparent} .bo-menu a{display:flex;align-items:center;gap:11px;color:var(--muted);font:600 14px var(--disp);padding:11px 12px;border-radius:11px;text-align:left;border-left:3px solid transparent;text-decoration:none} -.bo-menu a:hover{color:var(--ink);background:rgba(67,232,195,.05)} +.bo-menu a:hover{color:var(--ink);background:var(--mint-faint)} .bo-menu a svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto} .bo-menu button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto} -.bo-menu button:hover{color:var(--ink);background:rgba(67,232,195,.05)} -.bo-menu button.on{color:var(--mint);background:rgba(67,232,195,.09);border-left-color:var(--mint)} +.bo-menu button:hover{color:var(--ink);background:var(--mint-faint)} +.bo-menu button.on{color:var(--mint);background:var(--mint-soft);border-left-color:var(--mint)} .bo-links{display:flex;flex-direction:column;gap:2px;padding:14px 12px;border-top:1px solid var(--line)} .bo-cap{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);margin-bottom:6px} .bo-links a{color:var(--muted);font-size:13.5px;padding:5px 0} @@ -300,7 +321,7 @@ textarea{resize:vertical;font:inherit} .bo-pagefoot a{color:var(--muted)} .bo-pagefoot a:hover{color:var(--ink);text-decoration:none} .bo-top{display:flex;align-items:center;gap:16px;padding:16px 26px;border-bottom:1px solid var(--line); - background:rgba(6,10,8,.75);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:sticky;top:0;z-index:5} + background:var(--nav-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);position:sticky;top:0;z-index:5} .bo-top h2{font-size:20px} #boBurger{display:none;background:transparent;border:1px solid var(--line-strong);color:var(--ink); border-radius:9px;font-size:17px;padding:5px 11px;cursor:pointer} @@ -339,11 +360,11 @@ textarea{resize:vertical;font:inherit} .feat-day .fd-occ{font-family:var(--mono);font-size:11px;color:var(--muted)} .feat-day.open2 .fd-occ{color:var(--mint)} /* ── featured rotation strip ── */ -.feat-top{max-width:760px;margin:16px auto;border:1px solid rgba(255,177,56,.5)} +.feat-top{max-width:760px;margin:16px auto;border:1px solid var(--amber-line)} .feat-strip{display:flex;justify-content:center;margin-top:10px} .feat-strip a{max-width:728px;width:100%;display:flex;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:10px; - background:var(--panel);border:1px solid #ffb238;color:var(--ink);text-decoration:none;font-weight:600} -.feat-strip a:hover{border-color:#ffd15c;box-shadow:0 0 0 1px rgba(255,177,56,.4)} + background:var(--panel);border:1px solid var(--amber);color:var(--ink);text-decoration:none;font-weight:600} +.feat-strip a:hover{border-color:var(--gold);box-shadow:0 0 0 1px var(--amber-line)} .feat-strip .by{font-size:12px;color:var(--muted);font-weight:500;white-space:nowrap} .feat-strip .by{font-size:12px;color:var(--muted);font-weight:500;white-space:nowrap} /* ── achievement badges ── */ @@ -352,22 +373,22 @@ textarea{resize:vertical;font:inherit} .badge-a .badge-img{width:150px;height:150px;border-radius:14px;object-fit:cover;border:1px solid var(--line-strong)} .badge-a.locked .badge-img{filter:grayscale(.85) brightness(.5);opacity:.7} .badge-a .medal{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;position:relative; - background:radial-gradient(circle at 50% 35%,rgba(67,232,195,.28),rgba(9,26,19,.9)); + background:radial-gradient(circle at 50% 35%,var(--mint-soft-2),var(--panel-solid)); border:2px solid var(--mint);box-shadow:0 0 18px rgba(67,232,195,.3)} -.badge-a.locked .medal{background:rgba(139,166,156,.08);border-color:var(--line-strong);box-shadow:none;filter:grayscale(1);opacity:.5} +.badge-a.locked .medal{background:var(--muted-soft);border-color:var(--line-strong);box-shadow:none;filter:grayscale(1);opacity:.5} .badge-a .medal svg{width:38px;height:38px;stroke:var(--mint);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round} .badge-a.locked .medal svg{stroke:var(--muted)} .badge-a .bl{font-size:12px;font-weight:700;line-height:1.2} .badge-a .bs{font-size:10.5px;color:var(--muted)} .badge-a .share{font-size:11px;color:var(--mint);cursor:pointer;background:none;border:0;padding:0;text-decoration:underline} /* ── "Your next move": milestone stepper card ── */ -.next-card{position:relative;overflow:hidden;border-color:rgba(67,232,195,.28)} +.next-card{position:relative;overflow:hidden;border-color:var(--mint-line)} .next-card::before{content:"";position:absolute;inset:0;pointer-events:none;background: radial-gradient(420px 150px at 10% 0%,rgba(67,232,195,.12),transparent 70%), radial-gradient(360px 130px at 90% 100%,rgba(157,125,255,.09),transparent 70%)} .nc-head{display:flex;gap:14px;align-items:flex-start;position:relative} .nc-head .pl{flex:0 0 auto;width:44px;height:44px;border-radius:12px;display:grid;place-items:center; - background:rgba(67,232,195,.12);border:1px solid rgba(67,232,195,.35)} + background:var(--mint-soft-2);border:1px solid var(--mint-line)} .nc-head .pl svg{width:20px;height:20px;stroke:var(--mint);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round} .nc-steps{display:flex;margin-top:20px;position:relative;flex-wrap:wrap;row-gap:14px} .nc-step{flex:1;min-width:88px;display:flex;flex-direction:column;align-items:center;gap:7px; @@ -388,20 +409,20 @@ textarea{resize:vertical;font:inherit} .statx{display:flex;gap:14px;align-items:flex-start;background:var(--panel);border:1px solid var(--line); border-radius:var(--radius);padding:18px;position:relative;overflow:hidden} .statx .pl{flex:0 0 auto;width:46px;height:46px;border-radius:13px;display:grid;place-items:center; - background:rgba(67,232,195,.1);border:1px solid rgba(67,232,195,.3)} + background:var(--mint-soft);border:1px solid var(--mint-line)} .statx .pl svg{width:22px;height:22px;stroke:var(--mint);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round} -.statx.c-cyan .pl{background:rgba(84,204,255,.1);border-color:rgba(84,204,255,.3)} +.statx.c-cyan .pl{background:var(--cyan-soft);border-color:var(--cyan-line)} .statx.c-cyan .pl svg{stroke:var(--cyan)} -.statx.c-violet .pl{background:rgba(157,125,255,.12);border-color:rgba(157,125,255,.32)} +.statx.c-violet .pl{background:var(--violet-soft);border-color:var(--violet-line)} .statx.c-violet .pl svg{stroke:var(--violet)} -.statx.c-amber .pl{background:rgba(255,178,56,.1);border-color:rgba(255,178,56,.3)} +.statx.c-amber .pl{background:var(--amber-soft);border-color:var(--amber-line)} .statx.c-amber .pl svg{stroke:var(--amber)} .statx .nv{font-family:var(--disp);font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.1} .statx .lb{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-top:2px} .chip{display:inline-block;margin-top:7px;font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 10px; - background:rgba(67,232,195,.1);color:var(--mint)} -.chip.flat{background:rgba(139,166,156,.12);color:var(--muted)} -.chip.warm{background:rgba(255,178,56,.12);color:var(--amber)} + background:var(--mint-soft);color:var(--mint)} +.chip.flat{background:var(--muted-soft);color:var(--muted)} +.chip.warm{background:var(--amber-soft);color:var(--amber)} .card-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px} .card-head .sub{font-size:12px;color:var(--muted)} /* dismiss on the announcement cards at the top of the Overview (Marty, 2026-09-22): @@ -409,16 +430,16 @@ textarea{resize:vertical;font:inherit} .card-x{flex:none;align-self:center;margin:-4px -6px 0 2px;width:28px;height:28px;border-radius:50%; border:1px solid var(--line);background:transparent;color:var(--muted);font-size:19px;line-height:1; cursor:pointer;display:grid;place-items:center;padding:0} -.card-x:hover{border-color:var(--line-strong);color:var(--ink);background:rgba(139,166,156,.1)} +.card-x:hover{border-color:var(--line-strong);color:var(--ink);background:var(--muted-soft)} /* bar chart (divs, real data) */ .barchart{display:flex;align-items:flex-end;gap:6px;height:120px;margin-top:14px} -.barchart .bar{flex:1;min-width:6px;background:linear-gradient(180deg,var(--mint),rgba(67,232,195,.25)); +.barchart .bar{flex:1;min-width:6px;background:linear-gradient(180deg,var(--mint),var(--mint-line)); border-radius:5px 5px 2px 2px;position:relative;transition:height .5s ease} -.barchart .bar.alt{background:linear-gradient(180deg,var(--violet),rgba(157,125,255,.25))} +.barchart .bar.alt{background:linear-gradient(180deg,var(--violet),var(--violet-line))} .barchart .bar:hover::after{content:attr(data-v);position:absolute;bottom:calc(100% + 4px);left:50%; transform:translateX(-50%);background:var(--panel-solid);border:1px solid var(--line-strong);border-radius:7px; padding:2px 8px;font-family:var(--mono);font-size:11px;white-space:nowrap;z-index:3} -.barchart .bar.empty{background:rgba(139,166,156,.15);height:4px!important} +.barchart .bar.empty{background:var(--muted-soft);height:4px!important} .chart-x{display:flex;gap:6px;margin-top:6px} .chart-x span{flex:1;text-align:center;font-family:var(--mono);font-size:10px;color:var(--muted);overflow:hidden;white-space:nowrap} /* donut + ring (SVG) */ @@ -487,7 +508,7 @@ textarea{resize:vertical;font:inherit} .lin-row .chat-msg-btn{justify-self:end} .lin-row .sp.wrap{white-space:normal;line-height:1.7} /* list toolbar: sort + filter chips shared by the tank, roster and downline (2026-09-29) */ -.lst-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:rgba(255,255,255,.025)} +.lst-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:4px 0 10px;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--ink-faint)} .lst-sort{font-size:12px;color:var(--muted);display:inline-flex;align-items:center;gap:6px} .lst-sort select{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:4px 8px;font-size:12.5px} .lst-dir{background:transparent;color:var(--ink);border:1px solid var(--line-strong);border-radius:8px;padding:4px 9px;font-size:12px;cursor:pointer;white-space:nowrap} @@ -496,12 +517,12 @@ textarea{resize:vertical;font:inherit} .lst-chip.on{border-color:var(--mint);color:var(--ink);background:var(--mint-soft)} .lst-n{margin-left:auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums} .lchip{display:inline-block;font-size:11.5px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px;white-space:nowrap;vertical-align:middle} -.lchip.on{border-color:rgba(67,232,195,.45);color:var(--ink)} .lchip.warn{border-color:rgba(255,209,92,.55);color:#ffd15c} +.lchip.on{border-color:var(--mint-line);color:var(--ink)} .lchip.warn{border-color:var(--gold-line);color:var(--gold)} .roster td:nth-child(3){white-space:normal;line-height:1.8} .lin-row .lin-act-btn{justify-self:end;white-space:nowrap} -.lin-act{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px 10px;margin:-1px 0 6px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:0 0 10px 10px} -.lin-chip{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 10px;white-space:nowrap} .lin-chip b{font-weight:600;color:var(--ink);margin-right:5px} .lin-chip.on{border-color:rgba(67,232,195,.45);color:var(--ink)} .lin-chip.warn{border-color:rgba(255,209,92,.5)} -.lin-verdict{margin-left:auto;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#ffd15c} .lin-verdict.on{color:var(--mint)} +.lin-act{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px 10px;margin:-1px 0 6px;border-bottom:1px solid var(--line);background:var(--ink-faint);border-radius:0 0 10px 10px} +.lin-chip{font-size:12px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:3px 10px;white-space:nowrap} .lin-chip b{font-weight:600;color:var(--ink);margin-right:5px} .lin-chip.on{border-color:var(--mint-line);color:var(--ink)} .lin-chip.warn{border-color:var(--gold-line)} +.lin-verdict{margin-left:auto;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)} .lin-verdict.on{color:var(--mint)} @media (max-width:560px){.lin-chip{white-space:normal}.lin-act{padding:8px 4px 10px}} @media (max-width:560px){.lin-row{grid-template-columns:1fr auto;gap:2px 10px} .lin-row .em{grid-column:1/2}.lin-row .dt{grid-column:1/2;text-align:left}.lin-row .chat-msg-btn{grid-row:1/3;grid-column:2} @@ -511,7 +532,7 @@ textarea{resize:vertical;font:inherit} .ed-bar button{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);border-radius:8px; padding:5px 11px;font-size:12.5px;cursor:pointer} .ed-bar button:hover,.ed-bar button:focus-visible{border-color:var(--mint);outline:none} -.ed-body{background:rgba(4,8,7,.65);border:1px solid var(--line-strong);border-radius:11px; +.ed-body{background:var(--field-bg);border:1px solid var(--line-strong);border-radius:11px; min-height:180px;padding:12px 14px;outline:none;overflow-wrap:anywhere} .ed-body:focus{border-color:var(--mint)} .ed-body:empty::before{content:attr(data-ph);color:var(--muted)} @@ -531,11 +552,11 @@ textarea.ed-body{width:100%;min-height:180px;resize:vertical} .subtab.on{color:var(--mint);border-bottom-color:var(--mint)} .subtab .pill{position:static} /* ── solo-ads inbox ── */ -.bo-menu .pill{margin-left:auto;background:var(--amber);color:#1a1206;font-size:11px;font-weight:800; +.bo-menu .pill{margin-left:auto;background:var(--amber);color:var(--amber-ink);font-size:11px;font-weight:800; border-radius:999px;padding:1px 8px;line-height:1.5} .ib-row{display:flex;gap:10px;align-items:baseline;padding:11px 6px;border-bottom:1px solid var(--line); cursor:pointer;flex-wrap:wrap} -.ib-row:hover{background:rgba(67,232,195,.05)} +.ib-row:hover{background:var(--mint-faint)} .ib-row .sub{font-weight:700;flex:1;min-width:160px;overflow-wrap:anywhere} .ib-row.unread .sub{color:var(--mint)} .ib-row .from,.ib-row .when{font-size:12px;color:var(--muted);white-space:nowrap} @@ -556,9 +577,9 @@ textarea.ed-body{width:100%;min-height:180px;resize:vertical} #pane-earn .card h3::before,#pane-earnings .card h3::before{background:var(--violet)} #pane-promo .card h3::before{background:var(--cyan)} #pane-wallet .card h3::before,#pane-profile .card h3::before{background:var(--mint)} -.bo .card{background:linear-gradient(165deg,rgba(24,36,31,.6),rgba(13,19,17,.66))} -#pane-line .qualbar,#nextCard{border-left:3px solid rgba(67,232,195,.4)} -.promo-block{background:rgba(4,8,7,.55);border:1px solid var(--line);border-radius:12px; +.bo .card{background:var(--panel-grad)} +#pane-line .qualbar,#nextCard{border-left:3px solid var(--mint-line)} +.promo-block{background:var(--ground-soft);border:1px solid var(--line);border-radius:12px; padding:14px 16px;margin:0 0 12px;font-size:13.5px;line-height:1.6;white-space:pre-wrap} .promo-block .btn{margin-top:10px} /* back-office polish: pane transitions, quick actions */ @@ -567,19 +588,19 @@ textarea.ed-body{width:100%;min-height:180px;resize:vertical} @keyframes panein{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}} } .qa{display:flex;flex-direction:column;gap:8px} -.qa button{display:flex;align-items:center;gap:10px;background:rgba(67,232,195,.05);border:1px solid var(--line); +.qa button{display:flex;align-items:center;gap:10px;background:var(--mint-faint);border:1px solid var(--line); color:var(--ink);font:600 14px var(--disp);padding:11px 14px;border-radius:11px;cursor:pointer;text-align:left; transition:border-color .15s ease,background .15s ease} -.qa button:hover{border-color:var(--mint);background:rgba(67,232,195,.1)} +.qa button:hover{border-color:var(--mint);background:var(--mint-soft)} /* member sub-navigation */ -.subnav{display:flex;gap:6px;flex-wrap:wrap;background:rgba(16,28,24,.7);border:1px solid var(--line); +.subnav{display:flex;gap:6px;flex-wrap:wrap;background:var(--pill-bg);border:1px solid var(--line); border-radius:999px;padding:6px 8px;width:fit-content;margin:0 0 22px} .subnav button{background:transparent;border:0;color:var(--muted);font:600 13.5px var(--disp); padding:8px 16px;border-radius:999px;cursor:pointer} .subnav button:hover{color:var(--ink)} .subnav button.on{color:var(--mint-ink);background:var(--mint)} /* member dashboard: qualification progress + roster */ -.qualbar{position:relative;height:12px;border-radius:999px;background:rgba(4,8,7,.7);border:1px solid var(--line-strong); +.qualbar{position:relative;height:12px;border-radius:999px;background:var(--ground-soft);border:1px solid var(--line-strong); margin:26px 0 30px;max-width:520px} .qualbar #qualFill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--mint),var(--mint-hi)); box-shadow:0 0 18px rgba(67,232,195,.4);width:0;transition:width .6s ease} @@ -605,8 +626,8 @@ img{max-width:100%} font-size:22px;cursor:pointer;line-height:1} .ch-msgs{padding:14px;overflow-y:auto;max-height:340px;display:flex;flex-direction:column;gap:10px} .ch-m{border-radius:12px;padding:9px 13px;font-size:13.5px;line-height:1.5;max-width:86%} -.ch-m.bot{background:rgba(67,232,195,.08);border:1px solid rgba(67,232,195,.2);align-self:flex-start} -.ch-m.me{background:rgba(130,148,196,.12);border:1px solid var(--line);align-self:flex-end} +.ch-m.bot{background:var(--mint-soft);border:1px solid var(--mint-line);align-self:flex-start} +.ch-m.me{background:var(--muted-soft);border:1px solid var(--line);align-self:flex-end} .ch-m a{word-break:break-all} .ch-input{display:flex;gap:8px;padding:11px;border-top:1px solid var(--line)} .ch-input input{flex:1;min-width:0} @@ -614,7 +635,7 @@ img{max-width:100%} font-weight:700;cursor:pointer;font-family:var(--disp)} @media(prefers-reduced-motion:no-preference){ .feed .row:first-child{animation:landed .9s ease} - @keyframes landed{from{background:rgba(67,232,195,.3)}to{background:var(--mint-soft)}} + @keyframes landed{from{background:var(--mint-soft-2)}to{background:var(--mint-soft)}} } /* ── Sponsor chat: FAB, slide-in drawer, threads, bubbles, presence ── */ @@ -668,12 +689,12 @@ img{max-width:100%} .lt-nodes{display:flex;gap:8px;flex-wrap:wrap} .lt-node{background:var(--panel);border:1px solid var(--line-strong);border-radius:10px;padding:6px 12px;font-size:13px;font-weight:600;white-space:nowrap} .lt-node.deep{color:var(--muted)} -.lt-node.qualified{border-color:#ffb238;color:#ffd15c;box-shadow:0 0 0 1px rgba(255,177,56,.35)} +.lt-node.qualified{border-color:var(--amber);color:var(--gold);box-shadow:0 0 0 1px var(--amber-line)} .lt-node.open{border-style:dashed;color:var(--muted);background:transparent} -.lt-node .lt-n{display:inline-block;font-style:normal;font-size:10px;line-height:16px;min-width:16px;text-align:center;border-radius:8px;background:rgba(255,177,56,.18);color:#ffd15c;margin-left:6px;padding:0 4px;font-variant-numeric:tabular-nums} +.lt-node .lt-n{display:inline-block;font-style:normal;font-size:10px;line-height:16px;min-width:16px;text-align:center;border-radius:8px;background:var(--amber-soft);color:var(--gold);margin-left:6px;padding:0 4px;font-variant-numeric:tabular-nums} -.sh-report{display:block;text-align:center;margin-top:10px;color:rgba(255,255,255,.45);font-size:12px} -.sh-report:hover{color:rgba(255,255,255,.8)} +.sh-report{display:block;text-align:center;margin-top:10px;color:var(--muted);font-size:12px} +.sh-report:hover{color:var(--ink)} /* ── promo tools (2026-09-09) ── */ .promo-strip{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:16px 20px} @@ -704,7 +725,7 @@ img{max-width:100%} .promo-bv{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px;padding:14px 16px;border:1px dashed var(--line-strong);border-radius:12px} .promo-bv b{font-family:var(--disp)} .obj-wrap{display:flex;flex-direction:column;gap:8px} -.obj{border:1px solid var(--line);border-radius:12px;background:rgba(4,8,7,.4)} +.obj{border:1px solid var(--line);border-radius:12px;background:var(--ground-soft)} .obj summary{cursor:pointer;padding:12px 16px;font-family:var(--disp);font-weight:700;font-size:15px;list-style:none;display:flex;justify-content:space-between;gap:10px} .obj summary::after{content:"+";color:var(--mint);font-weight:800} .obj[open] summary::after{content:"–"} @@ -726,12 +747,12 @@ img{max-width:100%} .wo-slot img{max-width:100%;border-radius:8px} /* getting-started stepper on the Overview (Jim could not find the wallet step, 2026-09-14) */ -.gs{border-color:rgba(67,232,195,.45)} +.gs{border-color:var(--mint-line)} .gs-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:4px 0 12px} .gs-step{display:flex;gap:10px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:var(--muted);font-size:14px} .gs-step .n{flex:0 0 26px;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700;border:1px solid var(--line);font-size:13px} .gs-step.done{color:var(--ink)} .gs-step.done .n{background:var(--mint);color:var(--mint-ink);border-color:var(--mint)} -.gs-step.now{color:var(--ink);border-color:var(--mint);background:rgba(67,232,195,.07)} .gs-step.now .n{border-color:var(--mint);color:var(--mint)} +.gs-step.now{color:var(--ink);border-color:var(--mint);background:var(--mint-faint)} .gs-step.now .n{border-color:var(--mint);color:var(--mint)} .gs-now{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:12px} .gs-now p{margin:0;flex:1;min-width:240px;max-width:60ch} .gs-now p b{display:block;font-family:var(--disp);font-size:16px;margin-bottom:2px} @keyframes gsPulse{0%{box-shadow:0 0 0 0 rgba(67,232,195,.7)}70%{box-shadow:0 0 0 14px rgba(67,232,195,0)}100%{box-shadow:0 0 0 0 rgba(67,232,195,0)}} @@ -740,16 +761,16 @@ img{max-width:100%} /* promo toolkit tiers */ .tk-tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px} .tk-tier{border:1px solid var(--line);border-radius:12px;padding:12px 14px;font-size:13.5px;color:var(--muted)} -.tk-tier.reached{border-color:rgba(67,232,195,.5);color:var(--ink)} .tk-tier.current{background:rgba(67,232,195,.07)} +.tk-tier.reached{border-color:var(--mint-line);color:var(--ink)} .tk-tier.current{background:var(--mint-faint)} .tk-tier b{display:block;font-family:var(--disp);font-size:15px;color:var(--ink)} .tk-tier .need{font-size:12px;margin:2px 0 8px;color:var(--muted)} .tk-tier ul{margin:0;padding-left:16px} .tk-tier li{margin:3px 0} .tk-tier li.soon{opacity:.65} .tk-tier li.soon::after{content:' (coming)';font-size:11px;color:var(--muted)} -.tk-tier .lock{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#ffd15c} +.tk-tier .lock{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold)} .tk-hist{border-top:1px solid var(--line);padding:8px 0;font-size:13px} .tk-hist .muted{font-size:12px} .tk-sec{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)} .tk-grid{display:flex;gap:8px;flex-wrap:wrap} .tk-vids{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px} .tk-vid{border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:13px} .tk-vid b{display:block;font-weight:600;margin-bottom:4px} .tk-vid .st{font-size:12px;color:var(--muted)} -.tk-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin:6px 0 4px} .tk-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#1fb894,#43e8c3);transition:width .6s ease;min-width:4px} +.tk-bar{height:8px;border-radius:99px;background:var(--muted-soft);overflow:hidden;margin:6px 0 4px} .tk-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--mint-deep),var(--mint));transition:width .6s ease;min-width:4px} .tk-table{width:100%;border-collapse:collapse;font-size:13px} .tk-table th,.tk-table td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--line)} .tk-table th{font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)} .tk-table td.n{font-variant-numeric:tabular-nums;text-align:right} .tk-table th.n{text-align:right} .tk-table tr.best td{color:var(--mint)} -.tk-team{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:6px 0;font-size:13px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between} .tk-team .who b{font-weight:600} .tk-team .who span{color:var(--muted);font-size:12px} .tk-team.stalled{border-color:rgba(255,209,92,.45)} +.tk-team{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:6px 0;font-size:13px;display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between} .tk-team .who b{font-weight:600} .tk-team .who span{color:var(--muted);font-size:12px} .tk-team.stalled{border-color:var(--gold-line)} .tk-nudge{width:100%;margin:8px 0 0;padding:8px 12px;border:1px dashed var(--line);border-radius:10px;font-size:13px} /* click sources stack one per line so the Clicks column stays narrow (Marty, 2026-09-15) */ .clk-src span{display:block;white-space:nowrap} .camp-table td{white-space:normal} .camp-table td:first-child{max-width:260px} @@ -772,11 +793,11 @@ img{max-width:100%} /* Pipeline board (Marty, 2026-09-15): columns scroll sideways inside their own box, never the page */ .pipe-board{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity} -.pipe-col{flex:0 0 220px;scroll-snap-align:start;background:rgba(4,8,7,.45);border:1px solid var(--line);border-radius:12px;padding:10px;min-height:120px} +.pipe-col{flex:0 0 220px;scroll-snap-align:start;background:var(--ground-soft);border:1px solid var(--line);border-radius:12px;padding:10px;min-height:120px} .pipe-col h4{margin:0 0 2px;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--mint);display:flex;justify-content:space-between;gap:8px} .pipe-col h4 span{color:var(--muted);font-variant-numeric:tabular-nums} .pipe-col .hint{font-size:11.5px;color:var(--muted);margin:0 0 8px;line-height:1.35} -.pipe-card{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:0 0 8px;cursor:pointer;transition:border-color .15s} +.pipe-card{background:var(--ink-faint);border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:0 0 8px;cursor:pointer;transition:border-color .15s} .pipe-card:hover,.pipe-card:focus-visible{border-color:var(--mint);outline:none} .pipe-card.on{border-color:var(--gold,#e6c15a)} .pipe-card .nm{font-weight:700;font-size:14px;display:flex;justify-content:space-between;gap:6px;align-items:baseline} @@ -791,7 +812,7 @@ img{max-width:100%} .lt-node.lt-go{cursor:pointer;transition:border-color .15s,transform .15s} .lt-node.lt-go:hover,.lt-node.lt-go:focus-visible{border-color:var(--mint);transform:translateY(-1px);outline:none} .lin-row.lin-focus{box-shadow:0 0 0 2px var(--mint);border-radius:10px} /* paged lists: 25 rows, then a control bar that reads as a control, not more list (Marty, 2026-09-19) */ -.pgr{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 4px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:12px;background:rgba(67,232,195,.07)} +.pgr{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 4px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:12px;background:var(--mint-faint)} .pgr-n{color:var(--ink);font-size:13px} .pgr-n b{color:var(--mint);font-variant-numeric:tabular-nums} .pgr-b{display:flex;align-items:center;gap:8px;flex-wrap:wrap} .pgr-pg{font-size:11px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap} @@ -801,12 +822,12 @@ img{max-width:100%} #chatThreads .pgr{margin:8px 10px} /* Five Dollar Friday strip (landing) */ -.fdf{margin:18px auto 0;max-width:760px;padding:12px 16px;border-radius:12px;background:rgba(67,232,195,.08);border:1px solid rgba(67,232,195,.35);color:var(--ink,#eafffa);font-size:14px;line-height:1.5;text-align:center} -.fdf a{color:#43e8c3;font-weight:600} +.fdf{margin:18px auto 0;max-width:760px;padding:12px 16px;border-radius:12px;background:var(--mint-soft);border:1px solid var(--mint-line);color:var(--ink);font-size:14px;line-height:1.5;text-align:center} +.fdf a{color:var(--mint);font-weight:600} /* My line: section pills, sticky under the top bar (Marty, 2026-09-26) */ .line-jump{position:sticky;top:var(--jumpTop,64px);z-index:4;margin:0 0 14px;padding:10px 0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none; - background:rgba(6,10,8,.88);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)} + background:var(--nav-bg);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)} .line-jump::-webkit-scrollbar{display:none} .line-jump .chip-t{flex:none;white-space:nowrap} #pane-line > .card[data-jump]{scroll-margin-top:calc(var(--jumpTop,64px) + 64px)} @@ -814,3 +835,29 @@ img{max-width:100%} /* a game return bar sits at the bottom: lift the status toast above it (Marty 2026-10-08: the bar hid the purchase result) */ body.hasback #status{bottom:92px} + +/* ── Light theme (2026-11-01, mirrored from LinkSpin): light mint-grey ground, white panels, dark ink, the mint family + darkened to a teal that reads as text on white (every pair below clears WCAG AA 4.5:1, measured by qa/theme-contrast.mjs). + themehead.js resolves auto | light | dark to data-theme on before the first paint; nothing stored keeps dark. ── */ +:root[data-theme="light"]{ + --ground:#E8F0EC; --ground2:#F2F7F4; --panel:#FFFFFF; --panel-solid:#FFFFFF; + --line:#C9D8D1; --line-strong:#A6BBB1; --line-soft:#DDE7E2; --ink:#0B1A14; --muted:#50665C; + --mint:#0A6B56; --mint-hi:#075744; --mint-deep:#064A3A; --mint-ink:#FFFFFF; --mint-pale:#075744; + --mint-faint:#EDF6F2; --mint-soft:#DDF0E8; --mint-soft-2:#C6E6DA; --mint-line:#8FC9B6; --mint-line-2:#3E9E85; + --cyan:#0A6F8C; --violet:#5B3FD6; --amber:#8A5200; --bad:#B42318; --bad-soft:#FDE8E6; + --ok:#0B7A52; --ok-ink:#FFFFFF; --ok-soft:#E3F6EC; --warn:#9A4A00; + --gold:#7A5200; --gold-2:#7F5C00; --gold-ink:#FFFFFF; --gold-soft:#FFF4D1; --gold-faint:#FFFBEB; --gold-line:#E6C25E; + --amber-soft:#FFF1D6; --amber-line:#E8C27A; --amber-ink:#FFFFFF; + --cyan-soft:#DDF1F8; --cyan-line:#9FD3E6; --violet-soft:#EEE9FF; --violet-line:#C4B5FF; + --muted-soft:rgba(80,102,92,.12); --muted-line:rgba(80,102,92,.45); --ink-faint:rgba(11,26,20,.05); + --ground-soft:#F2F7F4; --field-bg:#FFFFFF; --nav-bg:rgba(242,247,244,.88); --side-bg:rgba(242,247,244,.97); --pill-bg:rgba(255,255,255,.85); + --panel-grad:linear-gradient(180deg,#FFFFFF,#F5FAF7); --panel-grad-deep:linear-gradient(180deg,#F2F7F4,#E2ECE7); --plate-grad:linear-gradient(160deg,#FFFFFF,#E6F1EC); + --sh-lg:0 0 0 1px rgba(11,26,20,.04),0 14px 34px -20px rgba(11,26,20,.35); + color-scheme:light; +} +:root[data-theme="light"] body::before{opacity:.7} +:root[data-theme="light"] .ghost{background:linear-gradient(180deg,rgba(10,107,86,.22),transparent 78%);-webkit-background-clip:text;background-clip:text} +:root[data-theme="light"] .btn{box-shadow:0 4px 18px rgba(10,107,86,.22)} :root[data-theme="light"] .btn:hover{box-shadow:0 8px 26px rgba(10,107,86,.3)} +:root[data-theme="light"] .mockup,:root[data-theme="light"] .modal-card,:root[data-theme="light"] #status,:root[data-theme="light"] #iapChatPanel,:root[data-theme="light"] .chat-drawer{box-shadow:0 18px 50px -20px rgba(11,26,20,.35)} +:root[data-theme="light"] .bo.side-open .bo-side{box-shadow:0 0 60px rgba(11,26,20,.25)} +:root[data-theme="light"] .plate{box-shadow:0 0 24px rgba(10,107,86,.12),inset 0 1px 0 rgba(255,255,255,.8)} diff --git a/public/assets/support.js b/public/assets/support.js index f0f6d14..9c79444 100644 --- a/public/assets/support.js +++ b/public/assets/support.js @@ -18,11 +18,11 @@ window.IAPSupport = (function () { if (document.getElementById('supCss')) return; const st = document.createElement('style'); st.id = 'supCss'; st.textContent = '.sup-form label{display:block;font-size:13px;color:var(--muted);margin:12px 0 4px}.sup-form input,.sup-form select,.sup-form textarea{width:100%;box-sizing:border-box}' - + '.sup-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 4px;border-bottom:1px solid var(--line);cursor:pointer}.sup-row:last-child{border-bottom:0}.sup-row:hover{background:rgba(67,232,195,.04)}' + + '.sup-row{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px 4px;border-bottom:1px solid var(--line);cursor:pointer}.sup-row:last-child{border-bottom:0}.sup-row:hover{background:var(--mint-faint)}' + '.sup-row .sr-main{min-width:0;flex:1}.sup-row .sr-sub{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sup-row .sr-meta{font-size:12px;color:var(--muted)}' - + '.sup-st{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 10px;border:1px solid var(--line-strong);white-space:nowrap}.sup-st.open{color:var(--mint);border-color:rgba(67,232,195,.5)}.sup-st.waiting_on_member{color:#f2c94c;border-color:rgba(242,201,76,.5)}.sup-st.closed{color:var(--muted)}' + + '.sup-st{font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 10px;border:1px solid var(--line-strong);white-space:nowrap}.sup-st.open{color:var(--mint);border-color:var(--mint-line-2)}.sup-st.waiting_on_member{color:var(--gold-2);border-color:var(--gold-line)}.sup-st.closed{color:var(--muted)}' + '.sup-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--amber,#ffb238);margin-right:6px;vertical-align:1px}' - + '.sup-msg{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0;background:rgba(4,8,7,.35)}.sup-msg.admin{border-color:rgba(67,232,195,.45);background:rgba(67,232,195,.06)}.sup-msg.system{opacity:.8}' + + '.sup-msg{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:10px 0;background:var(--ground-soft)}.sup-msg.admin{border-color:var(--mint-line);background:var(--mint-faint)}.sup-msg.system{opacity:.8}' + '.sup-msg .sm-head{font-size:12px;color:var(--muted);margin:0 0 6px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.sup-msg .sm-body{white-space:pre-wrap;word-wrap:break-word;font-size:15px;line-height:1.5}' + '.sup-att{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.sup-att img{max-width:160px;max-height:120px;border-radius:8px;border:1px solid var(--line)}' + '.sup-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}'; @@ -137,7 +137,7 @@ window.IAPSupport = (function () { if (m) return tokenPage(host, m[1]); let me = null; try { me = await (await fetch('/api/me')).json(); } catch (e) {} const signedIn = !!(me && me.signedIn && me.email); - host.innerHTML = (signedIn ? '

You are signed in as ' + esc(me.username ? '@' + me.username : me.email) + '. Your tickets and Marty\'s replies live in Help in your dashboard, which is the easiest place to follow up. This form works too and files the ticket under your account.

' : '') + host.innerHTML = (signedIn ? '

You are signed in as ' + esc(me.username ? '@' + me.username : me.email) + '. Your tickets and Marty\'s replies live in Help in your dashboard, which is the easiest place to follow up. This form works too and files the ticket under your account.

' : '') + '
' + '' + (signedIn ? '' : '' diff --git a/public/assets/welcome.js b/public/assets/welcome.js index 2933906..0dddde5 100644 --- a/public/assets/welcome.js +++ b/public/assets/welcome.js @@ -45,32 +45,32 @@ '-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);'; var card = document.createElement('div'); - card.style.cssText = 'position:relative;width:100%;max-width:470px;background:#0b1512;color:#eef7f3;' + - 'border:1px solid rgba(67,232,195,.28);border-radius:18px;padding:26px 24px 22px;' + + card.style.cssText = 'position:relative;width:100%;max-width:470px;background:var(--panel-solid);color:var(--ink);' + + 'border:1px solid var(--mint-line);border-radius:18px;padding:26px 24px 22px;' + 'box-shadow:0 26px 70px rgba(0,0,0,.6);font-size:15px;line-height:1.55;'; var html = '' + - '
InstantAdPay
' + - '

The ad spend in your line pays you, in the same transaction.

' + - '

You buy advertising you were going to buy anyway. When someone in your line buys a package, the contract splits it and your share lands in your wallet before the page reloads. No back office, no payday to wait for.

' + - '
    ' + + 'background:none;border:0;color:var(--muted);font-size:26px;line-height:1;cursor:pointer;padding:4px 8px;">×' + + '
    InstantAdPay
    ' + + '

    The ad spend in your line pays you, in the same transaction.

    ' + + '

    You buy advertising you were going to buy anyway. When someone in your line buys a package, the contract splits it and your share lands in your wallet before the page reloads. No back office, no payday to wait for.

    ' + + '
      ' + '
    • Every payout is on the public ledger, and you can read it yourself.
    • ' + '
    • Free members earn ad credits by viewing ads, videos and visits.
    • ' + '
    • Credits buy your own advertising. They are delivery, not a balance to hoard.
    • ' + '
    '; if (fri) { - html += '
    ' + - '
    ' + fri.tag + '
    ' + + html += '
    ' + + '
    ' + fri.tag + '
    ' + '
    ' + fri.text + '
    '; } html += ''; card.innerHTML = html; From 1aec9caf6c9737b9cc54a82818ebfe8c97d90f9b Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 1 Nov 2026 11:55:06 -0600 Subject: [PATCH 2/3] Theme switch: auto | light | dark, stored in localStorage iap.theme and on the account, applied before first paint on every page themehead.js is the one source of the tiny inline head script (and of AUTO_DEFAULT, the one constant Marty decides later: 0 = nothing stored keeps the page's current look, dark everywhere on InstantAdPay; 1 = follow the device). It mirrors LinkSpin's themehead.js with only the storage key (iap.theme), the global (window.IAPTheme) and the event name (iap-theme) changed. The script sets data-theme on from iap.theme (auto follows prefers-color-scheme and tracks changes live). tools/stamp-theme-head.cjs writes it into all 28 static site.css pages before the first stylesheet with data-theme-base="dark" on ; the blog, the leaderboard, what's-new, the badge page, the unsubscribe page and the wall 404 read the module directly. The site CSP allows inline scripts by hash only, so themehead.CSP_HASH joins script-src (without it the script is silently blocked). Account side: accounts.theme (JSON store and MySQL, alterSafe theme VARCHAR(8)), in the public account JSON and /api/me; POST /api/my/profile {theme} rides the existing profile save path, never touches the username, and does not tap changed() (appearance is not mirrored to LinkSpin, same as LinkSpin's side). common.js owns the client side for every page: paints every .theme-seg, saves a click to the account, and IAP.themeSync lets the account value win over the local one at sign-in (a local choice is pushed up when the account has none yet); my.js calls it from render(). The Light / Dark / Auto segmented control sits in the member-area header (#boTheme) and in a Profile pane "Appearance" card, and in the admin header for the same session. shorts.html pins the dark ink set on its black video stage; view.html stops reading an undefined --bg. ?v= tags bumped on every changed stylesheet and script (20261101th): site.css on all 28 pages, common.js on 25, welcome.js on 17, support.js, my.js, engine-room.js, admin.js, admin-kits.js, blog-page.js. Co-Authored-By: Claude Fable 5.1 --- accounts.js | 7 +- blog.js | 9 +- db.js | 1 + leaderboard.js | 7 +- public/admin.html | 22 ++- public/assets/common.js | 15 +- public/bixpay.html | 23 +-- public/contract.html | 7 +- public/conversion-tracking.html | 43 +++-- public/disclaimer.html | 7 +- public/earning.html | 9 +- public/facts.html | 7 +- public/friday.html | 19 +- public/games.html | 21 +- public/index.html | 7 +- public/join.html | 327 ++++++++++++++++---------------- public/launch.html | 23 +-- public/ledger.html | 7 +- public/my.html | 27 ++- public/partners.html | 15 +- public/plays.html | 17 +- public/presentation.html | 11 +- public/privacy.html | 7 +- public/refuel-guide.html | 45 ++--- public/refuel.html | 5 +- public/shorts.html | 7 +- public/support.html | 9 +- public/terms.html | 7 +- public/tx.html | 7 +- public/view.html | 9 +- public/wall.html | 7 +- public/wallets.html | 17 +- public/wednesday.html | 19 +- releases.js | 7 +- server.js | 19 +- themehead.js | 34 ++++ tools/stamp-theme-head.cjs | 24 +++ 37 files changed, 489 insertions(+), 365 deletions(-) create mode 100644 themehead.js create mode 100644 tools/stamp-theme-head.cjs diff --git a/accounts.js b/accounts.js index 7959233..deb9623 100644 --- a/accounts.js +++ b/accounts.js @@ -39,7 +39,9 @@ const pub = a => a ? { email: a.email, sponsorRef: a.sponsorRef || '', code: a.c bixPartnerLink: a.bixPartnerLink || null, // BixPay partner link (bixpay.js, 2026-10-29): one identity, follows the member to LinkSpin/CTB profileQuarantined: !!a.profileQuarantined, // 2026-10-30: first profile save of a brand-new free account planted a link; stored, never rendered publicly (spamscan.js) chatAvailable: a.chatAvailable === false ? false : true, lastSeen: a.lastSeen || 0, + theme: a.theme || null, // 2026-11-01 appearance: auto | light | dark, follows the member across browsers (common.js IAP.themeSync) address: a.address || null, created: a.created } : null; +const THEMES = new Set(['auto', 'light', 'dark']); const USER_RE = /^[a-zA-Z0-9_]{3,20}$/; const normUser = u => String(u || '').trim().toLowerCase(); @@ -130,6 +132,7 @@ const J = { }, async setBixLink(e, link) { const acct = this.db.byEmail[e]; if (!acct) return { error: 'No such account.' }; acct.bixPartnerLink = link || null; this.save(); return { ok: true, account: pub(acct) }; }, async touchSeen(e) { const a = this.db.byEmail[e]; if (a) { a.lastSeen = Date.now(); this.save(); } }, + async setTheme(e, t) { const a = this.db.byEmail[e]; if (!a) return { error: 'No such account.' }; a.theme = THEMES.has(t) ? t : null; this.save(); return { ok: true, account: pub(a) }; }, async setChatAvailable(e, v) { const a = this.db.byEmail[e]; if (!a) return { error: 'No such account.' }; a.chatAvailable = !!v; this.save(); return { ok: true, available: !!v }; }, async getMutes(e) { const a = this.db.byEmail[e]; return (a && Array.isArray(a.chatMutes)) ? a.chatMutes : []; }, async setMute(owner, target, muted) { @@ -233,7 +236,7 @@ const rowPub = r => r ? pub({ email: r.email, sponsorRef: r.sponsor_ref, code: r username: r.username, memberId: r.member_id || 0, joinedVia: r.joined_via || null, joinedRef: r.joined_ref || null, lineBannerUrl: r.line_banner_url, lineTargetUrl: r.line_target_url, wallOffers: r.wall_offers || null, avatarUrl: r.avatar_url, bio: r.bio, socials: r.socials, bixPartnerLink: r.bix_partner_link || null, profileQuarantined: !!r.profile_quarantined, - chatAvailable: r.chat_available === 0 ? false : true, lastSeen: Number(r.last_seen || 0), + chatAvailable: r.chat_available === 0 ? false : true, lastSeen: Number(r.last_seen || 0), theme: r.theme || null, address: r.address, created: Number(r.created) }) : null; const D = { async signup(e, password, ref) { @@ -296,6 +299,7 @@ const D = { }, async setBixLink(e, link) { const r = await db.q('UPDATE accounts SET bix_partner_link=? WHERE email=?', [link || null, e]); if (!r || !r.affectedRows) return { error: 'No such account.' }; return { ok: true, account: await this.byEmail(e) }; }, async touchSeen(e) { await db.q('UPDATE accounts SET last_seen=? WHERE email=?', [Date.now(), e]); }, + async setTheme(e, t) { await db.q('UPDATE accounts SET theme=? WHERE email=?', [THEMES.has(t) ? t : null, e]); return { ok: true, account: await this.byEmail(e) }; }, async setChatAvailable(e, v) { await db.q('UPDATE accounts SET chat_available=? WHERE email=?', [v ? 1 : 0, e]); return { ok: true, available: !!v }; }, async getMutes(e) { const r = await db.q('SELECT chat_mutes FROM accounts WHERE email=?', [e]); @@ -512,6 +516,7 @@ module.exports = { init, signup, login, ensure, onChange, isUnclaimedShell, byEm setProfile: async (e, a, bio, socials, quarantined) => { const r = await impl().setProfile(String(e || '').toLowerCase(), a, bio, socials, quarantined); if (!(r && r.error)) changed(String(e || '').toLowerCase()); return r; }, // profile edits reach LinkSpin too setBixLink: async (e, link) => { const r = await impl().setBixLink(normEmail(e), link ? String(link).slice(0, 300) : null); if (!(r && r.error)) changed(normEmail(e)); return r; }, // the BixPay partner link rides to LinkSpin in the profile row (lssync.js) touchSeen: e => impl().touchSeen(String(e || '').toLowerCase()), + setTheme: (e, t) => impl().setTheme(String(e || '').toLowerCase(), t), // appearance only: no changed() tap, LinkSpin does not mirror it either (its accounts.js says the same) adminSetAddress: (e, a) => impl().adminSetAddress(String(e || '').toLowerCase(), a ? normAddr(a) : null), positionByAddress: a => impl().positionByAddress(normAddr(a)), removeAccount: e => impl().removeAccount(String(e || '').toLowerCase()), diff --git a/blog.js b/blog.js index 4771ccc..1d2b370 100644 --- a/blog.js +++ b/blog.js @@ -6,6 +6,7 @@ const fs = require('fs'); const path = require('path'); const db = require('./db'); +const themehead = require('./themehead'); // light/dark theme head script (2026-11-01) let DATA_DIR = null; const SITE = 'https://instantadpay.com'; const AUTHOR = 'Marty Bostick'; @@ -97,19 +98,19 @@ async function bumpViews(slug) { try { await impl().bumpViews(slug); } catch (e) function head(o) { const url = SITE + o.path; const img = o.image ? (o.image.startsWith('http') ? o.image : SITE + o.image) : SITE + '/banners/iap-hero-1200x630.png'; - return '' + return '' + '' + esc(o.title) + '' + '' + '' + (o.article ? '' + (o.article.tags || []).map(t => '').join('') : '') + '' + '' - + '' - + '' + + '' + themehead.tag() + '' + + '' + '
    '; } function tail() { - return '
    '; + return '
    '; } const authorBox = () => '
    InstantAdPay
    ' + AUTHOR + 'Founder of InstantAdPay and the Crypto Team Build Network. Twenty-plus years of internet marketing, and a habit of writing down what actually worked.
    '; const cardHtml = p => '' + (p.cover ? '' : '') + '

    ' + esc(p.title) + '

    ' + esc(p.excerpt) + '

    ' + fmtDate(p.publishedAt || p.created) + ' · ' + readMinutes(p.body) + ' min read' + (p.tags.length ? ' · ' + p.tags.map(esc).join(', ') : '') + '

    '; diff --git a/db.js b/db.js index 830d6c9..ac9e954 100644 --- a/db.js +++ b/db.js @@ -346,6 +346,7 @@ async function bootstrap() { await alterSafe('ALTER TABLE accounts ADD COLUMN wall_offers VARCHAR(2000) NULL'); // JSON [{title,bannerUrl,targetUrl}] for wall positions 2-3 (unlock at 2 / 5 qualifying buyers) await alterSafe('ALTER TABLE accounts ADD COLUMN profile_quarantined TINYINT NOT NULL DEFAULT 0'); // 2026-10-30 link-farm rule: first profile save of a new free account carried a link (spamscan.js) await alterSafe('ALTER TABLE accounts ADD COLUMN bix_partner_link VARCHAR(300) NULL'); // BixPay partner link (bixpay.js, 2026-10-29); column name checked against MySQL 8 reserved words + await alterSafe('ALTER TABLE accounts ADD COLUMN theme VARCHAR(8) NULL'); // 2026-11-01 appearance: auto | light | dark (same column as LinkSpin) // help desk (2026-10-16, tickets.js): one shared desk for IAP and, later, LinkSpin; email_message_id threads inbound mail await q(`CREATE TABLE IF NOT EXISTS tickets ( id INT AUTO_INCREMENT PRIMARY KEY, diff --git a/leaderboard.js b/leaderboard.js index 6476cdf..bbdcadc 100644 --- a/leaderboard.js +++ b/leaderboard.js @@ -5,6 +5,7 @@ // rollover (checked hourly), announced to Telegram, and credit prizes are granted automatically. const fs = require('fs'); const path = require('path'); +const themehead = require('./themehead'); // light/dark theme head script (2026-11-01) let R = null; // { chain, accounts, ads, dataDir, siteConfig, notify(text), pushFeed(ev) } const TZ = 'America/Chicago'; let cache = { at: 0, rows: null }; @@ -131,9 +132,9 @@ async function renderPage() { + (v.top.length ? v.top.map(r => '
').join('') : '') + '
GoalDefault valuePixel idConversions (30 days)Last test
' + esc(g.name) + '' + esc(g.name) + '' + (Number(g.value) > 0 ? esc(g.value) : 'none') + '' + esc(g.px) + '' + Number(g.conv || 0).toLocaleString() + (g.lastAt ? '
last ' + when(g.lastAt) + '
' : '') + '
' + r.rank + '' + esc(r.name) + '' + r.sales + '$' + r.usd.toLocaleString() + '' + r.buyers + '' + r.joins + '
No sales yet in this period.
'; const fmtD = ts => new Date(ts).toLocaleDateString('en-US', { timeZone: TZ, month: 'short', day: 'numeric' }); const desc = 'Who is selling the most ad packages on InstantAdPay this week and this month. Weekly and monthly referral contest standings, read from the chain.'; - let h = 'Leaderboard | InstantAdPay' - + '' - + '
' + let h = 'Leaderboard | InstantAdPay' + + '' + themehead.tag() + '' + + '
' + '

Referral contest

Leaderboard: who is selling.

Ranked by ad packages sold to other people (your own positions never count, and the company account is not a contestant). Read from the chain, updated live. Weeks run Monday to Sunday, Central time.

'; h += '

' + week.label + ' ' + fmtD(week.start) + ' to Sunday

' + (week.prize ? '
Weekly prizes: ' + esc(week.prize) + '
' : '') + table(week); h += '

' + month.label + '

' + (month.prize ? '
Monthly prizes: ' + esc(month.prize) + '
' : '') + table(month); diff --git a/public/admin.html b/public/admin.html index 3a93048..ce0dbdb 100644 --- a/public/admin.html +++ b/public/admin.html @@ -1,12 +1,13 @@ - + Admin | InstantAdPay + - + @@ -70,7 +71,7 @@

The button opens a BixPay partner sign-up link.

Sign up on the page the button opens. Don’t install the BIX app first and don’t use the portal’s own Sign Up menu: your sponsor is lost and BIX shows the referrer as N/A.

- +

Available in 31 US states so far. Not in your state yet? You can still get the wallet and build. Elsewhere, availability varies by country.

@@ -164,7 +165,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/contract.html b/public/contract.html index 4c2975f..66d301e 100644 --- a/public/contract.html +++ b/public/contract.html @@ -1,5 +1,5 @@ - + The contract | InstantAdPay @@ -15,9 +15,10 @@ + - +
@@ -142,7 +143,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford.
- + diff --git a/public/conversion-tracking.html b/public/conversion-tracking.html index 6ed8426..5d8df47 100644 --- a/public/conversion-tracking.html +++ b/public/conversion-tracking.html @@ -1,5 +1,5 @@ - + Conversion tracking: see which ad brings sign-ups and sales | InstantAdPay @@ -11,9 +11,10 @@ + - + @@ -262,7 +263,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/disclaimer.html b/public/disclaimer.html index 72cfad5..ffb1278 100644 --- a/public/disclaimer.html +++ b/public/disclaimer.html @@ -1,11 +1,12 @@ - + Disclaimer | InstantAdPay + - + @@ -26,7 +27,7 @@

You decide whether, and how much, to spend. Never spend more than you can afford to lose.

- + diff --git a/public/earning.html b/public/earning.html index b0ab224..fa57b58 100644 --- a/public/earning.html +++ b/public/earning.html @@ -1,14 +1,15 @@ - + How earning works: credits and POL payouts | InstantAdPay + - + @@ -96,6 +97,6 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/facts.html b/public/facts.html index 344a736..69ca8a2 100644 --- a/public/facts.html +++ b/public/facts.html @@ -1,13 +1,14 @@ - + Platform Facts | InstantAdPay + - + @@ -71,6 +72,6 @@ - + diff --git a/public/games.html b/public/games.html index f7d293c..0a80dd9 100644 --- a/public/games.html +++ b/public/games.html @@ -1,5 +1,5 @@ - + Games that pay POL | InstantAdPay @@ -12,19 +12,20 @@ + - + @@ -78,6 +79,6 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees.
- + diff --git a/public/index.html b/public/index.html index dd87049..15cc0f0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,5 +1,5 @@ - + @@ -19,9 +19,10 @@ + - + @@ -505,7 +506,7 @@ - + diff --git a/public/join.html b/public/join.html index f4323d7..8d84438 100644 --- a/public/join.html +++ b/public/join.html @@ -1,163 +1,164 @@ - - - - - -You're invited | InstantAdPay - - - - - - -
-
- InstantAdPay - Already a member? Sign in -
- -
- -

InstantAdPay · Advertise and earn on Polygon

- -

Advertise and earn.
Paid on-chain, instantly.

-

Every ad package splits to real wallets in the same transaction it sells. No pending payouts, no withdraw button, and every payment is public.

-
- -
-
- -
-
-
instantadpay.com/ledger · worked example
-
-
🧾 member #7 bought package #2 ($20.00)paid
-
💸 level 1 payout → member #3 (50%)same block
-
💸 level 2 payout → member #2 (20%)same block
-
💸 level 3 payout → member #1 (10%)same block
-
🏛 platform fee settled (20%)same block
-
⭐ member #3 now has 2 qualifying buyerslevel 2 ✓
-
-
-
-

One purchase, one transaction, four payments. Open the real ledger →

- -
- -
-

Join free

-

Type your email and we send a 6-digit code. No password, no wallet needed today.

-

- - - - - - - - - -

Advertising, not investing. No income is guaranteed; results depend on your effort. Crypto carries risk of loss.

-
- -
- -
-
- Paid in POL, Polygon's own coin, to your wallet - Same transaction payouts - Public ledger on Polygon - Free to join by email -
-

The one crypto here is POL on the Polygon network: packages are paid in POL and every payout arrives as POL in your own wallet. Any Polygon wallet works (MetaMask, SafePal, Phantom, Coinbase Wallet). Never held crypto? Buy POL with a card inside the member area.

-
-
-

How it works

Three steps. The first one takes a minute and costs nothing.

-
-
STEP 1

Join free by email

A 6-digit code, no password. You get an invite link and welcome credits to try real ads.

-
STEP 2

Advertise or earn

Seven ad formats. View ads to earn credits, or buy a package from $5 when you want reach.

-
STEP 3

Get paid in the same transaction

Activate with the $20 starter package and switch on payouts, and anyone who buys through your link pays you 50 percent, on-chain, the moment it happens.

-
-
-
-

The packages

Priced in dollars, settled in POL at the live rate. One credit is one cent of ad delivery.

-
-

Every package pays 50 / 20 / 10 up the line the moment it sells, on a public ledger. Join free and look around first.

-
- -
- InstantAdPay · Contract · Terms · Privacy · Disclaimer -
-
- - - - + + + + + +You're invited | InstantAdPay + + + + + + + +
+
+ InstantAdPay + Already a member? Sign in +
+ +
+ +

InstantAdPay · Advertise and earn on Polygon

+ +

Advertise and earn.
Paid on-chain, instantly.

+

Every ad package splits to real wallets in the same transaction it sells. No pending payouts, no withdraw button, and every payment is public.

+
+ +
+
+ +
+
+
instantadpay.com/ledger · worked example
+
+
🧾 member #7 bought package #2 ($20.00)paid
+
💸 level 1 payout → member #3 (50%)same block
+
💸 level 2 payout → member #2 (20%)same block
+
💸 level 3 payout → member #1 (10%)same block
+
🏛 platform fee settled (20%)same block
+
⭐ member #3 now has 2 qualifying buyerslevel 2 ✓
+
+
+
+

One purchase, one transaction, four payments. Open the real ledger →

+ +
+ +
+

Join free

+

Type your email and we send a 6-digit code. No password, no wallet needed today.

+

+ + + + + + + + + +

Advertising, not investing. No income is guaranteed; results depend on your effort. Crypto carries risk of loss.

+
+ +
+ +
+
+ Paid in POL, Polygon's own coin, to your wallet + Same transaction payouts + Public ledger on Polygon + Free to join by email +
+

The one crypto here is POL on the Polygon network: packages are paid in POL and every payout arrives as POL in your own wallet. Any Polygon wallet works (MetaMask, SafePal, Phantom, Coinbase Wallet). Never held crypto? Buy POL with a card inside the member area.

+
+
+

How it works

Three steps. The first one takes a minute and costs nothing.

+
+
STEP 1

Join free by email

A 6-digit code, no password. You get an invite link and welcome credits to try real ads.

+
STEP 2

Advertise or earn

Seven ad formats. View ads to earn credits, or buy a package from $5 when you want reach.

+
STEP 3

Get paid in the same transaction

Activate with the $20 starter package and switch on payouts, and anyone who buys through your link pays you 50 percent, on-chain, the moment it happens.

+
+
+
+

The packages

Priced in dollars, settled in POL at the live rate. One credit is one cent of ad delivery.

+
+

Every package pays 50 / 20 / 10 up the line the moment it sells, on a public ledger. Join free and look around first.

+
+ +
+ InstantAdPay · Contract · Terms · Privacy · Disclaimer +
+
+ + + + diff --git a/public/launch.html b/public/launch.html index 3542241..035e6bf 100644 --- a/public/launch.html +++ b/public/launch.html @@ -1,41 +1,42 @@ - + Founding week checklist | InstantAdPay + - + @@ -130,7 +131,7 @@
Advertising services with a performance referral program. Not an investment product; no income guarantees. Crypto transactions are irreversible. Never spend what you cannot afford to lose.
- + diff --git a/public/plays.html b/public/plays.html index 46e5d7a..3baf771 100644 --- a/public/plays.html +++ b/public/plays.html @@ -1,16 +1,17 @@ - + Team-building plays | InstantAdPay + - + @@ -115,10 +116,10 @@

The flow

What happens when you buy a package

- Streak moves forward - Bonus boost - No refuel bonus - A question + Streak moves forward + Bonus boost + No refuel bonus + A question
  1. 1You buy a new ad package on either siteInstantAdPay or LinkSpin, paid from your own wallet.
  2. @@ -260,6 +261,6 @@
    Advertising services with a performance referral program. Not an investment product; no income guarantees.
    - + diff --git a/public/refuel.html b/public/refuel.html index ab1356d..6c9a5ec 100644 --- a/public/refuel.html +++ b/public/refuel.html @@ -1,11 +1,12 @@ - + Refuel · InstantAdPay verified visit - + + @@ -64,6 +65,6 @@ - + diff --git a/releases.js b/releases.js index a4ecb16..b2b69af 100644 --- a/releases.js +++ b/releases.js @@ -3,6 +3,7 @@ // Storage: DATA_DIR/releases.json { notes: [{id, date, title, body, tags[]}], roadmap: [{id, title, note, status, eta}] } const fs = require('fs'); const path = require('path'); +const themehead = require('./themehead'); // light/dark theme head script (2026-11-01) let FILE = null; const SITE = 'https://instantadpay.com'; const TAGS = ['new', 'improved', 'fixed']; @@ -54,10 +55,10 @@ const tagChip = t => '' + t + ''; function renderPage() { const v = publicView(); const desc = 'What changed on InstantAdPay and what is coming next: release notes and the roadmap, updated as things ship.'; - let h = 'What\'s new | InstantAdPay' + let h = 'What\'s new | InstantAdPay' + '' - + '' - + '
    ' + + '' + themehead.tag() + '' + + '
    ' + '

    Release notes and roadmap

    What\'s new, and what\'s next.

    ' + esc(desc) + '

    '; h += '

    On the roadmap

    '; h += v.roadmap.length ? '
    ' + v.roadmap.map(r => '
    ' + r.status + (r.eta ? ' · ' + esc(r.eta) : '') + '
    ' + esc(r.title) + '' + (r.note ? '' + esc(r.note) + '' : '') + '
    ').join('') + '
    ' : '

    Nothing queued right now.

    '; diff --git a/server.js b/server.js index d14d9ac..933b193 100644 --- a/server.js +++ b/server.js @@ -16,6 +16,7 @@ const { URL } = require('url'); const chain = require('./chain'); const auth = require('./auth'); const accounts = require('./accounts'); +const themehead = require('./themehead'); // 2026-11-01 light/dark theme head script for server-rendered pages + its CSP hash const ads = require('./ads'); const mailer = require('./mailer'); const { emailIssue } = require('./emailcheck'); // typo / no-mail-domain check for NEW addresses (2026-10-22) @@ -851,7 +852,7 @@ const MIME = { '.html': 'text/html; charset=utf-8', '.css': 'text/css', '.js': ' '.png': 'image/png', '.jpg': 'image/jpeg', '.svg': 'image/svg+xml', '.webp': 'image/webp', '.ico': 'image/x-icon', '.json': 'application/json', '.mp4': 'video/mp4', '.woff2': 'font/woff2', '.gif': 'image/gif', '.webm': 'video/webm', '.vtt': 'text/vtt; charset=utf-8', '.txt': 'text/plain; charset=utf-8', '.xml': 'application/xml; charset=utf-8' }; -const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://www.networkadspace.com https://networkadspace.com https://polhunter.com 'sha256-NzvNrqk5jB9YZATwo5BF4JoRlJ02HsnFikbKXgEPdaQ='; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; media-src 'self' https: blob:; connect-src 'self' https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com https://linkspin.app; font-src 'self' data: https://fonts.gstatic.com https://fonts.reown.com; form-action 'self'; frame-src https: http:"; +const CSP = "default-src 'self'; script-src 'self' https://cdn.jsdelivr.net https://www.networkadspace.com https://networkadspace.com https://polhunter.com 'sha256-NzvNrqk5jB9YZATwo5BF4JoRlJ02HsnFikbKXgEPdaQ=' " + themehead.CSP_HASH + "; worker-src 'self' blob:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; img-src 'self' data: blob: https:; media-src 'self' https: blob:; connect-src 'self' https://polhunter.com https://*.walletconnect.com wss://*.walletconnect.com https://*.walletconnect.org wss://*.walletconnect.org https://*.reown.com wss://*.reown.com https://*.reown.org wss://*.reown.org https://*.web3modal.org https://*.drpc.org https://*.publicnode.com https://*.coinbase.com https://linkspin.app; font-src 'self' data: https://fonts.gstatic.com https://fonts.reown.com; form-action 'self'; frame-src https: http:"; function baseHeaders(extra) { return Object.assign({ 'Content-Security-Policy': CSP, 'X-Content-Type-Options': 'nosniff', 'Referrer-Policy': 'strict-origin-when-cross-origin' }, extra || {}); @@ -2283,7 +2284,7 @@ const server = http.createServer(async (req, res) => { const r = await drip.unsubscribe(u.searchParams.get('e'), u.searchParams.get('t')); const msg = r.error ? r.error : 'Done. You will not get any more emails from InstantAdPay, apart from sign-in codes you ask for and receipts for payments to or from your account. Your account is unchanged.'; res.writeHead(r.error ? 400 : 200, baseHeaders({ 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-store' })); - return res.end('InstantAdPay
    InstantAdPay

    ' + (r.error ? 'Hmm.' : 'Unsubscribed.') + '

    ' + msg + '

    Member area

    '); + return res.end('InstantAdPay' + themehead.tag() + '
    InstantAdPay

    ' + (r.error ? 'Hmm.' : 'Unsubscribed.') + '

    ' + msg + '

    Member area

    '); } // -- public API @@ -2844,7 +2845,7 @@ const server = http.createServer(async (req, res) => { if (memberId && acct && acct.memberId !== memberId) accounts.setMemberId(acct.email, memberId).catch(() => {}); const out = { signedIn: true, gkShop: !!parseCookies(req)['iap.gkshop'], sdShop: !!parseCookies(req)['iap.sdshop'], pwMint: !!parseCookies(req)['iap.pwmint'], returnTo: ['polhunter', 'driprunner', 'passivedrip', 'gemkingdom', 'gkshop', 'spookydoors', 'sdshop', 'pwmint', 'polybreak', 'polminer', 'warpwares', 'shardsofvalor'].includes(parseCookies(req)['iap.return']) ? parseCookies(req)['iap.return'] : null, sponsorBlocked, sponsorRouted, sponsorName: spdMe.name || null, email: s.email || (acct && acct.email) || null, address: s.address || (acct && acct.address) || null, memberId, - username: (acct && acct.username) || null, + username: (acct && acct.username) || null, theme: (acct && acct.theme) || null, refCode: (acct && acct.code) || null, sponsorId, tankHold, sponsorFallback, // profile + line-banner fields so the Profile pane repopulates on reload (were being saved but not returned) avatarUrl: (acct && acct.avatarUrl) || null, bio: (acct && acct.bio) || null, @@ -3572,6 +3573,12 @@ const server = http.createServer(async (req, res) => { if (!s || !s.email) return json(res, 401, { error: 'Sign in first.' }); const b = await readBody(req); const before = await accounts.byEmail(s.email); + // appearance (2026-11-01): theme auto | light | dark rides the same save path; a theme-only save never touches the username + if (b.theme !== undefined) { + const t = ['auto', 'light', 'dark'].includes(String(b.theme)) ? String(b.theme) : null; + const rt = await accounts.setTheme(s.email, t); + if (b.username === undefined) return json(res, rt.error ? 400 : 200, rt); + } // a username is permanent once set: the invite link, the public wall and every // banner already printed carry it (Marty, 2026-09-10) if (before && before.username && String(b.username || '').trim().toLowerCase() !== String(before.username).toLowerCase()) @@ -5803,11 +5810,11 @@ const server = http.createServer(async (req, res) => { const url = 'https://instantadpay.com/b/' + un + '/' + key, img = 'https://instantadpay.com/badge-img/' + un + '/' + key + '.jpg'; const title = '@' + un + ' unlocked ' + label + ' on InstantAdPay'; const desc = label + ': ' + sub + '. InstantAdPay pays sponsors in the same transaction, on-chain. Join @' + un + '\u2019s line free.'; - const html = '' + esc(title) + '' + const html = '' + esc(title) + '' + '' + '' + '' - + '' + + '' + themehead.tag() + '' + '' + '
    ' + esc(label) + ' badge for @' + esc(un) + '

    @' + esc(un) + ' unlocked ' + label + '

    ' + esc(sub.charAt(0).toUpperCase() + sub.slice(1)) + '. On InstantAdPay every ad package that sells pays the sponsor in the same transaction, straight to their wallet, on-chain.

    ' + 'Join @' + esc(un) + '\u2019s line free

    Advertising with a performance referral program. Not an investment; no income is guaranteed.

    ' @@ -5873,7 +5880,7 @@ const server = http.createServer(async (req, res) => { let a = await accounts.byUsername(tok); if (!a) a = await accounts.byCode(tok); // a deleted or never-seen name is a real 404, never a bare "Banner wall" page at 200 (a soft 404 Google kept indexed, 2026-10-30) if (!a) { - const nf = 'No wall under that name | InstantAdPay

    No wall under that name

    This member page does not exist or was removed.

    Go to InstantAdPay

    '; + const nf = 'No wall under that name | InstantAdPay' + themehead.tag() + '

    No wall under that name

    This member page does not exist or was removed.

    Go to InstantAdPay

    '; res.writeHead(404, baseHeaders({ 'Content-Type': 'text/html; charset=utf-8', 'Cache-Control': 'no-cache', 'X-Robots-Tag': 'noindex' })); return res.end(nf); } diff --git a/themehead.js b/themehead.js new file mode 100644 index 0000000..b59d119 --- /dev/null +++ b/themehead.js @@ -0,0 +1,34 @@ +// Theme head script (2026-11-01). Marty approved light and dark themes for LinkSpin and said InstantAdPay gets the same +// treatment: some readers are vision impaired, some struggle with bright screens, some with dark ones. This is the ONE +// source of the tiny inline script every page carries in its , before any stylesheet, so the first paint is already +// the chosen theme (no flash). LinkSpin's themehead.js is the reference; only the storage key, the global and the event +// name differ (iap.theme / window.IAPTheme / "iap-theme"). +// +// theme value: auto | light | dark, stored in localStorage "iap.theme"; signed-in members also keep it on the +// account (accounts.theme) and the account value wins at sign-in (common.js IAP.themeSync). +// data-theme on is always resolved to light or dark (auto follows prefers-color-scheme and tracks changes). +// data-theme-choice carries the raw choice for the switch UI. window.IAPTheme = { get, set, apply, base }. +// +// Nothing stored => the page keeps its current look: data-theme-base on says what that is. Every InstantAdPay page +// is a site.css page, so the base is dark everywhere. AUTO_DEFAULT below is the one constant Marty decides later: set it +// to 1 and pages with nothing stored follow the device instead. After changing it, run `node tools/stamp-theme-head.cjs` +// so every static page carries the new copy (server-rendered pages read this module directly). +const AUTO_DEFAULT = 0; + +const BODY = '(function(){var A=' + AUTO_DEFAULT + ',h=document.documentElement,b=h.getAttribute("data-theme-base")||"dark",' + + 'm=window.matchMedia?matchMedia("(prefers-color-scheme: dark)"):{matches:false},v;' + + 'function g(){try{v=localStorage.getItem("iap.theme")}catch(e){v=null}return v==="light"||v==="dark"||v==="auto"?v:(A?"auto":b)}' + + 'function ap(){var c=g();h.setAttribute("data-theme",c==="auto"?(m.matches?"dark":"light"):c);h.setAttribute("data-theme-choice",c)}' + + 'ap();if(m.addEventListener)m.addEventListener("change",ap);else if(m.addListener)m.addListener(ap);' + + 'window.IAPTheme={base:b,get:g,apply:ap,set:function(c,quiet){try{if(c==="light"||c==="dark"||c==="auto")localStorage.setItem("iap.theme",c);else localStorage.removeItem("iap.theme")}catch(e){}' + + 'ap();if(!quiet)try{dispatchEvent(new CustomEvent("iap-theme",{detail:g()}))}catch(e){}}}})()'; +const SCRIPT = ''; +// The site CSP allows inline scripts by hash only (server.js CSP): one source, one hash. Changing BODY changes the hash, +// and the static pages must be re-stamped so they carry the same bytes. +const CSP_HASH = "'sha256-" + require('crypto').createHash('sha256').update(BODY).digest('base64') + "'"; + +// base: 'light' | 'dark' (the page's look when nothing is stored). Returns the attribute for the tag and the script. +function htmlAttr(base) { return ' data-theme-base="' + (base === 'light' ? 'light' : 'dark') + '"'; } +function tag() { return SCRIPT; } +// whole-head helper for server-rendered pages: '' + themehead.tag() + ... +module.exports = { AUTO_DEFAULT, SCRIPT, CSP_HASH, htmlAttr, tag }; diff --git a/tools/stamp-theme-head.cjs b/tools/stamp-theme-head.cjs new file mode 100644 index 0000000..9ca43f7 --- /dev/null +++ b/tools/stamp-theme-head.cjs @@ -0,0 +1,24 @@ +// Stamp the theme head script (themehead.js) into every static page under public/ that loads site.css, before the first +// stylesheet, and put data-theme-base on the tag (dark: every InstantAdPay page is a site.css page). Re-runnable: an +// existing copy between the markers is replaced. Run after changing AUTO_DEFAULT in themehead.js: +// node tools/stamp-theme-head.cjs +// Pages without site.css (door.html, plan-lab.html, the Google verification file) are skipped: they carry their own look. +const fs = require('fs'), path = require('path'); +const themehead = require(path.join(__dirname, '..', 'themehead.js')); +const dir = path.join(__dirname, '..', 'public'); +const OPEN = '', CLOSE = ''; +let n = 0; +for (const f of fs.readdirSync(dir).filter(f => f.endsWith('.html'))) { + const p = path.join(dir, f); + let html = fs.readFileSync(p, 'utf8'); + if (!//, (m, a) => ''); + const block = OPEN + themehead.tag() + CLOSE; + if (html.includes(OPEN)) html = html.replace(new RegExp(OPEN + '[\\s\\S]*?' + CLOSE), block); + else html = html.replace(/ Date: Sun, 1 Nov 2026 12:03:38 -0600 Subject: [PATCH 3/3] QA for the themes: contrast check in both themes, QA_THEME walks, theme-switch assertions qa/theme-contrast.mjs (bash qa/run.sh theme) mirrors LinkSpin's: signs in one account per theme (the account value wins at sign-in), walks every member pane, 24 public pages and the admin panes in light and dark with Playwright, samples the main text/background pairs with composited ancestor backgrounds and gradient averages, injects one probe per variant so every pair is measured even when a page has no live example, and reports the ratio per pair with pass/fail at 4.5:1 (3:1 for large text). Result today: 8,169 pairs, 0 fails, worst 4.76:1 (the ok badge in light), worst dark 5.76:1. qa/walk.mjs honours QA_THEME=light|dark|auto (localStorage iap.theme set before the first navigation; screenshots carry a - suffix so both sets survive), asserts the header and Profile switch (applies at once, saves to the account, repaints the other control, never touches the username), screenshots the public home, the member's wall and the join page from the local copy, and returns to /my with waitUntil load (a signed-in member area keeps polling, so networkidle never settles). Requests the page cancels by navigating away (net::ERR_ABORTED) no longer count as failures, and the local-only /api/qr 404 (no qrcode module in a checkout) is ignored for images. Both QA_THEME walks: 0 bugs. Co-Authored-By: Claude Fable 5.1 --- qa/run.sh | 4 ++ qa/theme-contrast.mjs | 159 ++++++++++++++++++++++++++++++++++++++++++ qa/walk.mjs | 60 +++++++++++++--- 3 files changed, 215 insertions(+), 8 deletions(-) create mode 100644 qa/theme-contrast.mjs diff --git a/qa/run.sh b/qa/run.sh index 500c7df..8f08e41 100644 --- a/qa/run.sh +++ b/qa/run.sh @@ -20,6 +20,8 @@ # bash qa/run.sh fuel # Fuel Your Offers: refill notices, refuel streak, Refuel Kit, Engine Room (unit + two-copy tests, throwaway data) # bash qa/run.sh policy # profile policy + link-farm scan: prohibited list, bio links, quarantine, 06:30 claim, walls of free/paying members, 404 walls (unit + local copy; also runs in member) # bash qa/run.sh bixpay # BixPay card: partner-link validator, sponsor-follows resolver (own / level 3 / company), gate, click store (unit, no server; also runs in member) +# bash qa/run.sh theme # light/dark themes: WCAG contrast of the main text/background pairs on the member area, admin and public pages, both themes (local copy) +# QA_THEME=dark bash qa/run.sh member # walk every pane in one theme; screenshots land as *-dark.png / *-light.png # Each local run boots server.js on its own port with a throwaway data dir (JSON store, no DB, no # mail key, devCode sign-in), so nothing touches production data. Reports land in qa/out/. set -u @@ -63,6 +65,8 @@ elif [ "$MODE" = "member" ]; then node qa/walletnudge.test.cjs || status=1 node qa/bixpay.test.cjs || status=1 node qa/profile-policy.test.cjs || status=1 +elif [ "$MODE" = "theme" ]; then + start_local 8797 && { LOCAL=http://127.0.0.1:8797 node qa/theme-contrast.mjs || status=1; }; stop_local 8797 elif [ "$MODE" = "policy" ]; then node qa/profile-policy.test.cjs || status=1 elif [ "$MODE" = "bixpay" ]; then diff --git a/qa/theme-contrast.mjs b/qa/theme-contrast.mjs new file mode 100644 index 0000000..d8b28be --- /dev/null +++ b/qa/theme-contrast.mjs @@ -0,0 +1,159 @@ +// Theme contrast check (2026-11-01, mirrored from LinkSpin's qa/theme-contrast.mjs): loads the public pages and the member +// area in both themes with Playwright, samples the main text/background pairs (body text, muted text, links, buttons, chips, +// badges, table text, card headings, stage pills, fields) with composited ancestor backgrounds and gradient averages, and +// reports the WCAG ratio per pair, pass/fail at 4.5:1 (3:1 for large text: 24px+, or 18.66px+ bold). Probes inject one +// element per variant so a pair is measured even when the page has no live example. Runs against a local copy: +// bash qa/run.sh theme (boots server.js on :8797 with throwaway data, signs in, walks both themes) +// Env: LOCAL (default http://127.0.0.1:8797), OUT (default qa/out), PW (playwright dir). Exit 1 when any pair fails. +import { pathToFileURL } from 'node:url'; +import fs from 'node:fs'; +const PW = process.env.PW || 'D:/Projects/MarketingAgent/qa-tester/node_modules/playwright'; +const { chromium } = (await import(pathToFileURL(PW + '/index.js').href)).default; +const LOCAL = process.env.LOCAL || 'http://127.0.0.1:8797'; +const OUT = process.env.OUT || 'qa/out'; +fs.mkdirSync(OUT, { recursive: true }); + +// selectors sampled on every page (text element -> its effective background) +const SAMPLE = ['body', 'p', 'li', 'td', 'th', 'label', 'small', 'h1', 'h2', 'h3', 'h4', 'a', 'button', '.btn', '.muted', '.small', '.eyebrow', 'summary', + '.badge', '.chip', '.chip-t', '.pill', '.lchip', '.lin-chip', '.lin-verdict', '.tk-tier', '.tk-tier b', '.tk-tier .lock', '.angle-hook', '.angle-tag', '.pb-note', '.pb-size', '.promo-block', '.pb-net', + '.stat .n', '.stat .l', '.statx .nv', '.statx .lb', '.card h3', '.card-head .sub', '.cmp th', '.cmp td', '.tile .name', '.tile .price', '.tile .cr', '.tile .bonus', '.tile .pol', '.tile.hot::before', + '.feed .row', '.feed .when', '.ticker .inner span', '.hero .lead', '.hero-note', '.byline', 'nav .links a', '.bo-menu button', '.bo-menu a', '.bo-links a', '.bo-cap', '.bo-top h2', '.bo-pagefoot a', + '.subtab', '.subnav button', '.seg button', '.theme-seg button', '.gs-step', '.gs-step .n', '.nc-step .lb', '.nc-step .dot', '.lt-you', '.lt-node', '.lt-cap', '.lin-row .nm', '.lin-row .em', '.lin-row .id', '.lin-row .dt', + '.wall-pos', '.wc-check', '.wc-timer', '.bio-meta p', '.bio-socials a', '.chat-thread .ct-name', '.chat-thread .ct-last', '.ch-m', '.obj summary', '.obj .lab', '.spend-banner .lbl', '.spend-banner .sub', '.rehearsal', + '.checks li', '.platecard p', '.closer p', 'footer', 'footer a', '.fdf', '.fdf a', '.pgr-n', '.pgr-pg', '.pgr-btn', '.lst-chip', '.lst-sort', '.lst-n', '.pipe-col h4', '.pipe-col .hint', '.pipe-card .nm', '.pipe-card .sub', + '.rg-n', '.rg-chip', '.rg-box', '.rg-rule', '.rg-coach', '.cg-flow li', '.howbox', '.gcard .pays', '.wl-grid .tag', '.lw-rule', '.pl-rule', '.wl-rule', '.note', '.st', '.house-tag', '.sup-row', '.sup-st', 'input', 'textarea', 'select']; +// probes injected once per page so every variant gets a reading (class list, text) +const PROBES = [ + ['badge', 'Badge'], ['badge amber', 'Badge amber'], ['chip', 'Chip'], ['chip flat', 'Chip flat'], ['chip warm', 'Chip warm'], ['chip-t', 'Chip-t'], ['chip-t on', 'Chip-t on'], ['lchip', 'lchip'], ['lchip on', 'lchip on'], ['lchip warn', 'lchip warn'], + ['lin-chip', 'lin chip'], ['lin-chip warn', 'lin chip warn'], ['lin-verdict', 'verdict'], ['lin-verdict on', 'verdict on'], ['tk-tier', 'tier'], ['tk-tier reached', 'tier reached'], ['tk-tier current', 'tier current'], ['angle-hook', 'hook'], ['angle-tag', 'angle tag'], + ['btn', 'Button'], ['btn sec', 'Sec'], ['btn small sec', 'Small sec'], ['btn quiet', 'Quiet'], ['subtab', 'subtab'], ['subtab on', 'subtab on'], ['lst-chip', 'list chip'], ['lst-chip on', 'list chip on'], ['pgr-btn', 'Next'], + ['muted', 'Muted text'], ['small muted', 'small muted'], ['hero-note', 'hero note'], ['bo-cap', 'cap'], ['wall-pos', 'position 1'], ['wc-check', 'check'], ['wc-timer', '0:12'], ['lt-you', 'You'], ['lt-node', 'node'], ['lt-node deep', 'deep'], ['lt-node qualified', 'qualified'], ['lt-node open', 'open'], + ['gs-step', 'step'], ['gs-step done', 'step done'], ['gs-step now', 'step now'], ['fdf', 'Friday strip'], ['pgr-n', 'Showing 25'], ['pgr-pg', 'page 1 of 2'], ['promo-block', 'promo block'], ['pb-net', 'facebook'], ['rehearsal', 'rehearsal'], + ['ch-m bot', 'bot bubble'], ['ch-m me', 'me bubble'], ['cbub them', 'them'], ['cbub me', 'me'], ['chat-day', 'today'], ['chat-empty', 'empty'], ['pipe-card nm', 'name'], ['pipe-card sub', 'sub'], ['pipe-col hint', 'hint'], + ['st active', 'active'], ['st paused', 'paused'], ['st out', 'out'], ['house-tag', 'house'], ['sup-st open', 'open'], ['sup-st waiting_on_member', 'waiting'], ['sup-st closed', 'closed'], + ['tile bonus', 'bonus'], ['tile pol', 'pol'], ['tile name', 'name'], ['spend-banner lbl', 'label'], ['split s50', '50%'], ['split sa', 'admin'], ['nc-step lb', 'step'], ['bo-rehearsal small', 'rehearsal'], + ['theme-seg-probe', 'seg'], ['ok-probe', 'ok text'], ['warn-probe', 'warn text'], ['bad-probe', 'bad text'], ['gold-probe', 'gold text'], ['okbadge-probe', 'Ready to activate'], ['goldbadge-probe', 'Pass active'], ['amberpill-probe', '3'], +]; + +const browser = await chromium.launch(); +const results = []; +async function sample(page, label) { + const rows = await page.evaluate(({ SAMPLE, PROBES }) => { + const parse = c => { const m = String(c).match(/rgba?\(([^)]+)\)/); if (!m) return null; const p = m[1].split(/[,\s/]+/).filter(Boolean).map(Number); return { r: p[0], g: p[1], b: p[2], a: p.length > 3 ? p[3] : 1 }; }; + const over = (fg, bg) => ({ r: fg.r * fg.a + bg.r * (1 - fg.a), g: fg.g * fg.a + bg.g * (1 - fg.a), b: fg.b * fg.a + bg.b * (1 - fg.a), a: 1 }); + const lum = c => { const f = v => { v /= 255; return v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4); }; return 0.2126 * f(c.r) + 0.7152 * f(c.g) + 0.0722 * f(c.b); }; + const ratio = (a, b) => { const l1 = lum(a), l2 = lum(b); return (Math.max(l1, l2) + 0.05) / (Math.min(l1, l2) + 0.05); }; + const hex = c => '#' + [c.r, c.g, c.b].map(v => Math.round(v).toString(16).padStart(2, '0')).join(''); + // gradients: average the non-transparent colour stops (a transparent stop is not a colour the text sits on) + const gradColour = img => { const stops = [...img.matchAll(/rgba?\([^)]+\)/g)].map(m => parse(m[0])).filter(c => c && c.a > 0); if (!stops.length) return null; const n = stops.length; return { r: stops.reduce((s, c) => s + c.r, 0) / n, g: stops.reduce((s, c) => s + c.g, 0) / n, b: stops.reduce((s, c) => s + c.b, 0) / n, a: stops.reduce((s, c) => s + c.a, 0) / n }; }; + const bgOf = el => { // walk up, compositing translucent layers over what lies beneath + const layers = []; let e = el; + while (e && e !== document.documentElement.parentNode) { + const cs = getComputedStyle(e); const bc = parse(cs.backgroundColor); const bi = cs.backgroundImage; + let c = null; + if (bi && bi !== 'none' && /gradient/.test(bi) && !/radial-gradient\(/.test(bi)) c = gradColour(bi); + if (bc && bc.a > 0) c = c && c.a < 1 ? over(c, bc) : (c || bc); + if (c && c.a > 0) { layers.push(c); if (c.a >= 1) break; } + e = e.parentElement; + } + let out = { r: 255, g: 255, b: 255, a: 1 }; + const body = parse(getComputedStyle(document.body).backgroundColor); if (body && body.a > 0 && !layers.some(l => l.a >= 1)) out = body; + for (let i = layers.length - 1; i >= 0; i--) out = over(layers[i], out); + return out; + }; + const vis = el => { const r = el.getBoundingClientRect(); const cs = getComputedStyle(el); return r.width > 0 && r.height > 0 && cs.visibility !== 'hidden' && cs.display !== 'none' && el.closest('[hidden]') === null; }; + const hasText = el => [...el.childNodes].some(n => n.nodeType === 3 && n.textContent.trim().length > 0) || /^(INPUT|TEXTAREA|SELECT)$/.test(el.tagName); + // probes + const host = document.createElement('div'); host.id = 'contrastProbes'; host.style.cssText = 'position:absolute;left:0;top:0;padding:8px;display:flex;flex-wrap:wrap;gap:6px;z-index:9999;background:var(--panel,transparent)'; + const panel = document.querySelector('.card,.stat,.tile,.wall-card') || document.body; panel.appendChild(host); + const hasSeg = !!document.querySelector('.theme-seg'); // the switch lives on the member area and admin + const SPECIAL = { + 'theme-seg-probe': el => { el.className = 'seg theme-seg'; el.innerHTML = ''; }, + 'ok-probe': el => { el.className = 'small'; el.style.color = 'var(--ok)'; }, 'warn-probe': el => { el.className = 'small'; el.style.color = 'var(--warn)'; }, + 'bad-probe': el => { el.className = 'small'; el.style.color = 'var(--bad)'; }, 'gold-probe': el => { el.className = 'small'; el.style.color = 'var(--gold)'; }, + 'okbadge-probe': el => { el.className = 'badge'; el.style.cssText = 'background:var(--ok-soft);border-color:var(--ok);color:var(--ok)'; }, + 'goldbadge-probe': el => { el.className = 'badge'; el.style.cssText = 'background:var(--gold);color:var(--gold-ink)'; }, + 'amberpill-probe': el => { el.className = 'pill'; el.style.cssText = 'background:var(--amber);color:var(--amber-ink);font-size:11px;font-weight:800;border-radius:999px;padding:1px 8px'; }, + }; + for (const [cls, text] of PROBES) { + if (cls === 'theme-seg-probe' && !hasSeg) continue; + const el = document.createElement(cls.startsWith('btn') || cls.startsWith('subtab') || cls.startsWith('lst-chip') || cls.startsWith('pgr-btn') ? 'button' : 'span'); + el.className = cls; el.textContent = text; + if (SPECIAL[cls]) SPECIAL[cls](el); + el.setAttribute('data-probe', cls); host.appendChild(el); + } + const out = []; const seen = new Set(); + const els = []; + for (const sel of SAMPLE) { if (sel.includes('::')) continue; for (const el of document.querySelectorAll(sel)) els.push([sel, el]); } + for (const el of host.querySelectorAll('[data-probe],[data-theme]')) els.push(['probe ' + (el.getAttribute('data-probe') || el.parentElement.getAttribute('data-probe') + ' ' + el.className), el]); + for (const [sel, el] of els) { + if (!vis(el) || !hasText(el)) continue; + const cs = getComputedStyle(el); const fg = parse(cs.color); if (!fg) continue; + if (cs.opacity !== '' && parseFloat(cs.opacity) < 0.5) continue; // disabled / ghosted (the ghost wordmark is color:transparent) + if (fg.a === 0) continue; + let bg = bgOf(el); + const fgc = fg.a < 1 ? over(fg, bg) : fg; + const size = parseFloat(cs.fontSize), weight = parseInt(cs.fontWeight, 10) || 400; + const large = size >= 24 || (size >= 18.66 && weight >= 700); + const r = ratio(fgc, bg); + const key = sel + '|' + hex(fgc) + '|' + hex(bg) + '|' + large; + if (seen.has(key)) continue; seen.add(key); + out.push({ sel, text: (el.textContent || el.placeholder || '').trim().slice(0, 28), fg: hex(fgc), bg: hex(bg), ratio: Math.round(r * 100) / 100, size: Math.round(size * 10) / 10, weight, large, need: large ? 3 : 4.5 }); + } + host.remove(); + return out; + }, { SAMPLE, PROBES }); + for (const r of rows) results.push(Object.assign({ page: label }, r)); +} + +const hide = page => page.evaluate(() => { document.querySelectorAll('.modal-back,.lgate,.iap-welcome').forEach(m => m.hidden = true); }); +async function run(theme) { + const ctx = await browser.newContext({ viewport: { width: 1280, height: 950 } }); + await ctx.addInitScript(t => { try { localStorage.setItem('iap.theme', t); sessionStorage.setItem('iap.welcome.v1', '1'); } catch (e) {} }, theme); + const page = await ctx.newPage(); page.on('dialog', d => d.accept()); + const T = theme.toUpperCase() + ' '; + // member sign-in first, so the wall and join pages below have a real member to show + await page.goto(LOCAL + '/my', { waitUntil: 'networkidle' }); + const user = 'qac' + theme; // one account per theme: the account value wins over the local one at sign-in + if (await page.$('#mcEmail')) { + await page.fill('#mcEmail', 'qa-contrast-' + theme + '@example.com'); await page.click('#mcSendBtn'); + await page.waitForSelector('#mcVerifyBtn:not([hidden])', { timeout: 15000 }); await page.click('#mcVerifyBtn'); await page.waitForTimeout(2000); + if (await page.$('#onboardModal:not([hidden])')) { await page.fill('#obUsername', user); await page.click('#obSave'); await page.waitForTimeout(1500); } + await page.evaluate(t => fetch('/api/my/profile', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ theme: t }) }).then(r => r.json()), theme); + } + await hide(page); + const PANES = ['overview', 'line', 'pipeline', 'buy', 'campaigns', 'earn', 'earnings', 'promo', 'training', 'help', 'wallet', 'profile']; + for (const pn of PANES) { + await page.click('.bo-menu [data-pane="' + pn + '"]').catch(() => {}); await page.waitForTimeout(900); await hide(page); + const applied = await page.evaluate(() => document.documentElement.getAttribute('data-theme')); if (applied !== theme) results.push({ page: T + '/my#' + pn, sel: 'THEME', text: 'data-theme=' + applied, fg: '-', bg: '-', ratio: 0, size: 0, weight: 0, large: false, need: 1 }); + await sample(page, T + '/my#' + pn); + } + await page.screenshot({ path: OUT + '/contrast-' + theme + '-my.png' }).catch(() => {}); + // public pages (same browser, signed in: the nav shows the member) + for (const p of ['/', '/join/' + user, '/join/' + user + '?v=instant', '/wall/' + user, '/ledger', '/contract', '/games', '/wallets', '/support', '/leaderboard', '/whats-new', '/facts', '/terms', '/earning', '/friday', '/wednesday', '/refuel-guide', '/conversion-tracking', '/plays', '/launch', '/partners', '/presentation', '/shorts', '/blog']) { + await page.goto(LOCAL + p, { waitUntil: 'domcontentloaded' }).catch(() => {}); await page.waitForTimeout(1200); await hide(page); + await sample(page, T + p); + } + // admin + await page.goto(LOCAL + '/admin', { waitUntil: 'networkidle' }); + if (await page.$('#adEmail')) { + await page.fill('#adEmail', process.env.ADMIN_EMAIL || 'martybostick@gmail.com'); await page.click('#adSend'); await page.waitForSelector('#adVerify:not([hidden])', { timeout: 15000 }); await page.click('#adVerify'); await page.waitForTimeout(1500); + } + for (const pn of ['overview', 'house', 'campaigns', 'members', 'support', 'reports', 'settings']) { + await page.click('.bo-menu [data-pane="' + pn + '"]').catch(() => {}); await page.waitForTimeout(900); + await sample(page, T + '/admin#' + pn); + } + await ctx.close(); +} +await run('light'); +await run('dark'); +await browser.close(); + +const fails = results.filter(r => r.ratio < r.need); +const lines = ['===== THEME CONTRAST ' + new Date().toISOString() + ' =====', 'pairs: ' + results.length + ' | fail: ' + fails.length, + '', 'FAILS (ratio < need):', ...fails.sort((a, b) => a.ratio - b.ratio).map(f => `[fail] ${f.page} :: ${f.sel} "${f.text}" ${f.fg} on ${f.bg} = ${f.ratio}:1 (need ${f.need}, ${f.size}px/${f.weight})`), + '', 'WORST 25 OVERALL:', ...results.slice().sort((a, b) => a.ratio - b.ratio).slice(0, 25).map(f => `${f.ratio}:1 ${f.page} :: ${f.sel} "${f.text}" ${f.fg} on ${f.bg} (${f.size}px/${f.weight}${f.large ? ' large' : ''})`), + '', 'ALL PAIRS:', ...results.map(f => `${f.ratio < f.need ? 'FAIL' : 'ok '} ${f.ratio}:1 ${f.page} :: ${f.sel} "${f.text}" ${f.fg} on ${f.bg} (${f.size}px/${f.weight}${f.large ? ' large' : ''})`)]; +fs.writeFileSync(OUT + '/theme-contrast.txt', lines.join('\n') + '\n'); +console.log(lines.slice(0, Math.min(lines.length, 60 + fails.length)).join('\n')); +process.exit(fails.length ? 1 : 0); diff --git a/qa/walk.mjs b/qa/walk.mjs index 35a2994..5349063 100644 --- a/qa/walk.mjs +++ b/qa/walk.mjs @@ -14,6 +14,11 @@ const LIVE = process.env.LIVE || 'https://instantadpay.com'; const LOCAL = process.env.LOCAL || 'http://127.0.0.1:8796'; const OUT = process.env.OUT || 'qa/out'; fs.mkdirSync(OUT, { recursive: true }); +// QA_THEME=light|dark|auto (2026-11-01): set localStorage iap.theme before the first navigation so every pane is walked and +// screenshotted in that theme; screenshots get a - suffix so both sets survive in qa/out +const THEME = ['light', 'dark', 'auto'].includes(process.env.QA_THEME || '') ? process.env.QA_THEME : ''; +const SUF = THEME ? '-' + THEME : ''; +const themed = async ctx => { if (THEME) await ctx.addInitScript(t => { try { localStorage.setItem('iap.theme', t); } catch (e) {} }, THEME); return ctx; }; const findings = []; const note = (sev, where, what) => findings.push({ sev, where, what }); const NOISE = /walletconnect|reown|web3modal|coingecko|fonts\.|\/api\/feed\/live|\/api\/auth\/logout/; @@ -28,7 +33,7 @@ function watch(page, base) { if (/status of (400|401|404)/.test(m.text())) return; // expected API answers surface as console noise bag.console.push(m.text()); }); - page.on('requestfailed', r => { const u = r.url(); if (u.startsWith(base) && !NOISE.test(u)) bag.failed.push(u + ' ' + (r.failure() && r.failure().errorText)); }); + page.on('requestfailed', r => { const u = r.url(); const err = (r.failure() && r.failure().errorText) || ''; if (err === 'net::ERR_ABORTED') return; /* a request the page cancelled by navigating away (a poll or a save still in flight): never a server failure (2026-11-01) */ if (u.startsWith(base) && !NOISE.test(u)) bag.failed.push(u + ' ' + err); }); page.on('response', r => { const st = r.status(); const u = r.url(); if (st >= 500 && u.startsWith(base)) bag.status.push(st + ' ' + u); }); return bag; } @@ -46,7 +51,8 @@ async function domChecks(page, label) { const overflow = document.documentElement.scrollWidth > document.documentElement.clientWidth + 2; return { brokenImgs, unfilled, overflow, title: document.title }; }); - if (r.brokenImgs.length) note('bug', label, 'broken images: ' + r.brokenImgs.slice(0, 3).join(', ')); + const imgs = label.startsWith('LOCAL') ? r.brokenImgs.filter(s => !/\/api\/qr\?/.test(s)) : r.brokenImgs; // the qrcode module is not installed in a local checkout, so /api/qr answers 404 there (2026-11-01) + if (imgs.length) note('bug', label, 'broken images: ' + imgs.slice(0, 3).join(', ')); if (r.unfilled) note('warn', label, r.unfilled + ' element(s) still showing the loading ellipsis'); if (r.overflow) note('warn', label, 'page scrolls horizontally'); return r; @@ -56,7 +62,7 @@ const hide = page => page.evaluate(() => { document.querySelectorAll('.modal-bac const browser = await chromium.launch(); if (MODE === 'public' || MODE === 'all') { - const ctx = await browser.newContext({ viewport: { width: 1280, height: 900 } }); + const ctx = await themed(await browser.newContext({ viewport: { width: 1280, height: 900 } })); await ctx.addInitScript(() => { try { sessionStorage.setItem('iap.welcome.v1', '1'); } catch (e) {} }); // the session pop-up would block every click in an automated run const page = await ctx.newPage(); const bag = watch(page, LIVE); const PUBLIC = ['/', '/ledger', '/contract', '/terms', '/privacy', '/disclaimer', '/wall/martbost', '/join/martbost', @@ -79,19 +85,19 @@ if (MODE === 'public' || MODE === 'all') { flush(bag, label); console.log('ok', label, '|', d.title); } catch (e) { note('bug', label, 'navigation failed: ' + e.message.slice(0, 160)); flush(bag, label); } } - const m = await browser.newContext({ viewport: { width: 390, height: 844 }, isMobile: true }); + const m = await themed(await browser.newContext({ viewport: { width: 390, height: 844 }, isMobile: true })); await m.addInitScript(() => { try { sessionStorage.setItem('iap.welcome.v1', '1'); } catch (e) {} }); // the session pop-up would block every click in an automated run const mp = await m.newPage(); const mbag = watch(mp, LIVE); for (const p of ['/', '/join/martbost?v=instant', '/wall/martbost', '/my']) { await mp.goto(LIVE + p, { waitUntil: 'domcontentloaded', timeout: 45000 }).catch(e => note('bug', 'LIVE mobile ' + p, e.message)); await mp.waitForTimeout(2000); await domChecks(mp, 'LIVE mobile ' + p); flush(mbag, 'LIVE mobile ' + p); - await mp.screenshot({ path: OUT + '/mobile' + p.replace(/[^a-z0-9]+/gi, '-') + '.png' }).catch(() => {}); + await mp.screenshot({ path: OUT + '/mobile' + p.replace(/[^a-z0-9]+/gi, '-') + SUF + '.png' }).catch(() => {}); } await ctx.close(); await m.close(); } if (MODE === 'member' || MODE === 'all') { - const ctx = await browser.newContext({ viewport: { width: 1280, height: 950 } }); + const ctx = await themed(await browser.newContext({ viewport: { width: 1280, height: 950 } })); await ctx.addInitScript(() => { try { sessionStorage.setItem('iap.welcome.v1', '1'); } catch (e) {} }); // the session pop-up would block every click in an automated run const page = await ctx.newPage(); const bag = watch(page, LOCAL); page.on('dialog', d => d.accept()); @@ -112,7 +118,7 @@ if (MODE === 'member' || MODE === 'all') { for (const s of subs) { try { await s.click(); await page.waitForTimeout(500); } catch (e) {} } if (subs.length) await domChecks(page, label + ' (sub-tabs)'); flush(bag, label); - await page.screenshot({ path: OUT + '/my-' + pn + '.png' }).catch(() => {}); + await page.screenshot({ path: OUT + '/my-' + pn + SUF + '.png' }).catch(() => {}); console.log('ok', label, 'subtabs:', subs.length); } // Game Pass card on the Games tab (2026-10-16): hidden while gamePassEnabled is off, rendered with its state and Buy button once on; /my#games?pass=1 highlights it @@ -231,6 +237,44 @@ if (MODE === 'member' || MODE === 'all') { } flush(bag, L + 'my#help (ticket)'); await page.screenshot({ path: OUT + '/my-help-ticket.png' }).catch(() => {}); + // theme switch (2026-11-01): the header control and the Profile card both exist, a click flips data-theme at once and saves to the account + { + const label = L + 'theme switch'; + await page.evaluate(() => document.querySelectorAll('.chat-drawer,.modal-back,.lgate').forEach(m => m.hidden = true)); + await page.click('.bo-menu [data-pane="profile"]'); await page.waitForTimeout(600); await hide(page); + const seg = await page.$('#boTheme [data-theme="dark"]'); const prof = await page.$('#pane-profile .theme-seg [data-theme="light"]'); + if (!seg) note('bug', label, 'no Light/Dark/Auto control in the member-area header'); if (!prof) note('bug', label, 'no Light/Dark/Auto control on the Profile pane'); + if (seg && prof) { + const saved1 = page.waitForResponse(r => r.url().includes('/api/my/profile'), { timeout: 10000 }).catch(() => null); await seg.click(); await saved1; await page.waitForTimeout(300); + const t1 = await page.evaluate(() => [document.documentElement.getAttribute('data-theme'), localStorage.getItem('iap.theme')]); + if (t1[0] !== 'dark' || t1[1] !== 'dark') note('bug', label, 'Dark did not apply (data-theme=' + t1[0] + ', iap.theme=' + t1[1] + ')'); + await page.waitForTimeout(600); const acct = await (await page.request.get(LOCAL + '/api/me')).json(); + if (acct.theme !== 'dark') note('bug', label, 'account did not store the theme (got ' + acct.theme + ')'); + const onProfile = await page.evaluate(() => { const b = document.querySelector('#pane-profile .theme-seg [data-theme="dark"]'); return b && b.classList.contains('on'); }); + if (!onProfile) note('bug', label, 'Profile control did not repaint after a header change'); + const saved2 = page.waitForResponse(r => r.url().includes('/api/my/profile'), { timeout: 10000 }).catch(() => null); await prof.click(); await saved2; await page.waitForTimeout(300); + const t2 = await page.evaluate(() => document.documentElement.getAttribute('data-theme')); + if (t2 !== 'light') note('bug', label, 'Light from the Profile card did not apply (data-theme=' + t2 + ')'); + const acct2 = await (await page.request.get(LOCAL + '/api/me')).json(); + if (acct2.theme !== 'light') note('bug', label, 'account did not follow the Profile card (got ' + acct2.theme + ')'); + if (acct2.username !== acct.username) note('bug', label, 'a theme save touched the username'); + // restore the walk's theme so the remaining screenshots match the set + await page.evaluate(t => { if (t) window.IAPTheme.set(t); else { localStorage.removeItem('iap.theme'); window.IAPTheme.apply(); } }, THEME); + await page.evaluate(t => fetch('/api/my/profile', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ theme: t || null }) }).then(r => r.status), THEME); // awaited: a save still in flight would abort on the next navigation + await page.waitForTimeout(400); + } + await page.screenshot({ path: OUT + '/my-profile-theme' + SUF + '.png' }).catch(() => {}); + flush(bag, label); console.log('ok', label); + } + // public home, the member's wall and a campaign (join) page on the local copy, in this theme + for (const p of ['/', '/wall/qawalker', '/join/qawalker', '/join/qawalker?v=instant']) { + const label = L + p; + await page.goto(LOCAL + p, { waitUntil: 'domcontentloaded' }).catch(e => note('bug', label, 'navigation failed: ' + e.message.slice(0, 120))); await page.waitForTimeout(1500); await hide(page); + await domChecks(page, label); flush(bag, label); + await page.screenshot({ path: OUT + '/public' + p.replace(/[^a-z0-9]+/gi, '-').replace(/-$/, '') + SUF + '.png', fullPage: p === '/' }).catch(() => {}); + console.log('ok', label); + } + await page.goto(LOCAL + '/my', { waitUntil: 'load' }); await page.waitForTimeout(2500); await hide(page); // load, not networkidle: a signed-in member area keeps polling const chat = await page.$('#chatMenuBtn'); if (chat) { await chat.click(); await page.waitForTimeout(800); await domChecks(page, L + 'messages'); flush(bag, L + 'messages'); } const lo = await page.$('#logoutLink'); if (lo) { await lo.click(); await page.waitForTimeout(1000); } if (!(await page.$('#authArea:not([hidden])'))) note('bug', L + 'logout', 'auth card not shown after log out'); @@ -244,7 +288,7 @@ if (MODE === 'member' || MODE === 'all') { const vis = await page.evaluate(id => { const el = document.getElementById('pane-' + id); return el && !el.hidden && el.offsetHeight > 40; }, pn); if (!vis) note('bug', label, 'pane did not render'); await domChecks(page, label); flush(bag, label); - await page.screenshot({ path: OUT + '/admin-' + pn + '.png' }).catch(() => {}); + await page.screenshot({ path: OUT + '/admin-' + pn + SUF + '.png' }).catch(() => {}); console.log('ok', label); } // admin Support pane: the member's ticket is listed, opens, takes an internal note and a reply; the member then sees the reply and an unread badge