Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
<!doctype html>
<html lang="en">
<head>
<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title data-i18n="club.meta_title">Pole Club · three.ws</title>
<meta
name="viewport"
content="width=device-width, initial-scale=1, viewport-fit=cover"
/>
<meta name="author" content="nirholas" />
<meta
name="description"
content="A 3D pole-dancing club where dancers only come out when you send an x402 USDC micro-tip. Pay $0.001 per routine, settled on-chain on Solana."
data-i18n-attr="content:club.meta_description"/>
<meta name="theme-color" content="#060606" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
<meta property="og:title" content="Pole Club · three.ws" data-i18n-attr="content:club.meta_og_title"/>
<meta
property="og:description"
content="Tip a dancer in USDC via x402 — she takes the pole, performs her routine, and returns to her stance."
data-i18n-attr="content:club.meta_og_description"/>
<meta property="og:url" content="https://three.ws/club" />
<!-- Design tokens + canonical button styles so the shared on-chain primer
modal (src/shared/onchain-primer.js → Modal) renders on-brand here.
This bespoke 3D page skips the global style.css; tokens.css is
variables-only and buttons.css targets only `.btn`, so neither touches
the club's own UI (it uses `.club-*` classes and no design tokens). -->
<link rel="stylesheet" href="/tokens.css" />
<link rel="stylesheet" href="/buttons.css" />
<style>
:root {
--bg: #060606;
--panel: rgba(16, 8, 22, 0.86);
--panel-solid: var(--bg-0);
--border: rgba(255, 80, 200, 0.18);
--border-strong: rgba(255, 80, 200, 0.34);
--text: #f4eef8;
--text-2: #c2a8d8;
--text-3: #7c5d92;
--accent: #ff3bd6;
--accent-2: #4ad6ff;
--accent-3: #ff8a3b;
--ok: var(--success);
/* Pole progress advances at constant speed between ticks. */
--club-ease-track: linear;
}
* { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: var(--bg);
color: var(--text);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
overflow: hidden;
}
#club-app {
position: fixed;
inset: 0;
display: grid;
grid-template-columns: 1fr 320px;
grid-template-rows: 56px 1fr;
grid-template-areas:
"top top"
"stage right";
}
/* ── Top bar ─────────────────────────────────────────── */
#club-top {
grid-area: top;
display: flex;
align-items: center;
gap: 12px;
padding: 0 18px;
border-bottom: 1px solid var(--border);
background:
linear-gradient(180deg, rgba(255, 80, 200, 0.06), transparent 60%),
rgba(7, 5, 11, 0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
z-index: 10;
}
#club-top .brand {
display: flex;
align-items: center;
gap: 10px;
font-weight: 700;
font-size: 14.5px;
letter-spacing: 0.01em;
color: var(--text);
}
#club-top .brand a {
color: var(--text-2);
text-decoration: none;
font-weight: 500;
font-size: 13px;
}
#club-top .brand a:hover { color: var(--text); }
/* The document's single h1 lives in the top bar so the page always has
exactly one, in the room itself, rather than on the transient loader
splash or the door dialog (both of which get torn down). It has to
read as the brand line it sits in, so the h1 defaults are cleared. */
#club-top .club-top-title {
margin: 0;
font: inherit;
color: inherit;
}
#club-top .dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: var(--accent);
box-shadow:
0 0 6px var(--accent),
0 0 14px rgba(255, 59, 214, 0.4);
animation: pulse 1.7s ease-in-out infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.55; transform: scale(0.78); }
}
#club-top .sep {
width: 1px;
height: 22px;
background: var(--border);
margin: 0 2px;
}
#club-top .tagline {
font-size: 12.5px;
color: var(--text-2);
}
#club-top .spacer { flex: 1; }
/* Narrow phones: the bar is a nowrap flex row inside an `overflow:
hidden` body, so anything that does not fit is clipped away with no
way to scroll to it. Drop the read-only labels (the tagline, the
price and rail pills, the divider), all of which the panel's "How it
works" section repeats, and make the brand the only thing that can
give up space: `flex: none` keeps the two real controls at full size
and `min-width: 0` lets the title ellipsise into whatever is left,
so the audio buttons can never be the part that gets cut. */
@media (max-width: 560px) {
#club-top { padding: 0 10px; gap: 8px; }
#club-top .tagline,
#club-top .sep,
#club-top .club-pill:not(.club-pill-toggle) { display: none; }
#club-top .brand { min-width: 0; gap: 6px; font-size: 13px; }
/* The pulsing dot is decorative (aria-hidden) and costs the width
that decides whether the page title reads "Pole Club" or "P…". */
#club-top .dot { display: none; }
#club-top .club-top-title {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#club-top .club-pill-toggle {
flex: none;
padding: 4px 8px;
gap: 4px;
font-size: 10.5px;
}
}
.club-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 11px;
border-radius: 999px;
font-size: 11.5px;
font-weight: 600;
color: var(--text);
background: rgba(255, 59, 214, 0.12);
border: 1px solid rgba(255, 59, 214, 0.32);
}
.club-pill-blue {
background: rgba(74, 214, 255, 0.10);
border-color: rgba(74, 214, 255, 0.32);
color: #cdeefe;
}
.club-pill-toggle {
appearance: none;
cursor: pointer;
font: inherit;
font-weight: 600;
color: var(--text);
background: rgba(255, 138, 59, 0.12);
border: 1px solid rgba(255, 138, 59, 0.32);
transition: filter var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.club-pill-toggle:hover { filter: brightness(1.1); }
.club-pill-toggle[aria-pressed="true"] {
background: rgba(124, 93, 146, 0.18);
border-color: rgba(124, 93, 146, 0.38);
color: var(--text-3);
}
/* 8D pill: a steady cyan glow while the orbit is live. */
.club-pill-8d[aria-pressed="true"] {
background: rgba(74, 214, 255, 0.16);
border-color: rgba(74, 214, 255, 0.5);
color: #cdeefe;
box-shadow: 0 0 10px rgba(74, 214, 255, 0.35);
}
/* ── Presence bar ─────────────────────────────────── */
.club-presence {
position: fixed;
top: 52px;
left: 50%;
transform: translateX(-50%);
z-index: 30;
display: flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
background: rgba(10, 6, 18, 0.75);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 999px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
}
.club-presence-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #34d399;
box-shadow: 0 0 6px #34d399;
animation: club-dot-pulse 2s ease-in-out infinite;
}
@keyframes club-dot-pulse { 50% { opacity: 0.5; } }
.club-reactions {
display: flex;
gap: 4px;
margin-left: 8px;
border-left: 1px solid rgba(255,255,255,0.1);
padding-left: 10px;
}
.club-react-btn {
appearance: none;
border: none;
background: rgba(255,255,255,0.06);
border-radius: 8px;
padding: 3px 7px;
font-size: 16px;
cursor: pointer;
transition: transform var(--duration-instant), background var(--duration-fast);
line-height: 1;
}
.club-react-btn:hover { background: rgba(255,255,255,0.12); transform: scale(1.15); }
.club-react-btn:active { transform: scale(0.95); }
.club-reaction-canvas {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 60vh;
z-index: 25;
pointer-events: none;
overflow: hidden;
}
.club-float-emoji {
position: absolute;
bottom: 0;
font-size: 28px;
animation: club-float-up 2.5s ease-out forwards;
pointer-events: none;
}
@keyframes club-float-up {
0% { transform: translateY(0) scale(0.5); opacity: 1; }
60% { opacity: 1; }
100% { transform: translateY(-60vh) scale(1.2); opacity: 0; }
}
/* ── Stage (3D canvas) ─────────────────────────────── */
#club-stage {
grid-area: stage;
position: relative;
background: #040404;
overflow: hidden;
}
#club-canvas {
display: block;
width: 100%;
height: 100%;
cursor: grab;
touch-action: none;
}
#club-canvas:active { cursor: grabbing; }
#club-status {
position: absolute;
left: 50%;
bottom: 18px;
transform: translateX(-50%);
background: rgba(7, 5, 11, 0.86);
border: 1px solid var(--border);
border-radius: 999px;
padding: 7px 16px;
font-size: 12px;
font-weight: 500;
color: var(--text);
pointer-events: none;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
#club-status[data-kind="error"] { border-color: rgba(248, 113, 113, 0.45); color: #ffd5d5; }
#club-status[data-kind="warn"] { border-color: rgba(251, 191, 36, 0.45); color: #ffeec2; }
#club-status[data-kind="ok"] { border-color: rgba(74, 222, 128, 0.45); color: #c7f5d6; }
#club-status[hidden] { display: none; }
#club-free-cam {
position: absolute;
left: 50%;
bottom: 56px;
transform: translateX(-50%);
appearance: none;
border: 1px solid var(--border-strong);
background: rgba(7, 5, 11, 0.86);
color: var(--text);
font: inherit;
font-size: 11.5px;
font-weight: 600;
padding: 6px 14px;
border-radius: 999px;
cursor: pointer;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
z-index: 5;
transition: filter var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
#club-free-cam:hover { filter: brightness(1.15); }
#club-free-cam:active { transform: translateX(-50%) translateY(1px); }
#club-free-cam[hidden] { display: none; }
/* ── Right panel: poles + tip feed ────────────────── */
#club-right {
grid-area: right;
border-left: 1px solid var(--border);
background: var(--panel-solid);
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0;
/* Touch handling: the canvas owns horizontal drag (orbit),
the panel scrolls vertically. `pan-y` lets the user
flick-scroll the tip feed without the orbit handler
intercepting on the panel. */
touch-action: pan-y;
}
/* Bottom-sheet drag handle — only visible on mobile (see media
query at the bottom of this stylesheet). */
#club-sheet-handle {
display: none;
}
/* Mobile-only: hide the summary's default marker; we render our
own pill. On desktop the leaderboard is always expanded and
the summary is hidden. */
.club-lb-details > summary {
list-style: none;
cursor: pointer;
}
.club-lb-details > summary::-webkit-details-marker { display: none; }
@media (min-width: 801px) {
.club-lb-details > summary { display: none; }
}
.club-section {
padding: 16px 16px 14px;
border-bottom: 1px solid var(--border);
}
.club-section h2 {
margin: 0 0 12px;
font-size: 11px;
font-weight: 700;
color: var(--text-3);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.club-intro {
font-size: 12.5px;
line-height: 1.55;
color: var(--text-2);
margin: 0 0 10px;
}
.club-intro b { color: var(--text); }
#club-poles {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.club-pole-head {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
font-weight: 600;
}
.club-pole-id { color: var(--accent); letter-spacing: 0.02em; }
.club-pole-row-right {
display: inline-flex;
align-items: center;
gap: 6px;
}
.club-pole-price {
color: var(--text-3);
font-size: 10.5px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.club-cam-btn {
appearance: none;
border: 1px solid var(--border);
background: rgba(74, 214, 255, 0.08);
border-radius: 6px;
padding: 2px 6px;
font-size: 11px;
line-height: 1;
color: var(--text);
cursor: pointer;
transition: filter var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
.club-cam-btn:hover { filter: brightness(1.2); border-color: var(--border-strong); }
.club-cam-btn:active { transform: translateY(1px); }
.club-pole-style {
display: flex;
flex-direction: column;
gap: 3px;
font-size: 10.5px;
color: var(--text-3);
letter-spacing: 0.06em;
text-transform: uppercase;
}
.club-pole-select {
appearance: none;
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--border);
border-radius: 6px;
padding: 5px 8px;
color: var(--text);
font: inherit;
font-size: 12px;
cursor: pointer;
}
.club-pole-select:focus {
outline: none;
border-color: var(--accent);
}
.club-toggle {
display: flex;
align-items: center;
gap: 8px;
margin-top: 12px;
font-size: 12px;
color: var(--text-2);
cursor: pointer;
user-select: none;
}
.club-toggle input {
accent-color: var(--accent);
cursor: pointer;
margin: 0;
}
.club-toggle:hover { color: var(--text); }
.club-hint {
margin: 8px 0 0;
font-size: 11px;
color: var(--text-3);
letter-spacing: 0.02em;
}
.club-hint b {
color: var(--text-2);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10.5px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--border);
border-radius: 4px;
padding: 1px 4px;
font-weight: 600;
}
#club-tip-feed {
display: flex;
flex-direction: column;
gap: 4px;
min-height: 32px;
}
.club-tip-amt {
color: var(--text-3);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10.5px;
text-align: right;
}
.club-feed-empty {
font-size: 12px;
color: var(--text-3);
font-style: italic;
text-align: center;
padding: 12px 0;
}
.club-feed-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.club-feed-status {
font-size: 10.5px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 2px 7px;
border-radius: 999px;
border: 1px solid var(--border);
color: var(--text-3);
background: rgba(255, 255, 255, 0.03);
}
.club-feed-status[data-kind="paused"] {
color: #ffb74a;
border-color: rgba(255, 183, 74, 0.5);
background: rgba(255, 183, 74, 0.08);
}
.club-feed-status[data-kind="error"] {
color: #ff6b81;
border-color: rgba(255, 107, 129, 0.5);
background: rgba(255, 107, 129, 0.08);
}
/* ── Leaderboard ──────────────────────────────────── */
.club-lb-tabs {
display: flex;
gap: 4px;
margin-bottom: 10px;
}
.club-lb-tab {
appearance: none;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.02);
color: var(--text-2);
font: inherit;
font-size: 11px;
font-weight: 600;
padding: 5px 10px;
border-radius: 999px;
cursor: pointer;
letter-spacing: 0.04em;
text-transform: uppercase;
transition: filter var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.club-lb-tab:hover { color: var(--text); }
.club-lb-tab.is-active {
background: rgba(255, 59, 214, 0.16);
border-color: var(--border-strong);
color: var(--text);
}
#club-lb-rows {
display: flex;
flex-direction: column;
gap: 4px;
min-height: 32px;
}
.club-lb-row.has-unpaid {
background: rgba(255, 59, 214, 0.06);
}
.club-lb-name {
color: var(--text);
font-weight: 600;
}
.club-lb-name small {
display: block;
font-size: 10.5px;
color: var(--text-3);
font-weight: 500;
letter-spacing: 0.02em;
}
.club-lb-amt {
color: var(--accent);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11.5px;
font-weight: 600;
text-align: right;
}
.club-lb-tips {
color: var(--text-3);
font-size: 10.5px;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
text-align: right;
}
.club-lb-empty {
font-size: 12px;
color: var(--text-3);
font-style: italic;
text-align: center;
padding: 12px 0;
}
.club-lb-error {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
font-style: normal;
}
.club-lb-retry {
font: inherit;
font-size: 11.5px;
font-style: normal;
color: var(--text-1, #fff);
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.16);
border-radius: 7px;
padding: 5px 14px;
min-height: 32px;
cursor: pointer;
transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
.club-lb-retry:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }
.club-lb-retry:active { transform: scale(.97); }
.club-lb-retry:focus-visible { outline: 2px solid var(--accent, #c284ff); outline-offset: 2px; }
/* ── Screen reader only text ─────────────────────────── */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* ── Skip-to-content (a11y) ─────────────────────────── */
.club-skip-link {
position: absolute;
top: -100px;
left: 8px;
z-index: 9999;
padding: 8px 16px;
background: var(--accent);
color: #fff;
font-size: 13px;
font-weight: 700;
border-radius: 0 0 8px 8px;
text-decoration: none;
transition: top var(--duration-fast) var(--ease-standard);
}
.club-skip-link:focus {
top: 0;
outline: 2px solid #fff;
outline-offset: 2px;
}
/* The stage is a programmatic focus target (see its tabindex="-1"). Show
a ring when a keyboard actually landed there, and stay quiet when the
gate moves focus in on admission. */
#club-stage:focus-visible {
outline: 2px solid var(--accent-2);
outline-offset: -3px;
}
#club-stage:focus:not(:focus-visible) { outline: none; }
/* ── Entrance fade ──────────────────────────────────── */
.club-entrance {
position: fixed;
inset: 0;
background: #000;
z-index: 9000;
pointer-events: none;
animation: clubEntranceFade 1.2s ease-out 0.3s forwards;
}
@keyframes clubEntranceFade {
0% { opacity: 1; }
100% { opacity: 0; visibility: hidden; }
}
/* ── Entrance scene canvas ──────────────────────────── */
/* The live third-person scene (src/club-entrance.js): your avatar in
the alley, then the walk through the club house. Full-screen, below
the cover card, above the pole stage. Takes pointer input for the
move/look controller; touch-action:none so drags don't scroll the
page. The module fades + removes it on arrival at the stage. */
.club-door-canvas {
position: fixed;
inset: 0;
width: 100%;
height: 100%;
display: block;
z-index: 9400;
touch-action: none;
cursor: grab;
}
.club-door-canvas:active { cursor: grabbing; }
/* ── Entrance controller UI ─────────────────────────── */
/* Sit above the scene canvas (9400), below the cover card (9500). */
/* Cinematic intro / loading screen for the walk in. Sits above the
entrance canvas, below the cover card; fades out once the alley is
ready (driven by src/club-entrance.js with real byte progress). */
.club-loader {
position: fixed;
inset: 0;
z-index: 9480;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 24px;
background: #080808;
opacity: 1;
transition: opacity var(--duration-slow) var(--ease-standard);
}
/* Once faded, the splash must leave the accessibility tree too, not just
stop taking clicks: a full-screen `opacity:0` overlay is still read by
screen readers, so its wordmark and status line would keep shadowing
the room behind it. visibility flips after the fade, never during. */
.club-loader.is-done {
opacity: 0;
pointer-events: none;
visibility: hidden;
transition: opacity var(--duration-slow) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-slow);
}
.club-loader-inner { max-width: 420px; width: 100%; }
.club-loader-kicker {
font-size: 10.5px;
font-weight: 500;
letter-spacing: 0.38em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.38);
margin-bottom: 20px;
}
.club-loader-title {
margin: 0;
font-size: clamp(52px, 13vw, 88px);
font-weight: 800;
line-height: 0.92;
letter-spacing: -0.03em;
color: #fff;
text-shadow: none;
}
.club-loader-title span {
display: block;
background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.42) 100%);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
color: transparent;
text-shadow: none;
}
.club-loader-tagline {
margin: 20px auto 32px;
max-width: 340px;
font-size: 13.5px;
line-height: 1.55;
color: rgba(255, 255, 255, 0.38);
letter-spacing: 0.01em;
}
.club-loader-track {
height: 1px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.1);
overflow: hidden;
}
.club-loader-bar {
height: 100%;
width: 4%;
border-radius: 999px;
background: rgba(255, 255, 255, 0.85);
box-shadow: none;
transition: width var(--duration-slow) var(--ease-standard);
}
.club-loader-status {
margin-top: 16px;
font-size: 11px;
letter-spacing: 0.06em;
color: rgba(255, 255, 255, 0.22);
text-transform: uppercase;
}
@media (prefers-reduced-motion: reduce) {
.club-loader, .club-loader-bar { transition: none; }
}
/* Journey progress — where you are on the walk in (Alley → Stage). */
.club-journey {
position: fixed;
left: 50%;
top: 18px;
transform: translateX(-50%) translateY(-10px);
z-index: 9445;
padding: 8px 16px;
border-radius: 999px;
background: rgba(8, 5, 12, 0.6);
border: 1px solid rgba(255, 59, 214, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.85);
pointer-events: none;
opacity: 0;
transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard);
}
.club-journey.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.club-journey-steps {
display: flex;
align-items: center;
margin: 0;
padding: 0;
list-style: none;
}
.club-journey-step {
display: flex;
align-items: center;
gap: 7px;
color: var(--text-3, #7c5d92);
font: 600 11px/1 'Inter', system-ui, sans-serif;
letter-spacing: 0.08em;
text-transform: uppercase;
transition: color var(--duration-slow) var(--ease-standard);
}
.club-journey-step:not(:first-child) { margin-left: 10px; }
.club-journey-step:not(:first-child)::before {
content: "";
width: 16px;
height: 1px;
margin-right: 10px;
background: linear-gradient(90deg, rgba(255, 59, 214, 0.12), rgba(255, 59, 214, 0.32));
}
.cj-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.14);
transition: background var(--duration-slow) var(--ease-standard), box-shadow var(--duration-slow) var(--ease-standard);
}
.club-journey-step.is-done { color: var(--text-2, #c2a8d8); }
.club-journey-step.is-done .cj-dot { background: rgba(255, 59, 214, 0.5); }
.club-journey-step.is-active { color: #fff; }
.club-journey-step.is-active .cj-dot {
background: var(--accent, #ff3bd6);
box-shadow: 0 0 12px 1px rgba(255, 59, 214, 0.9);
animation: cjPulse 1.8s ease-in-out infinite;
}
@keyframes cjPulse {
0%, 100% { box-shadow: 0 0 10px 0 rgba(255, 59, 214, 0.6); }
50% { box-shadow: 0 0 16px 3px rgba(255, 59, 214, 1); }
}
@media (max-width: 560px) {
.cj-label { display: none; }
.club-journey-step:not(:first-child) { margin-left: 7px; }
.club-journey-step:not(:first-child)::before { width: 10px; margin-right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
.club-journey-step.is-active .cj-dot { animation: none; }
.club-journey { transition: opacity var(--duration-slow) var(--ease-standard); }
}
/* Agent switcher — pick which avatar you walk in as, swappable live at
any point in the journey. Top-left, clear of the journey nav and the
minimap. Toggled with the other walk-in UI by src/club-entrance.js. */
.club-agent-switch {
position: fixed;
top: 18px;
left: 18px;
z-index: 9445;
display: flex;
align-items: center;
gap: 9px;
padding: 7px 10px 7px 13px;
border-radius: 999px;
background: rgba(8, 5, 12, 0.6);
border: 1px solid rgba(255, 59, 214, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.85);
pointer-events: none;
opacity: 0;
transform: translateY(-10px);
/* visibility, not just opacity: this pill holds a <select> and a
Browse button, and a transparent control is still a tab stop. Off
the walk-in, a keyboard user would otherwise tab into an agent
picker they cannot see. Flipped after the fade so it still plays. */
visibility: hidden;
transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-slow);
}
.club-agent-switch.is-visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
visibility: visible;
transition-delay: 0s;
}
.club-agent-label {
font: 600 11px/1 'Inter', system-ui, sans-serif;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--text-3, #7c5d92);
}
.club-agent-select {
appearance: none;
-webkit-appearance: none;
max-width: 168px;
padding: 5px 28px 5px 11px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.14);
background:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ff7fe0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 11px center,
rgba(255, 255, 255, 0.06);
color: #fff;
font: 600 12px/1 'Inter', system-ui, sans-serif;
cursor: pointer;
text-overflow: ellipsis;
transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.club-agent-select:hover { border-color: rgba(255, 59, 214, 0.5); }
.club-agent-select:focus-visible { outline: none; border-color: #ff3bd6; box-shadow: 0 0 0 3px rgba(255, 59, 214, 0.25); }
.club-agent-select:disabled { opacity: 0.55; cursor: progress; }
.club-agent-select option { background: #120a18; color: #fff; }
.club-agent-browse {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 13px 5px 11px;
border-radius: 999px;
border: 1px solid rgba(255, 59, 214, 0.35);
background: rgba(255, 59, 214, 0.12);
color: #ff9ee8;
font: 600 12px/1 'Inter', system-ui, sans-serif;
cursor: pointer;
white-space: nowrap;
transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.club-agent-browse svg { flex: none; }
.club-agent-browse:hover { border-color: rgba(255, 59, 214, 0.7); background: rgba(255, 59, 214, 0.2); color: #fff; }
.club-agent-browse:focus-visible { outline: none; border-color: #ff3bd6; box-shadow: 0 0 0 3px rgba(255, 59, 214, 0.25); }
.club-agent-browse:disabled { opacity: 0.55; cursor: progress; }
@media (max-width: 560px) {
.club-agent-switch { top: 14px; left: 12px; padding: 6px 9px 6px 11px; gap: 7px; }
.club-agent-label { display: none; }
.club-agent-select { max-width: 132px; font-size: 11px; }
.club-agent-browse { padding: 5px 11px; font-size: 11px; }
}
/* Entrance switcher: the ways into the club (/club, /stripclub), one
link each, sitting under the agent pill and sharing its visibility.
Links and data come from src/club-variant.js. */
.club-entrance-switch {
position: fixed;
top: 64px;
left: 18px;
z-index: 9445;
display: flex;
align-items: center;
gap: 9px;
padding: 5px 6px 5px 13px;
border-radius: 999px;
background: rgba(8, 5, 12, 0.6);
border: 1px solid rgba(255, 59, 214, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.85);
pointer-events: none;
opacity: 0;
transform: translateY(-10px);
visibility: hidden;
transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-slow);
}
.club-entrance-switch.is-visible {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
visibility: visible;
transition-delay: 0s;
}
.club-entrance-list { display: flex; gap: 4px; }
.club-entrance-link {
padding: 5px 11px;
border-radius: 999px;
border: 1px solid transparent;
color: var(--text-2, #c2a8d8);
font: 600 12px/1 'Inter', system-ui, sans-serif;
text-decoration: none;
white-space: nowrap;
transition: border-color var(--duration-base) var(--ease-standard), background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.club-entrance-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.club-entrance-link:active { background: rgba(255, 59, 214, 0.22); }
.club-entrance-link:focus-visible { outline: none; border-color: #ff3bd6; box-shadow: 0 0 0 3px rgba(255, 59, 214, 0.25); }
.club-entrance-link[aria-current='page'] {
color: #ff9ee8;
background: rgba(255, 59, 214, 0.12);
border-color: rgba(255, 59, 214, 0.35);
}
@media (max-width: 560px) {
.club-entrance-switch { top: 54px; left: 12px; padding: 4px 5px 4px 5px; }
.club-entrance-switch .club-agent-label { display: none; }
.club-entrance-link { padding: 5px 9px; font-size: 11px; }
}
/* Venue credit: attribution for a third-party environment whose
licence requires it (CC BY), shown only while that model is on
screen. Filled by setVenueCredit() in src/club-entrance.js. */
.club-venue-credit {
position: fixed;
left: 18px;
bottom: 14px;
z-index: 9440;
max-width: min(46vw, 420px);
color: var(--text-3, #7c5d92);
font: 500 11px/1.4 'Inter', system-ui, sans-serif;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
opacity: 0;
visibility: hidden;
transition: opacity var(--duration-slow) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-slow);
}
.club-venue-credit.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.club-venue-credit a { color: var(--text-2, #c2a8d8); text-decoration: underline; text-underline-offset: 2px; transition: color var(--duration-base) var(--ease-standard); }
.club-venue-credit a:hover { color: #fff; }
.club-venue-credit a:focus-visible { outline: 2px solid #ff3bd6; outline-offset: 2px; border-radius: 2px; }
@media (max-width: 560px) {
.club-venue-credit { left: 12px; right: 12px; bottom: 5px; max-width: none; font-size: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Minimap — top-down radar of the room you're in: your avatar, the
way you're facing, and a pulsing line to the door you're headed
for. Drawn each frame by src/club-entrance.js. */
.club-minimap {
position: fixed;
top: 70px;
right: 18px;
z-index: 9445;
width: 156px;
padding: 9px 9px 7px;
border-radius: 14px;
background: rgba(8, 5, 12, 0.6);
border: 1px solid rgba(255, 59, 214, 0.18);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.85);
pointer-events: none;
opacity: 0;
transform: translateY(-10px);
transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard);
}
.club-minimap.is-visible { opacity: 1; transform: translateY(0); }
.club-minimap-head {
display: flex;
align-items: baseline;
justify-content: space-between;
margin: 0 2px 6px;
}
.club-minimap-label {
font: 600 11px/1 'Inter', system-ui, sans-serif;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #fff;
}
.club-minimap-tag {
font: 600 9px/1 'Inter', system-ui, sans-serif;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--text-3, #7c5d92);
}
.club-minimap-canvas {
display: block;
width: 138px;
height: 110px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 560px) {
.club-minimap { top: 58px; right: 12px; width: 120px; padding: 7px 7px 5px; }
.club-minimap-canvas { width: 106px; height: 84px; }
.club-minimap-tag { display: none; }
}
/* Speech bubbles over the line outside the door (src/club-queue.js pins
each one over a head every frame). Above the scene canvas, below the
walk-in controls. The outer element is positioned by transform, so it
only ever transitions opacity; the pop lives on the body inside it. */
.club-bubbles {
position: fixed;
inset: 0;
z-index: 9410;
overflow: hidden;
pointer-events: none;
}
.club-bubble {
position: absolute;
left: 0;
top: 0;
width: max-content;
max-width: min(230px, calc(100vw - 32px));
padding-bottom: 9px; /* room for the tail */
opacity: 0;
will-change: transform, opacity;
transition: opacity var(--duration-base) var(--ease-standard);
}
.club-bubble.is-visible { opacity: 1; }
.club-bubble.is-offscreen { opacity: 0; transition: none; }
.club-bubble-body {
position: relative;
display: block;
padding: 8px 12px 9px;
border-radius: 14px;
border: 1px solid rgba(255, 255, 255, 0.16);
background: rgba(8, 6, 16, 0.86);
box-shadow: 0 8px 22px -12px rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: #fff;
font-size: 13px;
line-height: 1.35;
text-wrap: pretty;
transform: translateY(6px) scale(0.9);
transform-origin: 50% 100%;
transition: transform var(--duration-base) var(--ease-standard);
}
.club-bubble.is-visible .club-bubble-body { transform: none; }
.club-bubble-body::after {
content: '';
position: absolute;
left: 50%;
bottom: -6px;
width: 10px;
height: 10px;
margin-left: -5px;
border-right: 1px solid rgba(255, 255, 255, 0.16);
border-bottom: 1px solid rgba(255, 255, 255, 0.16);
background: rgba(8, 6, 16, 0.92);
transform: rotate(45deg);
}
/* The ones who started early: warmer border, slurred italics, a wobble. */
.club-bubble.is-drunk .club-bubble-body {
border-color: rgba(255, 138, 59, 0.5);
font-style: italic;
}
.club-bubble.is-drunk .club-bubble-body::after { border-color: rgba(255, 138, 59, 0.5); }
.club-bubble.is-drunk.is-visible .club-bubble-body { animation: club-bubble-wobble 2.6s ease-in-out infinite; }
@keyframes club-bubble-wobble {
0%, 100% { transform: rotate(-2.2deg); }
50% { transform: rotate(2.2deg) translateY(-1px); }
}
@media (max-width: 480px) {
.club-bubble { max-width: min(190px, calc(100vw - 32px)); }
.club-bubble-body { font-size: 12px; padding: 7px 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
.club-bubble, .club-bubble-body { transition: none; }
.club-bubble.is-drunk.is-visible .club-bubble-body { animation: none; }
}
.club-controls-hint {
position: fixed;
left: 50%;
bottom: 28px;
transform: translateX(-50%) translateY(8px);
z-index: 9440;
padding: 9px 16px;
border-radius: 999px;
background: rgba(8, 5, 12, 0.62);
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(8px);
color: var(--text-2, #c9c2d6);
font-size: 13px;
letter-spacing: 0.01em;
pointer-events: none;
opacity: 0;
transition: opacity var(--duration-slow) var(--ease-standard), transform var(--duration-slow) var(--ease-standard);
}
.club-controls-hint.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.club-door-prompt {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(0.92);
z-index: 9460;
display: inline-flex;
align-items: center;
gap: 10px;
padding: 13px 22px;
border-radius: 14px;
border: 1px solid rgba(255, 59, 214, 0.55);
background: rgba(14, 6, 18, 0.82);
box-shadow: 0 0 34px -6px rgba(255, 59, 214, 0.7);
color: #fff;
font-size: 16px;
font-weight: 600;
cursor: pointer;
pointer-events: none;
opacity: 0;
/* Same reason as the agent pill above: an invisible <button> is still
a tab stop, so "Enter the club" must leave the tab order until the
walk-in actually puts you at the door. */
visibility: hidden;
transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-base);
}
.club-door-prompt.is-visible {
opacity: 1;
pointer-events: auto;
visibility: visible;
transform: translate(-50%, -50%) scale(1);
animation: clubPromptBob 1.8s ease-in-out infinite;
transition-delay: 0s;
}
.club-door-prompt:hover { border-color: #ff3bd6; box-shadow: 0 0 44px -4px rgba(255, 59, 214, 0.9); }
.club-door-prompt:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.club-door-prompt kbd {
font: 600 12px/1 'Inter', system-ui, sans-serif;
padding: 3px 8px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.25);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}
@keyframes clubPromptBob {
0%, 100% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-50%, calc(-50% - 5px)) scale(1); }
}
/* Bouncer speech bubble: positioned by transform every frame, so only
opacity transitions here (a transform transition would fight the pin). */
.club-bouncer-bubble {
position: fixed;
left: 0;
top: 0;
z-index: 9510; /* above the cover card: his lines narrate the check */
width: max-content;
max-width: min(300px, calc(100vw - 24px));
padding: 10px 14px 11px;
border-radius: 14px 14px 14px 4px;
border: 1px solid rgba(74, 214, 255, 0.45);
background: rgba(8, 6, 16, 0.88);
box-shadow: 0 0 30px -8px rgba(74, 214, 255, 0.65), 0 8px 24px -12px rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
color: #fff;
font-size: 14px;
line-height: 1.4;
pointer-events: none;
opacity: 0;
visibility: hidden;
will-change: transform, opacity;
transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-base);
}
.club-bouncer-bubble.is-visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.club-bouncer-bubble.is-offscreen { opacity: 0; }
.club-bouncer-name {
display: block;
margin-bottom: 3px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: #4ad6ff;
}
.club-bouncer-line { display: block; text-wrap: pretty; }
@media (max-width: 480px) {
.club-bouncer-bubble { font-size: 13px; padding: 9px 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
.club-bouncer-bubble { transition: none; }
}
/* Touch joystick — repositions to first touch on the left of screen. */
.club-joystick {
position: fixed;
width: 124px;
height: 124px;
margin: -62px 0 0 -62px; /* centre on its left/top anchor */
border-radius: 50%;
background: radial-gradient(circle, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 70%, transparent);
border: 1px solid rgba(255, 255, 255, 0.14);
z-index: 9450;
pointer-events: none;
display: none;
opacity: 0;
transition: opacity var(--duration-base) var(--ease-standard);
left: -200px;
top: -200px;
}
.club-joystick.is-visible { display: block; }
.club-joystick.is-active { opacity: 1; }
.club-joystick-knob {
position: absolute;
left: 50%;
top: 50%;
width: 52px;
height: 52px;
margin: -26px 0 0 -26px;
border-radius: 50%;
background: rgba(255, 59, 214, 0.5);
border: 1px solid rgba(255, 255, 255, 0.4);
box-shadow: 0 0 18px -2px rgba(255, 59, 214, 0.8);
}
@media (prefers-reduced-motion: reduce) {
.club-door-prompt.is-visible { animation: none; }
}
/* The cover card stays hidden until you reach the door in the alley. */
.club-door[data-state='hidden'] {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.club-door-back {
margin-top: 14px;
background: none;
border: 0;
color: var(--text-2, #c9c2d6);
font-size: 13px;
cursor: pointer;
padding: 6px 10px;
border-radius: 8px;
transition: color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.club-door-back:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.club-door-back:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Only offer the way back out while you're deciding (queue state). */
.club-door:not([data-state='queue']) .club-door-back { display: none; }
/* ── Door / cover-charge gate ───────────────────────── */
/* The line outside the club, in the alley. Sits above the entrance
scene (which renders behind it) but below the x402 wallet modal
(z 2.1e9) so the payment flow renders on top. The background is an
accent vignette only — the live alley shows through it. */
.club-door {
position: fixed;
inset: 0;
z-index: 9500;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background:
radial-gradient(120% 90% at 50% -10%, rgba(255, 59, 214, 0.20), transparent 55%),
radial-gradient(120% 90% at 50% 110%, rgba(74, 214, 255, 0.16), transparent 55%),
radial-gradient(125% 125% at 50% 50%, transparent 32%, rgba(4, 3, 8, 0.74) 100%);
opacity: 1;
transition: opacity var(--duration-slow) var(--ease-standard), visibility var(--duration-slow) var(--ease-standard);
}
.club-door.is-open {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
.club-door-card {
width: min(440px, 100%);
border: 1px solid var(--border-strong);
border-radius: 18px;
background: rgba(10, 6, 14, 0.86);
box-shadow:
0 0 0 1px rgba(255, 59, 214, 0.08),
0 30px 80px -30px rgba(0, 0, 0, 0.9);
padding: 30px 26px 26px;
text-align: center;
position: relative;
overflow: hidden;
}
/* Velvet rope — two posts + a sagging chain across the top. */
.club-rope {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 0;
height: 30px;
margin-bottom: 14px;
}
.club-rope-post {
width: 10px;
height: 30px;
border-radius: 3px;
background: linear-gradient(180deg, #ffd86b, #b8862b);
box-shadow: 0 0 10px rgba(255, 200, 90, 0.5);
flex: none;
}
.club-rope-chain {
flex: 1;
height: 30px;
border-bottom: 3px solid var(--accent);
border-radius: 0 0 60% 60% / 0 0 100% 100%;
margin: 0 -4px;
box-shadow: 0 6px 10px -6px var(--accent);
transition: transform var(--duration-slow) var(--ease-standard), opacity var(--duration-slow) var(--ease-standard);
}
.club-door[data-state='admitted'] .club-rope-chain {
transform: translateY(-26px) scaleY(0.2);
opacity: 0;
}
.club-door-eyebrow {
font-size: 11px;
letter-spacing: 0.24em;
text-transform: uppercase;
color: var(--text-3);
margin: 0 0 6px;
}
.club-door-title {
font-size: 26px;
font-weight: 900;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent);
text-shadow: 0 0 8px var(--accent), 0 0 26px rgba(255, 59, 214, 0.4);
margin: 0 0 12px;
line-height: 1.05;
}
.club-door-copy {
font-size: 13.5px;
line-height: 1.55;
color: var(--text-2);
margin: 0 auto 18px;
max-width: 34ch;
}
.club-door-pay {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 14px 18px;
border: 0;
border-radius: 12px;
background: linear-gradient(180deg, var(--accent), #cc2bab);
color: #190311;
font-size: 15px;
font-weight: 800;
letter-spacing: 0.02em;
cursor: pointer;
transition: transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard), filter var(--duration-fast) var(--ease-standard);
box-shadow: 0 0 24px -6px var(--accent);
}
.club-door-pay:hover { filter: brightness(1.06); box-shadow: 0 0 34px -4px var(--accent); }
.club-door-pay:active { transform: translateY(1px) scale(0.99); }
.club-door-pay:disabled { opacity: 0.6; cursor: progress; filter: none; }
.club-door-pay:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.club-door-fine {
font-size: 11px;
color: var(--text-3);
margin: 12px 0 0;
line-height: 1.5;
}
.club-door-fine b { color: var(--text-2); font-weight: 600; }
.club-door-msg {
font-size: 12.5px;
margin: 12px 0 0;
color: var(--text-2);
}
.club-door-msg[data-kind='error'] { color: #ff7a9c; }
.club-door-msg[data-kind='warn'] { color: var(--accent-3); }
/* Bouncer / result states swap which block is visible. */
.club-door-state { display: none; }
.club-door[data-state='queue'] .club-door-state.is-queue,
.club-door[data-state='paying'] .club-door-state.is-queue,
.club-door[data-state='checking'] .club-door-state.is-checking,
.club-door[data-state='admitted'] .club-door-state.is-admitted,
.club-door[data-state='denied'] .club-door-state.is-denied {
display: block;
}
.club-door[data-state='paying'] .club-door-pay { opacity: 0.6; cursor: progress; }
.club-door-spinner {
width: 34px;
height: 34px;
margin: 4px auto 14px;
border-radius: 50%;
border: 3px solid rgba(255, 59, 214, 0.2);
border-top-color: var(--accent);
animation: clubDoorSpin 0.8s linear infinite;
}
@keyframes clubDoorSpin { to { transform: rotate(360deg); } }
.club-door-tier {
font-size: 13px;
color: var(--accent-2);
margin: 8px 0 0;
min-height: 1.2em;
}
.club-door-result-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.club-door-reason { font-size: 13px; color: var(--text-2); margin: 8px 0 0; }
@media (prefers-reduced-motion: reduce) {
.club-door, .club-rope-chain, .club-door-spinner, .club-door-pay { transition: none; animation: none; }
}
/* ── Neon club name ─────────────────────────────────── */
.club-neon-title {
text-align: center;
padding: 18px 0 6px;
font-size: 22px;
font-weight: 900;
letter-spacing: 0.18em;
text-transform: uppercase;
color: var(--accent);
text-shadow:
0 0 7px var(--accent),
0 0 20px rgba(255, 59, 214, 0.5),
0 0 42px rgba(255, 59, 214, 0.25);
user-select: none;
line-height: 1;
}
.club-neon-subtitle {
text-align: center;
font-size: 10px;
letter-spacing: 0.22em;
text-transform: uppercase;
color: var(--text-3);
padding-bottom: 8px;
}
/* ── Pole card redesign ────────────────────────────── */
.club-pole-card {
border: 1px solid var(--border);
background: rgba(255, 59, 214, 0.04);
border-radius: 10px;
padding: 10px 11px;
display: flex;
flex-direction: column;
gap: 6px;
transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
cursor: pointer;
position: relative;
}
.club-pole-card:hover {
border-color: var(--border-strong);
box-shadow: 0 0 12px rgba(255, 59, 214, 0.12);
}
.club-pole-card:focus-within {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.club-pole-card.is-vip-active {
border-color: var(--accent);
box-shadow: 0 0 18px rgba(255, 59, 214, 0.22);
}
.club-dancer-name {
font-size: 13px;
font-weight: 700;
color: var(--text);
line-height: 1.2;
}
.club-dancer-bio {
font-size: 10.5px;
color: var(--text-3);
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.club-pole-status {
display: inline-flex;
align-items: center;
gap: 5px;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.club-status-dot {
width: 7px;
height: 7px;
border-radius: 50%;
flex-shrink: 0;
}
.club-status-dot.is-idle {
background: var(--text-3);
}
.club-status-dot.is-performing {
background: var(--ok);
box-shadow: 0 0 6px var(--ok);
animation: statusPulse 1.4s ease-in-out infinite;
}
@keyframes statusPulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.6; transform: scale(0.75); }
}
.club-status-dot.is-backstage {
background: var(--warn);
}
.club-pole-progress {
width: 100%;
height: 3px;
border-radius: 3px;
background: rgba(255, 255, 255, 0.06);
overflow: hidden;
margin-top: 2px;
}
.club-pole-progress-bar {
height: 100%;
border-radius: 3px;
background: linear-gradient(90deg, var(--accent), var(--accent-2));
transition: width var(--duration-base) var(--club-ease-track);
will-change: width;
}
.club-pole-stats {
font-size: 10px;
color: var(--text-3);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.club-pole-stats.is-loading {
border-radius: 4px;
color: transparent;
background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
background-size: 200% 100%;
animation: clubStatsShimmer 1.2s linear infinite;
}
@keyframes clubStatsShimmer {
from { background-position: 200% 0; }
to { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
.club-pole-stats.is-loading { animation: none; }
}
.club-tip-btn {
appearance: none;
border: none;
border-radius: 8px;
padding: 8px 10px;
font: inherit;
font-size: 12px;
font-weight: 700;
color: #fff;
cursor: pointer;
background: linear-gradient(135deg, var(--accent) 0%, #ff5fda 100%);
box-shadow:
0 4px 12px rgba(255, 59, 214, 0.32),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
transition: transform var(--duration-instant) var(--ease-standard), filter var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
position: relative;
overflow: hidden;
}
.club-tip-btn::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 100%);
opacity: 0;
transition: opacity var(--duration-fast) var(--ease-standard);
pointer-events: none;
}
.club-tip-btn:hover::after { opacity: 1; }
.club-tip-btn:hover {
filter: brightness(1.08);
box-shadow:
0 6px 18px rgba(255, 59, 214, 0.4),
inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.club-tip-btn:active { transform: translateY(1px); }
.club-tip-btn:focus-visible {
outline: 2px solid var(--accent-2);
outline-offset: 2px;
}
.club-tip-btn.is-pending {
background: linear-gradient(135deg, #5a3a78 0%, #6b4d8c 100%);
box-shadow: none;
cursor: progress;
}
.club-tip-btn:disabled {
background: linear-gradient(135deg, #303030 0%, #4b3d5c 100%);
box-shadow: none;
cursor: not-allowed;
opacity: 0.7;
}
/* ── Leaderboard rank badges ──────────────────────── */
.club-lb-rank {
color: var(--text-3);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 11px;
text-align: center;
width: 22px;
height: 22px;
line-height: 22px;
border-radius: 50%;
}
.club-lb-rank.is-gold {
background: linear-gradient(135deg, #ffd700, #ffaa00);
color: #1a0e00;
font-weight: 800;
box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}
.club-lb-rank.is-silver {
background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
color: var(--bg-1);
font-weight: 800;
box-shadow: 0 0 6px rgba(200, 200, 200, 0.25);
}
.club-lb-rank.is-bronze {
background: linear-gradient(135deg, #cd7f32, #a0622e);
color: #1a0e00;
font-weight: 800;
box-shadow: 0 0 6px rgba(205, 127, 50, 0.25);
}
.club-lb-row {
display: grid;
grid-template-columns: 28px 1fr auto auto;
gap: 8px;
align-items: center;
font-size: 12px;
padding: 7px 8px;
border-radius: 7px;
background: rgba(255, 255, 255, 0.02);
transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.club-lb-row.is-entering {
animation: lbRowEnter 0.35s ease forwards;
}
@keyframes lbRowEnter {
from { transform: translateX(-8px); opacity: 0; }
to { transform: none; opacity: 1; }
}
.club-lb-skeleton {
height: 36px;
border-radius: 7px;
background: linear-gradient(90deg,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.06) 50%,
rgba(255, 255, 255, 0.03) 100%);
background-size: 200% 100%;
animation: lbSkeleton 1.5s ease-in-out infinite;
}
@keyframes lbSkeleton {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* ── Tip feed enhancements ───────────────────────── */
.club-tip-row {
display: grid;
grid-template-columns: 54px 1fr auto;
gap: 6px;
align-items: center;
font-size: 11.5px;
padding: 6px 8px;
border-radius: 7px;
background: rgba(255, 255, 255, 0.02);
animation: tipSlideIn 0.4s cubic-bezier(0.22, 0.68, 0.35, 1.0);
will-change: transform, opacity;
}
@keyframes tipSlideIn {
from { transform: translateX(30px); opacity: 0; }
to { transform: none; opacity: 1; }
}
.club-tip-row.is-fading {
animation: tipFadeOut 0.3s ease forwards;
}
@keyframes tipFadeOut {
from { opacity: 1; max-height: 40px; }
to { opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}
.club-tip-time {
font-size: 10px;
color: var(--text-3);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.club-tip-who {
color: var(--accent-2);
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10.5px;
}
.club-tip-mid { color: var(--text); font-size: 11px; }
/* A tip paid from a platform wallet (x402 ring / roster agent). */
.club-tip-agent {
display: inline-block;
margin-left: 5px;
padding: 0 5px;
border-radius: 4px;
border: 1px solid rgba(180, 150, 255, 0.45);
color: #c9b6ff;
font-size: 9px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
vertical-align: 1px;
}
/* ── Tip tags over the dancers ───────────────────── */
.club-tags {
position: fixed;
z-index: 9;
overflow: hidden;
pointer-events: none;
}
.club-tags.is-hidden { display: none; }
.club-tag {
--tag-accent: var(--accent);
position: absolute;
left: 0;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding-bottom: 9px; /* room for the pointer nub */
pointer-events: auto;
opacity: 1;
visibility: visible;
will-change: transform, opacity;
transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-instant);
}
.club-tag.is-offscreen {
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity var(--duration-base) var(--ease-standard), visibility var(--duration-instant) var(--ease-standard) var(--duration-base);
}
/* Pointer nub under the tag, aimed at her head. */
.club-tag::after {
content: '';
position: absolute;
bottom: 3px;
left: 50%;
width: 8px;
height: 8px;
transform: translateX(-50%) rotate(45deg);
background: rgba(8, 6, 16, 0.86);
border-right: 1px solid color-mix(in srgb, var(--tag-accent) 55%, transparent);
border-bottom: 1px solid color-mix(in srgb, var(--tag-accent) 55%, transparent);
}
.club-tag-bar {
display: flex;
align-items: center;
gap: 4px;
padding: 4px;
border-radius: 999px;
border: 1px solid color-mix(in srgb, var(--tag-accent) 45%, transparent);
background: rgba(8, 6, 16, 0.86);
box-shadow: 0 0 22px -8px var(--tag-accent), 0 8px 20px -12px rgba(0, 0, 0, 0.9);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}
.club-tag.is-hover .club-tag-bar,
.club-tag.is-open .club-tag-bar {
border-color: var(--tag-accent);
box-shadow: 0 0 30px -6px var(--tag-accent), 0 8px 20px -12px rgba(0, 0, 0, 0.9);
}
.club-tag-name {
display: inline-flex;
align-items: baseline;
gap: 6px;
min-height: 30px;
padding: 0 8px 0 10px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--text);
font: inherit;
cursor: pointer;
white-space: nowrap;
align-items: center;
transition: background var(--duration-fast) var(--ease-standard);
}
.club-tag-name:hover { background: rgba(255, 255, 255, 0.06); }
.club-tag-name:active { background: rgba(255, 255, 255, 0.1); }
.club-tag-who { font-size: 12.5px; font-weight: 700; }
.club-tag-style {
font-size: 10px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--tag-accent);
}
.club-tag-caret {
width: 10px;
height: 6px;
color: var(--text-2);
transition: transform var(--duration-fast) var(--ease-standard);
}
.club-tag.is-open .club-tag-caret { transform: rotate(180deg); }
.club-tag-tip {
min-height: 30px;
padding: 0 12px;
border: 0;
border-radius: 999px;
background: var(--tag-accent);
color: #0a0610;
font: inherit;
font-size: 12px;
font-weight: 800;
white-space: nowrap;
cursor: pointer;
transition: filter var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}
.club-tag-tip:hover:not(:disabled) { filter: brightness(1.12); }
.club-tag-tip:active:not(:disabled) { transform: translateY(1px); }
.club-tag-tip:disabled { opacity: 0.55; cursor: default; }
.club-tag-tip.is-pending { opacity: 0.75; }
.club-tag-name:focus-visible,
.club-tag-tip:focus-visible,
.club-tag-chip:focus-visible {
outline: 2px solid #fff;
outline-offset: 2px;
}
.club-tag-live {
display: none;
padding: 3px 9px;
border-radius: 999px;
background: rgba(8, 6, 16, 0.8);
color: var(--text);
font-size: 10.5px;
font-weight: 600;
white-space: nowrap;
}
.club-tag.is-live .club-tag-live { display: inline-flex; align-items: center; gap: 6px; }
.club-tag.is-live .club-tag-live::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--tag-accent);
box-shadow: 0 0 8px var(--tag-accent);
animation: clubTagPulse 1.1s ease-in-out infinite;
}
@keyframes clubTagPulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
.club-tag-tray {
order: -1; /* opens above the bar, away from her head */
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 4px;
width: 244px;
padding: 6px;
border-radius: 14px;
border: 1px solid color-mix(in srgb, var(--tag-accent) 45%, transparent);
background: rgba(8, 6, 16, 0.92);
box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
animation: clubTrayIn var(--duration-base) var(--ease-standard);
}
.club-tag-tray[hidden] { display: none; }
@keyframes clubTrayIn {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: none; }
}
.club-tag-chip {
min-height: 30px;
padding: 0 8px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 9px;
background: rgba(255, 255, 255, 0.03);
color: var(--text-2);
font: inherit;
font-size: 11.5px;
font-weight: 600;
text-align: left;
cursor: pointer;
transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}
.club-tag-chip:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.club-tag-chip:active { background: rgba(255, 255, 255, 0.12); }
.club-tag-chip[aria-pressed='true'] {
border-color: var(--tag-accent);
color: var(--text);
background: color-mix(in srgb, var(--tag-accent) 18%, transparent);
}
@media (max-width: 800px) {
.club-tag-who { font-size: 11.5px; }
.club-tag-style { display: none; }
.club-tag-tip { padding: 0 10px; font-size: 11px; }
.club-tag-tray { width: 212px; }
}
@media (prefers-reduced-motion: reduce) {
.club-tag, .club-tag.is-offscreen { transition: none; }
.club-tag-tray { animation: none; }
.club-tag.is-live .club-tag-live::before { animation: none; }
}
/* ── Status bar (bottom) ─────────────────────────── */
.club-status-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 28px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 14px;
background: rgba(7, 5, 11, 0.88);
border-top: 1px solid rgba(255, 80, 200, 0.1);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
font-size: 10.5px;
color: var(--text-3);
z-index: 8;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.club-status-bar-left,
.club-status-bar-right {
display: flex;
align-items: center;
gap: 12px;
}
.club-status-bar .club-conn-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--ok);
box-shadow: 0 0 4px var(--ok);
}
.club-status-bar .club-conn-dot.is-disconnected {
background: var(--danger);
box-shadow: 0 0 4px var(--danger);
}
/* ── Focus indicators (a11y) ─────────────────────── */
.club-cam-btn:focus-visible,
.club-pole-select:focus-visible,
.club-lb-tab:focus-visible,
.club-react-btn:focus-visible,
#club-audio-toggle:focus-visible,
#club-spatial-toggle:focus-visible,
#club-free-cam:focus-visible,
#club-sheet-handle:focus-visible {
outline: 2px solid var(--accent-2);
outline-offset: 2px;
}
/* ── Spotlight flash for tipped pole ─────────────── */
.club-pole-card.is-flash {
animation: poleFlash 0.6s ease;
}
@keyframes poleFlash {
0%, 100% { box-shadow: none; }
50% { box-shadow: 0 0 24px rgba(255, 59, 214, 0.5), inset 0 0 12px rgba(255, 59, 214, 0.15); }
}
/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 800px) {
#club-app {
/* minmax(0, …), not a bare 1fr: a bare `1fr` keeps an `auto`
minimum, so the top bar's min-content width dragged the grid
wider than the phone. body is `overflow: hidden`, so whatever
spilled was clipped away with no way to scroll to it, and on a
320px screen that silently ate the 8D audio button. */
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 52px 1fr;
grid-template-areas:
"top"
"stage";
}
/* Hide status bar on mobile — the sheet owns the bottom */
.club-status-bar {
display: none;
}
/* Neon title: smaller on mobile */
.club-neon-title {
font-size: 16px;
padding: 12px 0 4px;
}
.club-neon-subtitle {
font-size: 9px;
padding-bottom: 6px;
}
/* Pole cards: horizontal scroll strip */
#club-poles {
display: flex;
gap: 8px;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
scroll-snap-type: x mandatory;
padding-bottom: 6px;
}
#club-poles::-webkit-scrollbar { display: none; }
.club-pole-card {
flex: 0 0 200px;
scroll-snap-align: start;
}
/* Bottom-sheet: the panel is fixed to the viewport bottom
instead of stacking in the grid, so the canvas can fill
the screen. Two heights — peeking (collapsed) and full
(expanded). Toggled via the .is-expanded class, set by
tapping the drag handle. CSS transform animates the
slide without a JS gesture library. */
#club-right {
position: fixed;
left: 0;
right: 0;
bottom: 0;
grid-area: unset;
border-left: none;
border-top: 1px solid var(--border-strong);
border-top-left-radius: 16px;
border-top-right-radius: 16px;
/* dvh (dynamic viewport height) tracks the real visible
area on iOS Safari — vh alone uses the largest possible
viewport, so the sheet pops up by ~80px when the URL
bar collapses on scroll. vh fallback for very old
browsers that don't recognise dvh. */
max-height: 85vh;
max-height: 85dvh;
height: 85vh;
height: 85dvh;
/* Slide the bulk of the panel below the fold; only the
handle + the "Poles" section peek above. The panel grows
by env(safe-area-inset-bottom) (padding-bottom below), so
the collapsed offset must subtract that same inset —
otherwise on a notched phone the home-indicator gutter
shoves the peeking tip buttons under the rounded corner.
240px keeps the Poles section visible above the fold. */
--club-sheet-peek: 240px;
transform: translateY(calc(85dvh - var(--club-sheet-peek) + env(safe-area-inset-bottom, 0px)));
transition: transform var(--duration-base) var(--ease-standard);
box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.55);
z-index: 12;
padding-bottom: env(safe-area-inset-bottom, 0px);
}
#club-right.is-expanded {
transform: translateY(0);
}
#club-sheet-handle {
display: flex;
align-items: center;
justify-content: center;
position: sticky;
top: 0;
left: 0;
right: 0;
padding: 10px 0 8px;
background: var(--panel-solid);
border-top-left-radius: 16px;
border-top-right-radius: 16px;
/* 44pt min touch target per Apple HIG / Material spec. */
min-height: 44px;
cursor: pointer;
appearance: none;
border: none;
width: 100%;
font: inherit;
color: var(--text-3);
z-index: 1;
}
#club-sheet-handle::before {
content: '';
width: 36px;
height: 4px;
border-radius: 999px;
background: var(--text-3);
opacity: 0.5;
}
/* When the sheet is collapsed, the leaderboard + tip-feed
sections sit below the fold; we still ship them in DOM
order so tapping the handle reveals everything. The
`<details>` wrapper around the leaderboard means the
user can also keep it tucked away when expanded. */
/* Touch-target sizing on small screens — 44x44 minimum. */
.club-cam-btn {
min-width: 44px;
min-height: 44px;
padding: 6px 8px;
font-size: 14px;
}
.club-tip-btn {
min-height: 44px;
font-size: 13px;
}
.club-pole-select {
min-height: 44px;
font-size: 14px;
}
/* Leaderboard window pills are interactive — give them the full
44px touch target even though their label text is small. */
.club-lb-tab {
min-height: 44px;
padding: 8px 14px;
}
/* The canvas owns all pointer gestures (orbit + pinch). */
#club-canvas { touch-action: none; }
/* Mobile-only summary styling — a compact pill that mirrors
the existing section header but signals tap-to-expand. */
.club-lb-details > summary {
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 0 12px;
font-size: 11px;
font-weight: 700;
color: var(--text-3);
letter-spacing: 0.1em;
text-transform: uppercase;
min-height: 44px;
}
.club-lb-retry { min-height: 44px; }
.club-lb-details > summary::after {
content: '▾';
font-size: 14px;
transition: transform var(--duration-fast) var(--ease-standard);
}
.club-lb-details[open] > summary::after {
transform: rotate(180deg);
}
/* The inner <h2> duplicates the <summary> label on mobile;
hide it so users only see one "Leaderboard" heading. */
.club-lb-details > h2 {
display: none;
}
}
/* ── Avatar picker (per-pole, /play-style visual gallery) ───────── */
.club-avatar-btn {
display: flex;
align-items: center;
gap: 9px;
width: 100%;
padding: 6px;
border: 1px solid var(--border);
border-radius: 9px;
background: rgba(255, 255, 255, 0.02);
color: var(--text);
font: inherit;
cursor: pointer;
text-align: left;
transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), transform var(--duration-instant) var(--ease-standard);
}
.club-avatar-btn:hover {
border-color: var(--border-strong);
background: rgba(255, 59, 214, 0.06);
}
.club-avatar-btn:active { transform: translateY(1px); }
.club-avatar-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-avatar-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.club-avatar-btn.needs-reselect {
border-color: rgba(245, 166, 35, 0.55);
background: rgba(245, 166, 35, 0.08);
}
.club-avatar-btn.needs-reselect .club-avatar-change { color: #f5a623; }
.club-avatar-chip {
flex: none;
width: 34px;
height: 34px;
border-radius: 8px;
overflow: hidden;
background: radial-gradient(120% 100% at 50% 0%, #2a1330, #120814);
display: grid;
place-items: center;
}
.club-avatar-chip img { width: 100%; height: 100%; object-fit: cover; }
.club-avatar-chip span {
font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
color: var(--text-3);
}
.club-avatar-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.club-avatar-cur {
font-size: 12px;
font-weight: 600;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.club-avatar-change {
font-size: 10px;
font-weight: 600;
letter-spacing: 0.05em;
text-transform: uppercase;
color: var(--text-3);
}
.club-avatar-btn:hover .club-avatar-change { color: var(--accent); }
.club-picker { position: fixed; inset: 0; z-index: 9600; }
.club-picker[hidden] { display: none; }
.club-pick-backdrop {
position: absolute;
inset: 0;
background: rgba(4, 3, 8, 0.74);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: clubPickFade 0.22s ease;
}
@keyframes clubPickFade { from { opacity: 0; } }
.club-pick-modal {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: min(720px, calc(100vw - 28px));
max-height: min(82vh, 660px);
display: flex;
flex-direction: column;
background: var(--panel-solid);
border: 1px solid var(--border-strong);
border-radius: 18px;
box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 59, 214, 0.08);
overflow: hidden;
animation: clubPickRise 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes clubPickRise { from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); } }
.club-pick-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 17px 20px;
border-bottom: 1px solid var(--border);
}
.club-pick-head h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.club-pick-head p { margin: 3px 0 0; font-size: 12.5px; color: var(--text-2); }
.club-pick-x {
flex: none;
width: 34px;
height: 34px;
border-radius: 10px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.03);
color: var(--text-2);
display: grid;
place-items: center;
cursor: pointer;
transition: border-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}
.club-pick-x:hover { border-color: var(--accent); color: var(--text); }
.club-pick-x:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-pick-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
gap: 12px;
padding: 18px 20px;
overflow: auto;
}
.club-pick-sep, .club-pick-loading {
grid-column: 1 / -1;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--text-3);
padding: 6px 2px 2px;
}
.club-pick-loading { text-align: center; padding: 16px; }
.club-pick-tile {
position: relative;
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px;
border-radius: 13px;
border: 1px solid var(--border);
background: rgba(255, 255, 255, 0.02);
color: var(--text);
cursor: pointer;
transition: transform var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);
}
.club-pick-tile:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(255, 59, 214, 0.06); }
.club-pick-tile:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.club-pick-tile.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(255, 59, 214, 0.3); }
.club-pick-tile.busy { opacity: 0.6; pointer-events: none; }
.club-pick-tile.failed { border-color: var(--danger); }
.club-pick-thumb {
aspect-ratio: 1;
border-radius: 9px;
overflow: hidden;
background: radial-gradient(120% 100% at 50% 0%, #2a1330, #120814);
display: grid;
place-items: center;
}
.club-pick-thumb img { width: 100%; height: 100%; object-fit: cover; }
.club-pick-mono { font: 700 26px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-3); }
.club-pick-name { font-size: 12.5px; font-weight: 600; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-pick-badge {
position: absolute;
top: 8px;
right: 8px;
font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
text-transform: uppercase;
letter-spacing: 0.06em;
padding: 3px 6px;
border-radius: 6px;
background: rgba(255, 59, 214, 0.18);
color: var(--accent);
}
.club-pick-spinner {
position: absolute;
inset: 0;
display: grid;
place-items: center;
}
.club-pick-spinner::after {
content: '';
width: 22px;
height: 22px;
border-radius: 50%;
border: 2px solid rgba(255, 59, 214, 0.25);
border-top-color: var(--accent);
animation: clubDoorSpin 0.8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.club-pick-backdrop, .club-pick-modal, .club-pick-tile { animation: none; transition: none; }
}
</style>
<link rel="stylesheet" href="/mobile.css" />
<link rel="canonical" href="https://three.ws/club">
<meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Pole+Club&d=A+3D+club+where+dancers+only+perform+when+you+send+a+micro-tip.+Pay+%240.001+per+routine%2C+settled+on-chain+via+x402+on+Solana.&p=%2Fclub">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Pole Club · three.ws" data-i18n-attr="content:club.meta_twitter_title">
<meta name="twitter:description" content="A 3D club where dancers only perform when you send a micro-tip. Pay $0.001 per routine, settled on-chain via x402 on Solana." data-i18n-attr="content:club.meta_twitter_description">
<meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Pole+Club&d=A+3D+club+where+dancers+only+perform+when+you+send+a+micro-tip.+Pay+%240.001+per+routine%2C+settled+on-chain+via+x402+on+Solana.&p=%2Fclub">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Pole Club","description":"A 3D club where dancers only perform when you send a micro-tip. Pay $0.001 per routine, settled on-chain via x402 on Solana.","url":"https://three.ws/club","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
<meta property="og:locale" content="en_US">
<meta property="og:image:alt" content="Pole Club — three.ws">
<meta name="twitter:site" content="@trythreews">
</head>
<body>
<!-- Skip-to-content link for keyboard/screen-reader users -->
<a href="#club-stage" class="club-skip-link" id="club-skip-link" data-i18n="club.skip_to_stage">Skip to stage</a>
<!-- Entrance overlay — fades out over 1s on load -->
<div id="club-entrance" class="club-entrance" aria-hidden="true"></div>
<!-- Entrance scene — live third-person scene (src/club-entrance.js): your
avatar in the alley, then the walk through the club house after you
pay. Sits behind the cover card, above the pole stage. -->
<canvas id="club-door-canvas" class="club-door-canvas" aria-hidden="true"></canvas>
<!-- What the line outside the door is saying (src/club-queue.js). Ambient
scenery like the canvas under it, so it stays out of the a11y tree. -->
<div id="club-bubbles" class="club-bubbles" aria-hidden="true"></div>
<!-- Cinematic intro + real load progress while the alley streams in. -->
<div id="club-loader" class="club-loader" role="status" aria-live="polite">
<div class="club-loader-inner">
<div class="club-loader-kicker">three.ws</div>
<p class="club-loader-title" data-i18n-html="club.poleclub">Pole<span>Club</span></p>
<p class="club-loader-tagline" data-i18n="club.step_into_the_alley_and_walk_it">Step into the alley and walk it in. Tip a dancer and she takes the pole.</p>
<div class="club-loader-track"><div id="club-loader-bar" class="club-loader-bar"></div></div>
<div id="club-loader-status" class="club-loader-status">Loading the night…</div>
</div>
</div>
<!-- Controller UI for the walk in (toggled by src/club-entrance.js). -->
<nav id="club-journey" class="club-journey" aria-label="Walk-in progress">
<ol class="club-journey-steps">
<li class="club-journey-step" data-step="0" data-i18n-html="club.alley"><span class="cj-dot"></span><span class="cj-label">Alley</span></li>
<li class="club-journey-step" data-step="1" data-i18n-html="club.gallery"><span class="cj-dot"></span><span class="cj-label">Gallery</span></li>
<li class="club-journey-step" data-step="2" data-i18n-html="club.clubhouse"><span class="cj-dot"></span><span class="cj-label">Clubhouse</span></li>
<li class="club-journey-step" data-step="3" data-i18n-html="club.stage"><span class="cj-dot"></span><span class="cj-label">Stage</span></li>
</ol>
</nav>
<div id="club-agent-switch" class="club-agent-switch">
<span class="club-agent-label" data-i18n="club.agent">Agent</span>
<select id="club-agent-select" class="club-agent-select" aria-label="Choose which agent you walk as">
<option value="" data-i18n="club.loading">Loading…</option>
</select>
<button id="club-agent-browse" type="button" class="club-agent-browse" aria-label="Browse all 3D agents" data-i18n-attr="aria-label:club.browse_all_3d_agents_arialabel">
<svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="2" width="5" height="5" rx="1"/><rect x="9" y="2" width="5" height="5" rx="1"/><rect x="2" y="9" width="5" height="5" rx="1"/><rect x="9" y="9" width="5" height="5" rx="1"/></svg>
Browse
</button>
</div>
<nav id="club-entrance-switch" class="club-entrance-switch" aria-label="Choose an entrance">
<span class="club-agent-label">Entrance</span>
<div class="club-entrance-list"></div>
</nav>
<p id="club-venue-credit" class="club-venue-credit"></p>
<div id="club-minimap" class="club-minimap" aria-hidden="true">
<div class="club-minimap-head">
<span id="club-minimap-label" class="club-minimap-label" data-i18n="club.alley_2">Alley</span>
<span class="club-minimap-tag" data-i18n="club.you_door">You · Door</span>
</div>
<canvas id="club-minimap-canvas" class="club-minimap-canvas"></canvas>
</div>
<div id="club-controls-hint" class="club-controls-hint" role="status" aria-live="polite"></div>
<button id="club-door-prompt" type="button" class="club-door-prompt" aria-label="Enter the club" data-i18n-html="club.enter_the_club_e" data-i18n-attr="aria-label:club.enter_the_club_arialabel">
Enter the club <kbd>E</kbd>
</button>
<!-- The bouncer's speech bubble (src/club-bouncer.js pins it over his head
in the alley). A live region, so his lines are announced too. -->
<div id="club-bouncer-bubble" class="club-bouncer-bubble" role="status" aria-live="polite">
<span class="club-bouncer-name">Bouncer</span>
<span class="club-bouncer-line"></span>
</div>
<div id="club-joystick" class="club-joystick" aria-hidden="true">
<div id="club-joystick-knob" class="club-joystick-knob"></div>
</div>
<!-- Door / cover-charge gate — the line outside the club, in the alley.
The 3D room boots behind this overlay; src/club-gate.js drops the
rope once the x402 cover settles and the on-chain bouncer admits
the wallet, handing off to the walk-through. -->
<div
id="club-door"
class="club-door"
data-state="hidden"
role="dialog"
aria-modal="true"
aria-labelledby="club-door-title"
>
<div class="club-door-card">
<div class="club-rope" aria-hidden="true">
<span class="club-rope-post"></span>
<span class="club-rope-chain"></span>
<span class="club-rope-post"></span>
</div>
<!-- QUEUE: pay the cover -->
<div class="club-door-state is-queue">
<p class="club-door-eyebrow" data-i18n="club.at_the_door">At the door</p>
<h2 id="club-door-title" class="club-door-title" data-i18n="club.pole_club">Pole Club</h2>
<p class="club-door-copy" data-i18n-html="club.there_s_a_cover_tonight_pay_0">
There's a cover tonight. Pay <b>$0.01 USDC</b> — the bouncer checks
your wallet on-chain, and if you're on the list, the rope drops and
you walk inside.
</p>
<button type="button" id="club-door-pay" class="club-door-pay" data-i18n="club.pay_cover_0_01_to_enter">
Pay cover · $0.01 to enter
</button>
<p class="club-door-msg" id="club-door-msg" hidden></p>
<p class="club-door-fine" data-i18n-html="club.settled_on_chain_via_x402_on_solana">
Settled on-chain via <b>x402</b> on Solana. One cover gets
you in for the night.
</p>
<button type="button" id="club-door-back" class="club-door-back" data-i18n="club.back_to_the_alley">← Back to the alley</button>
</div>
<!-- CHECKING: bouncer reads the list -->
<div class="club-door-state is-checking">
<div class="club-door-spinner" aria-hidden="true"></div>
<p class="club-door-eyebrow" data-i18n="club.at_the_door_2">At the door</p>
<h2 class="club-door-title" data-i18n="club.checking_the_list">Checking the list…</h2>
<p class="club-door-copy" data-i18n="club.verifying_your_wallet_on_chain">Verifying your wallet on-chain.</p>
</div>
<!-- ADMITTED -->
<div class="club-door-state is-admitted" role="status" aria-live="polite">
<div class="club-door-result-icon" aria-hidden="true">🎟️</div>
<h2 class="club-door-title" data-i18n="club.you_re_in">You're in</h2>
<p class="club-door-tier" id="club-door-tier"></p>
</div>
<!-- DENIED -->
<div class="club-door-state is-denied" role="status" aria-live="polite">
<div class="club-door-result-icon" aria-hidden="true">🚫</div>
<h2 class="club-door-title" data-i18n="club.not_tonight">Not tonight</h2>
<p class="club-door-reason" id="club-door-reason" data-i18n="club.not_on_the_list_tonight">Not on the list tonight.</p>
</div>
</div>
</div>
<div id="club-app">
<!-- TOP BAR -->
<header id="club-top">
<div class="brand">
<a href="/" title="three.ws home" data-i18n="club.three_ws" data-i18n-attr="title:club.three_ws_home_title">three.ws</a>
<span>/</span>
<span class="dot" aria-hidden="true"></span>
<h1 class="club-top-title" data-i18n="club.pole_club_2">Pole Club</h1>
</div>
<span class="sep"></span>
<span class="tagline" data-i18n="club.tip_in_usdc_she_dances">tip in USDC · she dances</span>
<span class="spacer"></span>
<span class="club-pill" data-i18n="club.0_001_dance">$0.001 / dance</span>
<span class="club-pill club-pill-blue" data-i18n="club.x402_solana">x402 · Solana</span>
<button
id="club-audio-toggle"
type="button"
class="club-pill club-pill-toggle"
aria-pressed="false"
title="Toggle club audio (mute)"
data-i18n="club.audio_on" data-i18n-attr="title:club.toggle_club_audio_mute_title">🔊 Audio on</button>
<button
id="club-spatial-toggle"
type="button"
class="club-pill club-pill-toggle club-pill-8d"
aria-pressed="false"
title="8D audio — orbits the sound around your head (headphones recommended)"
data-i18n="club.8d_off" data-i18n-attr="title:club.8d_audio_orbits_the_sound_ar_title">🎧 8D off</button>
</header>
<!-- STAGE. tabindex="-1" makes it a real focus target: the skip link at
the top of the body and src/club-gate.js (which focuses the stage the
moment the velvet rope drops) both call focus() on it, and on a plain
<main> that call is a silent no-op that strands keyboard focus. -->
<main id="club-stage" tabindex="-1">
<canvas id="club-canvas"></canvas>
<div id="club-status" role="status" aria-live="polite" hidden>Loading…</div>
</main>
<!-- Viewer presence bar -->
<div id="club-presence" class="club-presence">
<span class="club-presence-dot"></span>
<span id="club-viewer-count">1</span> watching
<div class="club-reactions" id="club-reactions">
<button type="button" class="club-react-btn" data-react="fire" title="Fire" data-i18n-attr="title:club.fire_title">🔥</button>
<button type="button" class="club-react-btn" data-react="heart" title="Love" data-i18n-attr="title:club.love_title">❤️</button>
<button type="button" class="club-react-btn" data-react="money" title="Money" data-i18n-attr="title:club.money_title">💰</button>
<button type="button" class="club-react-btn" data-react="clap" title="Clap" data-i18n-attr="title:club.clap_title">👏</button>
</div>
</div>
<div id="club-reaction-canvas" class="club-reaction-canvas" aria-hidden="true"></div>
<!-- Tip tags: one over each dancer, pinned by src/club-tip-hud.js. The
layer is laid over the canvas box and clips to it. -->
<div id="club-tags" class="club-tags is-hidden" role="group" aria-label="Dancers on stage"></div>
<!-- RIGHT PANEL -->
<aside id="club-right" role="complementary" aria-label="Club controls and information">
<button
id="club-sheet-handle"
type="button"
aria-label="Expand or collapse panel"
aria-controls="club-right"
aria-expanded="false"
data-i18n-attr="aria-label:club.expand_or_collapse_panel_arialabel"></button>
<div class="club-neon-title" aria-hidden="true">Pole Club</div>
<div class="club-neon-subtitle" aria-hidden="true">three.ws</div>
<section class="club-section" aria-label="How it works">
<h2 id="club-howto-heading" data-i18n="club.how_it_works">How it works</h2>
<p class="club-intro" data-i18n-html="club.three_poles_three_dancers_waiting_at_them">
Three poles, three dancers waiting at them. Pick a pole, pick a style, hit
<b>Tip</b>. Your wallet signs a <b>$0.001 USDC</b> x402 payment, the
server settles it on-chain, and she takes the pole and performs her
routine. No tip, no dance.
</p>
</section>
<section class="club-section" aria-label="Pole stations">
<h2 id="club-poles-heading" data-i18n="club.poles">Poles</h2>
<div id="club-poles" role="list" aria-labelledby="club-poles-heading"></div>
<label class="club-toggle" for="club-auto-follow">
<input type="checkbox" id="club-auto-follow" aria-describedby="club-auto-follow-desc" />
<span id="club-auto-follow-desc" data-i18n="club.auto_follow_tips_orbit_cam_during_dance">Auto-follow tips (orbit cam during dance)</span>
</label>
<label class="club-toggle" for="club-power-saver">
<input type="checkbox" id="club-power-saver" aria-describedby="club-power-saver-desc" />
<span id="club-power-saver-desc" data-i18n="club.power_saver_30fps_lighter_effects_cooler_qui">Power saver (30fps, lighter effects — cooler, quieter machine)</span>
</label>
<p class="club-hint" data-i18n-html="club.shortcuts_1_3_vip_0_overhead_esc">
Shortcuts: <b>1</b>-<b>3</b> VIP <b>0</b> overhead <b>Esc</b> free
</p>
</section>
<section class="club-section" aria-label="Leaderboard">
<details class="club-lb-details" id="club-lb-details">
<summary data-i18n="club.leaderboard">Leaderboard</summary>
<h2 id="club-lb-heading" data-i18n="club.leaderboard_2">Leaderboard</h2>
<div class="club-lb-tabs" role="tablist" aria-label="Leaderboard time window">
<button type="button" class="club-lb-tab is-active" data-window="day" role="tab" aria-selected="true" aria-controls="club-lb-rows" data-i18n="club.24h">24h</button>
<button type="button" class="club-lb-tab" data-window="hour" role="tab" aria-selected="false" aria-controls="club-lb-rows" data-i18n="club.1h">1h</button>
<button type="button" class="club-lb-tab" data-window="all" role="tab" aria-selected="false" aria-controls="club-lb-rows" data-i18n="club.all">All</button>
</div>
<div id="club-lb-rows" role="tabpanel" aria-labelledby="club-lb-heading">
<div class="club-lb-skeleton" aria-label="Loading leaderboard"></div>
<div class="club-lb-skeleton" style="opacity:0.7"></div>
<div class="club-lb-skeleton" style="opacity:0.4"></div>
</div>
</details>
</section>
<section class="club-section" aria-label="Live tip feed">
<div class="club-feed-head">
<h2 id="club-feed-heading" data-i18n="club.live_tips">Live tips</h2>
<span id="club-feed-status" class="club-feed-status" hidden></span>
</div>
<div id="club-tip-feed" role="log" aria-live="polite" aria-labelledby="club-feed-heading">
<div class="club-feed-empty">No tips yet. Be the first to tip a dancer!</div>
</div>
</section>
</aside>
<!-- Status bar -->
<div class="club-status-bar" role="status" aria-label="Club status">
<div class="club-status-bar-left">
<span class="club-conn-dot" id="club-conn-dot" aria-hidden="true"></span>
<span id="club-conn-label" data-i18n="club.connected">Connected</span>
</div>
<div class="club-status-bar-right">
<span id="club-clock"></span>
<span id="club-viewer-bar-count" data-i18n="club.1_watching">1 watching</span>
</div>
</div>
</div>
<!-- Avatar picker — a /play-style visual gallery, opened per pole. The
grid is populated by src/club.js (initAvatarSelector). -->
<div class="club-picker" id="club-picker" hidden>
<div class="club-pick-backdrop" id="club-pick-backdrop"></div>
<div class="club-pick-modal" role="dialog" aria-modal="true" aria-labelledby="club-pick-title">
<div class="club-pick-head">
<div>
<h3 id="club-pick-title" data-i18n="club.choose_an_avatar">Choose an avatar</h3>
<p id="club-pick-sub" data-i18n="club.pick_who_dances_on_this_pole_swaps">Pick who dances on this pole — swaps live on stage.</p>
</div>
<button class="club-pick-x" id="club-pick-close" aria-label="Close avatar picker" data-i18n-attr="aria-label:club.close_avatar_picker_arialabel">
<svg viewBox="0 0 20 20" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round"><path d="M5 5l10 10M15 5L5 15"/></svg>
</button>
</div>
<div class="club-pick-grid" id="club-pick-grid"></div>
</div>
</div>
<!-- Entrance failsafe — the real click-trap is #club-door-canvas: a
full-screen, z-index-9400, pointer-events:auto canvas that owns input
ONLY while it's the visible walk-in. src/club-entrance.js removes it on
arrival (or on error). If that module hangs — a venue/avatar asset that
never resolves mid-walk, a stuck venue swap, a dispose that never runs —
the canvas is left behind and silently swallows every click on the stage
AND the side panel. The visitor sees the club but can't interact.
The earlier version of this watchdog keyed off the loader's `is-done`
class as "the module took over, stop watching." But `is-done` is set the
moment the alley finishes loading — long before the canvas is torn down —
so any hang after that point trapped clicks forever while the watchdog
sat idle. This rewrite watches the canvas itself and the two states that
prove it's trapping clicks. Classic (non-module) script on purpose: a
module failure can't take it down. -->
<script>
(function () {
var STALL_MS = 15000; // alley never finished loading this long ⇒ scene is dead
var FADED_MS = 1200; // canvas held transparent this long, never removed ⇒ trapped
var POLL_MS = 500;
var lastWidth = -1;
var lastProgressAt = Date.now();
var fadedSince = 0;
function doorCanvas() { return document.getElementById('club-door-canvas'); }
function barWidth() {
var bar = document.getElementById('club-loader-bar');
return bar ? (parseFloat(bar.style.width) || 0) : 0;
}
// Drop the dead overlay and hand the visitor onward. Dispatching
// club:enter-door surfaces the cover card if they haven't paid, and is a
// harmless no-op once they're admitted (the door card is already gone) —
// so a single reveal() is correct whether the hang happened before the
// cover charge or during the final fade onto the stage.
function reveal() {
try {
var canvas = doorCanvas();
if (canvas) canvas.remove();
var loader = document.getElementById('club-loader');
if (loader) {
loader.classList.add('is-done');
setTimeout(function () { try { loader.remove(); } catch (e) {} }, 800);
}
window.dispatchEvent(new CustomEvent('club:enter-door'));
} catch (e) {}
}
function tick() {
var canvas = doorCanvas();
if (!canvas) return; // module handed off cleanly — nothing left to guard
var op = parseFloat(getComputedStyle(canvas).opacity);
if (isNaN(op)) op = 1;
// Faded-but-present ⇒ the module faded the canvas out to reveal the
// live stage behind it (a final arrival, or a venue swap that's
// holding the fade for a download that never resolves) but never
// removed it. A canvas this transparent should already be gone.
// Require the state to persist so a normal ~0.6s fade transition is
// never mistaken for a hang.
if (op <= 0.02) {
if (!fadedSince) fadedSince = Date.now();
if (Date.now() - fadedSince >= FADED_MS) { reveal(); return; }
} else {
fadedSince = 0;
}
// Still opaque and the loader never reached 100% ⇒ the alley/avatar is
// still downloading. Track real byte progress; if it flatlines, the
// scene is dead. Once the bar hits 100 the load succeeded — an opaque
// canvas is then a legitimate walk-in we must NOT disturb (the visitor
// may simply be standing still), so the stall watch stops there and
// only the faded-trap check above can still fire.
var w = barWidth();
if (w < 100) {
if (w > lastWidth) { lastWidth = w; lastProgressAt = Date.now(); }
if (Date.now() - lastProgressAt >= STALL_MS) { reveal(); return; }
}
setTimeout(tick, POLL_MS);
}
setTimeout(tick, POLL_MS);
})();
</script>
<!-- x402 drop-in modal (Phantom/MetaMask wallet flow + 402 retry) -->
<script type="module" src="/x402.js"></script>
<!-- Entrance journey — alley → walk-through, behind the door card. -->
<script type="module" src="/src/club-entrance.js"></script>
<!-- Door gate — runs the cover-charge bouncer over the room boot. -->
<script type="module" src="/src/club-gate.js"></script>
<script type="module" src="/src/club.js"></script>
<!-- Viewer presence + reactions -->
<script type="module">
{
const viewerEl = document.getElementById('club-viewer-count');
const reactCanvas = document.getElementById('club-reaction-canvas');
const EMOJIS = { fire: '\u{1F525}', heart: '\u{2764}️', money: '\u{1F4B0}', clap: '\u{1F44F}' };
let viewerCount = 1;
let viewerSessionId = Math.random().toString(36).slice(2, 10);
// One in-flight beat at a time, each bounded to 10s: a slow backend must
// not stack overlapping presence POSTs. Paused while the tab is hidden
// (a backgrounded tab is not a viewer), with a fresh beat on return.
let heartbeatInflight = false;
async function heartbeat() {
if (heartbeatInflight || document.hidden) return;
heartbeatInflight = true;
try {
const res = await fetch('/api/club/presence', {
method: 'POST',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ session: viewerSessionId }),
signal: AbortSignal.timeout(10000),
});
if (res.ok) {
const data = await res.json();
viewerCount = data.count || 1;
if (viewerEl) viewerEl.textContent = String(viewerCount);
}
} catch {} finally {
heartbeatInflight = false;
}
}
heartbeat();
setInterval(heartbeat, 15000);
document.addEventListener('visibilitychange', () => {
if (!document.hidden) heartbeat();
});
if (reactCanvas) {
document.getElementById('club-reactions')?.addEventListener('click', (e) => {
const btn = e.target.closest('[data-react]');
if (!btn) return;
const key = btn.dataset.react;
const emoji = EMOJIS[key] || '\u{1F525}';
for (let i = 0; i < 3; i++) {
const el = document.createElement('div');
el.className = 'club-float-emoji';
el.textContent = emoji;
el.style.left = (30 + Math.random() * 40) + '%';
const durationSec = 2 + Math.random();
el.style.animationDuration = durationSec + 's';
el.style.animationDelay = (i * 0.15) + 's';
reactCanvas.appendChild(el);
el.addEventListener('animationend', () => el.remove(), { once: true });
// Suspended animations (hidden tab, reduced motion) never fire
// animationend; without a wall-clock fallback a reaction spam
// session grows the DOM without bound.
setTimeout(() => el.remove(), (durationSec + 1) * 1000);
}
});
}
}
</script>
<script src="/brand.js" defer></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>