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 */(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 name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="theme-color" content="#000000" />
<!-- Live presence + reactions room — the IRL world runs as a room on the same
Colyseus host as /walk. It carries an anonymous "viewing nearby" count and
opt-in ghost markers ONLY; placed agents are never synced here. Agents are
private by location and discovered solely through the per-viewer proximity
read in api/irl/pins.js. Absent/unreachable, presence is simply hidden and
discovery still works via the proximity poll (see src/irl-net.js). -->
<meta name="irl-server" content="wss://three-ws-multiplayer-93741856042.us-central1.run.app" />
<title data-i18n="irl.meta_title">IRL · three.ws</title>
<meta name="description" content="Walk a 3D avatar in your real space. Camera AR passthrough, joystick movement, tap-to-place objects." data-i18n-attr="content:irl.meta_description"/>
<meta property="og:type" content="website" />
<meta property="og:site_name" content="three.ws" />
<meta property="og:url" content="https://three.ws/irl" />
<meta property="og:title" content="IRL · three.ws" data-i18n-attr="content:irl.meta_og_title"/>
<meta property="og:description" content="Walk a 3D avatar in your real space. Camera AR passthrough, joystick movement, tap-to-place objects." data-i18n-attr="content:irl.meta_og_description"/>
<meta property="og:image" content="https://three.ws/api/page-og?s=main&t=IRL&d=Pin+a+3D+AI+agent+at+a+real+place+and+meet+the+ones+around+you.+Walk+up%2C+see+it+through+your+camera%2C+talk+to+it+out+loud%2C+view+it+in+AR+on+your+own+floor%2C+and&p=%2Firl" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="IRL · three.ws" data-i18n-attr="content:irl.meta_twitter_title"/>
<meta name="twitter:description" content="Walk a 3D avatar in your real space." data-i18n-attr="content:irl.meta_twitter_description"/>
<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=IRL&d=Pin+a+3D+AI+agent+at+a+real+place+and+meet+the+ones+around+you.+Walk+up%2C+see+it+through+your+camera%2C+talk+to+it+out+loud%2C+view+it+in+AR+on+your+own+floor%2C+and&p=%2Firl" />
<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" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<style>
:root {
--bg: #000000;
--bg2: #0a0a0a;
--text: #e8e8e8;
--text-2: #888888;
--text-3: #444444;
--accent: #ffffff;
--panel: rgba(255, 255, 255, 0.04);
--border: rgba(255, 255, 255, 0.08);
--border-hi: rgba(255, 255, 255, 0.22);
--danger: #f87171;
--green: var(--success, #4ade80);
--radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family: 'Inter', system-ui, -apple-system, sans-serif;
-webkit-font-smoothing: antialiased;
touch-action: none;
overscroll-behavior: none;
}
/* ── Background ambient glow ─────────────────────────────── */
.irl-bg {
position: fixed;
inset: 0;
pointer-events: none;
z-index: 0;
}
.irl-bg::before {
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 65%),
radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255,255,255,0.025) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 20% 70%, rgba(255,255,255,0.025) 0%, transparent 55%);
}
/* ── Camera feed ─────────────────────────────────────────── */
#irl-camera {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
object-fit: cover;
z-index: 1;
display: none;
background: #000;
}
body.is-ar #irl-camera { display: block; }
/* ── Three.js canvas ─────────────────────────────────────── */
#irl-canvas {
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
z-index: 2;
display: block;
touch-action: none;
}
/* ── Top bar ─────────────────────────────────────────────── */
/* Three real flex columns (back / center / right), not an absolutely-
centered badge floating over normal-flow siblings — the old layout let
the badge cluster (which grows with nearby/net/presence chips) paint on
top of the privacy/world-lines buttons underneath it on narrow phones. */
.irl-topbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 10;
display: flex;
align-items: center;
gap: 6px;
padding-left: max(16px, env(safe-area-inset-left, 0px));
padding-right: max(16px, env(safe-area-inset-right, 0px));
padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
padding-bottom: 14px;
background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, transparent 100%);
}
.irl-topbar-right {
display: flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
}
.irl-back {
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
color: var(--text-2);
text-decoration: none;
font-size: 14px;
font-weight: 500;
transition: color 0.15s;
padding: 6px 0;
}
.irl-back:hover { color: var(--text); }
.irl-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.irl-back svg { flex-shrink: 0; }
.irl-topbar-center {
flex: 1 1 auto;
min-width: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
overflow: hidden;
text-align: center;
pointer-events: none;
}
.irl-topbar-center > * { pointer-events: auto; flex-shrink: 1; min-width: 0; }
.irl-badge {
display: inline-flex;
align-items: center;
gap: 5px;
flex-shrink: 0;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--accent);
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.2);
border-radius: 999px;
padding: 4px 10px;
transition: border-color 0.3s;
white-space: nowrap;
}
body.is-ar .irl-badge { border-color: rgba(74,222,128,0.5); }
.irl-badge-dot {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--text-2);
transition: background 0.3s, box-shadow 0.3s;
}
body.is-ar .irl-badge-dot {
background: var(--green);
box-shadow: 0 0 6px var(--green);
animation: irl-pulse 2s ease-in-out infinite;
}
@keyframes irl-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.5; transform: scale(0.7); }
}
/* IRL logo mark — the three.ws crystal cube anchored to an AR ground
reticle. Drawn in currentColor so it inherits the badge ink (white),
and re-tinted green when AR is live to echo the status dot. */
.irl-badge-mark {
width: 16px;
height: 17px;
flex-shrink: 0;
margin-right: 1px;
overflow: visible;
stroke: currentColor;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.irl-badge-mark .irl-mark-cube { opacity: 0.95; }
.irl-badge-mark .irl-mark-beam { opacity: 0.45; }
.irl-badge-mark .irl-mark-anchor { opacity: 0.6; transition: stroke 0.3s, opacity 0.3s; }
.irl-badge-mark .irl-mark-dot { fill: currentColor; opacity: 0.75; transition: fill 0.3s, opacity 0.3s; }
.irl-badge-word { line-height: 1; }
/* AR live: the ground anchor lights up green, the same signal as the dot */
body.is-ar .irl-badge-mark .irl-mark-anchor { stroke: var(--green); opacity: 0.95; }
body.is-ar .irl-badge-mark .irl-mark-dot { fill: var(--green); opacity: 1; }
.irl-share-btn {
background: transparent;
border: 1px solid var(--border);
border-radius: 999px;
color: var(--text-2);
font-size: 13px;
font-weight: 500;
font-family: inherit;
cursor: pointer;
padding: 6px 14px;
transition: border-color 0.15s, color 0.15s, transform 0.1s;
}
.irl-share-btn:hover { border-color: var(--text-3); color: var(--text); }
.irl-share-btn:active { transform: scale(0.96); }
.irl-share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.irl-share-btn[disabled] { opacity: 0.6; cursor: progress; }
/* ── "More" overflow menu ────────────────────────────────────
Location & privacy, World Lines, smart glasses, and the arrival-sound
mute toggle used to sit as five unlabeled icon buttons crammed next to
Share in the top bar — on a 375px phone they visually overlapped the
centered IRL/nearby badge cluster and were hard to tell apart by icon
alone. They now live as labeled rows in one sheet behind a single
"More" button, leaving the top bar at just Back / badges / More / Share. */
.irl-more-btn { padding: 6px; display: inline-flex; align-items: center; justify-content: center; }
#irl-more-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 24;
background: rgba(12,14,20,0.97);
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
padding: 20px 18px calc(env(safe-area-inset-bottom, 0px) + 28px);
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
max-height: 70vh;
overflow-y: auto;
}
#irl-more-sheet.is-open { transform: translateY(0); pointer-events: all; }
#irl-more-sheet .irl-sheet-handle { margin-bottom: 14px; }
.irl-more-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.irl-more-header h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0; }
.irl-more-row {
display: flex;
align-items: center;
gap: 14px;
width: 100%;
padding: 14px 6px;
min-height: 48px;
background: none;
border: none;
border-top: 1px solid rgba(255,255,255,0.07);
color: var(--text);
font: inherit;
font-size: 14.5px;
font-weight: 600;
text-align: left;
text-decoration: none;
cursor: pointer;
transition: background 0.15s;
}
.irl-more-row:first-of-type { border-top: none; }
.irl-more-row:hover, .irl-more-row:focus-visible { background: rgba(255,255,255,0.05); outline: none; }
.irl-more-row-icon {
flex-shrink: 0;
width: 36px;
height: 36px;
border-radius: 10px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(255,255,255,0.06);
color: var(--text-2);
}
.irl-more-row.is-connected .irl-more-row-icon,
.irl-more-row[aria-pressed="false"].irl-cue-mute .irl-more-row-icon { color: #7aa2ff; background: rgba(79,124,255,0.14); }
.irl-more-row-text { flex: 1; min-width: 0; }
.irl-more-row-label { display: block; }
.irl-more-row-sub { display: block; font-size: 12px; font-weight: 500; color: var(--text-2); margin-top: 1px; }
.irl-more-row .irl-cue-off { display: none; }
.irl-more-row.is-muted .irl-cue-on { display: none; }
.irl-more-row.is-muted .irl-cue-off { display: inline; }
.irl-more-row-chevron { flex-shrink: 0; color: var(--text-3); }
/* ── Immersive mode ──────────────────────────────────────────
One tap collapses every chrome layer (topbar, bottom panel,
radar, room badge, aim HUD, hints) so the live AR view is
unobstructed and you can look around / drive the avatar. The
joystick + drag-to-orbit stay live underneath. The toggle is
the lone control left on screen, so it survives the collapse. */
/* Was `top: 50%` — a fixed screen-center anchor that, depending on the
live dock height, landed almost exactly on top of the money-drops FAB
(src/shared/irl-drops.js), which floats at `dock-h + 12px` above the
bottom panel. Anchoring this to the same --irl-dock-h variable instead
stacks the two right-edge FABs vertically with a fixed gap, so they
can never coincide regardless of how tall the dock gets. */
.irl-immersive-toggle {
position: fixed;
bottom: calc(var(--irl-dock-h, 220px) + 76px);
right: 12px;
z-index: 12;
width: 44px;
height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.2);
background: rgba(0,0,0,0.5);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: var(--text-2);
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}
.irl-immersive-toggle:hover { color: var(--text); border-color: var(--text-3); }
.irl-immersive-toggle:active { transform: scale(0.92); }
.irl-immersive-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.irl-immersive-toggle .irl-eye-show { display: none; }
body.irl-immersive .irl-immersive-toggle .irl-eye-hide { display: none; }
body.irl-immersive .irl-immersive-toggle .irl-eye-show { display: inline; }
/* Immersive: the lone control glows green so it stays findable over the scene */
body.irl-immersive .irl-immersive-toggle {
color: var(--green);
border-color: rgba(74,222,128,0.5);
background: rgba(0,0,0,0.34);
}
/* Panels slide off-screen; floating chrome fades. */
.irl-topbar, .irl-bottom {
transition: transform 0.32s cubic-bezier(0.22,1,0.36,1), opacity 0.26s ease;
}
#irl-radar, #irl-dx-help, #irl-keys, #irl-discovery-empty,
.irl-room-badge, #irl-aim-hud {
transition: opacity 0.26s ease;
}
body.irl-immersive .irl-topbar { transform: translateY(-100%); opacity: 0; pointer-events: none; }
body.irl-immersive .irl-bottom { transform: translateY(100%); opacity: 0; pointer-events: none; }
body.irl-immersive #irl-radar,
body.irl-immersive #irl-dx-help,
body.irl-immersive #irl-keys,
body.irl-immersive #irl-discovery-empty,
body.irl-immersive .irl-room-badge,
body.irl-immersive #irl-aim-hud {
opacity: 0;
pointer-events: none;
}
/* First-run reveal coachmark — floats above the cleared view, fades on cue. */
.irl-immersive-hint {
position: fixed;
left: 50%;
bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
transform: translate(-50%, 8px);
z-index: 12;
padding: 9px 16px;
border-radius: 999px;
background: rgba(0,0,0,0.62);
border: 1px solid rgba(255,255,255,0.16);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
color: var(--text);
font-size: 13px;
font-weight: 500;
white-space: nowrap;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.irl-immersive-hint.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* Respect reduced-motion: collapse instantly, no slide. */
@media (prefers-reduced-motion: reduce) {
.irl-topbar, .irl-bottom, .irl-immersive-hint { transition: opacity 0.18s ease; }
body.irl-immersive .irl-topbar,
body.irl-immersive .irl-bottom { transform: none; }
.irl-immersive-hint.is-visible { transform: translate(-50%, 0); }
}
/* ── Joystick ────────────────────────────────────────────── */
/* Was min(50vw,220px) x min(55vh,360px) — a touch-capture zone spanning
over half the viewport height, deep enough to underlap the secondary
action row above. Trimmed to a footprint sized for an actual thumb
drag; the action row is also bounded now (single scroll row, see
.irl-secondary-row), so the two no longer compete for the same corner. */
#irl-joystick {
position: fixed;
z-index: 9;
left: env(safe-area-inset-left, 0px);
/* Float the whole touch zone ABOVE the bottom dock. --irl-dock-h is
measured live from the footer (see the inline module below), so no
button ever sits inside the drag zone — the old layout stacked the
pill rows directly over it and thumb drags kept hitting buttons. */
bottom: var(--irl-dock-h, 220px);
width: min(40vw, 175px);
height: min(32vh, 230px);
touch-action: none;
pointer-events: auto;
}
/* Immersive mode hides the dock — drop the zone back to the bottom edge. */
body.irl-immersive #irl-joystick {
bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
}
@media (hover: hover) and (pointer: fine) {
#irl-joystick {
left: 24px;
bottom: calc(200px + env(safe-area-inset-bottom, 0));
width: 140px;
height: 140px;
}
}
/* ── Bottom panel ────────────────────────────────────────── */
.irl-bottom {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 10;
padding-left: max(20px, env(safe-area-inset-left, 0px));
padding-right: max(20px, env(safe-area-inset-right, 0px));
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
background: linear-gradient(
to top,
rgba(0,0,0,0.95) 0%,
rgba(0,0,0,0.75) 55%,
transparent 100%
);
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
pointer-events: none;
}
.irl-bottom > * { pointer-events: auto; }
.irl-avatar-name {
font-size: 22px;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--text);
text-align: center;
margin: 0;
line-height: 1.2;
font-family: 'Space Grotesk', system-ui, sans-serif;
}
.irl-subtitle {
font-size: 13px;
color: var(--text-2);
text-align: center;
margin: 0;
transition: opacity 0.3s;
}
/* Touch screens: compact the whole dock so it hugs the bottom edge
instead of climbing to mid-screen over the avatar — smaller headline,
subtitle clamped to two lines, a shorter hero button, tighter gaps. */
@media (hover: none) {
.irl-avatar-name { font-size: 16px; }
.irl-subtitle {
font-size: 12px;
max-width: min(88vw, 340px);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.irl-bottom {
gap: 8px;
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
}
/* Outranks the base hero-button rule, which appears later in this
stylesheet (same specificity would lose on source order). */
footer.irl-bottom #irl-camera-btn {
height: 52px;
max-width: 340px;
border-radius: 16px;
font-size: 16px;
}
}
/* Landscape phones (short viewports): the portrait dock keeps its full
text block and hero button, which here swallows 60%+ of the height and
pushes the dock-anchored FABs up into the top bar. Drop the redundant
headline/subtitle and slim the camera button — the dock falls to
~130px, and everything anchored to --irl-dock-h follows it down. */
@media (hover: none) and (max-height: 480px) {
.irl-avatar-name, .irl-subtitle { display: none; }
.irl-bottom { gap: 6px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); }
footer.irl-bottom #irl-camera-btn { height: 44px; max-width: 240px; font-size: 14.5px; border-radius: 999px; }
.irl-status { height: 14px; font-size: 11.5px; }
/* The zone still needs to clear the top bar on a 320-tall screen. */
#irl-joystick { height: min(38vh, 150px); }
}
.irl-status {
font-size: 12.5px;
color: var(--accent);
text-align: center;
height: 18px;
display: flex;
align-items: center;
gap: 6px;
opacity: 1;
transition: opacity 0.3s;
}
.irl-status.is-hidden { opacity: 0; }
.irl-status.is-error { color: var(--danger); }
.irl-status.is-warn { color: var(--warn, #fbbf24); }
.irl-status-spinner {
width: 13px;
height: 13px;
border-radius: 50%;
border: 2px solid rgba(255,255,255,0.2);
border-top-color: var(--accent);
animation: irl-spin 0.7s linear infinite;
flex-shrink: 0;
}
.irl-status-spinner.hidden { display: none; }
@keyframes irl-spin { to { transform: rotate(360deg); } }
/* E4 — full-screen designed-state host above the canvas. Used for the
unsupported-device state (rendered before irl.js loads) and the
avatar-load-failure Retry card. Sits below the bottom sheets (z 50–70)
so a sheet can still open over it, but above the canvas/topbar. */
#irl-overlay {
position: fixed;
inset: 0;
z-index: 45;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background: radial-gradient(120% 120% at 50% 30%, rgba(13,16,24,0.82), rgba(7,9,14,0.96));
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
animation: irl-overlay-in 0.22s ease;
}
#irl-overlay[hidden] { display: none; }
#irl-overlay .irl-overlay-card {
width: min(420px, 100%);
background: rgba(15,18,27,0.9);
border: 1px solid rgba(255,255,255,0.10);
border-radius: 18px;
box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
@keyframes irl-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #irl-overlay { animation: none; } }
/* Hero camera button */
#irl-camera-btn {
width: 100%;
max-width: 380px;
height: 60px;
background: #ffffff;
color: #000000;
border: 0;
border-radius: 18px;
font-family: 'Space Grotesk', system-ui, sans-serif;
font-size: 17px;
font-weight: 700;
letter-spacing: -0.01em;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
transition: transform 0.12s, box-shadow 0.2s, opacity 0.15s, background 0.25s, color 0.25s;
box-shadow: 0 8px 32px -8px rgba(255,255,255,0.2), 0 0 0 1px rgba(255,255,255,0.08) inset;
position: relative;
overflow: hidden;
}
#irl-camera-btn::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(to bottom, rgba(255,255,255,0.12) 0%, transparent 50%);
pointer-events: none;
}
#irl-camera-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 14px 40px -8px rgba(255,255,255,0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
#irl-camera-btn:active:not(:disabled) { transform: translateY(0); }
#irl-camera-btn:disabled { opacity: 0.4; cursor: not-allowed; }
#irl-camera-btn:focus-visible { outline: 2px solid #000; outline-offset: -4px; box-shadow: 0 0 0 4px rgba(255,255,255,0.9); }
#irl-camera-btn.is-active {
background: rgba(74,222,128,0.15);
color: var(--green);
border: 1px solid rgba(74,222,128,0.45);
box-shadow: 0 0 24px -8px rgba(74,222,128,0.3);
}
#irl-camera-btn svg { flex-shrink: 0; }
/* Secondary row: every placement/setup action, one action per pill.
This used to be `flex-wrap: wrap` — fine for the 2-3 buttons it shipped
with, but room-mode and marker-mode (src/irl/room-mode.js,
src/irl/marker-mode.js) each append another `.irl-pill-btn` fab here at
runtime, and the static row already carries up to 9. Wrapping onto 3-4
lines with no height cap grew the fixed-bottom footer tall enough to
push the camera button and avatar name up into the middle of the
screen, burying the 3D preview. A single horizontal scroll strip keeps
the footer's height constant no matter how many pills land here. */
.irl-secondary-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: nowrap;
overflow-x: auto;
overscroll-behavior-x: contain;
scroll-snap-type: x proximity;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
/* Pills are inserted at the HEAD of this strip at runtime (the AR
placement pill leads the row once floor-anchor support resolves, see
detectFloorAnchorSupport in src/irl.js). Scroll anchoring would then
shift scrollLeft by the inserted width to hold the old content still,
parking the brand-new lead pill just off the left edge where nobody
scrolls back to find it. Pin the strip to its true start instead. */
overflow-anchor: none;
max-width: 100%;
padding: 2px 4px;
margin: 0 -4px;
mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
-webkit-mask-image: linear-gradient(to right, transparent 0, black 14px, black calc(100% - 14px), transparent 100%);
}
.irl-secondary-row::-webkit-scrollbar { display: none; }
.irl-pill-btn {
appearance: none;
border: 1px solid var(--border);
background: rgba(255,255,255,0.05);
color: var(--text-2);
font: inherit;
font-size: 13px;
font-weight: 600;
padding: 9px 18px;
border-radius: 999px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 7px;
flex: 0 0 auto;
scroll-snap-align: start;
transition: transform 0.1s, background 0.15s, border-color 0.15s, color 0.15s;
-webkit-tap-highlight-color: transparent;
white-space: nowrap;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.irl-pill-btn:hover { color: var(--text); border-color: var(--border-hi); background: rgba(255,255,255,0.08); }
.irl-pill-btn:active { transform: scale(0.95); }
.irl-pill-btn.is-active {
color: var(--text);
border-color: rgba(255,255,255,0.35);
background: rgba(255,255,255,0.1);
}
.irl-pill-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.irl-pill-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Touch devices: every fixed control meets the 44×44 Apple HIG tap target. */
@media (hover: none) {
.irl-pill-btn { min-height: 44px; }
.irl-share-btn, .irl-privacy-btn, .irl-cue-mute, .irl-glasses-btn { min-height: 44px; min-width: 44px; }
.irl-back { min-height: 44px; }
}
#irl-clear-btn { color: var(--danger); border-color: rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); }
#irl-clear-btn:hover { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.5); }
#irl-lock-btn.is-active {
color: var(--warn, #fbbf24);
border-color: rgba(251,191,36,0.45);
background: rgba(251,191,36,0.1);
}
#irl-lock-btn.is-active:hover { background: rgba(251,191,36,0.18); }
/* Quick Look banner handoff: the tap inside Apple's sealed AR viewer can't
pin by itself, so when the user lands back here, Pin here pulses to catch
the intent they just signaled in-AR. */
#irl-lock-btn.is-banner-nudge { animation: irl-lock-nudge 1.5s ease-in-out 4; }
@keyframes irl-lock-nudge {
0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); transform: scale(1); }
50% { box-shadow: 0 0 0 8px rgba(251,191,36,0.25); transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { #irl-lock-btn.is-banner-nudge { animation: none; box-shadow: 0 0 0 3px rgba(251,191,36,0.35); } }
/* "Move here" carry mode — teal active state matches the floor reticle the
gesture drives, so the armed control and the on-floor ring read as one thing. */
#irl-carry-btn.is-active {
color: #34d399;
border-color: rgba(52,211,153,0.45);
background: rgba(52,211,153,0.1);
}
#irl-carry-btn.is-active:hover { background: rgba(52,211,153,0.18); }
/* D2 "Appear nearby" presence toggle — only relevant in GPS mode (where
presence is live), so it's hidden until then. Blue active state matches the
ghost orbs / presence chip. */
#irl-ghost-toggle { display: none; }
body.gps-mode #irl-ghost-toggle { display: inline-flex; }
#irl-ghost-toggle.is-active {
color: #8ec5ff;
border-color: rgba(120,170,255,0.5);
background: rgba(120,170,255,0.12);
}
#irl-ghost-toggle.is-active:hover { background: rgba(120,170,255,0.2); }
/* WebXR floor-anchor entry — accent it as the premium placement path */
#irl-anchor-btn {
color: var(--accent-violet, #c4b5fd);
border-color: rgba(155,140,255,0.4);
background: rgba(155,140,255,0.08);
}
#irl-anchor-btn:hover:not(:disabled) {
color: #ddd6fe;
border-color: rgba(155,140,255,0.6);
background: rgba(155,140,255,0.16);
}
#irl-anchor-btn.is-active {
color: #ddd6fe;
border-color: rgba(155,140,255,0.7);
background: rgba(155,140,255,0.2);
}
/* ── WebXR floor-anchor in-session overlay (dom-overlay root) ── */
#irl-xr-overlay {
position: fixed;
inset: 0;
z-index: 60;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
pointer-events: none; /* only the chrome inside is interactive */
padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px 0;
}
#irl-xr-overlay[hidden] { display: none; }
.irl-xr-bar {
display: flex;
align-items: center;
gap: 12px;
max-width: 560px;
width: 100%;
padding: 10px 12px 10px 16px;
border-radius: 999px;
background: rgba(10,11,18,0.72);
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 6px 28px rgba(0,0,0,0.45);
pointer-events: auto;
}
.irl-xr-hint {
flex: 1;
margin: 0;
font-size: 13.5px;
font-weight: 600;
line-height: 1.35;
color: #e8e8ef;
letter-spacing: -0.01em;
/* Readable over a live camera feed on both bright and dark floors: the
dark pill already scrims the text; this shadow keeps thin strokes legible
if the translucent pill happens to sit over a white surface. */
text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}
/* ✓ confirm affordance — revealed on .irl-xr-bar.is-anchored the instant the
anchor takes (paired with the in-scene pulse + haptic). Collapsed to zero
width while idle so it never reserves space in the pill. */
.irl-xr-check {
flex-shrink: 0;
display: inline-flex;
align-items: center;
justify-content: center;
width: 0;
height: 22px;
border-radius: 999px;
background: rgba(52,211,153,0.18);
color: #6ee7b7;
overflow: hidden;
opacity: 0;
transform: scale(0.6);
transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.2,1.4,0.4,1);
}
.irl-xr-bar.is-anchored .irl-xr-check {
width: 22px;
margin-right: 2px;
opacity: 1;
transform: scale(1);
animation: irl-xr-check-pop 0.42s cubic-bezier(0.2,1.4,0.4,1);
}
@keyframes irl-xr-check-pop {
0% { transform: scale(0.4); }
60% { transform: scale(1.18); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
.irl-xr-check { transition: opacity 0.12s linear; transform: none; }
.irl-xr-bar.is-anchored .irl-xr-check { transform: none; animation: none; }
}
.irl-xr-exit {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 13px;
border-radius: 999px;
font: 600 12.5px/1 var(--font-body, system-ui, sans-serif);
color: #e8e8ef;
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.16);
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.irl-xr-exit:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.28); }
.irl-xr-exit:active { transform: translateY(1px); }
.irl-xr-exit:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: 2px; }
.irl-xr-error {
pointer-events: auto;
margin-top: 14vh;
max-width: 420px;
width: 100%;
border-radius: 18px;
background: rgba(10,11,18,0.92);
border: 1px solid rgba(255,255,255,0.12);
box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.irl-xr-error[hidden] { display: none; }
/* Gyro pulse on lock icon when actively tracking orientation in AR */
body.is-ar.is-locked #irl-lock-icon {
animation: irl-gyro-pulse 2.5s ease-in-out infinite;
}
@keyframes irl-gyro-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.45; }
}
/* Hide joystick when avatar is locked (can't move) */
body.is-ar.is-locked #irl-joystick { pointer-events: none; opacity: 0; transition: opacity 0.2s; }
body.is-ar.is-locked #irl-keys { display: none; }
/* Object picker — slides up above the secondary row */
#irl-picker {
display: flex;
flex-direction: row;
gap: 8px;
flex-wrap: nowrap;
overflow-x: auto;
scroll-snap-type: x proximity;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
max-width: 100%;
padding: 2px 4px;
animation: irl-slide-up 0.2s ease-out;
}
#irl-picker::-webkit-scrollbar { display: none; }
#irl-picker[hidden] { display: none; }
@keyframes irl-slide-up {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.irl-obj-btn {
appearance: none;
border: 1px solid var(--border);
background: rgba(255,255,255,0.05);
color: var(--text-2);
font: inherit;
font-size: 12px;
font-weight: 600;
padding: 7px 14px;
border-radius: 999px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
scroll-snap-align: start;
transition: transform 0.1s, background 0.15s, border-color 0.15s, color 0.15s;
-webkit-tap-highlight-color: transparent;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.irl-obj-btn:hover { color: var(--text); border-color: var(--border-hi); }
.irl-obj-btn:active { transform: scale(0.95); }
.irl-obj-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.irl-obj-btn.active {
color: var(--text);
border-color: rgba(255,255,255,0.4);
background: rgba(255,255,255,0.12);
}
.irl-obj-swatch {
width: 12px;
height: 12px;
border-radius: 50%;
flex-shrink: 0;
}
/* Nearby agents badge — inline next to the IRL badge in the topbar.
The topbar center column can host up to four of these chips at once
(IRL badge, nearby, net status, presence) on a 320-390px phone — under
that crowding this used to hard-clip mid-word with no ellipsis, reading
as broken rather than intentionally truncated. min-width:0 lets it
actually shrink inside the flex row; text-overflow degrades gracefully. */
#irl-nearby-badge {
display: inline-flex;
align-items: center;
margin-left: 6px;
min-width: 0;
max-width: 108px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--green);
background: rgba(74,222,128,0.12);
border: 1px solid rgba(74,222,128,0.35);
border-radius: 999px;
padding: 2px 8px;
white-space: nowrap;
}
#irl-nearby-badge[hidden] { display: none; }
/* Refresh-failed indicator (E4) — the nearby poll couldn't reach the server. */
#irl-nearby-badge.is-error {
color: var(--warn, #fbbf24);
background: rgba(251,191,36,0.12);
border-color: rgba(251,191,36,0.38);
}
/* Designed empty invite (E4) — GPS is live but nobody's pinned here yet.
Muted vs. the green "N nearby" so it reads as a prompt, not an alert. */
#irl-nearby-badge.is-empty {
color: #9aa6b2;
background: rgba(148,163,184,0.12);
border-color: rgba(148,163,184,0.3);
}
/* Rate-limited (task 06) — we polled faster than the limiter allows and backed
off. Calm blue (informational), deliberately NOT the amber error tone: the
next cycle self-heals, so this must never read as "discovery broke". */
#irl-nearby-badge.is-rate {
color: #8ec5ff;
background: rgba(120,170,255,0.12);
border-color: rgba(120,170,255,0.38);
}
/* GPS-acquiring (task 06) — granted, watch attached, no first fix yet. A
skeleton shimmer (not a spinner, not the empty state) so the pre-fix gap
reads as "working on it", never as "nobody's here". */
#irl-nearby-badge.is-acquiring {
color: #9aa6b2;
border-color: rgba(148,163,184,0.3);
background:
linear-gradient(100deg,
rgba(148,163,184,0.10) 30%,
rgba(199,210,224,0.26) 50%,
rgba(148,163,184,0.10) 70%)
rgba(148,163,184,0.10);
background-size: 220% 100%;
animation: irl-badge-shimmer 1.4s ease-in-out infinite;
}
@keyframes irl-badge-shimmer {
0% { background-position: 180% 0; }
100% { background-position: -80% 0; }
}
@media (prefers-reduced-motion: reduce) {
#irl-nearby-badge.is-acquiring { animation: none; background-position: 50% 0; }
}
/* Realtime status pill (D1) — sits beside the nearby badge: live (green),
connecting (amber pulse), or polling (the fallback transport, tap to retry). */
.irl-net-pill {
display: inline-flex;
align-items: center;
gap: 4px;
margin-left: 6px;
min-width: 0;
max-width: 90px;
overflow: hidden;
text-overflow: ellipsis;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
border-radius: 999px;
padding: 2px 8px 2px 7px;
white-space: nowrap;
border: 1px solid transparent;
cursor: default;
-webkit-user-select: none;
user-select: none;
}
.irl-net-pill[hidden] { display: none; }
.irl-net-pill::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
flex-shrink: 0;
}
.irl-net-pill.is-live {
color: var(--green);
background: rgba(74,222,128,0.12);
border-color: rgba(74,222,128,0.35);
}
.irl-net-pill.is-live::before { box-shadow: 0 0 6px currentColor; }
.irl-net-pill.is-connecting {
color: var(--warn, #fbbf24);
background: rgba(251,191,36,0.12);
border-color: rgba(251,191,36,0.38);
}
.irl-net-pill.is-connecting::before { animation: irl-net-pulse 1.1s ease-in-out infinite; }
/* Polling is the degraded fallback transport, not a disabled state — colour
it amber (like is-connecting, minus the pulse) so it reads as "live but
degraded, tap to retry" rather than greyed-out/off. Amber also clears AA
against the dark pill, where the old grey #9aa6b2 did not. */
.irl-net-pill.is-polling {
color: var(--warn, #fbbf24);
background: rgba(251,191,36,0.12);
border-color: rgba(251,191,36,0.38);
cursor: pointer;
}
@keyframes irl-net-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
.irl-net-pill.is-connecting::before { animation: none; }
}
/* Live viewer presence chip (D2) — "N viewing nearby" with a softly pulsing
dot. Blue, to match the ghost orbs and read as social/live, distinct from
the green nearby-agents badge. */
.irl-presence-chip {
display: inline-flex;
align-items: center;
gap: 5px;
margin-left: 6px;
min-width: 0;
max-width: 118px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.04em;
color: #8ec5ff;
background: rgba(120,170,255,0.12);
border: 1px solid rgba(120,170,255,0.38);
border-radius: 999px;
padding: 2px 8px 2px 7px;
white-space: nowrap;
}
.irl-presence-chip[hidden] { display: none; }
.irl-presence-chip::before {
content: '';
width: 6px;
height: 6px;
border-radius: 50%;
background: currentColor;
box-shadow: 0 0 6px currentColor;
flex-shrink: 0;
animation: irl-presence-pulse 1.8s ease-in-out infinite;
}
@keyframes irl-presence-pulse {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0.4; transform: scale(0.78); }
}
@media (prefers-reduced-motion: reduce) {
.irl-presence-chip::before { animation: none; }
}
/* ── Proximity-arrival cue (task 03) ─────────────────────── */
/* Transient "look around" banner — appears centred near the top, below the
topbar, when a new agent enters your bubble. Glassy, quiet, auto-dismisses. */
.irl-arrival-cue {
position: fixed;
/* Clear the top bar (Back / IRL / nearby / Live chips): at 64px this pill
painted straight over the chip row and the floating name plates. Drop it
below the bar so the arrival cue reads as its own calm layer. */
top: calc(env(safe-area-inset-top, 0px) + 96px);
left: 50%;
z-index: 46;
max-width: min(92vw, 360px);
padding: 9px 16px;
border-radius: 999px;
font-size: 13px;
font-weight: 600;
letter-spacing: 0.01em;
text-align: center;
color: #eaf4ff;
background: rgba(18,26,40,0.82);
border: 1px solid rgba(120,170,255,0.42);
box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 18px rgba(120,170,255,0.18);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
pointer-events: none;
opacity: 0;
transform: translate(-50%, -10px);
transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.irl-arrival-cue[hidden] { display: none; }
.irl-arrival-cue.is-visible {
opacity: 1;
transform: translate(-50%, 0);
}
.irl-arrival-cue::before {
content: '';
display: inline-block;
width: 7px;
height: 7px;
margin-right: 8px;
border-radius: 50%;
background: #8ec5ff;
box-shadow: 0 0 8px #8ec5ff;
vertical-align: middle;
animation: irl-cue-ping 1.4s ease-out infinite;
}
@keyframes irl-cue-ping {
0% { transform: scale(0.7); opacity: 1; }
70%, 100% { transform: scale(1.6); opacity: 0; }
}
/* Non-map directional hint — a soft glow + arrow riding the screen edge,
positioned via JS transform toward the nearest agent's bearing. The wrapper
is centred on the computed edge point (translate(-50%,-50%) + the JS offset);
the inner arrow rotates to aim along the bearing. */
.irl-dir-nudge {
position: fixed;
top: 0;
left: 0;
z-index: 12;
width: 64px;
height: 64px;
pointer-events: none;
opacity: 0;
transition: opacity 0.35s ease;
will-change: transform, opacity;
}
.irl-dir-nudge[hidden] { display: none; }
.irl-dir-nudge.is-visible { opacity: 1; }
.irl-dir-nudge-glow {
position: absolute;
inset: 0;
border-radius: 50%;
background: radial-gradient(circle, rgba(140,197,255,0.55) 0%, rgba(140,197,255,0.18) 45%, transparent 72%);
animation: irl-nudge-breathe 1.8s ease-in-out infinite;
}
.irl-dir-nudge-arrow {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
color: #d6ecff;
filter: drop-shadow(0 0 6px rgba(140,197,255,0.85));
transition: transform 0.18s ease-out;
}
@keyframes irl-nudge-breathe {
0%, 100% { transform: scale(0.86); opacity: 0.7; }
50% { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.irl-arrival-cue { transition: opacity 0.001s; }
.irl-arrival-cue::before { animation: none; }
.irl-dir-nudge-glow { animation: none; opacity: 0.9; }
.irl-dir-nudge-arrow { transition: none; }
.irl-dir-nudge { transition: opacity 0.001s; }
}
/* Radar minimap */
#irl-radar {
position: fixed;
top: calc(env(safe-area-inset-top, 0px) + 68px);
right: 16px;
width: 120px;
height: 120px;
border-radius: 50%;
background: rgba(0,0,0,0.55);
border: 1px solid rgba(255,255,255,0.12);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
z-index: 8;
display: none;
pointer-events: none;
}
body.gps-mode #irl-radar { display: block; }
.irl-radar-dot {
position: absolute;
width: 8px;
height: 8px;
border-radius: 50%;
background: #88bbff;
transform: translate(-50%, -50%);
pointer-events: auto;
cursor: pointer;
box-shadow: 0 0 6px rgba(136,187,255,0.6);
}
/* Live presence ghost (D2) — smaller, fainter, hollow, and not interactive,
so a co-viewer's approximate position never reads as a placed agent. */
.irl-radar-ghost {
position: absolute;
width: 7px;
height: 7px;
border-radius: 50%;
background: rgba(159,216,255,0.22);
border: 1px solid rgba(159,216,255,0.6);
transform: translate(-50%, -50%);
pointer-events: none;
}
.irl-radar-self {
position: absolute;
top: 50%; left: 50%;
width: 10px; height: 10px;
border-radius: 50%;
background: #fff;
transform: translate(-50%, -50%);
box-shadow: 0 0 8px rgba(255,255,255,0.8);
}
.irl-radar-n, .irl-radar-s, .irl-radar-e, .irl-radar-w {
position: absolute;
font-size: 8px;
font-weight: 700;
color: rgba(255,255,255,0.4);
line-height: 1;
}
.irl-radar-n { top: 4px; left: 50%; transform: translateX(-50%); }
.irl-radar-s { bottom: 4px; left: 50%; transform: translateX(-50%); }
.irl-radar-e { right: 5px; top: 50%; transform: translateY(-50%); }
.irl-radar-w { left: 5px; top: 50%; transform: translateY(-50%); }
/* Designed empty / error hint inside the radar (E4) — centred under the self
dot so a broken refresh or an empty area never reads as a blank dial. */
.irl-radar-hint {
position: absolute;
left: 50%;
top: 62%;
transform: translateX(-50%);
max-width: 92px;
text-align: center;
font-size: 8.5px;
font-weight: 600;
line-height: 1.25;
letter-spacing: 0.02em;
color: rgba(255,255,255,0.5);
pointer-events: none;
}
.irl-radar-hint[hidden] { display: none; }
.irl-radar-hint.is-error { color: var(--warn, #fbbf24); }
/* Agent interaction bottom sheet */
#irl-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 20;
background: rgba(12,14,20,0.92);
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
padding: 20px 24px 36px;
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
}
#irl-sheet.is-open {
transform: translateY(0);
pointer-events: all;
}
.irl-sheet-handle {
width: 40px;
height: 4px;
border-radius: 2px;
background: rgba(255,255,255,0.2);
margin: 0 auto 16px;
}
.irl-sheet-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.irl-sheet-meta {
display: flex;
flex-direction: column;
gap: 2px;
flex: 1;
min-width: 0;
}
.irl-sheet-title {
font-size: 20px;
font-weight: 700;
color: #e5e7eb;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#irl-sheet-dist {
font-size: 13px;
color: #9ca3af;
font-variant-numeric: tabular-nums;
}
#irl-sheet-caption {
font-size: 14px;
color: #9ca3af;
margin-bottom: 14px;
line-height: 1.5;
}
.irl-sheet-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.irl-sheet-btn {
flex: 1 1 calc(50% - 5px);
min-width: 120px;
padding: 12px 16px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.06);
color: #e5e7eb;
font: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
}
.irl-sheet-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); }
.irl-sheet-btn-primary { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.4); color: #34d399; }
.irl-sheet-btn-primary:hover { background: rgba(52,211,153,0.28); }
/* Talk leads the actions: the conversation is the point of walking up. */
.irl-sheet-btn-talk {
background: rgba(139,92,246,0.20);
border-color: rgba(139,92,246,0.45);
color: var(--accent-violet, #c4b5fd);
}
.irl-sheet-btn-talk:hover { background: rgba(139,92,246,0.30); border-color: rgba(139,92,246,0.6); }
.irl-sheet-btn-talk.is-active { background: rgba(139,92,246,0.36); border-color: rgba(196,181,253,0.7); color: #ede9fe; }
.irl-sheet-btn:active { transform: translateY(1px); }
/* ── Talk panel (src/irl/pin-talk.js) ──────────────────────────────── */
.irl-talk {
margin-top: 14px;
padding: 12px;
border-radius: 14px;
border: 1px solid rgba(139,92,246,0.28);
background: linear-gradient(180deg, rgba(139,92,246,0.10), rgba(139,92,246,0.04));
animation: irl-talk-in .24s cubic-bezier(.22,.61,.36,1);
}
.irl-talk[hidden] { display: none; }
@keyframes irl-talk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.irl-talk-log {
max-height: 34vh;
min-height: 56px;
overflow-y: auto;
overscroll-behavior: contain;
display: flex;
flex-direction: column;
gap: 8px;
padding: 2px 2px 6px;
scrollbar-width: thin;
}
.irl-talk-empty {
margin: 6px 4px;
font-size: 13px;
color: #a5b4c8;
line-height: 1.45;
}
.irl-talk-msg {
max-width: 88%;
padding: 9px 12px;
border-radius: 14px;
font-size: 14px;
line-height: 1.45;
color: #e8edf6;
word-break: break-word;
animation: irl-talk-in .2s ease-out;
}
.irl-talk-msg.is-user {
align-self: flex-end;
background: rgba(139,92,246,0.28);
border: 1px solid rgba(139,92,246,0.4);
border-bottom-right-radius: 5px;
}
.irl-talk-msg.is-agent {
align-self: flex-start;
background: rgba(255,255,255,0.07);
border: 1px solid rgba(255,255,255,0.10);
border-bottom-left-radius: 5px;
}
.irl-talk-who {
display: block;
font-size: 11px;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
color: #a78bfa;
margin-bottom: 2px;
}
.irl-talk-partial {
margin: 0 4px 6px;
font-size: 13px;
font-style: italic;
color: #c4b5fd;
min-height: 1em;
}
.irl-talk-partial[hidden] { display: none; }
.irl-talk-row { display: flex; gap: 8px; align-items: center; }
.irl-talk-form { display: flex; gap: 8px; flex: 1; min-width: 0; }
.irl-talk-hold {
position: relative;
flex-shrink: 0;
width: 52px; height: 52px;
border-radius: 50%;
border: 1px solid rgba(139,92,246,0.55);
background: rgba(139,92,246,0.22);
color: #ede9fe;
display: grid; place-items: center;
cursor: pointer;
touch-action: none;
-webkit-touch-callout: none;
-webkit-user-select: none; user-select: none;
transition: background .15s, border-color .15s, transform .12s;
}
.irl-talk-hold svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.irl-talk-hold:hover { background: rgba(139,92,246,0.32); }
.irl-talk-hold:active, .irl-talk-hold.is-active { background: rgba(139,92,246,0.55); border-color: #c4b5fd; transform: scale(1.04); }
.irl-talk-hold.is-busy { opacity: .55; }
.irl-talk-hold[hidden] { display: none; }
/* Live mic level: the ring swells with the voice, driven by --irl-mic-level (0..1). */
.irl-talk-hold-ring {
position: absolute; inset: -4px;
border-radius: 50%;
border: 2px solid rgba(196,181,253,0.55);
opacity: 0;
transform: scale(calc(1 + var(--irl-mic-level, 0) * 0.55));
transition: opacity .15s;
}
.irl-talk-hold.is-active .irl-talk-hold-ring { opacity: 1; }
.irl-talk[data-state="speaking"] .irl-talk-hold { animation: irl-talk-speaking 1.2s ease-in-out infinite; }
@keyframes irl-talk-speaking { 0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,0); } 50% { box-shadow: 0 0 0 8px rgba(139,92,246,0.18); } }
.irl-talk-state { margin-top: 8px; font-size: 12.5px; color: #a78bfa; min-height: 1em; }
.irl-talk-state.is-error { color: #f87171; }
.irl-talk-state[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
.irl-talk, .irl-talk-msg { animation: none; }
.irl-talk[data-state="speaking"] .irl-talk-hold { animation: none; box-shadow: 0 0 0 4px rgba(139,92,246,0.18); }
.irl-talk-hold-ring { transition: none; transform: none; }
}
.irl-sheet-close {
width: 32px;
height: 32px;
flex-shrink: 0;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.12);
border-radius: 50%;
color: #9ca3af;
font: inherit;
font-size: 16px;
cursor: pointer;
transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.irl-sheet-close:hover { color: #e5e7eb; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.10); }
/* Touch: every sheet's close control meets the 44px tap floor (the 32px
circle stays for pointers, where precision is fine). */
@media (hover: none) {
.irl-sheet-close { width: 44px; height: 44px; font-size: 18px; }
.irl-caption-placement, .irl-consent-cancel { min-height: 44px; }
}
/* Caption input panel — slides up before pin is saved */
#irl-caption-panel {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 21;
background: rgba(12,14,20,0.95);
border-top: 1px solid rgba(255,255,255,0.12);
border-radius: 18px 18px 0 0;
padding: 20px 22px 36px;
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
}
#irl-caption-panel.is-open {
transform: translateY(0);
pointer-events: all;
}
#irl-caption-panel .irl-sheet-handle { margin-bottom: 14px; }
#irl-caption-panel h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0 0 12px; }
#irl-caption-input {
width: 100%;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.13);
border-radius: 11px;
padding: 11px 13px;
color: #e5e7eb;
font: 16px/1.5 inherit;
resize: none;
box-sizing: border-box;
display: block;
margin-bottom: 12px;
transition: border-color 0.15s;
}
#irl-caption-input:focus { outline: none; border-color: rgba(52,211,153,0.5); }
#irl-caption-input::placeholder { color: #6b7280; }
.irl-caption-row { display: flex; gap: 10px; }
#irl-caption-confirm { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.18); color: #34d399; font: 600 14px inherit; cursor: pointer; transition: background 0.15s; }
#irl-caption-confirm:hover { background: rgba(52,211,153,0.28); }
#irl-caption-cancel { width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #9ca3af; font: 600 18px inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
#irl-caption-cancel:hover { background: rgba(255,255,255,0.12); color: #e5e7eb; }
/* Placement chip (H4) — how this pin will be stored; taps re-open the consent sheet */
.irl-caption-placement {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
width: 100%; margin: 0 0 12px; padding: 9px 12px;
background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
border-radius: 11px; color: #cbd5e1; font: 600 13px inherit; cursor: pointer;
transition: border-color 0.15s, background 0.15s;
}
.irl-caption-placement:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.2); }
.irl-caption-placement:focus-visible { outline: 2px solid rgba(96,165,250,0.6); outline-offset: 2px; }
.irl-caption-placement.is-approx { border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.1); color: #93c5fd; }
.irl-caption-place-badge { font-variant-numeric: tabular-nums; }
.irl-caption-place-i { font-size: 12px; color: #8a94a6; white-space: nowrap; }
.irl-caption-placement.is-approx .irl-caption-place-i { color: #93c5fd; }
/* Placement consent sheet (H4) — equal-weight choice + safer "approximate" default */
#irl-consent-sheet {
position: fixed; bottom: 0; left: 0; right: 0; z-index: 23;
background: rgba(12,14,20,0.97);
border-top: 1px solid rgba(255,255,255,0.12);
border-radius: 18px 18px 0 0;
padding: 20px 22px 32px;
backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
max-height: 90vh; overflow-y: auto;
}
#irl-consent-sheet.is-open { transform: translateY(0); pointer-events: all; }
#irl-consent-sheet .irl-sheet-handle { margin-bottom: 14px; }
#irl-consent-sheet h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0 0 8px; }
#irl-consent-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2, #9ca3af); margin: 0 0 16px; }
.irl-consent-radius { border: 0; padding: 0; margin: 0 0 14px; }
.irl-consent-radius legend { font-size: 12px; color: #8a94a6; padding: 0; margin: 0 0 8px; }
.irl-consent-seg { display: flex; gap: 8px; }
.irl-consent-seg button {
flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
padding: 9px 6px; border-radius: 11px;
border: 1px solid rgba(255,255,255,0.13); background: rgba(255,255,255,0.04);
color: #cbd5e1; font: 600 13px inherit; cursor: pointer;
transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.irl-consent-seg button small { font-size: 10.5px; font-weight: 500; color: #8a94a6; }
.irl-consent-seg button:hover { background: rgba(255,255,255,0.07); }
.irl-consent-seg button.on { border-color: rgba(96,165,250,0.5); background: rgba(96,165,250,0.16); color: #93c5fd; }
.irl-consent-seg button.on small { color: #93c5fd; }
.irl-consent-seg button:focus-visible { outline: 2px solid rgba(96,165,250,0.6); outline-offset: 2px; }
.irl-consent-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.irl-consent-btn {
flex: 1; padding: 13px 14px; border-radius: 12px; cursor: pointer;
font: 600 14px inherit; transition: background 0.15s, border-color 0.15s;
border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.16); color: #34d399;
}
.irl-consent-btn:hover { background: rgba(52,211,153,0.26); }
.irl-consent-btn:active { transform: scale(0.98); }
.irl-consent-btn:focus-visible { outline: 2px solid rgba(52,211,153,0.6); outline-offset: 2px; }
/* "Approximately" is styled identically to "exactly" — equal weight, no dark pattern */
#irl-consent-approx { border-color: rgba(96,165,250,0.4); background: rgba(96,165,250,0.16); color: #93c5fd; }
#irl-consent-approx:hover { background: rgba(96,165,250,0.26); }
/* The label is the target: tapping it toggles the box, so the row carries
the 44px floor and the 16px box stays the size it was designed. */
.irl-consent-dontshow { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: #9ca3af; cursor: pointer; margin-bottom: 14px; }
.irl-consent-dontshow input { width: 16px; height: 16px; accent-color: #60a5fa; cursor: pointer; }
.irl-consent-cancel {
display: block; width: 100%; padding: 11px; border-radius: 12px;
border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05);
color: #9ca3af; font: 600 13.5px inherit; cursor: pointer; transition: background 0.15s;
}
.irl-consent-cancel:hover { background: rgba(255,255,255,0.1); color: #e5e7eb; }
/* Designed guidance sheet — motion permission, GPS-not-ready, etc. (A4) */
#irl-error-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 24;
background: rgba(12,14,20,0.97);
border-top: 1px solid rgba(248,113,113,0.3);
border-radius: 18px 18px 0 0;
padding: 20px 22px 36px;
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
}
#irl-error-sheet.is-open { transform: translateY(0); pointer-events: all; }
#irl-error-sheet .irl-sheet-handle { margin-bottom: 14px; }
.irl-error-icon {
width: 40px; height: 40px;
border-radius: 12px;
display: flex; align-items: center; justify-content: center;
background: rgba(248,113,113,0.12);
color: var(--danger);
margin-bottom: 12px;
}
#irl-error-sheet h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0 0 8px; }
#irl-error-body { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0 0 16px; }
.irl-error-row { display: flex; gap: 10px; }
#irl-error-action { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(96,165,250,0.4); background: rgba(96,165,250,0.16); color: #93c5fd; font: 600 14px inherit; cursor: pointer; transition: background 0.15s; }
#irl-error-action:hover { background: rgba(96,165,250,0.26); }
#irl-error-action:active { transform: scale(0.98); }
#irl-error-dismiss { width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #9ca3af; font: 600 18px inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
#irl-error-dismiss:hover { background: rgba(255,255,255,0.12); color: #e5e7eb; }
/* My Pins management sheet */
#irl-mypins-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 21;
background: rgba(12,14,20,0.95);
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
padding: 20px 22px 36px;
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
max-height: 70vh;
overflow-y: auto;
}
#irl-mypins-sheet.is-open {
transform: translateY(0);
pointer-events: all;
}
#irl-mypins-sheet .irl-sheet-handle { margin-bottom: 14px; }
.irl-mypins-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.irl-mypins-header h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0; }
.irl-pin-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.irl-pin-row:last-child { border-bottom: none; }
.irl-pin-info { flex: 1; min-width: 0; }
.irl-pin-name { font-size: 14px; font-weight: 600; color: #e5e7eb; display: flex; align-items: center; gap: 7px; min-width: 0; }
.irl-pin-name-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* Exact/Approximate badge (H4) on each owned pin row */
.irl-pin-place { flex: none; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; white-space: nowrap; color: #6ee7b7; background: rgba(52,211,153,0.13); border: 1px solid rgba(52,211,153,0.28); }
.irl-pin-place.is-approx { color: #93c5fd; background: rgba(96,165,250,0.13); border-color: rgba(96,165,250,0.3); }
.irl-pin-caption { font-size: 12.5px; color: #9ca3af; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irl-pin-meta { font-size: 11.5px; color: #9ca3af; margin-top: 3px; }
/* "Sign": opens /irl/sign preselected on this pin. A placed agent is
undiscoverable until something in the physical world points at it, so the
printable sign sits right next to the pin it belongs to. */
.irl-pin-sign { flex-shrink: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(126,200,227,0.28); background: rgba(126,200,227,0.10); color: #7ec8e3; font: 600 12px inherit; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.irl-pin-sign:hover { background: rgba(126,200,227,0.20); border-color: rgba(126,200,227,0.5); }
.irl-pin-sign:focus-visible { outline: 2px solid #7ec8e3; outline-offset: 2px; }
.irl-pin-del { flex-shrink: 0; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(248,113,113,0.2); background: rgba(248,113,113,0.08); color: #f87171; font: 600 12px inherit; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.irl-pin-del:hover { background: rgba(248,113,113,0.18); }
.irl-pin-del:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.irl-mypins-empty { font-size: 14px; color: #9ca3af; text-align: center; padding: 18px 0; }
#irl-mypins-btn { display: none; }
/* Expiry chip in the meta line — countdown for anonymous pins, "permanent"
for signed-in ones. Near-expiry (≤24h) shifts amber to draw the eye. */
.irl-pin-exp { color: #9ca3af; }
.irl-pin-exp.is-soon { color: var(--warn, #fbbf24); }
.irl-pin-exp.is-perm { color: #9ca3af; }
/* Owned-pins overview map — a lazy Leaflet map above the list. Hidden until
markers are plotted; degrades to display:none on any CDN failure so the
list alone remains the source of truth. */
.irl-mypins-map { display: none; height: 168px; margin-bottom: 14px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.10); background: rgba(8,10,16,0.6); position: relative; }
.irl-mypins-map.is-shown { display: block; }
.irl-mypins-map .irl-mypins-map-skel { position: absolute; inset: 0; background:
linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%) 0 0 / 200% 100%;
animation: irl-mypins-shimmer 1.5s ease-in-out infinite; }
@keyframes irl-mypins-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .irl-mypins-map .irl-mypins-map-skel { animation: none; } }
/* Leaflet dark-theme touch-ups (zoom + attribution), scoped to this map */
.irl-mypins-map .leaflet-control-zoom a { background: rgba(18,20,28,0.92); color: #cbd5e1; border-color: rgba(255,255,255,0.12); }
.irl-mypins-map .leaflet-control-zoom a:hover { background: rgba(30,33,44,0.95); }
.irl-mypins-map .leaflet-bar { border-color: rgba(255,255,255,0.12); box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.irl-mypins-map .leaflet-control-attribution { background: rgba(8,10,16,0.7); color: #99a; font-size: 10px; }
.irl-mypins-map .leaflet-control-attribution a { color: #9cf; }
.irl-mypins-map .leaflet-marker-icon.irl-mypins-pin { background: none; border: none; }
/* Gold dot marker — matches the "your agent" gold used on nearby labels */
.irl-mypins-marker { width: 14px; height: 14px; border-radius: 50%; background: var(--warn, #fbbf24); border: 2px solid rgba(12,14,20,0.9); box-shadow: 0 0 0 2px rgba(251,191,36,0.45), 0 0 10px rgba(251,191,36,0.55); cursor: pointer; }
/* Row flash when its marker is tapped */
.irl-pin-row.is-highlight { animation: irl-pin-flash 1.6s ease-out; }
@keyframes irl-pin-flash {
0% { background: rgba(251,191,36,0.22); }
100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .irl-pin-row.is-highlight { animation: none; background: rgba(251,191,36,0.12); } }
/* Footer: "Remove all from this device" purge + its inline confirm */
.irl-mypins-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.irl-mypins-purge { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid rgba(248,113,113,0.28); background: rgba(248,113,113,0.10); color: #f87171; font: 600 13.5px inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.irl-mypins-purge:hover { background: rgba(248,113,113,0.18); border-color: rgba(248,113,113,0.45); }
.irl-mypins-purge:active { transform: scale(0.99); }
.irl-mypins-purge:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.irl-mypins-purge:disabled { opacity: 0.6; cursor: default; }
.irl-mypins-purge svg { width: 15px; height: 15px; flex-shrink: 0; }
.irl-mypins-confirm { border: 1px solid rgba(248,113,113,0.3); background: rgba(248,113,113,0.06); border-radius: 12px; padding: 14px; }
.irl-mypins-confirm-q { font-size: 13.5px; line-height: 1.5; color: #e5e7eb; margin: 0 0 12px; }
.irl-mypins-confirm-row { display: flex; gap: 10px; }
.irl-mypins-confirm-cancel, .irl-mypins-confirm-go { flex: 1; padding: 10px 14px; border-radius: 10px; font: 600 13.5px inherit; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.irl-mypins-confirm-cancel { border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color: #e5e7eb; }
.irl-mypins-confirm-cancel:hover { background: rgba(255,255,255,0.12); }
.irl-mypins-confirm-go { border: 1px solid transparent; background: #ef4444; color: #fff; }
.irl-mypins-confirm-go:hover { background: #dc2626; }
.irl-mypins-confirm-go:disabled, .irl-mypins-confirm-cancel:disabled { opacity: 0.6; cursor: default; }
.irl-mypins-confirm-cancel:focus-visible, .irl-mypins-confirm-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 3D→2D agent labels (injected by JS per nearby pin) */
.irl-agent-label {
position: fixed;
transform: translate(-50%, -100%);
pointer-events: auto;
cursor: pointer;
z-index: 7;
background: rgba(0,0,0,0.76);
border: 1px solid rgba(136,187,255,0.42);
border-radius: 9px;
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
color: #88bbff;
white-space: nowrap;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
box-shadow: 0 0 10px rgba(136,187,255,0.15);
animation: irl-label-in 0.22s ease-out;
transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, transform 0.18s ease;
max-width: min(48vw, 200px);
box-sizing: border-box;
}
/* Expanded touch target (B4) — an invisible ≥44px (Apple HIG) hit area
around the visible label so a finger reliably opens the agent on a
phone. Paints nothing; only enlarges the element's hit region. */
.irl-agent-label::before {
content: '';
position: absolute;
inset: -12px;
border-radius: 16px;
}
/* Camera-aware state: agent is in the camera's view cone */
.irl-agent-label.is-aware {
border-color: rgba(52,211,153,0.7);
color: #34d399;
box-shadow: 0 0 16px rgba(52,211,153,0.35);
animation: irl-label-in 0.22s ease-out, irl-aware-pulse 2s ease-in-out infinite;
}
@keyframes irl-aware-pulse {
0%, 100% { box-shadow: 0 0 16px rgba(52,211,153,0.35); }
50% { box-shadow: 0 0 28px rgba(52,211,153,0.65); }
}
/* Own agent label: gold border to differentiate from others' */
.irl-agent-label.is-own {
border-color: rgba(251,191,36,0.6);
color: var(--warn, #fbbf24);
box-shadow: 0 0 10px rgba(251,191,36,0.2);
}
.irl-agent-label.is-own.is-aware {
border-color: rgba(251,191,36,0.9);
box-shadow: 0 0 20px rgba(251,191,36,0.4);
}
/* Proximity focus (B4) — the single nearest reachable on-screen agent gets
a "you'll tap this" reticle: a crisp ring + subtle scale. Layered after
is-aware/is-own so the focus target always reads on top, and eased via
the label's transform/box-shadow transition. */
.irl-agent-label.is-focus {
border-color: rgba(136,187,255,0.95);
box-shadow: 0 0 0 2px rgba(136,187,255,0.55), 0 0 22px rgba(136,187,255,0.5);
transform: translate(-50%, -100%) scale(1.07);
}
.irl-agent-label.is-own.is-focus {
border-color: rgba(251,191,36,0.95);
box-shadow: 0 0 0 2px rgba(251,191,36,0.6), 0 0 22px rgba(251,191,36,0.5);
}
@media (prefers-reduced-motion: reduce) {
.irl-agent-label.is-focus { transform: translate(-50%, -100%); }
}
@keyframes irl-label-in {
from { opacity:0; transform: translate(-50%, -90%); }
to { opacity:1; transform: translate(-50%, -100%); }
}
.irl-agent-label-name { display: block; overflow: hidden; text-overflow: ellipsis; }
/* Ambient interaction reactions (D3) — a glyph rises off an agent's head when
a co-located viewer taps / pays / messages it. Two layers: the OUTER is
reprojected to the agent's screen point each frame by irl.js; the INNER runs
the rise+fade. Pure transform/opacity (GPU), never interactive, auto-removed. */
.irl-reaction {
position: fixed;
transform: translate(-50%, -100%);
pointer-events: none;
z-index: 8; /* just above name labels (7), below the inspect sheet (19) */
will-change: transform;
}
.irl-reaction-burst {
display: flex;
align-items: center;
gap: 5px;
padding: 4px 9px;
border-radius: 999px;
font-size: 13px;
font-weight: 700;
line-height: 1;
white-space: nowrap;
color: #f5d0fe;
background: rgba(139,92,246,0.28);
border: 1px solid rgba(167,139,250,0.55);
box-shadow: 0 0 14px rgba(139,92,246,0.4);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
will-change: transform, opacity;
animation: irl-reaction-rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.irl-reaction-burst.is-pay {
color: #fde68a;
background: rgba(251,191,36,0.26);
border-color: rgba(251,191,36,0.62);
box-shadow: 0 0 16px rgba(251,191,36,0.5);
}
.irl-reaction-burst.is-msg {
color: #a5f3fc;
background: rgba(34,211,238,0.22);
border-color: rgba(34,211,238,0.55);
box-shadow: 0 0 14px rgba(34,211,238,0.4);
}
.irl-reaction-mark { font-size: 15px; }
.irl-reaction-text { letter-spacing: 0.02em; }
@keyframes irl-reaction-rise {
0% { opacity: 0; transform: translateY(8px) scale(0.6); }
16% { opacity: 1; transform: translateY(0) scale(1.12); }
32% { opacity: 1; transform: translateY(-6px) scale(1); }
100% { opacity: 0; transform: translateY(-44px) scale(0.96); }
}
/* Reduced motion: keep the acknowledgement, drop the travel — a gentle fade in
place so the flourish never becomes vestibular motion. */
@media (prefers-reduced-motion: reduce) {
.irl-reaction-burst {
animation: irl-reaction-fade 1.2s ease-out forwards;
}
@keyframes irl-reaction-fade {
0% { opacity: 0; transform: scale(0.9); }
16% { opacity: 1; transform: scale(1); }
70% { opacity: 1; transform: scale(1); }
100% { opacity: 0; transform: scale(1); }
}
}
/* ── Inspect card v2 ── */
/* Backdrop — dims the AR view behind the card so it reads as a focused dialog */
#irl-sheet-backdrop {
position: fixed;
inset: 0;
z-index: 19;
background: rgba(4,6,11,0.45);
opacity: 0;
pointer-events: none;
transition: opacity 0.28s ease;
}
#irl-sheet-backdrop.is-open { opacity: 1; pointer-events: all; }
/* Header thumbnail */
.irl-sheet-thumb {
width: 48px;
height: 48px;
border-radius: 12px;
object-fit: cover;
flex-shrink: 0;
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.10);
}
.irl-sheet-title-row {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.irl-sheet-title-row .irl-sheet-title { flex: 0 1 auto; }
/* Tier badge (header) — score + tier word, colour-coded by tier */
.irl-tier-badge {
display: inline-flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
font-size: 11.5px;
font-weight: 700;
padding: 2px 9px;
border-radius: 999px;
letter-spacing: 0.01em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
background: rgba(255,255,255,0.08);
border: 1px solid rgba(255,255,255,0.16);
color: #e5e7eb;
}
.irl-tier-badge[data-tier="elite"] { background: rgba(250,204,21,0.16); border-color: rgba(250,204,21,0.45); color: #fde047; }
.irl-tier-badge[data-tier="trusted"] { background: rgba(52,211,153,0.16); border-color: rgba(52,211,153,0.45); color: #34d399; }
.irl-tier-badge[data-tier="emerging"] { background: rgba(96,165,250,0.16); border-color: rgba(96,165,250,0.45); color: #93c5fd; }
.irl-tier-badge[data-tier="new"] { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #9ca3af; }
/* Card body — JS-rendered state container */
.irl-card-body {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 14px;
}
.irl-card-body:empty { display: none; }
/* Skeleton tuned for the card (overrides state-kit row min-heights) */
.irl-card-body .tws-sk--row { padding: 6px 0; border: none; background: none; }
/* Bio */
.irl-card-bio {
font-size: 13.5px;
color: #9ca3af;
line-height: 1.55;
margin: 0;
}
/* Reputation strip */
.irl-rep-strip {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
font-size: 12.5px;
color: #cbd5e1;
font-variant-numeric: tabular-nums;
}
.irl-rep-star { color: var(--warn, #fbbf24); }
.irl-rep-strip .irl-rep-sep { color: #4b5563; }
.irl-rep-strip b { color: #e5e7eb; font-weight: 700; }
/* "New here — no on-chain reputation yet" muted chip */
.irl-rep-chip {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
color: #9ca3af;
padding: 4px 10px;
border-radius: 999px;
background: rgba(255,255,255,0.04);
border: 1px dashed rgba(255,255,255,0.16);
}
/* Tap-to-tip (IRL Solana Pay) — violet wallet family, matches the chip */
.irl-taptip { margin-top: 10px; }
.irl-taptip-toggle {
display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
appearance: none; cursor: pointer; font: 700 12px/1 inherit; color: var(--accent-violet, #c4b5fd);
background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.32);
border-radius: 999px; padding: 9px 14px; transition: background .15s, border-color .15s;
}
.irl-taptip-toggle:hover, .irl-taptip-toggle:focus-visible { background: rgba(139,92,246,0.2); border-color: rgba(139,92,246,0.55); outline: none; }
.irl-taptip-toggle[aria-expanded="true"] .irl-taptip-caret { transform: rotate(180deg); }
.irl-taptip-caret { transition: transform .18s ease; opacity: .7; }
.irl-taptip-panel {
display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 12px;
background: rgba(255,255,255,0.04); border: 1px solid rgba(139,92,246,0.28); border-radius: 12px;
}
.irl-taptip-panel[hidden] { display: none; }
.irl-taptip-qr { background: #fff; border-radius: 10px; padding: 7px; line-height: 0; flex: none; }
.irl-taptip-qr svg { display: block; width: 116px; height: 116px; }
.irl-taptip-meta { min-width: 0; }
.irl-taptip-cap { font-size: 12px; color: #9ca3af; margin-bottom: 10px; line-height: 1.4; }
.irl-taptip-open {
display: inline-flex; align-items: center; gap: 4px; font: 700 12px/1 inherit; text-decoration: none;
color: #0a0a0a; background: linear-gradient(135deg,var(--accent-violet, #c4b5fd),var(--accent-violet-strong, #a78bfa)); border-radius: 999px; padding: 9px 14px;
transition: filter .15s;
}
.irl-taptip-open:hover { filter: brightness(1.07); }
/* Services list */
.irl-services-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; margin-bottom: 8px; }
.irl-services-list { display: flex; flex-direction: column; gap: 8px; }
.irl-service-row {
display: flex;
align-items: center;
gap: 10px;
padding: 9px 11px;
border-radius: 11px;
background: rgba(255,255,255,0.04);
border: 1px solid rgba(255,255,255,0.08);
}
.irl-service-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.irl-service-name { color: #e5e7eb; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irl-service-desc { color: #9ca3af; font-size: 11.5px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irl-service-price {
color: #34d399;
font-weight: 700;
font-size: 12.5px;
white-space: nowrap;
font-variant-numeric: tabular-nums;
padding: 3px 9px;
border-radius: 999px;
background: rgba(52,211,153,0.12);
border: 1px solid rgba(52,211,153,0.28);
}
.irl-service-use {
flex-shrink: 0;
padding: 6px 13px;
border-radius: 9px;
border: 1px solid rgba(255,255,255,0.14);
background: rgba(255,255,255,0.07);
color: #e5e7eb;
font: inherit;
font-size: 12.5px;
font-weight: 600;
cursor: pointer;
transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.irl-service-use:hover { background: rgba(52,211,153,0.18); border-color: rgba(52,211,153,0.4); color: #34d399; }
.irl-service-use:active { transform: translateY(1px); }
.irl-service-use:focus-visible { outline: 2px solid rgba(52,211,153,0.6); outline-offset: 2px; }
.irl-service-use:disabled { opacity: 0.6; cursor: default; }
/* Paid-service response, rendered inline after an x402 settlement */
.irl-service-result {
margin-top: 12px;
padding: 10px 12px;
border-radius: 10px;
background: rgba(52,211,153,0.07);
border: 1px solid rgba(52,211,153,0.22);
animation: irl-result-in 0.25s ease;
}
.irl-service-result-label {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #34d399;
font-weight: 600;
margin-bottom: 6px;
}
.irl-service-result pre {
margin: 0;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
line-height: 1.5;
color: #d1d5db;
white-space: pre-wrap;
word-break: break-word;
max-height: 220px;
overflow: auto;
}
@keyframes irl-result-in {
from { opacity: 0; transform: translateY(4px); }
to { opacity: 1; transform: none; }
}
/* Wallet-needed notice (E4) — a designed, persistent state-kit card shown when
a Pay/Use tap has no connected wallet. Sits below the services it gates. */
.irl-pay-notice {
margin-top: 12px;
padding-top: 6px;
border-top: 1px solid rgba(255,255,255,0.08);
animation: irl-result-in 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
.irl-pay-notice { animation: none; }
}
/* Multiplayer indicator row */
.irl-multiplayer-note {
display: flex;
align-items: center;
gap: 6px;
font-size: 11.5px;
color: #34d399;
margin-bottom: 14px;
}
.irl-multiplayer-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: #34d399;
flex-shrink: 0;
animation: irl-pulse 2s ease-in-out infinite;
}
/* Leave-a-message composer — a visitor's note lands in the owner's IRL feed */
.irl-sheet-msg { display: flex; gap: 8px; margin-top: 14px; }
.irl-msg-input {
flex: 1; min-width: 0;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.13);
border-radius: 11px;
padding: 11px 13px;
font: inherit; font-size: 16px; color: #e5e7eb;
outline: none; transition: border-color 0.15s;
}
.irl-msg-input:focus { border-color: rgba(139,92,246,0.5); }
.irl-msg-input::placeholder { color: #6b7280; }
/* Mobile inputs are 16px to stop iOS Safari auto-zooming on focus; desktop
has no such constraint, so tighten back to the 14px visual scale. */
@media (hover: hover) and (pointer: fine) {
#irl-caption-input { font-size: 14px; }
.irl-msg-input { font-size: 14px; }
}
.irl-msg-send {
flex-shrink: 0; padding: 0 18px;
border-radius: 11px;
border: 1px solid rgba(139,92,246,0.4);
background: rgba(139,92,246,0.18);
color: var(--accent-violet, #c4b5fd);
font: inherit; font-size: 14px; font-weight: 600;
cursor: pointer; transition: background 0.15s, opacity 0.15s;
}
.irl-msg-send:hover { background: rgba(139,92,246,0.28); }
.irl-msg-send:disabled { opacity: 0.5; cursor: default; }
.irl-sheet-status { margin-top: 10px; font-size: 12.5px; color: #34d399; }
.irl-sheet-status.is-error { color: #f87171; }
/* Report affordance (D4) — deliberately low-prominence; it's a safety tool,
not a primary action. Sits under the message composer. */
.irl-sheet-report {
display: block;
min-height: 32px;
margin: 14px auto 0;
padding: 6px 10px;
background: none;
border: none;
color: #9ca3af;
font-size: 12px;
cursor: pointer;
border-radius: 8px;
transition: color 0.15s, background 0.15s;
}
.irl-sheet-report:hover { color: #f87171; background: rgba(248,113,113,0.08); }
.irl-sheet-report:focus-visible { outline: 2px solid rgba(248,113,113,0.6); outline-offset: 2px; }
/* Report reason sheet */
#irl-report-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 23;
background: rgba(12,14,20,0.98);
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
padding: 20px 22px 36px;
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
max-height: 72vh;
overflow-y: auto;
}
#irl-report-sheet.is-open { transform: translateY(0); pointer-events: all; }
#irl-report-sheet .irl-sheet-handle { margin-bottom: 14px; }
.irl-report-header { display: flex; align-items: center; justify-content: space-between; }
.irl-report-header h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0; }
.irl-report-sub { font-size: 12.5px; color: #9ca3af; margin: 8px 0 16px; line-height: 1.5; }
.irl-report-reasons { display: flex; flex-direction: column; gap: 8px; }
.irl-report-reason {
text-align: left;
padding: 13px 14px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.03);
color: #e5e7eb;
font-size: 14px;
cursor: pointer;
transition: border-color 0.15s, background 0.15s, transform 0.05s;
}
.irl-report-reason:hover { border-color: rgba(248,113,113,0.5); background: rgba(248,113,113,0.08); }
.irl-report-reason:active { transform: scale(0.99); }
.irl-report-reason:focus-visible { outline: 2px solid rgba(248,113,113,0.6); outline-offset: 2px; }
.irl-report-reason:disabled { opacity: 0.5; cursor: default; }
/* Agent picker sheet */
#irl-agents-sheet {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 21;
background: rgba(12,14,20,0.97);
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
padding: 20px 22px 36px;
backdrop-filter: blur(22px);
-webkit-backdrop-filter: blur(22px);
transform: translateY(100%);
transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
pointer-events: none;
max-height: 72vh;
overflow-y: auto;
}
#irl-agents-sheet.is-open {
transform: translateY(0);
pointer-events: all;
}
#irl-agents-sheet .irl-sheet-handle { margin-bottom: 14px; }
.irl-agents-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.irl-agents-header h3 { font-size: 16px; font-weight: 700; color: #e5e7eb; margin: 0; }
.irl-agents-header p { font-size: 12px; color: #9ca3af; margin: 0; }
.irl-agent-row {
display: flex;
align-items: center;
gap: 12px;
padding: 10px;
border-radius: 12px;
border: 1px solid rgba(255,255,255,0.07);
margin-bottom: 8px;
cursor: pointer;
transition: background 0.15s, border-color 0.15s;
-webkit-tap-highlight-color: transparent;
}
.irl-agent-row:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); }
.irl-agent-row:active { background: rgba(255,255,255,0.08); }
.irl-agent-row.is-active { border-color: rgba(52,211,153,0.5); background: rgba(52,211,153,0.06); }
.irl-agent-thumb {
width: 48px; height: 48px;
border-radius: 11px;
background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(52,211,153,0.2));
border: 1px solid rgba(255,255,255,0.1);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
flex-shrink: 0;
overflow: hidden;
}
.irl-agent-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.irl-agent-row-info { flex: 1; min-width: 0; }
.irl-agent-row-name { font-size: 14px; font-weight: 600; color: #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irl-agent-row-desc { font-size: 12px; color: #9ca3af; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irl-agent-row-check { font-size: 16px; color: #34d399; flex-shrink: 0; }
.irl-agents-empty { font-size: 14px; color: #9ca3af; text-align: center; padding: 18px 0; }
.irl-agents-empty a { color: #34d399; text-decoration: none; }
.irl-agents-empty a:hover { text-decoration: underline; }
/* Desktop keyboard hints */
#irl-keys {
position: fixed;
z-index: 5;
right: 16px;
top: 50%;
transform: translateY(-50%);
display: flex;
flex-direction: column;
gap: 6px;
align-items: flex-end;
color: var(--text-2);
font-size: 11px;
pointer-events: none;
}
@media (hover: none), (max-width: 640px) { #irl-keys { display: none; } }
.irl-key {
display: inline-flex;
align-items: center;
gap: 4px;
background: rgba(0,0,0,0.6);
border: 1px solid var(--border);
border-radius: 8px;
padding: 4px 8px;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}
.irl-key kbd {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 10px;
padding: 1px 5px;
border-radius: 4px;
background: rgba(255,255,255,0.08);
border: 1px solid var(--border);
color: var(--text);
}
/* Bottom sheets: clear the home indicator (safe-area-inset-bottom) and the
landscape notch (left/right insets), and never exceed the viewport so a
tall sheet stays scrollable in landscape instead of clipping its actions.
Longhand placed after each sheet's `padding` shorthand so it wins. */
#irl-sheet, #irl-caption-panel, #irl-error-sheet, #irl-mypins-sheet,
#irl-report-sheet, #irl-agents-sheet {
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
padding-left: max(22px, env(safe-area-inset-left, 0px));
padding-right: max(22px, env(safe-area-inset-right, 0px));
max-height: 92vh;
overflow-y: auto;
overscroll-behavior: contain;
}
/* ── Accessibility: shared keyboard focus ring (task 07) ───────────────
The same crisp 2px ring on :focus-visible (keyboard nav only) for the
interactive controls that lacked one — the hero button, pills, object
picker and topbar Back are styled individually just above. Grouped so no
sheet control can be Tab-reached without a visible focus indicator. White
on the dark sheets clears non-text contrast comfortably. */
.irl-sheet-close:focus-visible,
.irl-sheet-btn:focus-visible,
.irl-talk-hold:focus-visible,
.irl-msg-send:focus-visible,
.irl-agent-row:focus-visible,
#irl-caption-confirm:focus-visible,
#irl-caption-cancel:focus-visible,
#irl-error-action:focus-visible,
#irl-error-dismiss:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* ── Reduced motion: still ambient/decorative UI loops (task 07) ───────
Continuous, purely-decorative animations are paused. Avatar movement is
content (driven in WebGL, not here) and is intentionally left alone; the
loading spinner is feedback and also stays. One-shot entrances are
flattened so nothing slides/pulses for motion-sensitive users. */
@media (prefers-reduced-motion: reduce) {
body.is-ar.is-locked #irl-lock-icon { animation: none; }
body.is-ar .irl-badge-dot,
.irl-multiplayer-dot { animation: none; }
.irl-agent-label.is-aware { animation: irl-label-in 0.22s ease-out; }
#irl-picker { animation: none; }
}
</style>
<link rel="canonical" href="https://three.ws/irl">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"IRL","description":"Place a 3D avatar in your real environment. Camera AR passthrough, joystick movement, and tap-to-place 3D objects on your floor.","url":"https://three.ws/irl","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="IRL — three.ws">
<meta name="twitter:site" content="@trythreews">
</head>
<body>
<!-- Ambient background glow (behind everything) -->
<div class="irl-bg" aria-hidden="true"></div>
<!-- Camera passthrough (shown only in AR mode) -->
<video id="irl-camera" autoplay muted playsinline></video>
<!-- Three.js canvas -->
<canvas id="irl-canvas"></canvas>
<!-- Full-screen designed-state host (E4): unsupported-device state (filled by the
capability gate below before irl.js loads) and avatar-load-failure Retry card
(filled by irl.js). Empty + hidden until a full-screen state is needed. -->
<div id="irl-overlay" hidden role="alertdialog" aria-modal="true" aria-label="IRL status"></div>
<!-- Top bar -->
<header class="irl-topbar">
<a class="irl-back" id="irl-back-link" href="/temporary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="15 18 9 12 15 6"/></svg>
Back
</a>
<div class="irl-topbar-center">
<span class="irl-badge" role="img" aria-label="three.ws IRL — augmented reality" data-i18n-attr="aria-label:irl.three_ws_irl_augmented_reali_arialabel">
<svg class="irl-badge-mark" viewBox="0 0 26 28" fill="none" aria-hidden="true">
<path class="irl-mark-cube" d="M13 2.5 4 7v9l9 4.5 9-4.5V7Z"/>
<path class="irl-mark-cube" d="M13 2.5v9M4 7l9 4.5M22 7l-9 4.5"/>
<path class="irl-mark-beam" d="M13 20.5v1.9"/>
<ellipse class="irl-mark-anchor" cx="13" cy="24.3" rx="7.4" ry="1.9"/>
<circle class="irl-mark-dot" cx="13" cy="24.3" r="1" stroke="none"/>
</svg>
<span class="irl-badge-word">IRL</span>
<span class="irl-badge-dot"></span>
</span>
<span id="irl-nearby-badge" hidden aria-live="polite"></span>
<span id="irl-net-pill" class="irl-net-pill" hidden role="status" aria-live="polite"></span>
<!-- D2 live viewer presence — "N viewing nearby" with a pulsing dot. Hidden
unless the live stream is up and more than just you are here. -->
<span id="irl-presence-chip" class="irl-presence-chip" hidden role="status" aria-live="polite"></span>
</div>
<div class="irl-topbar-right">
<button class="irl-share-btn irl-more-btn" id="irl-more-btn" type="button" aria-haspopup="dialog" aria-expanded="false" aria-controls="irl-more-sheet" aria-label="More" title="More" data-i18n-attr="aria-label:irl.more_arialabel;title:irl.more_title">
<svg width="17" height="17" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><circle cx="5" cy="12" r="2"/><circle cx="12" cy="12" r="2"/><circle cx="19" cy="12" r="2"/></svg>
</button>
<button class="irl-share-btn" id="irl-share-btn" type="button" aria-label="Share" data-i18n="irl.share" data-i18n-attr="aria-label:irl.share_arialabel">Share</button>
</div>
</header>
<!-- "More" overflow sheet — location & privacy, World Lines, smart glasses,
arrival-sound mute. Consolidated off the top bar (see .irl-more-btn note). -->
<div id="irl-more-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-more-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-more-header">
<h3 id="irl-more-title" data-i18n="irl.more">More</h3>
<button class="irl-sheet-close" id="irl-more-close" type="button" aria-label="Close" data-i18n-attr="aria-label:irl.close_arialabel">×</button>
</div>
<button class="irl-more-row irl-cue-mute" id="irl-cue-mute" type="button" aria-pressed="false" aria-label="Arrival sound on — tap to mute" data-i18n-html="irl.arrival_sound_on_plays_when_an_agent" data-i18n-attr="aria-label:irl.arrival_sound_on_tap_to_mute_arialabel">
<span class="irl-more-row-icon" aria-hidden="true">
<svg class="irl-cue-on" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5 6 9H2v6h4l5 4z"/><path d="M15.5 8.5a5 5 0 0 1 0 7"/><path d="M19 5a9 9 0 0 1 0 14"/></svg>
<svg class="irl-cue-off" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"><path d="M11 5 6 9H2v6h4l5 4z"/><line x1="22" y1="9" x2="16" y2="15"/><line x1="16" y1="9" x2="22" y2="15"/></svg>
</span>
<span class="irl-more-row-text">
<span class="irl-more-row-label">Arrival sound</span>
<span class="irl-more-row-sub" id="irl-cue-mute-sub">On — plays when an agent enters range</span>
</span>
</button>
<button class="irl-more-row irl-privacy-btn" id="irl-privacy-btn" type="button">
<span class="irl-more-row-icon" aria-hidden="true"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="m9 12 2 2 4-4"/></svg></span>
<span class="irl-more-row-text" data-i18n-html="irl.location_privacy_discovery_precision_ghost_v">
<span class="irl-more-row-label">Location & privacy</span>
<span class="irl-more-row-sub">Discovery precision, ghost visibility, your pins</span>
</span>
<svg class="irl-more-row-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
</button>
<a class="irl-more-row irl-privacy-btn" id="irl-worldlines-btn" href="/world-lines">
<span class="irl-more-row-icon" aria-hidden="true"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v4"/><path d="M12 18v4"/><path d="M4.93 4.93l2.83 2.83"/><path d="M16.24 16.24l2.83 2.83"/><circle cx="12" cy="12" r="4"/><path d="M2 12h4"/><path d="M18 12h4"/></svg></span>
<span class="irl-more-row-text" data-i18n-html="irl.world_lines_proof_of_presence_quests">
<span class="irl-more-row-label">World Lines</span>
<span class="irl-more-row-sub">Proof-of-presence quests</span>
</span>
<svg class="irl-more-row-chevron" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"/></svg>
</a>
<button class="irl-more-row irl-glasses-btn" id="irl-glasses-btn" type="button" aria-pressed="false" data-i18n-html="irl.smart_glasses_mirror_the_nearest_agent_cue">
<span class="irl-more-row-icon" aria-hidden="true"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="15" r="4"/><circle cx="18" cy="15" r="4"/><path d="M10 15a2 2 0 0 1 4 0"/><path d="m2.5 13 1.5-5a2 2 0 0 1 2-1.5"/><path d="m21.5 13-1.5-5a2 2 0 0 0-2-1.5"/></svg></span>
<span class="irl-more-row-text">
<span class="irl-more-row-label">Smart glasses</span>
<span class="irl-more-row-sub" id="irl-glasses-sub">Mirror the nearest-agent cue to a paired lens</span>
</span>
</button>
</div>
<!-- Immersive toggle — collapses all chrome so the AR view is unobstructed.
Lives outside the topbar so it survives the collapse and remains the one
control on screen to bring everything back. -->
<button class="irl-immersive-toggle" id="irl-immersive-toggle" type="button" aria-pressed="false" aria-label="Hide controls" title="Hide controls" data-i18n-attr="aria-label:irl.hide_controls_arialabel;title:irl.hide_controls_title">
<svg class="irl-eye-hide" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 10 8 10 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24"/><path d="M6.61 6.61A13.5 13.5 0 0 0 2 12s3 8 10 8a9.7 9.7 0 0 0 5.39-1.61"/><line x1="2" y1="2" x2="22" y2="22"/></svg>
<svg class="irl-eye-show" width="19" height="19" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/></svg>
</button>
<!-- One-time coachmark shown the first time the chrome auto-hides, so the
reveal gesture is discoverable. Decorative + non-interactive. -->
<div id="irl-immersive-hint" class="irl-immersive-hint" aria-hidden="true"></div>
<!-- Proximity-arrival cue (task 03): a transient "look around" banner when a new
agent enters your ~40 m bubble. aria-live polite so a screen reader announces
the arrival without stealing focus. Filled + shown by src/irl.js. -->
<div id="irl-arrival-cue" class="irl-arrival-cue" role="status" aria-live="polite" hidden></div>
<!-- Non-map directional hint (task 03): a soft edge glow + arrow pointing toward
the nearest in-range agent's bearing, recomputed as the device rotates and
faded once that agent is on-screen. A *direction*, never a map or a distance.
aria-hidden — the banner above is the accessible announcement; this is purely
a visual nudge that tracks live camera motion. -->
<div id="irl-dir-nudge" class="irl-dir-nudge" aria-hidden="true" hidden>
<span class="irl-dir-nudge-glow"></span>
<span class="irl-dir-nudge-arrow">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 19V5"/><path d="m6 11 6-6 6 6"/></svg>
</span>
</div>
<!-- E1 permission re-request chips — a denied sensor leaves a one-tap recovery
chip here; src/irl/onboarding.js shows/hides this strip and renders into it. -->
<div id="irl-perm-chips" class="irl-perm-chips" hidden aria-label="Permissions needing attention"></div>
<!-- Task 02 — designed discovery empty state. With a tight radius and no map,
"nothing on screen" is the COMMON first experience, so it must read as "keep
exploring," never as a dead feature. Decorative (the looping hint is
aria-hidden); the topbar nearby badge owns the polite SR announcement of the
empty⇄populated transition. The container is pointer-events:none so camera
taps pass through — only the CTA is interactive. Driven by src/irl/discovery.js. -->
<div id="irl-discovery-empty" class="irl-dx-empty" hidden>
<div class="irl-dx-empty-card">
<span class="irl-dx-empty-pulse" aria-hidden="true"></span>
<p class="irl-dx-empty-hint" aria-hidden="true" data-i18n="irl.look_around_or_be_the_first_to">Look around 👀 · or be the first to pin here</p>
<button type="button" class="irl-dx-place" aria-label="Place your agent here so others nearby can find it" data-i18n="irl.place_an_agent_here" data-i18n-attr="aria-label:irl.place_your_agent_here_so_oth_arialabel">Place an agent here</button>
</div>
</div>
<!-- Re-openable explainer affordance — always one tap from re-reading the model. -->
<button type="button" id="irl-dx-help" class="irl-dx-help" hidden aria-label="How discovery works" data-i18n-attr="aria-label:irl.how_discovery_works_arialabel">?</button>
<!-- First-run discovery explainer shell — filled + revealed by src/irl/discovery.js. -->
<div id="irl-discovery-explainer" hidden role="dialog" aria-modal="true" aria-label="How discovery works"></div>
<!-- Joystick zone -->
<div id="irl-joystick"></div>
<!-- Desktop keyboard hints -->
<div id="irl-keys">
<span class="irl-key" data-i18n-html="irl.wasd_move"><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> move</span>
<span class="irl-key" data-i18n-html="irl.shift_run"><kbd>Shift</kbd> run</span>
<span class="irl-key" data-i18n="irl.drag_to_orbit">drag to orbit</span>
<span class="irl-key" data-i18n-html="irl.h_hide_ui"><kbd>H</kbd> hide UI</span>
<span class="irl-key" data-i18n-html="irl.f_fullscreen"><kbd>F</kbd> fullscreen</span>
</div>
<!-- Bottom panel -->
<footer class="irl-bottom">
<h1 class="irl-avatar-name" id="irl-avatar-name" data-i18n="irl.loading">Loading…</h1>
<p class="irl-subtitle" id="irl-subtitle" data-i18n="irl.turn_on_camera_ar_then_tap_pin">Turn on Camera AR, then tap Pin here to anchor your agent in real space.</p>
<p class="irl-status is-hidden" id="irl-status" role="status" aria-live="polite">
<span class="irl-status-spinner hidden" id="irl-spinner" aria-hidden="true"></span>
<span id="irl-status-text"></span>
</p>
<button id="irl-camera-btn" type="button" disabled aria-busy="true" aria-pressed="false">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M23 7 16 12l7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>
<span id="irl-camera-label" data-i18n="irl.camera_ar">Camera AR</span>
</button>
<!-- Ordered by how often each is used: pin/place actions first (always
on-screen without scrolling), setup + management actions trail off the
right edge of the scroll strip (see .irl-secondary-row above). -->
<div class="irl-secondary-row">
<button class="irl-pill-btn" id="irl-lock-btn" type="button" aria-pressed="false" aria-label="Pin avatar in real space" data-i18n-attr="aria-label:irl.pin_avatar_in_real_space_arialabel">
<svg id="irl-lock-icon" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
<span class="irl-lock-label">Pin here</span>
</button>
<button class="irl-pill-btn" id="irl-place-btn" type="button" aria-pressed="false">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>
Add object
</button>
<button class="irl-pill-btn" id="irl-clear-btn" type="button" hidden>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14H6L5 6"/><path d="M10 11v6M14 11v6"/></svg>
Clear
</button>
<button class="irl-pill-btn" id="irl-carry-btn" type="button" aria-pressed="false" aria-label="Carry your agent and set it down where you aim on the floor" data-i18n-attr="aria-label:irl.carry_your_agent_and_set_it_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M12 2v3M12 19v3M2 12h3M19 12h3"/></svg>
Move here
</button>
<button class="irl-pill-btn" id="irl-anchor-btn" type="button" hidden aria-label="Place agent on the floor with AR" data-i18n-attr="aria-label:irl.place_agent_on_the_floor_wit_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v4M12 18v4M2 12h4M18 12h4"/><circle cx="12" cy="12" r="4"/></svg>
Place in AR
</button>
<button class="irl-pill-btn" id="irl-mapplace-btn" type="button" aria-label="Place this agent at a spot you choose on a map" data-i18n-attr="aria-label:irl.place_this_agent_at_a_spot_y_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/></svg>
Place on map
</button>
<button class="irl-pill-btn" id="irl-agents-btn" type="button" aria-label="Switch AI agent" data-i18n-attr="aria-label:irl.switch_ai_agent_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2"/><path d="M8 21h8M12 17v4"/><circle cx="12" cy="10" r="3"/></svg>
My Agents
</button>
<button class="irl-pill-btn" id="irl-avatar-btn" type="button" aria-label="Change avatar" data-i18n-attr="aria-label:irl.change_avatar_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.582-7 8-7s8 3 8 7"/></svg>
Avatar
</button>
<button class="irl-pill-btn" id="irl-mypins-btn" type="button" aria-label="My active pins" data-i18n-attr="aria-label:irl.my_active_pins_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg>
My pins
</button>
<!-- D2 — opt in to appearing as a ghost to other live viewers (default off).
Only shown in GPS mode, where presence is live. -->
<button class="irl-pill-btn" id="irl-ghost-toggle" type="button" aria-pressed="false" aria-label="Appear to others viewing nearby" data-i18n-attr="aria-label:irl.appear_to_others_viewing_nea_arialabel">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/></svg>
Appear nearby
</button>
</div>
<!-- Object picker (revealed when Add Object is active) -->
<div id="irl-picker" hidden>
<button class="irl-obj-btn" data-type="orb" data-i18n-html="irl.orb">
<span class="irl-obj-swatch" style="background:rgba(136,187,255,0.9);box-shadow:0 0 6px rgba(136,187,255,0.6)"></span>
Orb
</button>
<button class="irl-obj-btn" data-type="crate" data-i18n-html="irl.crate">
<span class="irl-obj-swatch" style="background:#b07830;border-radius:2px"></span>
Crate
</button>
<button class="irl-obj-btn" data-type="crystal" data-i18n-html="irl.crystal">
<span class="irl-obj-swatch" style="background:rgba(204,119,255,0.9);clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%);border-radius:0"></span>
Crystal
</button>
<button class="irl-obj-btn" data-type="ring" data-i18n-html="irl.ring">
<span class="irl-obj-swatch" style="background:transparent;border:2px solid #ffd700;box-shadow:0 0 5px rgba(255,215,0,0.5)"></span>
Ring
</button>
<button class="irl-obj-btn" data-type="pillar" data-i18n-html="irl.pillar">
<span class="irl-obj-swatch" style="background:#c8c0b8;border-radius:3px;width:7px;height:12px;margin:0 3px"></span>
Pillar
</button>
</div>
</footer>
<!-- WebXR floor-anchor overlay (A1). Hidden until a session starts; surfaced as
the immersive-ar dom-overlay root so the in-session hint + exit are visible
over the AR view. Also the mount for the designed start-failure error card. -->
<div id="irl-xr-overlay" hidden>
<div class="irl-xr-bar" id="irl-xr-bar">
<span id="irl-xr-check" class="irl-xr-check" aria-hidden="true"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg></span>
<p id="irl-xr-hint" class="irl-xr-hint" aria-live="polite" data-i18n="irl.sweep_your_phone_slowly_to_find_the">Sweep your phone slowly to find the floor</p>
<button id="irl-xr-exit" type="button" class="irl-xr-exit" aria-label="Exit floor anchoring" data-i18n-attr="aria-label:irl.exit_floor_anchoring_arialabel">
<svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
Exit
</button>
</div>
<div id="irl-xr-error" class="irl-xr-error" hidden></div>
</div>
<!-- Caption input panel (slides up before a pin is saved) -->
<div id="irl-caption-panel" role="dialog" aria-modal="true" aria-labelledby="irl-caption-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<h3 id="irl-caption-title" data-i18n="irl.pin_your_agent_here">Pin your agent here</h3>
<!-- Placement chip (H4) — shows how this pin will be stored (exact vs approximate)
and re-opens the consent sheet to change it. -->
<button id="irl-caption-placement" class="irl-caption-placement" type="button" data-i18n-html="irl.exact_change">
<span class="irl-caption-place-badge">📍 Exact</span>
<span class="irl-caption-place-i" aria-hidden="true">Change ⓘ</span>
</button>
<textarea id="irl-caption-input" rows="3" placeholder="Add a caption… e.g. 'P2P trades here — DM me on Telegram' (optional)"></textarea>
<div class="irl-caption-row">
<button id="irl-caption-confirm" type="button" data-i18n="irl.pin_it">Pin it</button>
<button id="irl-caption-cancel" type="button" aria-label="Cancel" data-i18n-attr="aria-label:irl.cancel_arialabel">×</button>
</div>
</div>
<!-- Placement consent sheet (H4) — disclose what placing means + offer approximate.
Both choices are equally weighted; "don't show every time" suppresses the sheet
on later placements while keeping the remembered choice. -->
<div id="irl-consent-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-consent-title" aria-describedby="irl-consent-body">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<h3 id="irl-consent-title" data-i18n="irl.heads_up_this_is_a_real_world">Heads up — this is a real-world spot</h3>
<p id="irl-consent-body" data-i18n="irl.your_agent_will_be_visible_to_anyone">Your agent will be visible to anyone who physically walks within ~40 m of here. We never show a list or map of locations, and we never reveal who placed it — but the spot itself is public. Want to place it exactly here, or approximately?</p>
<fieldset class="irl-consent-radius">
<legend data-i18n="irl.if_approximate_blur_within">If approximate, blur within</legend>
<div class="irl-consent-seg" role="group" aria-label="Approximate blur radius">
<button type="button" data-fuzz="30" aria-pressed="false" data-i18n-html="irl.30_msame_block">~30 m<small>same block</small></button>
<button type="button" data-fuzz="100" class="on" aria-pressed="true" data-i18n-html="irl.100_mthis_street">~100 m<small>this street</small></button>
<button type="button" data-fuzz="250" aria-pressed="false" data-i18n-html="irl.250_mnearby">~250 m<small>nearby</small></button>
</div>
</fieldset>
<div class="irl-consent-actions">
<button id="irl-consent-exact" type="button" class="irl-consent-btn" data-i18n="irl.place_exactly_here">Place exactly here</button>
<button id="irl-consent-approx" type="button" class="irl-consent-btn" data-i18n="irl.place_approximately">Place approximately</button>
</div>
<label class="irl-consent-dontshow"><input type="checkbox" id="irl-consent-dontshow" /> Don’t show this every time</label>
<button id="irl-consent-cancel" type="button" class="irl-consent-cancel" data-i18n="irl.cancel">Cancel</button>
</div>
<!-- Designed guidance sheet — recoverable motion/GPS permission states (A4) -->
<div id="irl-error-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-error-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-error-icon" aria-hidden="true">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>
</div>
<h3 id="irl-error-title" data-i18n="irl.action_needed">Action needed</h3>
<p id="irl-error-body"></p>
<div class="irl-error-row">
<button id="irl-error-action" type="button" data-i18n="irl.try_again">Try again</button>
<button id="irl-error-dismiss" type="button" aria-label="Dismiss" data-i18n-attr="aria-label:irl.dismiss_arialabel">×</button>
</div>
</div>
<!-- My Pins management sheet -->
<div id="irl-mypins-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-mypins-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-mypins-header">
<h3 id="irl-mypins-title" data-i18n="irl.my_pins">My pins</h3>
<button class="irl-sheet-close" id="irl-mypins-close" type="button" aria-label="Close" data-i18n-attr="aria-label:irl.close_arialabel_2">×</button>
</div>
<div id="irl-mypins-map" class="irl-mypins-map" role="group" aria-label="Map of pins you've placed"></div>
<div id="irl-mypins-list"><p class="irl-mypins-empty" data-i18n="irl.loading_2">Loading…</p></div>
<div id="irl-mypins-foot" class="irl-mypins-foot" hidden></div>
</div>
<!-- Radar minimap — visible in GPS pin mode only -->
<div id="irl-radar" aria-hidden="true">
<div class="irl-radar-self"></div>
<span class="irl-radar-n" data-i18n="irl.n">N</span>
<span class="irl-radar-s" data-i18n="irl.s">S</span>
<span class="irl-radar-e" data-i18n="irl.e">E</span>
<span class="irl-radar-w" data-i18n="irl.w">W</span>
</div>
<!-- Agent interaction bottom sheet (slides up when user taps a nearby pin label or 3D model) -->
<!-- Dimmed backdrop behind the inspect card — click to dismiss. Stays in the DOM
(opacity/pointer-events toggled via .is-open) so it can fade in and out. -->
<div id="irl-sheet-backdrop"></div>
<div id="irl-sheet" role="dialog" aria-modal="false" aria-labelledby="irl-sheet-name" tabindex="-1">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-sheet-header">
<img id="irl-sheet-thumb" class="irl-sheet-thumb" alt="" hidden />
<div class="irl-sheet-meta">
<div class="irl-sheet-title-row">
<span class="irl-sheet-title" id="irl-sheet-name" data-i18n="irl.agent">Agent</span>
<span id="irl-sheet-tier" class="irl-tier-badge" hidden></span>
</div>
<div class="irl-sheet-dist" id="irl-sheet-dist"></div>
</div>
<button class="irl-sheet-close" id="irl-sheet-close" type="button" aria-label="Close" data-i18n-attr="aria-label:irl.close_arialabel_3">×</button>
</div>
<p id="irl-sheet-caption" hidden></p>
<!-- Rich card body — skeleton → bio + reputation + services | empty | error.
Rendered entirely from /api/irl/agent-card by openPinSheet(). -->
<div id="irl-card-body" class="irl-card-body"></div>
<div class="irl-multiplayer-note" id="irl-sheet-multiplayer" hidden>
<span class="irl-multiplayer-dot"></span>
<span id="irl-sheet-multiplayer-text" data-i18n="irl.visible_to_all_users_at_this_location">Visible to all users at this location</span>
</div>
<!-- Honest GPS-accuracy line (A3) — never imply a centimetre-perfect pinpoint -->
<p id="irl-sheet-accuracy" class="irl-sheet-accuracy" hidden></p>
<!-- Placement exposure badge (H4) — owner-only: exact spot vs deliberately blurred -->
<p id="irl-sheet-placement" class="irl-sheet-placement" hidden></p>
<div class="irl-sheet-actions">
<button id="irl-sheet-talk" class="irl-sheet-btn irl-sheet-btn-talk" type="button" aria-expanded="false" aria-controls="irl-talk" data-i18n="irl.talk">Talk</button>
<button id="irl-sheet-ar" class="irl-sheet-btn" type="button" aria-label="View this agent in AR" data-i18n="irl.view_in_ar">View in AR</button>
<button id="irl-sheet-pay" class="irl-sheet-btn irl-sheet-btn-primary" type="button" hidden data-i18n="irl.pay_via_x402">Pay via x402</button>
<button id="irl-sheet-calibrate" class="irl-sheet-btn" type="button" hidden data-i18n="irl.calibrate_position">Calibrate position</button>
<button id="irl-sheet-align-room" class="irl-sheet-btn" type="button" hidden data-i18n="irl.align_this_room">Align this room</button>
<button id="irl-sheet-refine" class="irl-sheet-btn" type="button" hidden data-i18n="irl.refine_on_floor">Refine on floor</button>
<button id="irl-sheet-view" class="irl-sheet-btn" type="button" data-i18n="irl.view_profile">View profile</button>
</div>
<!-- Talk: a live spoken conversation with the agent standing in front of you.
Hold the mic or type; the reply is voiced and the 3D model's mouth follows
the audio. Wired by src/irl/pin-talk.js on top of the same TalkController
that powers talk mode on /avatars/:id. Hidden until the Talk action opens it. -->
<section id="irl-talk" class="irl-talk" hidden aria-label="Talk to this agent" data-state="idle">
<div id="irl-talk-log" class="irl-talk-log" role="log" aria-live="polite" aria-relevant="additions"></div>
<div id="irl-talk-partial" class="irl-talk-partial" aria-hidden="true" hidden></div>
<div class="irl-talk-row">
<button id="irl-talk-hold" class="irl-talk-hold" type="button" aria-label="Hold to talk" title="Hold to talk">
<span class="irl-talk-hold-ring" aria-hidden="true"></span>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="3" width="6" height="11" rx="3"/><path d="M5 11a7 7 0 0 0 14 0"/><path d="M12 18v3"/></svg>
</button>
<form id="irl-talk-form" class="irl-talk-form" autocomplete="off">
<input id="irl-talk-input" class="irl-msg-input" type="text" maxlength="500" enterkeyhint="send"
placeholder="Say something…" aria-label="Say something to this agent" autocomplete="off" />
<button id="irl-talk-send" class="irl-msg-send" type="submit" data-i18n="irl.send_2">Send</button>
</form>
</div>
<div id="irl-talk-state" class="irl-talk-state" role="status" hidden></div>
</section>
<!-- Leave a message — POSTs an interaction the owner sees in their dashboard feed -->
<form id="irl-sheet-msg" class="irl-sheet-msg">
<input id="irl-msg-input" class="irl-msg-input" type="text" maxlength="280"
placeholder="Leave a message for this agent…" aria-label="Message for this agent" autocomplete="off" />
<button id="irl-msg-send" class="irl-msg-send" type="submit" data-i18n="irl.send">Send</button>
</form>
<div id="irl-sheet-status" class="irl-sheet-status" role="status" hidden></div>
<!-- Report — community moderation (D4). Hidden on your own pins. Opens a reason sheet. -->
<button id="irl-sheet-report" class="irl-sheet-report" type="button" hidden data-i18n="irl.report_this_pin">Report this pin</button>
</div>
<!-- Report reason sheet (D4) — choose why, POST /api/irl/report, threshold-hide server-side -->
<div id="irl-report-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-report-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-report-header">
<h3 id="irl-report-title" data-i18n="irl.report_this_pin_2">Report this pin</h3>
<button class="irl-sheet-close" id="irl-report-close" type="button" aria-label="Close" data-i18n-attr="aria-label:irl.close_arialabel_4">×</button>
</div>
<p class="irl-report-sub" data-i18n="irl.tell_us_what_s_wrong_reports_are">Tell us what’s wrong. Reports are reviewed; a pin is hidden once enough people flag it.</p>
<div class="irl-report-reasons" role="group" aria-label="Reason">
<button class="irl-report-reason" type="button" data-reason="spam" data-i18n="irl.spam_or_advertising">Spam or advertising</button>
<button class="irl-report-reason" type="button" data-reason="harassment" data-i18n="irl.hate_or_harassment">Hate or harassment</button>
<button class="irl-report-reason" type="button" data-reason="impersonation" data-i18n="irl.impersonation">Impersonation</button>
<button class="irl-report-reason" type="button" data-reason="scam" data-i18n="irl.scam_or_off_brand_coin">Scam or off-brand coin</button>
<button class="irl-report-reason" type="button" data-reason="sexual" data-i18n="irl.sexual_content">Sexual content</button>
<button class="irl-report-reason" type="button" data-reason="other" data-i18n="irl.something_else">Something else</button>
</div>
<div id="irl-report-status" class="irl-sheet-status" role="status" hidden></div>
</div>
<!-- Agent picker sheet — lists authenticated user's agents to switch which one is placed -->
<div id="irl-agents-sheet" role="dialog" aria-modal="true" aria-labelledby="irl-agents-title">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-agents-header">
<div>
<h3 id="irl-agents-title" data-i18n="irl.my_agents">My Agents</h3>
</div>
<button class="irl-sheet-close" id="irl-agents-close" type="button" aria-label="Close" data-i18n-attr="aria-label:irl.close_arialabel_5">×</button>
</div>
<div id="irl-agents-list"><p class="irl-agents-empty" data-i18n="irl.loading_3">Loading…</p></div>
</div>
<!-- ── Calibrate HUD (A3) — owner nudges a placed agent into its true spot ──── -->
<style>
#irl-calibrate-panel {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
padding: 16px max(18px, env(safe-area-inset-right, 0px)) calc(18px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
background: linear-gradient(180deg, rgba(13,16,24,0.96), rgba(9,11,17,0.99));
border-top: 1px solid rgba(255,255,255,0.10);
border-radius: 18px 18px 0 0;
box-shadow: 0 -12px 40px rgba(0,0,0,0.5);
transform: translateY(108%); transition: transform .28s cubic-bezier(.22,.61,.36,1);
max-width: 560px; margin: 0 auto;
max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
}
#irl-calibrate-panel.is-open { transform: translateY(0); }
#irl-calibrate-panel .irl-sheet-handle { width: 38px; height: 4px; border-radius: 99px; background: rgba(255,255,255,0.22); margin: 0 auto 12px; }
.irl-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.irl-cal-head h3 { margin: 0; font-size: 15.5px; font-weight: 700; color: #e8edf6; letter-spacing: -.01em; }
#irl-cal-readout { font: 600 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: #7dd3fc; margin: 2px 0 8px; word-spacing: 1px; }
#irl-cal-accuracy { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #93a1b5; }
#irl-cal-accuracy.is-low { color: #fbbf73; }
.irl-cal-hint { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #6b7686; }
.irl-cal-height { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.irl-cal-height-label { font-size: 12.5px; color: #93a1b5; flex: 1; }
.irl-cal-height-val { font: 600 12.5px ui-monospace, monospace; color: #cdd6e4; min-width: 56px; text-align: right; }
.irl-cal-step { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #e5e7eb; font: 600 18px inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.irl-cal-step:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22); }
.irl-cal-step:active { transform: translateY(1px); }
.irl-cal-step:focus-visible { outline: 2px solid rgba(125,211,252,0.6); outline-offset: 2px; }
#irl-cal-error { margin-bottom: 12px; }
#irl-cal-error .tws-es { padding: 14px 8px 8px; }
.irl-cal-actions { display: flex; gap: 10px; }
#irl-cal-save { flex: 1; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(52,211,153,0.4); background: rgba(52,211,153,0.18); color: #34d399; font: 600 14px inherit; cursor: pointer; transition: background .15s; }
#irl-cal-save:hover { background: rgba(52,211,153,0.28); }
#irl-cal-save:disabled { opacity: .55; cursor: default; }
#irl-cal-save:focus-visible { outline: 2px solid rgba(52,211,153,0.6); outline-offset: 2px; }
#irl-cal-cancel { padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: #cbd3df; font: 600 14px inherit; cursor: pointer; transition: background .15s; }
#irl-cal-cancel:hover { background: rgba(255,255,255,0.12); color: #fff; }
#irl-cal-cancel:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; }
/* While calibrating, suppress the walk joystick so a drag can't grab it. */
body.is-calibrating #irl-joystick { display: none !important; }
/* Denied toast — centred, fades in/out (opacity + pointer-events via .is-open). */
#irl-cal-denied {
position: fixed; left: 50%; top: 50%; transform: translate(-50%, -46%);
z-index: 70; width: min(360px, calc(100vw - 40px));
background: rgba(12,14,21,0.97); border: 1px solid rgba(255,255,255,0.12);
border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.55);
opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
#irl-cal-denied.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
/* Honest accuracy line inside the inspect sheet (A3). */
.irl-sheet-accuracy { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #8a94a6; }
.irl-sheet-accuracy.is-low { color: #fbbf73; }
/* Placement exposure badge (H4) — owner-only line in the inspect sheet */
.irl-sheet-placement { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #6ee7b7; }
.irl-sheet-placement.is-approx { color: #93c5fd; }
/* Room align (R2) reuses the calibrate panel; a whole-room slide/twist has no
per-agent floor-height step, so hide it and show the room-scale hint instead. */
body.is-room-cal #irl-calibrate-panel .irl-cal-height { display: none; }
body.is-room-cal #irl-calibrate-panel .irl-cal-hint::after {
content: ' The whole cluster moves together — its internal layout stays exact.';
color: #7c8aa0;
}
/* Relative-frame one-tap alignment prompt (R2) — a room placed without a compass
may render rotated for another viewer; this offers a single corrective tap. */
#irl-room-align-prompt {
position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px));
transform: translate(-50%, 12px); z-index: 58; width: min(420px, calc(100vw - 28px));
background: rgba(12,14,21,0.96); border: 1px solid rgba(124,92,255,0.45);
border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
padding: 13px 15px; opacity: 0; pointer-events: none;
transition: opacity .22s ease, transform .22s ease;
}
#irl-room-align-prompt.is-shown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
#irl-room-align-prompt p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: #cdd6e4; }
#irl-room-align-prompt .irl-ra-actions { display: flex; gap: 9px; }
#irl-room-align-prompt button { flex: 1; padding: 10px 12px; border-radius: 11px; font: 600 13.5px inherit; cursor: pointer; transition: background .15s, border-color .15s; }
#irl-room-align-prompt .irl-ra-align { border: 1px solid rgba(124,92,255,0.55); background: rgba(124,92,255,0.22); color: #d6cbff; }
#irl-room-align-prompt .irl-ra-align:hover { background: rgba(124,92,255,0.34); }
#irl-room-align-prompt .irl-ra-dismiss { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: #aeb6c4; flex: 0 0 96px; }
#irl-room-align-prompt .irl-ra-dismiss:hover { background: rgba(255,255,255,0.10); color: #fff; }
#irl-room-align-prompt button:focus-visible { outline: 2px solid #9d7bff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
#irl-room-align-prompt { transition: opacity .01s; }
}
</style>
<div id="irl-calibrate-panel" role="dialog" aria-modal="false" aria-label="Calibrate agent position">
<div class="irl-sheet-handle" aria-hidden="true"></div>
<div class="irl-cal-head">
<h3 id="irl-cal-title" data-i18n="irl.calibrate_position_2">Calibrate position</h3>
</div>
<div id="irl-cal-readout" aria-live="polite">0.00 m N · 0.00 m E · +0° · +0 cm</div>
<p id="irl-cal-accuracy"></p>
<p class="irl-cal-hint" data-i18n="irl.drag_to_nudge_on_the_ground_twist">Drag to nudge on the ground · twist with two fingers to rotate.</p>
<div class="irl-cal-height">
<span class="irl-cal-height-label" data-i18n="irl.floor_height">Floor height</span>
<span class="irl-cal-height-val" id="irl-cal-height" data-i18n="irl.0_cm">+0 cm</span>
<button class="irl-cal-step" id="irl-cal-down" type="button" aria-label="Lower agent 5 cm" data-i18n-attr="aria-label:irl.lower_agent_5_cm_arialabel">−</button>
<button class="irl-cal-step" id="irl-cal-up" type="button" aria-label="Raise agent 5 cm" data-i18n-attr="aria-label:irl.raise_agent_5_cm_arialabel">+</button>
</div>
<div id="irl-cal-error" hidden></div>
<div class="irl-cal-actions">
<button id="irl-cal-save" type="button" data-i18n="irl.save_position">Save position</button>
<button id="irl-cal-cancel" type="button" data-i18n="irl.cancel_2">Cancel</button>
</div>
</div>
<div id="irl-cal-denied" role="alertdialog" aria-modal="false" aria-label="Calibration locked" hidden></div>
<!-- R2 relative-frame one-tap alignment prompt — shown for a nearby room placed
without an absolute compass that may render rotated for this viewer. -->
<div id="irl-room-align-prompt" role="dialog" aria-modal="false" aria-label="Align this room to your view" hidden>
<p data-i18n="irl.this_room_was_placed_without_a_compass">This room was placed without a compass, so it may appear rotated. Face the room’s front and tap Align to match it to your view.</p>
<div class="irl-ra-actions">
<button type="button" class="irl-ra-align" data-ra-action="align" data-i18n="irl.align">Align</button>
<button type="button" class="irl-ra-dismiss" data-ra-action="dismiss" data-i18n="irl.dismiss">Dismiss</button>
</div>
</div>
<!-- E1 first-run permission + onboarding overlay. Cards (prompt / granted /
denied-with-recovery / unsupported) are rendered by src/irl/onboarding.js. -->
<div id="irl-onboard" class="irl-onboard" hidden role="dialog" aria-modal="true" aria-label="Set up IRL"></div>
<!-- E4 capability gate — IRL renders 3D agents with WebGL; without it irl.js's
renderer throws at import time and leaves a blank canvas. Detect support first
and boot the AR module only when WebGL is real; otherwise render a designed
"unsupported device" state into #irl-overlay and never load the heavy module
(so no thrown context error reaches the console). -->
<script type="module">
// Publish the bottom dock's live height as --irl-dock-h so the fixed HUD
// pieces layered near it (joystick drag zone, money-drops FAB) always sit
// ABOVE the dock instead of underneath its buttons. Measured, not guessed:
// the dock's height moves with the status line, subtitle wrapping, and the
// object picker opening.
{
const dock = document.querySelector('footer.irl-bottom');
if (dock) {
const publish = () => document.documentElement.style.setProperty('--irl-dock-h', `${Math.ceil(dock.offsetHeight)}px`);
if ('ResizeObserver' in window) new ResizeObserver(publish).observe(dock);
window.addEventListener('resize', publish, { passive: true });
publish();
}
}
function webglSupported() {
try {
const c = document.createElement('canvas');
return !!(window.WebGLRenderingContext &&
(c.getContext('webgl') || c.getContext('experimental-webgl')));
} catch { return false; }
}
if (webglSupported()) {
import('/src/irl.js');
} else {
import('/src/shared/state-kit.js').then(({ emptyStateHTML, ensureStateKitStyles }) => {
ensureStateKitStyles();
const host = document.getElementById('irl-overlay');
if (!host) return;
const nameEl = document.getElementById('irl-avatar-name');
if (nameEl) nameEl.textContent = 'IRL unavailable';
const subEl = document.getElementById('irl-subtitle');
if (subEl) subEl.textContent = 'This device can’t render the AR view';
host.innerHTML = '<div class="irl-overlay-card">' + emptyStateHTML({
icon: '🛰️',
title: 'This device can’t run IRL AR',
body: 'IRL places 3D agents in your space using WebGL, which isn’t available in this browser. You can still browse agents and services on the web — or reopen IRL in an up-to-date Chrome, Safari, or Edge.',
actions: [
{ label: 'Browse agents', href: '/agents', primary: true },
{ label: 'Open the marketplace', href: '/marketplace' },
],
}) + '</div>';
host.hidden = false;
}).catch(() => {});
}
</script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>