garage44.eu/jeroen/cartopolis

logclone: git clone https://garage44.eu/jeroen/cartopolis.git

.. /docs/mockups/chat-world/v1.html

raw

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Cartopolis — messenger with a world attached (mockup)</title>
<style>
@font-face { font-family: Jakarta; src: url(../../../assets/fonts/PlusJakartaSans-SemiBold.ttf); }
:root {
  --ink:#0A0E10; --surface:#13191B; --raised:#1D2427; --hover:#283236;
  --line:#69757A; --accent:#C7D3D8; --muted:#3E4E55; --brand:#FD6012; --amber:#FD9212;
  --cream:#F3F7F9; --text:#DBE2E5; --dim:#A5B2B7; --glass:rgba(19,25,27,.84);
  --gline:rgba(255,255,255,.14);
}
* { box-sizing:border-box; margin:0; padding:0; }
body { background:#0d1214; color:var(--text); font:15px/1.4 Jakarta, system-ui, sans-serif; padding:48px 56px 64px; width:1840px; }
h1 { font-size:34px; color:var(--cream); letter-spacing:-.4px; }
h1 b { color:var(--brand); font-weight:inherit; }
.lede { color:var(--dim); font-size:17px; max-width:1100px; margin:10px 0 28px; }
.principles { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:44px; }
.principles div { background:var(--surface); border:1px solid var(--gline); border-radius:14px; padding:16px 18px; }
.principles h3 { color:var(--cream); font-size:15px; margin-bottom:6px; }
.principles p { color:var(--dim); font-size:13.5px; }
.principles i { color:var(--brand); font-style:normal; }

.row { display:flex; gap:40px; align-items:flex-start; }
.shot { width:390px; }
.shot h2 { font-size:17px; color:var(--cream); margin:16px 0 6px; }
.shot h2 span { color:var(--brand); margin-right:6px; }
.shot ul { color:var(--dim); font-size:13.5px; padding-left:18px; }
.shot li { margin-bottom:4px; }

/* phone */
.phone { width:390px; height:844px; border-radius:46px; background:var(--ink); position:relative; overflow:hidden;
  box-shadow:0 0 0 10px #1a2124, 0 0 0 11px #2b3438, 0 30px 60px rgba(0,0,0,.5); }
.status { height:44px; display:flex; justify-content:space-between; align-items:center; padding:0 28px; font-size:14px; color:var(--cream); position:relative; z-index:5; }
.status .notch { position:absolute; left:50%; top:10px; width:110px; height:28px; border-radius:20px; background:#000; transform:translateX(-50%); }
svg.i { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none; }
svg.s { width:16px; height:16px; }

/* segmented toggle: the one control this whole design is about */
.seg { display:flex; background:var(--raised); border-radius:12px; padding:3px; gap:2px; border:1px solid var(--gline); }
.seg div { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; padding:7px 14px; border-radius:9px; color:var(--dim); font-size:14px; white-space:nowrap; }
.seg .on { background:var(--accent); color:var(--ink); }
.seg .on.w { background:var(--brand); color:#fff; }
.live { width:7px; height:7px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px rgba(253,96,18,.25); }
.seg .on.w .live { background:#fff; box-shadow:none; }

/* avatars */
.av { width:48px; height:48px; border-radius:50%; display:grid; place-items:center; font-size:18px; color:#fff; flex:none; position:relative; }
.av.sm { width:34px; height:34px; font-size:14px; }
.av.ring { box-shadow:0 0 0 2px var(--ink), 0 0 0 4px var(--brand); }
.c1{background:#7a5a9a}.c2{background:#3f7d6e}.c3{background:#a0623e}.c4{background:#4d6a91}.c5{background:#8a4f5f}.c6{background:#5e6f3c}
.room { border-radius:14px; }

/* inbox */
.top { padding:6px 18px 12px; }
.titlebar { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.titlebar h3 { font-size:28px; color:var(--cream); letter-spacing:-.4px; }
.titlebar .acts { display:flex; gap:16px; color:var(--text); }
.near { display:flex; gap:14px; padding:4px 18px 14px; overflow:hidden; border-bottom:1px solid var(--gline); }
.near div { text-align:center; font-size:11.5px; color:var(--dim); width:56px; flex:none; }
.near .av { margin:0 auto 6px; width:52px; height:52px; }
.near b { display:block; color:var(--text); font-weight:inherit; font-size:12px; }
.here-disc { background:conic-gradient(from 200deg, #2b3a40, #4b5f66, #2b3a40); }
.chat-row { display:flex; gap:12px; padding:11px 18px; align-items:center; }
.chat-row.pinned { background:linear-gradient(90deg, rgba(253,96,18,.10), transparent 70%); }
.chat-row .body { flex:1; min-width:0; }
.chat-row .l1 { display:flex; justify-content:space-between; color:var(--cream); font-size:15.5px; }
.chat-row .l1 time { color:var(--dim); font-size:12px; }
.chat-row .l2 { display:flex; justify-content:space-between; align-items:center; color:var(--dim); font-size:13.5px; margin-top:1px; }
.chat-row .l2 span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-row .l3 { display:flex; align-items:center; gap:5px; color:var(--brand); font-size:11.5px; margin-top:2px; }
.chat-row .l3.off { color:var(--line); }
.badge { background:var(--accent); color:var(--ink); border-radius:10px; font-size:11.5px; padding:1px 7px; margin-left:8px; }
.badge.b { background:var(--brand); color:#fff; }
.fab { position:absolute; right:18px; bottom:34px; width:56px; height:56px; border-radius:18px; background:var(--accent); color:var(--ink); display:grid; place-items:center; box-shadow:0 8px 20px rgba(0,0,0,.4); }

/* thread */
.thead { display:flex; align-items:center; gap:10px; padding:4px 14px 10px; }
.thead .who { flex:1; }
.thead .who b { display:block; color:var(--cream); font-weight:inherit; font-size:16px; }
.thead .who span { color:var(--brand); font-size:12px; display:flex; gap:4px; align-items:center; }
.tabs { padding:0 14px 10px; border-bottom:1px solid var(--gline); }
.msgs { padding:12px 14px; display:flex; flex-direction:column; gap:6px; }
.day { align-self:center; font-size:11.5px; color:var(--dim); background:var(--raised); padding:3px 10px; border-radius:10px; margin:4px 0; }
.m { max-width:78%; padding:8px 12px; border-radius:18px; font-size:14.5px; line-height:1.35; }
.m small { display:block; text-align:right; font-size:10.5px; opacity:.6; margin-top:2px; }
.m.them { background:var(--raised); color:var(--text); align-self:flex-start; border-bottom-left-radius:6px; }
.m.me { background:var(--accent); color:var(--ink); align-self:flex-end; border-bottom-right-radius:6px; }
.sys { align-self:center; font-size:12px; color:var(--dim); display:flex; align-items:center; gap:6px; margin:4px 0; }
.sys a { color:var(--brand); text-decoration:none; }
.card { align-self:flex-start; width:250px; background:var(--raised); border-radius:18px; border-bottom-left-radius:6px; overflow:hidden; }
.card .img { height:120px; background:url(city.jpg) 58% 62%/620px auto; position:relative; }
.card .img .pin { position:absolute; left:120px; top:44px; }
.card .meta { padding:9px 12px 4px; }
.card .meta b { color:var(--cream); font-weight:inherit; display:block; }
.card .meta span { color:var(--dim); font-size:12px; }
.card .go { margin:8px 12px 12px; background:var(--brand); color:#fff; border-radius:10px; text-align:center; padding:7px; font-size:13.5px; display:flex; align-items:center; justify-content:center; gap:6px; }
.card.me { align-self:flex-end; border-bottom-left-radius:18px; border-bottom-right-radius:6px; }
.route-mini { height:62px; background:#1a2327; position:relative; }
.composer { position:absolute; left:0; right:0; bottom:0; padding:10px 12px 30px; display:flex; gap:10px; align-items:center; background:var(--ink); border-top:1px solid var(--gline); }
.composer .field { flex:1; background:var(--raised); border-radius:20px; padding:9px 14px; color:var(--line); font-size:14.5px; display:flex; justify-content:space-between; align-items:center; }
.circ { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; background:var(--raised); color:var(--text); flex:none; }
.circ.hot { background:var(--accent); color:var(--ink); }

/* world */
.world { position:absolute; inset:0; background-size:cover; }
.world::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,14,16,.55) 0, transparent 22%, transparent 60%, rgba(10,14,16,.5) 100%); pointer-events:none; }
.float-top { position:absolute; top:44px; left:10px; right:10px; z-index:4; background:var(--glass); backdrop-filter:blur(14px); border:1px solid var(--gline); border-radius:20px; padding:8px 10px 10px; }
.float-top .thead { padding:0 2px 8px; }
.float-top .tabs { padding:0; border:0; }
.mk { position:absolute; z-index:3; display:flex; flex-direction:column; align-items:center; transform:translate(-50%,-100%); }
.mk .av { width:40px; height:40px; font-size:15px; border:3px solid #fff; }
.mk .av.ring { border-color:var(--brand); box-shadow:0 0 0 5px rgba(253,96,18,.28); }
.mk .stem { width:3px; height:14px; background:#fff; }
.mk .stem.o { background:var(--brand); }
.mk .foot { width:12px; height:5px; border-radius:50%; background:rgba(0,0,0,.35); }
.mk .name { margin-top:3px; font-size:11.5px; color:#fff; background:rgba(10,14,16,.78); padding:1px 7px; border-radius:8px; }
.bub { position:absolute; z-index:4; background:#fff; color:var(--ink); padding:7px 11px; border-radius:14px; font-size:13.5px; max-width:190px; box-shadow:0 6px 16px rgba(0,0,0,.3); }
.bub::after { content:""; position:absolute; bottom:-6px; left:18px; border:6px solid transparent; border-top-color:#fff; border-bottom:0; }
.bub.me { background:var(--accent); }
.bub.me::after { border-top-color:var(--accent); }
.ghost { position:absolute; width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.55); border:1.5px solid rgba(10,14,16,.4); z-index:2; }
.chip { position:absolute; z-index:4; background:var(--glass); color:var(--cream); border:1px solid var(--gline); border-radius:12px; padding:5px 10px; font-size:12.5px; display:flex; gap:6px; align-items:center; backdrop-filter:blur(10px); }
.sheet { position:absolute; left:0; right:0; bottom:0; z-index:5; background:var(--glass); backdrop-filter:blur(16px); border-top-left-radius:24px; border-top-right-radius:24px; border-top:1px solid var(--gline); }
.handle { width:40px; height:5px; border-radius:3px; background:var(--line); margin:8px auto 8px; }
.actions { display:flex; gap:8px; padding:0 14px 10px; }
.actions div { flex:1; display:flex; align-items:center; justify-content:center; gap:6px; background:var(--raised); border:1px solid var(--gline); border-radius:12px; padding:9px 6px; font-size:13px; color:var(--text); white-space:nowrap; }
.actions .p { background:var(--brand); color:#fff; border-color:transparent; }
.mini { padding:0 14px 6px; display:flex; flex-direction:column; gap:5px; }
.mini p { font-size:13.5px; color:var(--text); }
.mini p b { color:var(--brand); font-weight:inherit; margin-right:4px; }
.mini p b.me { color:var(--accent); }
.sheet .composer { position:static; background:transparent; border-top:1px solid var(--gline); }

/* half sheet */
.half .msgs { padding:4px 14px 0; }
.detents { position:absolute; right:12px; top:250px; z-index:6; display:flex; flex-direction:column; gap:6px; }

/* desktop */
.desk { width:1740px; height:760px; border-radius:16px; overflow:hidden; background:var(--ink); display:grid; grid-template-columns:330px 1fr 380px; box-shadow:0 0 0 1px #2b3438, 0 30px 60px rgba(0,0,0,.5); margin-top:14px; position:relative; }
.desk .col { border-right:1px solid var(--gline); position:relative; overflow:hidden; }
.desk .stage { position:relative; overflow:hidden; }
.desk .thread { border-left:1px solid var(--gline); border-right:0; }
.sec { margin-top:56px; }
.sec h2 { font-size:20px; color:var(--cream); }
.sec p.cap { color:var(--dim); font-size:14px; max-width:1200px; margin-top:4px; }
table { border-collapse:collapse; margin-top:12px; font-size:13.5px; }
td, th { text-align:left; padding:7px 14px; border-bottom:1px solid var(--gline); vertical-align:top; }
th { color:var(--cream); font-weight:inherit; }
td { color:var(--dim); }
td:first-child { color:var(--text); }
.tag { font-size:11px; padding:1px 7px; border-radius:8px; }
.tag.y { background:#23392f; color:#9fd3b4; }
.tag.n { background:rgba(253,96,18,.18); color:#ffb48a; }
</style>
</head>
<body>

<svg width="0" height="0" style="position:absolute">
  <symbol id="chat" viewBox="0 0 24 24"><path d="M4 5h16v11H9l-5 4z"/></symbol>
  <symbol id="globe" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8.5"/><path d="M3.5 12h17M12 3.5c3 3.2 3 13.8 0 17M12 3.5c-3 3.2-3 13.8 0 17"/></symbol>
  <symbol id="search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6.5"/><path d="M16 16l4.5 4.5"/></symbol>
  <symbol id="edit" viewBox="0 0 24 24"><path d="M5 19l1-4L16 5l3 3L9 18z"/></symbol>
  <symbol id="back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol>
  <symbol id="phone" viewBox="0 0 24 24"><path d="M6 4h3l1.5 4-2 1.5a10 10 0 005 5l1.5-2 4 1.5v3a2 2 0 01-2 2A16 16 0 014 6a2 2 0 012-2z"/></symbol>
  <symbol id="plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
  <symbol id="mic" viewBox="0 0 24 24"><rect x="9" y="3.5" width="6" height="11" rx="3"/><path d="M5.5 11a6.5 6.5 0 0013 0M12 17.5V21"/></symbol>
  <symbol id="pin" viewBox="0 0 24 24"><path d="M12 21s-6.5-6.2-6.5-11A6.5 6.5 0 0118.5 10c0 4.8-6.5 11-6.5 11z"/><circle cx="12" cy="10" r="2.3"/></symbol>
  <symbol id="walk" viewBox="0 0 24 24"><circle cx="13" cy="4.5" r="1.8"/><path d="M10 21l2-6 3 3v3M8 11l3-4 3 2 2 3M12 15l-1-5"/></symbol>
  <symbol id="fly" viewBox="0 0 24 24"><path d="M3 13l18-7-7 18-2.5-8.5z"/></symbol>
  <symbol id="people" viewBox="0 0 24 24"><circle cx="9" cy="8" r="3"/><circle cx="17" cy="9" r="2.3"/><path d="M3.5 19a5.5 5.5 0 0111 0M14.5 19a4 4 0 016.5-3"/></symbol>
  <symbol id="more" viewBox="0 0 24 24"><circle cx="5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/></symbol>
  <symbol id="wave" viewBox="0 0 24 24"><path d="M4 12h2M8 8v8M12 5v14M16 9v6M20 11v2"/></symbol>
  <symbol id="eye" viewBox="0 0 24 24"><path d="M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z"/><circle cx="12" cy="12" r="2.8"/></symbol>
</svg>

<h1>Cartopolis chat — <b>a messenger with a world attached</b></h1>
<p class="lede">Mockup, not code. The app opens as a messenger. Every conversation has a second view: the 3D world, showing where the people in that conversation are. One toggle switches between the two, and both views share the same messages and the same text field.</p>

<div class="principles">
  <div><h3>1 · Every chat has a place</h3><p>A direct message shows where the other person is. A group shows its members on the map. <i>Here</i> is the chat of whoever is standing near you: it's the existing Local channel.</p></div>
  <div><h3>2 · One thread, two views</h3><p><i>Chat | World</i> doesn't change the conversation. It changes what fills the screen behind it. The text field stays put, so you can keep typing while you switch.</p></div>
  <div><h3>3 · Orange means "in the world"</h3><p>The brand orange is used for one thing only: live presence. An orange ring, dot or button always means that person is on the map right now and you can go to them.</p></div>
  <div><h3>4 · Sharing where you are is opt-in, per chat, and time-limited</h3><p>Nobody appears on anyone's map by default. You share your position with one chat, for a set time, and you can stop at any moment. The existing block and report tools apply unchanged.</p></div>
</div>

<div class="row">

<!-- 1. INBOX -->
<div class="shot">
<div class="phone">
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="top">
    <div class="titlebar"><h3>Chats</h3><div class="acts"><svg class="i"><use href="#search"/></svg><svg class="i"><use href="#more"/></svg></div></div>
    <div class="seg"><div class="on"><svg class="i s"><use href="#chat"/></svg>Chats</div><div><span class="live"></span>World</div></div>
  </div>
  <div class="near">
    <div><div class="av here-disc ring"><svg class="i"><use href="#pin"/></svg></div><b>Here</b>3 nearby</div>
    <div><div class="av c1 ring">S</div><b>Sanne</b>400 m</div>
    <div><div class="av c2 ring">J</div><b>Joris</b>1.2 km</div>
    <div><div class="av c3 ring">M</div><b>Mila</b>here</div>
    <div><div class="av c4 ring">E</div><b>Emre</b>Utrecht</div>
  </div>
  <div class="chat-row pinned">
    <div class="av here-disc room"><svg class="i"><use href="#pin"/></svg></div>
    <div class="body"><div class="l1"><span>Here · Grote Markt</span><time>now</time></div>
      <div class="l2"><span>Mila: anyone up for coffee at the Korenbeurs?</span></div>
      <div class="l3"><span class="live"></span>3 people within earshot</div></div>
  </div>
  <div class="chat-row">
    <div class="av c1 ring">S</div>
    <div class="body"><div class="l1"><span>Sanne</span><time>18:12</time></div>
      <div class="l2"><span><svg class="i s" style="vertical-align:-3px"><use href="#pin"/></svg> Vismarkt</span><span class="badge b">2</span></div>
      <div class="l3"><span class="live"></span>in the world · 400 m from you</div></div>
  </div>
  <div class="chat-row">
    <div class="av c2 room">🚲</div>
    <div class="body"><div class="l1"><span>#fietsers-groningen</span><time>17:50</time></div>
      <div class="l2"><span>Joris: route for Saturday, 42 km</span><span class="badge">5</span></div>
      <div class="l3"><span class="live"></span>4 of 23 in the world</div></div>
  </div>
  <div class="chat-row">
    <div class="av c5">P</div>
    <div class="body"><div class="l1"><span>Pieter</span><time>Tue</time></div>
      <div class="l2"><span><svg class="i s" style="vertical-align:-3px"><use href="#wave"/></svg> Voice message · 0:14</span></div>
      <div class="l3 off">not sharing a location</div></div>
  </div>
  <div class="chat-row">
    <div class="av c6 room">🏡</div>
    <div class="body"><div class="l1"><span>Family</span><time>Mon</time></div>
      <div class="l2"><span>Oma: sent a photo of the garden</span></div>
      <div class="l3 off">nobody in the world</div></div>
  </div>
  <div class="chat-row">
    <div class="av c4 room"><svg class="i"><use href="#globe"/></svg></div>
    <div class="body"><div class="l1"><span>Global</span><time>Sun</time></div>
      <div class="l2"><span>212 online</span></div></div>
  </div>
  <div class="fab"><svg class="i"><use href="#edit"/></svg></div>
</div>
<h2><span>1</span>Inbox</h2>
<ul>
  <li>An ordinary chat list. Under each name, a small orange line says whether that person is in the world and how far away they are.</li>
  <li>The row of circles at the top is people sharing their location with you, like a stories bar. Tap one to fly to them.</li>
  <li><i>World</i> at the top switches to one map with every live contact on it.</li>
</ul>
</div>

<!-- 2. THREAD / CHAT -->
<div class="shot">
<div class="phone">
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="thead">
    <svg class="i"><use href="#back"/></svg>
    <div class="av sm c1 ring">S</div>
    <div class="who"><b>Sanne</b><span><span class="live"></span>Vismarkt · 400 m · walking</span></div>
    <svg class="i"><use href="#phone"/></svg>
  </div>
  <div class="tabs"><div class="seg"><div class="on"><svg class="i s"><use href="#chat"/></svg>Chat</div><div><span class="live"></span>World</div></div></div>
  <div class="msgs">
    <div class="day">Today</div>
    <div class="m them">Are you still in town?<small>18:05</small></div>
    <div class="m me">Yes, at the Grote Markt<small>18:06</small></div>
    <div class="card">
      <div class="img"><svg class="i pin" style="width:30px;height:30px;color:var(--brand);stroke-width:2.4"><use href="#pin"/></svg></div>
      <div class="meta"><b>Vismarkt</b><span>53.2166° N, 6.5657° E · seen from 120 m</span></div>
      <div class="go"><svg class="i s"><use href="#globe"/></svg>Open in world</div>
    </div>
    <div class="m them">I'll wait by the Korenbeurs<small>18:11</small></div>
    <div class="sys"><svg class="i s"><use href="#eye"/></svg>You're sharing your location for 1 h · <a>Stop</a></div>
    <div class="card me">
      <div class="route-mini">
        <svg viewBox="0 0 250 62" width="250" height="62"><path d="M20 48 C60 44 70 20 110 24 S170 40 228 14" stroke="#FD6012" stroke-width="4" fill="none" stroke-linecap="round"/><circle cx="20" cy="48" r="6" fill="#C7D3D8"/><circle cx="228" cy="14" r="6" fill="#FD6012"/></svg>
      </div>
      <div class="meta"><b>On my way</b><span>Walking · 400 m · about 5 min</span></div>
      <div style="height:10px"></div>
    </div>
  </div>
  <div class="composer">
    <div class="circ"><svg class="i"><use href="#plus"/></svg></div>
    <div class="field">Message<svg class="i s"><use href="#pin"/></svg></div>
    <div class="circ hot"><svg class="i"><use href="#mic"/></svg></div>
  </div>
</div>
<h2><span>2</span>A chat, on the Chat tab</h2>
<ul>
  <li>Places are a type of message. A place card is the existing <code>/go?place=</code> link shown with a thumbnail, and its button flies you there.</li>
  <li>"On my way" is also a message. It carries a route and updates the other person's view as you walk.</li>
  <li>Location sharing is set per chat and has an end time. The notice showing it stays in the thread.</li>
</ul>
</div>

<!-- 3. THREAD / WORLD -->
<div class="shot">
<div class="phone">
  <div class="world" style="background-image:url(dusk.jpg); background-position:52% 0;"></div>
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="float-top">
    <div class="thead">
      <svg class="i"><use href="#back"/></svg>
      <div class="av sm c1 ring">S</div>
      <div class="who"><b>Sanne</b><span><span class="live"></span>Vismarkt · 400 m · walking</span></div>
      <svg class="i"><use href="#phone"/></svg>
    </div>
    <div class="tabs"><div class="seg"><div><svg class="i s"><use href="#chat"/></svg>Chat</div><div class="on w"><span class="live"></span>World</div></div></div>
  </div>

  <!-- route between the two -->
  <svg style="position:absolute;inset:0;z-index:2" width="390" height="844"><path d="M140 560 C170 520 200 500 215 470 S250 400 262 352" stroke="#FD6012" stroke-width="5" fill="none" stroke-dasharray="2 9" stroke-linecap="round"/></svg>

  <div class="ghost" style="left:96px;top:420px"></div>
  <div class="ghost" style="left:300px;top:470px"></div>
  <div class="ghost" style="left:60px;top:600px"></div>
  <div class="ghost" style="left:318px;top:330px"></div>

  <div class="bub" style="left:196px;top:232px">I'm by the Korenbeurs 👋</div>
  <div class="mk" style="left:262px;top:356px"><div class="av c1 ring">S</div><div class="stem o"></div><div class="foot"></div><div class="name">Sanne</div></div>

  <div class="mk" style="left:140px;top:566px"><div class="av c4">Me</div><div class="stem"></div><div class="foot"></div><div class="name">You</div></div>
  <div class="chip" style="left:150px;top:448px"><svg class="i s"><use href="#walk"/></svg>400 m · 5 min</div>

  <div class="sheet">
    <div class="handle"></div>
    <div class="mini">
      <p><b>Sanne</b>I'll wait by the Korenbeurs</p>
      <p><b class="me">You</b>On my way · walking</p>
    </div>
    <div class="actions">
      <div class="p"><svg class="i s"><use href="#walk"/></svg>Walk to Sanne</div>
      <div><svg class="i s"><use href="#fly"/></svg>Fly there</div>
      <div><svg class="i s"><use href="#mic"/></svg>Talk</div>
    </div>
    <div class="composer">
      <div class="circ"><svg class="i"><use href="#plus"/></svg></div>
      <div class="field">Message</div>
      <div class="circ hot"><svg class="i"><use href="#mic"/></svg></div>
    </div>
  </div>
</div>
<h2><span>3</span>The same chat, on the World tab</h2>
<ul>
  <li>The world fills the screen. Only the people in this chat get a name and a speech bubble. Everyone else nearby is a plain dot.</li>
  <li>The chat shrinks to its two latest messages above the same text field. New messages also appear as bubbles over the sender's avatar, which the client already does.</li>
  <li><i>Walk to Sanne</i> plans a route with the existing router. <i>Talk</i> becomes proximity voice once you're close enough to hear each other.</li>
</ul>
</div>

<!-- 4. ROOM / HALF -->
<div class="shot">
<div class="phone half">
  <div class="world" style="background-image:url(city.jpg); background-position:38% 0; background-size:auto 520px; background-repeat:no-repeat; bottom:auto; height:520px;"></div>
  <div class="status"><span>9:41</span><div class="notch"></div><span>●●● 82%</span></div>
  <div class="float-top">
    <div class="thead">
      <svg class="i"><use href="#back"/></svg>
      <div class="av sm c2 room">🚲</div>
      <div class="who"><b>#fietsers-groningen</b><span><span class="live"></span>4 of 23 in the world</span></div>
      <svg class="i"><use href="#people"/></svg>
    </div>
    <div class="tabs"><div class="seg"><div><svg class="i s"><use href="#chat"/></svg>Chat</div><div class="on w"><span class="live"></span>World</div></div></div>
  </div>
  <svg style="position:absolute;left:0;top:0;z-index:2" width="390" height="400"><path d="M30 360 C90 330 120 300 170 290 S260 250 300 205 S350 170 385 160" stroke="#FD6012" stroke-width="4" fill="none" stroke-linecap="round" opacity=".9"/></svg>
  <div class="mk" style="left:118px;top:318px"><div class="av c2 ring">J</div><div class="stem o"></div><div class="foot"></div></div>
  <div class="mk" style="left:180px;top:300px"><div class="av c3 ring">M</div><div class="stem o"></div><div class="foot"></div></div>
  <div class="mk" style="left:292px;top:226px"><div class="av c5 ring">L</div><div class="stem o"></div><div class="foot"></div></div>
  <div class="bub" style="left:66px;top:212px">Meet at the station?</div>
  <div class="chip" style="left:206px;top:330px"><svg class="i s"><use href="#pin"/></svg>Saturday route · 42 km</div>

  <div class="sheet" style="top:380px">
    <div class="handle"></div>
    <div class="msgs">
      <div class="m them"><b style="color:var(--brand);font-weight:inherit;font-size:12.5px;display:block">Joris</b>Here's the route for Saturday. Start at the station, 10:00<small>17:48</small></div>
      <div class="card" style="width:230px">
        <div class="route-mini"><svg viewBox="0 0 230 62" width="230" height="62"><path d="M12 50 C50 40 70 30 100 32 S160 20 218 12" stroke="#FD6012" stroke-width="4" fill="none" stroke-linecap="round"/></svg></div>
        <div class="meta"><b>Stadsrondje Noord</b><span>Bike · 42 km · 2 h 10</span></div>
        <div class="go"><svg class="i s"><use href="#globe"/></svg>Show on map</div>
      </div>
      <div class="m them"><b style="color:var(--brand);font-weight:inherit;font-size:12.5px;display:block">Mila</b>Meet at the station?<small>17:50</small></div>
    </div>
    <div class="composer" style="position:absolute">
      <div class="circ"><svg class="i"><use href="#plus"/></svg></div>
      <div class="field">Message</div>
      <div class="circ hot"><svg class="i"><use href="#mic"/></svg></div>
    </div>
  </div>
</div>
<h2><span>4</span>The toggle is also a drag handle</h2>
<ul>
  <li>Dragging the sheet between <i>Chat</i> and <i>World</i> gives a half-and-half view: map on top, messages underneath. The toggle jumps between the two ends and the handle covers everything in between.</li>
  <li>In a group, the map shows members who have chosen to share their location, plus whatever the chat is about: here, a shared route drawn on the real streets.</li>
  <li>Tap a route or place card and the map above scrolls to it. The chat stays open.</li>
</ul>
</div>

</div>

<!-- DESKTOP -->
<div class="sec">
  <h2>Wide screens: no toggle, both views at once</h2>
  <p class="cap">On a desktop or tablet the chat list and the open chat sit on either side of the world. Choosing a chat moves the camera to its members, like picking a chat on a phone and switching to World.</p>
  <div class="desk">
    <div class="col">
      <div class="top" style="padding-top:16px"><div class="titlebar"><h3 style="font-size:22px">Chats</h3><div class="acts"><svg class="i"><use href="#search"/></svg><svg class="i"><use href="#edit"/></svg></div></div></div>
      <div class="chat-row pinned"><div class="av here-disc room"><svg class="i"><use href="#pin"/></svg></div><div class="body"><div class="l1"><span>Here · Grote Markt</span><time>now</time></div><div class="l2"><span>Mila: anyone up for coffee?</span></div><div class="l3"><span class="live"></span>3 within earshot</div></div></div>
      <div class="chat-row" style="background:var(--hover)"><div class="av c1 ring">S</div><div class="body"><div class="l1"><span>Sanne</span><time>18:12</time></div><div class="l2"><span>I'll wait by the Korenbeurs</span></div><div class="l3"><span class="live"></span>400 m from you</div></div></div>
      <div class="chat-row"><div class="av c2 room">🚲</div><div class="body"><div class="l1"><span>#fietsers-groningen</span><time>17:50</time></div><div class="l2"><span>Joris: route for Saturday</span><span class="badge">5</span></div><div class="l3"><span class="live"></span>4 of 23 in the world</div></div></div>
      <div class="chat-row"><div class="av c5">P</div><div class="body"><div class="l1"><span>Pieter</span><time>Tue</time></div><div class="l2"><span>Voice message · 0:14</span></div><div class="l3 off">not sharing a location</div></div></div>
      <div class="chat-row"><div class="av c6 room">🏡</div><div class="body"><div class="l1"><span>Family</span><time>Mon</time></div><div class="l2"><span>Oma: sent a photo</span></div></div></div>
      <div class="chat-row"><div class="av c4 room"><svg class="i"><use href="#globe"/></svg></div><div class="body"><div class="l1"><span>Global</span><time>Sun</time></div><div class="l2"><span>212 online</span></div></div></div>
    </div>
    <div class="stage">
      <div class="world" style="background-image:url(dusk.jpg); background-position:50% 40%;"></div>
      <svg style="position:absolute;inset:0;z-index:2" width="1030" height="760"><path d="M420 560 C470 520 520 500 560 470 S640 400 660 350" stroke="#FD6012" stroke-width="5" fill="none" stroke-dasharray="2 9" stroke-linecap="round"/></svg>
      <div class="bub" style="left:596px;top:230px">I'm by the Korenbeurs 👋</div>
      <div class="mk" style="left:660px;top:356px"><div class="av c1 ring">S</div><div class="stem o"></div><div class="foot"></div><div class="name">Sanne</div></div>
      <div class="mk" style="left:420px;top:566px"><div class="av c4">Me</div><div class="stem"></div><div class="foot"></div><div class="name">You</div></div>
      <div class="chip" style="left:470px;top:460px"><svg class="i s"><use href="#walk"/></svg>400 m · 5 min</div>
      <div class="ghost" style="left:300px;top:420px"></div><div class="ghost" style="left:760px;top:520px"></div><div class="ghost" style="left:560px;top:620px"></div>
      <div class="chip" style="left:20px;top:20px"><svg class="i s"><use href="#eye"/></svg>Showing: Sanne's chat · 2 people</div>
    </div>
    <div class="col thread">
      <div class="thead" style="padding-top:16px"><div class="av sm c1 ring">S</div><div class="who"><b>Sanne</b><span><span class="live"></span>Vismarkt · 400 m</span></div><svg class="i"><use href="#phone"/></svg></div>
      <div class="msgs" style="border-top:1px solid var(--gline)">
        <div class="m them">Are you still in town?<small>18:05</small></div>
        <div class="m me">Yes, at the Grote Markt<small>18:06</small></div>
        <div class="card"><div class="img"></div><div class="meta"><b>Vismarkt</b><span>53.2166° N, 6.5657° E</span></div><div class="go"><svg class="i s"><use href="#globe"/></svg>Open in world</div></div>
        <div class="m them">I'll wait by the Korenbeurs<small>18:11</small></div>
        <div class="sys"><svg class="i s"><use href="#eye"/></svg>Sharing your location for 1 h · <a>Stop</a></div>
      </div>
      <div class="composer" style="padding-bottom:14px"><div class="circ"><svg class="i"><use href="#plus"/></svg></div><div class="field">Message</div><div class="circ hot"><svg class="i"><use href="#mic"/></svg></div></div>
    </div>
  </div>
</div>

<div class="sec">
  <h2>What already exists and what would be new</h2>
  <table>
    <tr><th>Piece</th><th></th><th>Notes</th></tr>
    <tr><td>Local, Global and named room channels</td><td><span class="tag y">exists</span></td><td>These become the <i>Here</i>, <i>Global</i> and <i>#room</i> rows in the chat list.</td></tr>
    <tr><td>Speech bubbles over avatars, fading transcript</td><td><span class="tag y">exists</span></td><td>This is the World tab's way of showing new messages. It already runs without a panel.</td></tr>
    <tr><td>Place links (<code>/go?place=</code>), routing, proximity voice</td><td><span class="tag y">exists</span></td><td>These become the place card, the "On my way" / "Walk to" card, and the Talk button.</td></tr>
    <tr><td>Block, report, delete account</td><td><span class="tag y">exists</span></td><td>They stay on the server and work the same in every chat.</td></tr>
    <tr><td>Direct messages</td><td><span class="tag n">new</span></td><td>The server only knows about Local, Global and Room chats today. DMs would need a new message type (a protocol change).</td></tr>
    <tr><td>Stored history and unread counts</td><td><span class="tag n">new</span></td><td>Local is never stored, and a chat list needs history plus a "last read" marker kept on the server.</td></tr>
    <tr><td>Per-chat, time-limited location sharing</td><td><span class="tag n">new</span></td><td>This is the core of the concept, and the main privacy decision. Today avatars are only visible to people nearby in the same area.</td></tr>
    <tr><td>World view scoped to one chat</td><td><span class="tag n">new</span></td><td>Only this chat's members get a name and bubble, and the camera moves to show them all. Everyone else stays a dot.</td></tr>
  </table>
</div>

</body>
</html>