@ywkrlerche/richardwho 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/app.js +928 -87
  2. package/config.js +0 -1
  3. package/games.json +1 -1
  4. package/index.html +121 -10
  5. package/logos/kh-100ng.webp +0 -0
  6. package/logos/kh-2048-multitask.webp +0 -0
  7. package/logos/kh-adrenalinechallenge.webp +0 -0
  8. package/logos/kh-align-4.webp +0 -0
  9. package/logos/kh-amidst-the-clouds.webp +0 -0
  10. package/logos/kh-angry-sharks.webp +0 -0
  11. package/logos/kh-avalanche.webp +0 -0
  12. package/logos/kh-battleforgondor.webp +0 -0
  13. package/logos/kh-blacholesquare.webp +0 -0
  14. package/logos/kh-blackknight.webp +0 -0
  15. package/logos/kh-boxhead2play.webp +0 -0
  16. package/logos/kh-btd4.webp +0 -0
  17. package/logos/kh-burger-and-frights.webp +0 -0
  18. package/logos/kh-canyondefense.webp +0 -0
  19. package/logos/kh-championarcher.webp +0 -0
  20. package/logos/kh-creativekillchamber.webp +0 -0
  21. package/logos/kh-csgo-clicker.webp +0 -0
  22. package/logos/kh-dante.webp +0 -0
  23. package/logos/kh-deal-or-no-deal.webp +0 -0
  24. package/logos/kh-deepest-sword.webp +0 -0
  25. package/logos/kh-defend-the-tank.webp +0 -0
  26. package/logos/kh-doge2048.webp +0 -0
  27. package/logos/kh-edgenotfound.webp +0 -0
  28. package/logos/kh-endlesswar3.webp +0 -0
  29. package/logos/kh-evolution.webp +0 -0
  30. package/logos/kh-exo.webp +0 -0
  31. package/logos/kh-fairsquares.webp +0 -0
  32. package/logos/kh-flappy-2048.webp +0 -0
  33. package/logos/kh-flashtetris.webp +0 -0
  34. package/logos/kh-flippy-fish.webp +0 -0
  35. package/logos/kh-froggys-battle.webp +0 -0
  36. package/logos/kh-gachalife.webp +0 -0
  37. package/logos/kh-generic-fishing-game.webp +0 -0
  38. package/logos/kh-geojump.webp +0 -0
  39. package/logos/kh-gimme-the-airpod.webp +0 -0
  40. package/logos/kh-google-snake.webp +0 -0
  41. package/logos/kh-hardware-tycoon.webp +0 -0
  42. package/logos/kh-hba.webp +0 -0
  43. package/logos/kh-hexempire.webp +0 -0
  44. package/logos/kh-hexgl.webp +0 -0
  45. package/logos/kh-hextris.webp +0 -0
  46. package/logos/kh-just-one-boss.webp +0 -0
  47. package/logos/kh-kittencannon.webp +0 -0
  48. package/logos/kh-mario.webp +0 -0
  49. package/logos/kh-marvinspectrum.webp +0 -0
  50. package/logos/kh-matrixrampage.webp +0 -0
  51. package/logos/kh-meme2048.webp +0 -0
  52. package/logos/kh-my-rusty-submarine.webp +0 -0
  53. package/logos/kh-noob-steve-parkour.webp +0 -0
  54. package/logos/kh-ns-shaft.webp +0 -0
  55. package/logos/kh-offlineparadise.webp +0 -0
  56. package/logos/kh-out-of-ctrl.webp +0 -0
  57. package/logos/kh-pandemic2.webp +0 -0
  58. package/logos/kh-particle-clicker.webp +0 -0
  59. package/logos/kh-poom.webp +0 -0
  60. package/package.json +1 -1
  61. package/style.css +125 -10
package/index.html CHANGED
@@ -56,6 +56,9 @@
56
56
  <button class="rail-btn" type="button" data-nav="stats" title="Stats &amp; achievements" aria-label="Stats and achievements">
57
57
  <svg viewBox="0 0 24 24"><path d="M7 3h10v2h4v3a5 5 0 0 1-4.6 5A5 5 0 0 1 13 15.9V18h3v3H8v-3h3v-2.1A5 5 0 0 1 7.6 13 5 5 0 0 1 3 8V5h4V3Zm0 4H5v1a3 3 0 0 0 2 2.8V7Zm12 0h-2v3.8A3 3 0 0 0 19 8V7Z"/></svg>
58
58
  </button>
59
+ <button class="rail-btn live-btn" type="button" data-nav="live" title="Live stream" aria-label="Live stream">
60
+ <svg viewBox="0 0 24 24"><path d="M12 9.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5ZM6.3 6.3l1.4 1.4a6 6 0 0 0 0 8.6l-1.4 1.4a8 8 0 0 1 0-11.4Zm11.4 0a8 8 0 0 1 0 11.4l-1.4-1.4a6 6 0 0 0 0-8.6l1.4-1.4ZM3.5 3.5l1.4 1.4a10 10 0 0 0 0 14.2l-1.4 1.4a12 12 0 0 1 0-17Zm17 0a12 12 0 0 1 0 17l-1.4-1.4a10 10 0 0 0 0-14.2l1.4-1.4Z"/></svg>
61
+ </button>
59
62
  <button class="rail-btn" type="button" data-nav="recent" title="Recently played" aria-label="Recently played">
60
63
  <svg viewBox="0 0 24 24"><path d="M13 3a9 9 0 1 1-8.95 10h2.02A7 7 0 1 0 13 5a6.98 6.98 0 0 0-4.94 2.06L10 9H4V3l2.64 2.64A8.97 8.97 0 0 1 13 3Zm-1 5h2v4.6l3.2 1.9-1 1.7L12 13.7V8Z"/></svg>
61
64
  </button>
@@ -80,6 +83,13 @@
80
83
  <main class="main" id="main" tabindex="-1">
81
84
  <!-- HOME -->
82
85
  <section id="view-home" class="view home">
86
+ <!-- QUOTE OF THE DAY: a bar across the top; approved quotes take turns, a new one each day -->
87
+ <div class="quote-strip" id="quote-card">
88
+ <span class="quote-label">Quote of the day</span>
89
+ <q class="quote-text" id="quote-text">No quote yet. Be the first to submit one!</q>
90
+ <span class="quote-by" id="quote-by"></span>
91
+ <button class="text-btn link" type="button" id="quote-submit-btn">✍ Submit a quote</button>
92
+ </div>
83
93
  <h1 class="wordmark">richardwho</h1>
84
94
  <form class="home-search" id="home-search" role="search">
85
95
  <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M10.5 3a7.5 7.5 0 0 1 5.96 12.06l4.24 4.24-1.42 1.42-4.24-4.24A7.5 7.5 0 1 1 10.5 3Zm0 2a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Z"/></svg>
@@ -88,13 +98,15 @@
88
98
  </form>
89
99
  <p class="home-sub" id="home-sub"></p>
90
100
  <p class="online" id="online" hidden><span class="online-dot"></span><span id="online-count"></span></p>
91
- <div class="bookmark-row">
92
- <!-- Dragged to the bookmarks bar, the link's text becomes the bookmark's name -->
93
- <a class="bookmark-chip" id="bookmark-link" href="https://unpkg.com/@ywkrlerche/richardwho/index.html" draggable="true" title="Drag me to your bookmarks bar"><img id="bookmark-icon" alt=""><span id="bookmark-name">richardwho</span></a>
94
- <button class="bookmark-chip latest" type="button" id="latest-btn" title="Open the newest version of the site">⟳ Latest version</button>
95
- <span class="bookmark-hint"><span class="bookmark-arrow" aria-hidden="true">↑</span> Drag richardwho to your bookmarks bar to get back fast</span>
101
+ <!-- bottom-left corner: bookmark chip, latest version, what's new -->
102
+ <div class="home-corner">
103
+ <div class="bookmark-row">
104
+ <!-- Dragged to the bookmarks bar, the link's text becomes the bookmark's name -->
105
+ <a class="bookmark-chip" id="bookmark-link" href="https://unpkg.com/@ywkrlerche/richardwho/index.html" draggable="true" title="Drag me to your bookmarks bar"><img id="bookmark-icon" alt=""><span id="bookmark-name">richardwho</span></a>
106
+ <button class="bookmark-chip latest" type="button" id="latest-btn" title="Open the newest version of the site">⟳ Latest version</button>
107
+ </div>
108
+ <p class="whats-new-row"><button class="text-btn link whats-new" type="button" data-nav="changelog" id="whats-new-link">What's new in <span id="home-version"></span></button></p>
96
109
  </div>
97
- <p class="whats-new-row"><button class="text-btn link whats-new" type="button" data-nav="changelog" id="whats-new-link">What's new in <span id="home-version"></span></button></p>
98
110
  </section>
99
111
 
100
112
  <!-- GAMES -->
@@ -148,20 +160,37 @@
148
160
 
149
161
  <!-- CHAT -->
150
162
  <section id="view-chat" class="view chat" hidden>
151
- <header class="games-head"><div><h1>Chat</h1><p class="lede">Be nice. Messages are filtered, and links and personal info are blocked.</p></div></header>
163
+ <header class="games-head"><div><h1>Chat</h1><p class="lede">Be nice. Swears, slurs, links and personal info are blocked. Don't post photos of real people without asking them. 🚩 reports anything bad.</p></div></header>
152
164
  <div class="chat-box" id="chat-box">
165
+ <div class="chat-top">
166
+ <span class="chat-here" id="chat-here"><span class="online-dot"></span><span id="chat-here-n">Connecting…</span></span>
167
+ <button class="text-btn" type="button" id="chat-full-btn" title="Full-screen chat (Esc to leave)">⛶ Full screen</button>
168
+ </div>
153
169
  <div class="chat-off" id="chat-off" hidden>
154
170
  <p><strong>Chat isn't switched on yet.</strong></p>
155
171
  <p>It needs the site's free Firebase database (see SETUP.md).</p>
156
172
  </div>
157
173
  <div class="chat-log" id="chat-log" aria-live="polite"></div>
158
174
  <p class="chat-typing" id="chat-typing" aria-live="polite"></p>
175
+ <p class="chat-status" id="chat-status" aria-live="polite"></p>
176
+ <!-- Emoji / sticker picker, opened by 😊 -->
177
+ <div class="picker" id="picker" hidden>
178
+ <div class="picker-tabs" id="picker-tabs" role="tablist" aria-label="Emoji and stickers"></div>
179
+ <div class="picker-grid" id="picker-grid"></div>
180
+ <p class="picker-credit">Stickers: Noto Emoji by Google, CC BY 4.0</p>
181
+ </div>
159
182
  <form class="chat-form" id="chat-form" autocomplete="off" hidden>
160
- <input id="chat-name" class="chat-name" maxlength="16" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
161
- <input id="chat-text" class="chat-text" maxlength="200" placeholder="Say something…" aria-label="Message">
183
+ <input id="chat-name" class="chat-name" maxlength="40" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
184
+ <input id="chat-title" class="chat-name chat-title-input" maxlength="20" placeholder="Title" spellcheck="false" aria-label="Your chat title (optional)" title="A title shown next to your name, like “Pro Gamer” (optional)">
185
+ <input id="chat-text" class="chat-text" maxlength="200" placeholder="Say something… (drop a photo here)" aria-label="Message">
186
+ <button class="icon-btn" type="button" id="emoji-btn" title="Emoji and stickers" aria-label="Emoji and stickers" aria-expanded="false" aria-controls="picker">😊</button>
187
+ <button class="icon-btn" type="button" id="photo-btn" title="Send a photo from your computer" aria-label="Send a photo">📷</button>
188
+ <button class="icon-btn" type="button" id="cam-btn" title="Take a photo with your camera" aria-label="Take a photo with your camera">📸</button>
189
+ <input type="file" id="photo-input" accept="image/*" hidden>
162
190
  <button class="pill-btn" type="submit" id="chat-send">Send</button>
163
191
  </form>
164
- <p class="chat-note" id="chat-note"></p>
192
+ <p class="chat-note" id="chat-note" aria-live="polite"></p>
193
+ <div class="drop-hint" aria-hidden="true">Drop to send photo</div>
165
194
  </div>
166
195
  </section>
167
196
 
@@ -192,6 +221,35 @@
192
221
  </section>
193
222
 
194
223
  <!-- SETTINGS -->
224
+ <!-- LIVE STREAM: the owner streams screen + camera + sound; anyone can watch, with chat beside it -->
225
+ <section id="view-live" class="view live" hidden>
226
+ <header class="games-head"><div><h1>Live <span class="live-pill" id="live-pill" hidden>● LIVE</span></h1><p class="lede" id="live-lede">Nobody's live right now. When Richard goes live, it shows up here.</p></div></header>
227
+ <div class="live-layout">
228
+ <div class="live-stage" id="live-stage">
229
+ <video id="live-screen" playsinline autoplay muted></video>
230
+ <video id="live-cam" playsinline autoplay muted hidden></video>
231
+ <div class="live-overlay" id="live-overlay">
232
+ <p id="live-overlay-text">Not live right now</p>
233
+ <button class="pill-btn play" type="button" id="live-watch" hidden>▶ Watch live</button>
234
+ </div>
235
+ <button class="pill-btn live-unmute" type="button" id="live-unmute" hidden>🔊 Tap for sound</button>
236
+ </div>
237
+ <div class="live-chat" id="live-chat"></div>
238
+ </div>
239
+ <!-- owner only -->
240
+ <div class="set-group live-owner" id="live-owner" hidden>
241
+ <h2>Go live</h2>
242
+ <p class="set-help">Streams your screen (with its sound), your camera and your mic to everyone on the site. Your browser asks which screen or tab to share.</p>
243
+ <div class="set-row">
244
+ <label class="live-opt"><input type="checkbox" id="live-use-screen" checked> Screen</label>
245
+ <label class="live-opt"><input type="checkbox" id="live-use-cam" checked> Camera</label>
246
+ <label class="live-opt"><input type="checkbox" id="live-use-mic" checked> Mic</label>
247
+ <span class="set-hint" id="live-viewers"></span>
248
+ <button class="pill-btn danger" type="button" id="live-go">🔴 Go live</button>
249
+ </div>
250
+ </div>
251
+ </section>
252
+
195
253
  <!-- WHAT'S NEW (filled from CHANGELOG in app.js) -->
196
254
  <section id="view-changelog" class="view settings changelog" hidden>
197
255
  <header class="games-head"><div><h1>What's new</h1><p class="lede">Every update to richardwho: new stuff, games and fixes.</p></div></header>
@@ -250,6 +308,28 @@
250
308
  <div class="set-row" id="admin-tools-row" hidden><span>Chat</span>
251
309
  <button class="pill-btn danger" type="button" id="admin-clear">Clear all chat</button>
252
310
  </div>
311
+ <div id="admin-chat-tools" hidden>
312
+ <label class="set-row"><span>Slow mode</span>
313
+ <select id="mod-slow"><option value="0">Off</option><option value="10">10 seconds</option><option value="30">30 seconds</option><option value="60">1 minute</option><option value="120">2 minutes</option><option value="300">5 minutes</option></select>
314
+ </label>
315
+ <label class="set-row"><span>Lock chat (only you can post)</span><input type="checkbox" id="mod-lock"></label>
316
+ <h3 class="set-sub">Extra blocked words</h3>
317
+ <p class="set-help">One per line or separated by commas. Messages and nicknames containing them can't be sent, and old messages with them disappear.</p>
318
+ <textarea class="report-input" id="mod-words" rows="3" maxlength="4000" spellcheck="false" autocomplete="off" aria-label="Extra blocked words" placeholder="e.g. a name being bullied, a nickname used to troll…"></textarea>
319
+ <div class="set-row"><span class="set-hint" id="mod-words-msg"></span><button class="pill-btn" type="button" id="mod-words-save">Save words</button></div>
320
+ <h3 class="set-sub">Reported messages <span id="reported-count"></span></h3>
321
+ <p class="set-help">Messages with 3 reports are hidden from everyone until you keep or delete them.</p>
322
+ <div class="reports" id="reported-list"></div>
323
+ <h3 class="set-sub">Muted and banned</h3>
324
+ <div class="reports" id="punished-list"></div>
325
+ </div>
326
+ <div id="admin-quotes" hidden>
327
+ <h3 class="set-sub">Quote submissions <span id="quotes-count"></span></h3>
328
+ <p class="set-help">Approved quotes take turns at the top of the site, a new one each day.</p>
329
+ <div class="reports" id="quotes-pending"></div>
330
+ <h3 class="set-sub">Approved quotes</h3>
331
+ <div class="reports" id="quotes-approved"></div>
332
+ </div>
253
333
  <div id="admin-reports" hidden>
254
334
  <h3 class="set-sub">Game reports and requests <span id="reports-count"></span></h3>
255
335
  <div class="reports" id="reports-list"></div>
@@ -269,6 +349,37 @@
269
349
  </section>
270
350
  </main>
271
351
 
352
+ <!-- TAKE A PHOTO WITH YOUR CAMERA (sent to the chat like any photo) -->
353
+ <div class="wheel-wrap" id="cam-wrap" hidden role="dialog" aria-label="Take a photo">
354
+ <div class="wheel-card cam-card">
355
+ <button class="wheel-x" type="button" id="cam-close" aria-label="Close">✕</button>
356
+ <h2>Take a photo</h2>
357
+ <div class="cam-view"><video id="cam-video" playsinline autoplay muted></video><canvas id="cam-shot" hidden></canvas></div>
358
+ <p class="chat-note" id="cam-msg"></p>
359
+ <div class="wheel-actions">
360
+ <button class="pill-btn" type="button" id="cam-retake" hidden>↺ Retake</button>
361
+ <button class="pill-btn play" type="button" id="cam-snap">📸 Take photo</button>
362
+ <button class="pill-btn play" type="button" id="cam-send" hidden>Send to chat</button>
363
+ </div>
364
+ </div>
365
+ </div>
366
+
367
+ <!-- SUBMIT A QUOTE (goes to the owner for approval) -->
368
+ <div class="wheel-wrap" id="quote-wrap" hidden role="dialog" aria-labelledby="quote-title">
369
+ <form class="wheel-card report-card" id="quote-form" autocomplete="off">
370
+ <button class="wheel-x" type="button" id="quote-close" aria-label="Close">✕</button>
371
+ <h2 id="quote-title">Submit a quote</h2>
372
+ <p class="report-sub">If Richard picks it, it shows at the top of the site for a day.</p>
373
+ <textarea class="report-input" id="quote-input" maxlength="140" rows="3" placeholder="The quote…" aria-label="Quote"></textarea>
374
+ <input class="report-input" id="quote-author" maxlength="30" placeholder="Who said it? (optional)" aria-label="Who said it">
375
+ <p class="chat-note" id="quote-msg"></p>
376
+ <div class="wheel-actions">
377
+ <button class="pill-btn" type="button" id="quote-cancel">Cancel</button>
378
+ <button class="pill-btn play" type="submit" id="quote-send">Send</button>
379
+ </div>
380
+ </form>
381
+ </div>
382
+
272
383
  <!-- REPORT A BROKEN GAME / REQUEST A GAME -->
273
384
  <div class="wheel-wrap" id="report-wrap" hidden role="dialog" aria-labelledby="report-title">
274
385
  <form class="wheel-card report-card" id="report-form" autocomplete="off">
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ywkrlerche/richardwho",
3
- "version": "1.0.33",
3
+ "version": "1.0.35",
4
4
  "description": "Richards Unblocked Games",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/style.css CHANGED
@@ -113,7 +113,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
113
113
  animation: shine 5.5s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
114
114
  }
115
115
  .wordmark {
116
- margin: 0 0 30px; font-size: clamp(64px, 11vw, 150px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
116
+ margin: 0 0 22px; font-size: clamp(46px, 7vw, 96px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
117
117
  padding: 0 .04em .08em; /* room for the glow and descenders */
118
118
  cursor: default; user-select: none;
119
119
  /* layer 1: hover spotlight that follows the mouse (--mx/--my set in app.js); layer 2: the sweeping shine */
@@ -136,12 +136,12 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
136
136
  }
137
137
  @keyframes rise { from { opacity: 0; translate: 0 14px; letter-spacing: -.02em; filter: blur(6px); } to { opacity: 1; translate: 0 0; } }
138
138
  .home-search {
139
- position: relative; width: min(640px, 100%); height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
139
+ position: relative; width: min(520px, 100%); height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
140
140
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line-2); border-radius: 4px;
141
141
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
142
142
  }
143
- .home-search svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
144
- .home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; }
143
+ .home-search svg { width: 18px; height: 18px; fill: var(--muted); flex: none; }
144
+ .home-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; }
145
145
  .home-search input::-webkit-search-cancel-button { display: none; }
146
146
  .home-search:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
147
147
  /* the input itself has no outline, so the box shows a clear ring when the keyboard is in it */
@@ -272,10 +272,56 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
272
272
  .chat-note.err { color: var(--danger); }
273
273
  .chat-off { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
274
274
  .chat-off p { margin: 4px 0; }
275
- .chat-msg .mod { display: none; margin-left: 8px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); border-radius: 3px; font-size: 11px; padding: 1px 6px; }
275
+ .chat-msg .mod { display: none; margin-left: 6px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); border-radius: 3px; font-size: 11px; padding: 1px 6px; }
276
276
  .chat-msg .mod:hover { background: color-mix(in srgb, var(--danger) 30%, transparent); }
277
- .chat-log.admin .chat-msg .mod { display: inline-block; }
278
- .chat-msg.me .mod[data-mod="delete"] { display: inline-block; } /* anyone can delete their own */
277
+ /* Who sees which button: 🚩 for others' messages (on hover), 🗑 on your own, everything for the owner */
278
+ .chat-msg:hover .act-report, .chat-msg:focus-within .act-report { display: inline-block; }
279
+ @media (hover: none) { .chat-msg .act-report { display: inline-block; opacity: .55; } }
280
+ .chat-msg.me .act-delete, .chat-log.admin .chat-msg .act-delete, .chat-log.admin .chat-msg .owner-only { display: inline-block; }
281
+ .chat-msg .flag-count { display: none; margin-left: 6px; color: var(--danger); font-size: 11px; font-weight: 700; }
282
+ .chat-log.admin .chat-msg .flag-count:not(:empty) { display: inline; }
283
+ /* Reported 3+ times: hidden from everyone but the owner, who sees it marked */
284
+ .chat-log:not(.admin) .chat-msg.flagged { display: none; }
285
+ .chat-log.admin .chat-msg.flagged { outline: 1px dashed var(--danger); outline-offset: 3px; border-radius: 3px; }
286
+ .chat-msg .msg-acts { white-space: nowrap; }
287
+ .chat-sticker { display: block; width: 96px; height: 96px; margin: 4px 0 0; }
288
+ .chat-photo-btn { display: block; padding: 0; margin: 6px 0 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; max-width: min(320px, 100%); }
289
+ .chat-photo { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border-radius: 6px; border: 1px solid var(--line); }
290
+ .chat-status { margin: 0; padding: 0 16px; font-size: 12px; color: var(--muted); }
291
+ .chat-status:empty { display: none; }
292
+ .chat-status.err, .chat-note.err { color: var(--danger); font-weight: 600; }
293
+ .icon-btn { flex: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
294
+ .icon-btn:hover:not(:disabled), .icon-btn[aria-expanded="true"] { background: var(--soft); border-color: var(--text); }
295
+ .icon-btn:disabled, .chat-form input:disabled, .chat-box .pill-btn:disabled { opacity: .45; cursor: not-allowed; }
296
+ .icon-btn:focus-visible { outline: 2px solid var(--glow-cyan, #22d3ee); outline-offset: 2px; }
297
+ /* Emoji / sticker picker */
298
+ .chat-box { position: relative; }
299
+ .picker { position: absolute; right: 10px; bottom: 64px; z-index: 5; width: min(340px, calc(100% - 20px)); border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); overflow: hidden; }
300
+ .picker-tabs { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
301
+ .picker-tabs button { flex: none; height: 32px; min-width: 34px; padding: 0 6px; border: 0; border-radius: 4px; background: none; font-size: 17px; cursor: pointer; color: var(--text); }
302
+ .picker-tabs .tab-stickers { font-size: 12px; font-weight: 700; padding: 0 10px; }
303
+ .picker-tabs [aria-selected="true"] { background: var(--soft); }
304
+ .picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
305
+ .picker-grid button { aspect-ratio: 1; border: 0; border-radius: 4px; background: none; font-size: 22px; cursor: pointer; padding: 0; }
306
+ .picker-grid button:hover, .picker-grid button:focus-visible { background: var(--soft); }
307
+ .picker-grid.stickers { grid-template-columns: repeat(5, 1fr); }
308
+ .picker-grid.stickers img { width: 100%; height: auto; display: block; }
309
+ .picker-head { grid-column: 1 / -1; margin: 6px 2px 0; font-size: 15px; position: sticky; top: -6px; background: var(--panel); z-index: 1; }
310
+ .picker-grid.stickers { max-height: 280px; }
311
+ .picker-credit { margin: 0; padding: 4px 8px 6px; font-size: 10px; color: var(--muted); text-align: right; }
312
+ /* Dragging a photo over the chat */
313
+ .drop-hint { display: none; position: absolute; inset: 6px; z-index: 6; place-items: center; border: 2px dashed var(--glow-cyan, #22d3ee); border-radius: 6px; background: color-mix(in srgb, var(--bg) 80%, transparent); font-weight: 800; font-size: 18px; pointer-events: none; }
314
+ .chat-box.dropping .drop-hint { display: grid; }
315
+ /* Photo viewer and the mute menu */
316
+ .photo-viewer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.85); overscroll-behavior: contain; }
317
+ .photo-viewer img { max-width: 100%; max-height: 100%; border-radius: 6px; }
318
+ .photo-viewer .wheel-x { position: fixed; top: 14px; right: 14px; color: #fff; }
319
+ .mute-menu { position: fixed; z-index: 95; display: grid; min-width: 150px; padding: 6px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); box-shadow: 0 16px 40px -10px rgba(0,0,0,.7); }
320
+ .mute-menu p { margin: 2px 6px 6px; font-size: 12px; color: var(--muted); }
321
+ .mute-menu button { text-align: left; padding: 7px 10px; border: 0; border-radius: 4px; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
322
+ .mute-menu button:hover, .mute-menu button:focus-visible { background: var(--soft); }
323
+ .mute-menu .cancel { color: var(--muted); }
324
+ .report-thumb { max-width: 120px; max-height: 90px; border-radius: 4px; display: block; margin-top: 4px; }
279
325
  .chat-msg .badge-admin { color: #facc15; font-size: 11px; font-weight: 700; margin-right: 6px; }
280
326
  .admin-id { font: 12px ui-monospace, Consolas, monospace; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 4px; user-select: all; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
281
327
  @media (max-width: 720px) { .chat-name { width: 90px; } }
@@ -343,8 +389,11 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
343
389
  .stage { position: relative; flex: 1; min-width: 0; }
344
390
  .chat-dock { width: 340px; flex: none; display: flex; border-left: 1px solid rgba(255,255,255,.08); background: #0a0a0c; }
345
391
  .chat-dock .chat-box { flex: 1; height: auto; border: 0; border-radius: 0; min-width: 0; }
346
- .chat-dock .chat-name { width: 90px; }
347
- .chat-dock .chat-form { flex-wrap: wrap; }
392
+ /* Narrow chat (beside a game or the live stream): the message box gets its own full-width line on top */
393
+ .chat-dock .chat-form, .live-chat .chat-form { flex-wrap: wrap; }
394
+ .chat-dock .chat-text, .live-chat .chat-text { flex: 1 1 100%; order: -1; }
395
+ .chat-dock .chat-name, .live-chat .chat-name { flex: 1 1 0; width: auto; min-width: 0; }
396
+ .chat-dock .chat-box .pill-btn, .live-chat .chat-box .pill-btn { padding: 0 14px; }
348
397
  .chat-toggle[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
349
398
  @media (max-width: 720px) { .chat-dock { position: absolute; right: 0; top: 49px; bottom: 0; width: min(340px, 100%); z-index: 2; } }
350
399
 
@@ -444,7 +493,8 @@ html[data-nav-dir="up"] { --out-y: 70px; --in-y: -90px; }
444
493
  @keyframes view-in { from { opacity: 0; transform: translateY(40px); } }
445
494
  }
446
495
  .player:not([hidden]) { animation: player-in .3s cubic-bezier(.2, .8, .2, 1) backwards; }
447
- @keyframes player-in { from { opacity: 0; transform: scale(.97); } }
496
+ /* no fade: an animation paused in a background tab must never leave the player see-through */
497
+ @keyframes player-in { from { transform: scale(.97); } }
448
498
  .wheel-wrap:not([hidden]) { animation: fade-in .2s ease backwards; }
449
499
  .wheel-wrap:not([hidden]) .wheel-card { animation: player-in .28s cubic-bezier(.2, .8, .2, 1) backwards; }
450
500
  @keyframes fade-in { from { opacity: 0; } }
@@ -502,3 +552,68 @@ body:has(#view-changelog:not([hidden])) .corner-links { display: none; }
502
552
  .clock { top: 8px; right: 8px; }
503
553
  }
504
554
  @media (prefers-reduced-motion: reduce) { .aurora span, .sweep::after, .wordmark, .boot-word { animation: none; } }
555
+
556
+ /* ---------- Chat: top line (people in chat, full screen), titles, full-screen mode ---------- */
557
+ .chat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
558
+ .chat-here { display: inline-flex; align-items: center; gap: 7px; }
559
+ .chat-here .online-dot { width: 7px; height: 7px; }
560
+ .chat-title-input { width: 100px; }
561
+ .chat-title-pill { display: inline-block; margin-right: 6px; padding: 0 7px; border-radius: 9px; background: color-mix(in srgb, var(--glow-violet, #8b5cf6) 30%, transparent); color: var(--text); font-size: 11px; font-weight: 700; line-height: 18px; vertical-align: 1px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
562
+ .chat-box.full { position: fixed; inset: 0; z-index: 85; height: auto; border-radius: 0; border: 0; background: var(--bg); }
563
+ .chat-box.full .chat-log { padding: 18px max(16px, calc((100vw - 900px) / 2)); }
564
+ .chat-box.full .chat-form, .chat-box.full .chat-top { padding-left: max(12px, calc((100vw - 900px) / 2)); padding-right: max(12px, calc((100vw - 900px) / 2)); }
565
+ body.chat-full { overflow: hidden; }
566
+ @media (max-width: 720px) { .chat-title-input { width: 72px; } }
567
+
568
+ /* ---------- Quote of the day: a long bar across the top of the front page ---------- */
569
+ .quote-strip {
570
+ position: absolute; top: 14px; left: clamp(16px, 3vw, 44px); right: 150px; /* room for the clock */
571
+ display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px;
572
+ border: 1px solid var(--line-2); border-radius: 6px; background: color-mix(in srgb, var(--panel) 80%, transparent); font-size: 14px;
573
+ }
574
+ .quote-label { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--glow-cyan, #22d3ee); }
575
+ .quote-text { flex: 0 1 auto; min-width: 0; font-style: italic; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; quotes: "“" "”"; }
576
+ .quote-text.is-empty { font-style: normal; color: var(--muted); quotes: none; }
577
+ .quote-by { flex: none; color: var(--muted); font-size: 13px; }
578
+ .quote-by:empty { display: none; }
579
+ .quote-strip .text-btn.link { flex: none; margin-left: auto; font-size: 13px; }
580
+ .home { position: relative; }
581
+ @media (max-width: 720px) {
582
+ .quote-strip { right: 16px; flex-wrap: wrap; }
583
+ .quote-text { white-space: normal; flex-basis: 100%; order: 1; }
584
+ }
585
+
586
+ /* ---------- Front page, bottom-left corner: bookmark chip, latest version, what's new ---------- */
587
+ .home-corner { position: fixed; left: calc(var(--rail-w) + 14px); bottom: 12px; z-index: 5; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
588
+ .home-corner .bookmark-row { margin: 0; justify-content: flex-start; }
589
+ .home-corner .whats-new-row { margin: 0; }
590
+ @media (max-width: 720px) { .home-corner { position: static; align-items: center; margin-top: 22px; } }
591
+
592
+ /* ---------- Live ---------- */
593
+ .live { padding-top: 26px; padding-bottom: 40px; }
594
+ .live-pill { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 9px; border-radius: 4px; background: #dc2626; color: #fff; font-size: 13px; letter-spacing: .04em; animation: unread-pulse 1.6s ease-in-out infinite; }
595
+ .live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: stretch; margin-bottom: 16px; }
596
+ .live-stage { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
597
+ .live-stage video { display: block; }
598
+ #live-screen { width: 100%; height: 100%; object-fit: contain; }
599
+ #live-cam { position: absolute; right: 12px; bottom: 12px; width: 24%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 2px solid rgba(255,255,255,.7); box-shadow: 0 8px 24px rgba(0,0,0,.6); background: #111; }
600
+ .live-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; text-align: center; background: radial-gradient(circle at 50% 40%, #1e293b, #000); }
601
+ .live-overlay p { margin: 0; font-size: 18px; font-weight: 700; }
602
+ .live-overlay .pill-btn { height: 40px; padding: 0 20px; background: #dc2626; border-color: #dc2626; }
603
+ .live-unmute { position: absolute; left: 12px; bottom: 12px; }
604
+ .live-chat { min-height: 0; min-width: 0; display: flex; }
605
+ .live-chat .chat-box { flex: 1; height: auto; min-height: 360px; min-width: 0; }
606
+ .live-stage { min-width: 0; }
607
+ .live-owner .set-row { flex-wrap: wrap; }
608
+ .live-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
609
+ .live-owner .pill-btn { height: 38px; padding: 0 18px; }
610
+ .rail-btn.is-live { color: #ef4444; }
611
+ .rail-btn.is-live::before { content: ""; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 2px var(--bg), 0 0 10px #ef4444; }
612
+ @media (max-width: 1000px) { .live-layout { grid-template-columns: 1fr; } .live-chat .chat-box { min-height: 420px; } }
613
+ body:has(#view-live:not([hidden])) .corner-links { display: none; }
614
+
615
+ /* Take-a-photo window */
616
+ .cam-card { width: min(560px, 100%); }
617
+ .cam-view { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
618
+ .cam-view video, .cam-view canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
619
+ .cam-view video { transform: scaleX(-1); } /* mirror like a selfie camera */