@ywkrlerche/richardwho 1.0.28 → 1.0.30

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.
package/index.html CHANGED
@@ -49,6 +49,9 @@
49
49
  <button class="rail-btn" type="button" data-nav="chat" title="Chat" aria-label="Chat">
50
50
  <svg viewBox="0 0 24 24"><path d="M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm3 6.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm5 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"/></svg>
51
51
  </button>
52
+ <button class="rail-btn" type="button" data-nav="stats" title="Stats &amp; achievements" aria-label="Stats and achievements">
53
+ <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>
54
+ </button>
52
55
  <button class="rail-btn" type="button" data-nav="recent" title="Recently played" aria-label="Recently played">
53
56
  <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>
54
57
  </button>
@@ -81,6 +84,12 @@
81
84
  </form>
82
85
  <p class="home-sub" id="home-sub"></p>
83
86
  <p class="online" id="online" hidden><span class="online-dot"></span><span id="online-count"></span></p>
87
+ <div class="bookmark-row">
88
+ <!-- Dragged to the bookmarks bar, the link's text becomes the bookmark's name -->
89
+ <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>
90
+ <button class="bookmark-chip latest" type="button" id="latest-btn" title="Open the newest version of the site">⟳ Latest version</button>
91
+ <span class="bookmark-hint"><span class="bookmark-arrow" aria-hidden="true">↑</span> Drag richardwho to your bookmarks bar to get back fast</span>
92
+ </div>
84
93
  </section>
85
94
 
86
95
  <!-- GAMES -->
@@ -88,7 +97,7 @@
88
97
  <header class="games-head">
89
98
  <div>
90
99
  <h1>Games</h1>
91
- <p class="lede">Pick a game and it starts right away. Nothing to install.</p>
100
+ <p class="lede">Pick a game and it starts right away. Nothing to install. <button class="text-btn link" type="button" id="request-btn">Missing a game? Request it</button></p>
92
101
  </div>
93
102
  <div class="per-row" role="group" aria-label="Games per row">
94
103
  <span>Per row</span>
@@ -128,19 +137,20 @@
128
137
  <section class="block">
129
138
  <div class="block-head"><h2 id="all-title">All games</h2></div>
130
139
  <div class="grid" id="grid"></div>
131
- <p class="empty" id="empty" hidden>No games match that search.</p>
140
+ <p class="empty" id="empty" hidden>No games match that search. <button class="text-btn link" type="button" id="request-btn-2">Request it</button></p>
132
141
  </section>
133
142
  </section>
134
143
 
135
144
  <!-- CHAT -->
136
145
  <section id="view-chat" class="view chat" hidden>
137
146
  <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>
138
- <div class="chat-box">
147
+ <div class="chat-box" id="chat-box">
139
148
  <div class="chat-off" id="chat-off" hidden>
140
149
  <p><strong>Chat isn't switched on yet.</strong></p>
141
150
  <p>It needs the site's free Firebase database (see SETUP.md).</p>
142
151
  </div>
143
152
  <div class="chat-log" id="chat-log" aria-live="polite"></div>
153
+ <p class="chat-typing" id="chat-typing" aria-live="polite"></p>
144
154
  <form class="chat-form" id="chat-form" autocomplete="off" hidden>
145
155
  <input id="chat-name" class="chat-name" maxlength="16" placeholder="Nickname" spellcheck="false" aria-label="Nickname">
146
156
  <input id="chat-text" class="chat-text" maxlength="200" placeholder="Say something…" aria-label="Message">
@@ -150,6 +160,32 @@
150
160
  </div>
151
161
  </section>
152
162
 
163
+ <!-- STATS & ACHIEVEMENTS -->
164
+ <section id="view-stats" class="view settings stats-page" hidden>
165
+ <header class="games-head"><div><h1>Stats</h1><p class="lede">Your play time and achievements. Saved on this device only.</p></div></header>
166
+
167
+ <div class="set-group">
168
+ <h2>Your stats</h2>
169
+ <div class="stat-tiles">
170
+ <div class="stat"><b id="stat-unique">0</b><span>games played</span></div>
171
+ <div class="stat"><b id="stat-plays">0</b><span>times played</span></div>
172
+ <div class="stat"><b id="stat-time">–</b><span>time played</span></div>
173
+ <div class="stat"><b id="stat-fav">–</b><span>favorite category</span></div>
174
+ </div>
175
+ <h3 class="set-sub">Most played</h3>
176
+ <ol class="stat-top" id="stat-top"></ol>
177
+ </div>
178
+
179
+ <div class="set-group">
180
+ <h2>Achievements <small class="ach-count" id="ach-count"></small></h2>
181
+ <div class="achievements" id="achievements"></div>
182
+ </div>
183
+
184
+ <div class="set-group">
185
+ <div class="set-row"><span>Start over</span><button class="pill-btn" type="button" id="set-reset-stats">Reset stats &amp; achievements</button></div>
186
+ </div>
187
+ </section>
188
+
153
189
  <!-- SETTINGS -->
154
190
  <section id="view-settings" class="view settings" hidden>
155
191
  <header class="games-head"><div><h1>Settings</h1><p class="lede">Saved on this device only.</p></div></header>
@@ -196,24 +232,44 @@
196
232
  </div>
197
233
 
198
234
  <div class="set-group" id="admin-group" hidden>
199
- <h2>Chat admin</h2>
200
- <p class="set-help">Admins can delete chat messages and ban people. To become admin, type the admin code as your chat nickname and press Send. Your messages then show as Richard.</p>
201
- <div class="set-row"><span id="admin-status">Not an admin on this browser</span>
202
- <button class="pill-btn" type="button" id="admin-leave" hidden>Stop being admin here</button>
235
+ <h2>Tools</h2>
236
+ <div class="set-row"><span id="admin-status"></span>
237
+ <button class="pill-btn" type="button" id="admin-leave" hidden>Turn off on this browser</button>
203
238
  </div>
204
239
  <div class="set-row" id="admin-tools-row" hidden><span>Chat</span>
205
240
  <button class="pill-btn danger" type="button" id="admin-clear">Clear all chat</button>
206
241
  </div>
242
+ <div id="admin-reports" hidden>
243
+ <h3 class="set-sub">Game reports and requests <span id="reports-count"></span></h3>
244
+ <div class="reports" id="reports-list"></div>
245
+ <div class="set-row"><span></span><button class="pill-btn danger" type="button" id="reports-clear">Clear all reports</button></div>
246
+ </div>
207
247
  </div>
208
248
 
209
249
  <div class="set-group">
210
250
  <h2>Your data</h2>
211
- <div class="set-row"><span>Recently played</span><button class="pill-btn" type="button" id="set-clear-recent">Clear</button></div>
212
- <div class="set-row"><span>All settings</span><button class="pill-btn danger" type="button" id="set-reset">Reset to default</button></div>
251
+ <div class="set-row"><span>Recently played</span><button class="pill-btn" type="button" id="set-clear-recent">Clear</button></div> <div class="set-row"><span>All settings</span><button class="pill-btn danger" type="button" id="set-reset">Reset to default</button></div>
213
252
  </div>
214
253
  </section>
215
254
  </main>
216
255
 
256
+ <!-- REPORT A BROKEN GAME / REQUEST A GAME -->
257
+ <div class="wheel-wrap" id="report-wrap" hidden role="dialog" aria-labelledby="report-title">
258
+ <form class="wheel-card report-card" id="report-form" autocomplete="off">
259
+ <button class="wheel-x" type="button" id="report-close" aria-label="Close">✕</button>
260
+ <h2 id="report-title">Report a problem</h2>
261
+ <p class="report-sub" id="report-sub"></p>
262
+ <div class="report-reasons" id="report-reasons" role="radiogroup" aria-label="What's wrong?"></div>
263
+ <input class="report-input" id="report-game" maxlength="60" placeholder="Game name" aria-label="Game name">
264
+ <textarea class="report-input" id="report-note" maxlength="200" rows="3" placeholder="Anything else? (optional)" aria-label="Details"></textarea>
265
+ <p class="chat-note" id="report-msg"></p>
266
+ <div class="wheel-actions">
267
+ <button class="pill-btn" type="button" id="report-cancel">Cancel</button>
268
+ <button class="pill-btn play" type="submit" id="report-send">Send</button>
269
+ </div>
270
+ </form>
271
+ </div>
272
+
217
273
  <!-- RANDOM GAME WHEEL -->
218
274
  <div class="wheel-wrap" id="wheel-wrap" hidden role="dialog" aria-label="Random game wheel">
219
275
  <div class="wheel-card">
@@ -241,11 +297,14 @@
241
297
  <button class="pill-btn" id="back-btn" type="button">← Back</button>
242
298
  <h2 class="player-title" id="player-title"></h2>
243
299
  <div class="player-actions">
300
+ <button class="pill-btn chat-toggle" id="dock-btn" type="button" title="Show chat beside the game" aria-pressed="false">💬 Chat</button>
301
+ <button class="pill-btn" id="report-btn" type="button" title="Tell us this game is broken">⚠ Report</button>
244
302
  <button class="pill-btn" id="reload-btn" type="button" title="Restart game">↻ Restart</button>
245
303
  <button class="pill-btn" id="fullscreen-btn" type="button" title="Fullscreen">⛶ Fullscreen</button>
246
304
  <button class="pill-btn danger" id="panic-btn-2" type="button" title="Panic (` or ])">Panic</button>
247
305
  </div>
248
306
  </div>
307
+ <div class="player-body">
249
308
  <div class="stage">
250
309
  <!-- sandbox without allow-top-navigation: stops games' "frame-busting" code from navigating the whole tab away -->
251
310
  <iframe id="game-frame" title="Game" allow="fullscreen; autoplay; gamepad; pointer-lock" allowfullscreen
@@ -261,8 +320,13 @@
261
320
  </div>
262
321
  </div>
263
322
  </div>
323
+ <!-- The chat box from the Chat page moves in here while it's open, so it keeps its messages -->
324
+ <aside class="chat-dock" id="chat-dock" hidden aria-label="Chat"></aside>
325
+ </div>
264
326
  </section>
265
327
 
328
+ <div class="toast" id="toast" role="status" aria-live="polite"></div>
329
+
266
330
  <footer class="corner-links">
267
331
  <span><kbd>`</kbd> or <kbd>]</kbd> panic</span>
268
332
  <span id="footer-count"></span>
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ywkrlerche/richardwho",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
4
4
  "description": "Richards Unblocked Games",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/style.css CHANGED
@@ -11,8 +11,10 @@
11
11
  --soft-2: rgba(255, 255, 255, .1);
12
12
  --accent: #3b82f6;
13
13
  --danger: #ef4444;
14
- --glow-blue: rgba(30, 64, 175, .55);
15
- --glow-orange: rgba(194, 92, 30, .35);
14
+ --glow-blue: rgba(37, 78, 205, .55);
15
+ --glow-cyan: rgba(14, 165, 233, .30);
16
+ --glow-violet: rgba(99, 76, 230, .32);
17
+ --shine: #93c5fd;
16
18
  --rail-w: 58px;
17
19
  --per-row: 6;
18
20
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
@@ -29,7 +31,9 @@
29
31
  --soft: rgba(0, 0, 0, .05);
30
32
  --soft-2: rgba(0, 0, 0, .09);
31
33
  --glow-blue: rgba(59, 130, 246, .28);
32
- --glow-orange: rgba(249, 115, 22, .2);
34
+ --glow-cyan: rgba(14, 165, 233, .18);
35
+ --glow-violet: rgba(124, 58, 237, .14);
36
+ --shine: #2563eb;
33
37
  color-scheme: light;
34
38
  }
35
39
 
@@ -63,8 +67,8 @@ kbd { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 6px; border
63
67
  .aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
64
68
  .aurora span { position: absolute; border-radius: 50%; filter: blur(90px); }
65
69
  .aurora .a1 { width: 70vw; height: 26vh; left: 22vw; top: 8vh; background: var(--glow-blue); transform: rotate(-12deg); animation: drift 18s ease-in-out infinite alternate; }
66
- .aurora .a2 { width: 34vw; height: 20vh; right: -6vw; top: -6vh; background: var(--glow-orange); animation: drift 22s ease-in-out infinite alternate-reverse; }
67
- .aurora .a3 { width: 40vw; height: 18vh; left: 8vw; top: 26vh; background: color-mix(in srgb, var(--glow-blue) 55%, transparent); animation: drift 26s ease-in-out infinite alternate; }
70
+ .aurora .a2 { width: 36vw; height: 22vh; right: -4vw; top: -4vh; background: var(--glow-cyan); animation: drift 22s ease-in-out infinite alternate-reverse; }
71
+ .aurora .a3 { width: 42vw; height: 20vh; left: 6vw; top: 28vh; background: var(--glow-violet); animation: drift 26s ease-in-out infinite alternate; }
68
72
  @keyframes drift { from { translate: 0 0; } to { translate: 4vw 3vh; } }
69
73
  body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
70
74
 
@@ -101,11 +105,36 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
101
105
 
102
106
  /* ---------- Home ---------- */
103
107
  .home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 12vh; }
108
+ /* Animated logo: fades up on load, a light sweeps across it, and a soft blue glow breathes behind it */
109
+ .wordmark, .boot-word {
110
+ background: linear-gradient(100deg, var(--text) 0%, var(--text) 42%, var(--shine) 50%, var(--text) 58%, var(--text) 100%);
111
+ background-size: 260% 100%;
112
+ -webkit-background-clip: text; background-clip: text; color: transparent;
113
+ animation: shine 5.5s ease-in-out infinite, glow 4s ease-in-out infinite alternate;
114
+ }
104
115
  .wordmark {
105
116
  margin: 0 0 30px; font-size: clamp(64px, 11vw, 150px); font-weight: 800; letter-spacing: -.055em; line-height: .9;
106
- background: linear-gradient(180deg, var(--text) 55%, color-mix(in srgb, var(--text) 70%, transparent));
107
- -webkit-background-clip: text; background-clip: text; color: transparent;
117
+ padding: 0 .04em .08em; /* room for the glow and descenders */
118
+ cursor: default; user-select: none;
119
+ /* layer 1: hover spotlight that follows the mouse (--mx/--my set in app.js); layer 2: the sweeping shine */
120
+ background-image:
121
+ radial-gradient(circle var(--spot, 0px) at var(--mx, 50%) var(--my, 50%), var(--shine), transparent 70%),
122
+ linear-gradient(100deg, var(--text) 0%, var(--text) 42%, var(--shine) 50%, var(--text) 58%, var(--text) 100%);
123
+ background-size: 100% 100%, 260% 100%;
124
+ background-repeat: no-repeat, repeat; /* the shine layer must repeat or the word loses its fill */
125
+ transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
126
+ transition: transform .35s cubic-bezier(.2, .8, .2, 1), --spot .3s;
127
+ animation: rise .9s cubic-bezier(.2, .8, .2, 1) both, shine2 5.5s ease-in-out 1s infinite, glow 4s ease-in-out infinite alternate;
128
+ }
129
+ .wordmark.hovering { transition: transform .12s ease-out; }
130
+ @property --spot { syntax: "<length>"; inherits: false; initial-value: 0px; }
131
+ @keyframes shine { 0% { background-position: 100% 0; } 55%, 100% { background-position: -60% 0; } }
132
+ @keyframes shine2 { 0% { background-position: 0 0, 100% 0; } 55%, 100% { background-position: 0 0, -60% 0; } }
133
+ @keyframes glow {
134
+ from { filter: drop-shadow(0 0 18px color-mix(in srgb, var(--shine) 20%, transparent)); }
135
+ to { filter: drop-shadow(0 0 42px color-mix(in srgb, var(--shine) 45%, transparent)); }
108
136
  }
137
+ @keyframes rise { from { opacity: 0; translate: 0 14px; letter-spacing: -.02em; filter: blur(6px); } to { opacity: 1; translate: 0 0; } }
109
138
  .home-search {
110
139
  position: relative; width: min(640px, 100%); height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px;
111
140
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line-2); border-radius: 4px;
@@ -180,6 +209,8 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
180
209
  .badge::before { content: "★ "; color: #facc15; }
181
210
 
182
211
  .grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
212
+ /* 800+ tiles: let the browser skip drawing the ones off screen (makes opening Games fast) */
213
+ .grid .tile { content-visibility: auto; contain-intrinsic-size: auto 160px; }
183
214
  .recent-row { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
184
215
  .empty { text-align: center; color: var(--muted); padding: 50px 0; }
185
216
 
@@ -234,7 +265,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
234
265
  .chat-form input { height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); color: var(--text); }
235
266
  .chat-name { width: 130px; flex: none; }
236
267
  .chat-text { flex: 1; min-width: 0; }
237
- .chat .pill-btn { color: var(--bg); background: var(--text); border-color: var(--text); height: 40px; padding: 0 18px; }
268
+ .chat-box .pill-btn { color: var(--bg); background: var(--text); border-color: var(--text); height: 40px; padding: 0 18px; }
238
269
  .chat-note { margin: 0; padding: 0 12px 10px; min-height: 1.3em; color: var(--muted); font-size: 12px; }
239
270
  .chat-note.err { color: var(--danger); }
240
271
  .chat-off { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
@@ -242,10 +273,41 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
242
273
  .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; }
243
274
  .chat-msg .mod:hover { background: color-mix(in srgb, var(--danger) 30%, transparent); }
244
275
  .chat-log.admin .chat-msg .mod { display: inline-block; }
276
+ .chat-msg.me .mod[data-mod="delete"] { display: inline-block; } /* anyone can delete their own */
245
277
  .chat-msg .badge-admin { color: #facc15; font-size: 11px; font-weight: 700; margin-right: 6px; }
246
278
  .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; }
247
279
  @media (max-width: 720px) { .chat-name { width: 90px; } }
248
280
 
281
+ /* ---------- Stats + achievements ---------- */
282
+ .stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 14px; }
283
+ .stat { border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: var(--soft); }
284
+ .stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
285
+ .stat span { color: var(--muted); font-size: 12px; }
286
+ .set-sub { margin: 4px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
287
+ .stat-top { list-style: none; margin: 0; padding: 0; }
288
+ .stat-top li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
289
+ .stat-top li span:last-child { color: var(--muted); font-size: 13px; white-space: nowrap; }
290
+ .stat-top .muted { color: var(--muted); }
291
+ .ach-count { color: var(--muted); font-size: 12px; font-weight: 500; margin-left: 8px; }
292
+ .achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
293
+ .ach { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); opacity: .7; }
294
+ .ach.got { opacity: 1; border-color: color-mix(in srgb, #facc15 55%, var(--line)); background: color-mix(in srgb, #facc15 8%, var(--soft)); }
295
+ .ach-icon { font-size: 22px; line-height: 1; }
296
+ .ach-body { display: grid; gap: 2px; min-width: 0; }
297
+ .ach-body b { font-size: 13.5px; }
298
+ .ach-body small { color: var(--muted); font-size: 11.5px; }
299
+ .ach-done { color: #ca8a04 !important; }
300
+ .ach-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; }
301
+ .ach-bar div { height: 100%; background: var(--text); }
302
+ @media (max-width: 720px) { .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
303
+
304
+ .toast {
305
+ position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
306
+ padding: 12px 18px; border-radius: 8px; background: #111; color: #fff; border: 1px solid #facc15;
307
+ font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); transition: opacity .25s, transform .25s;
308
+ }
309
+ .toast.show { opacity: 1; transform: translate(-50%, 0); }
310
+
249
311
  /* ---------- Random game wheel ---------- */
250
312
  .wheel-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
251
313
  .wheel-card { position: relative; width: min(440px, 100%); text-align: center; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 20px 20px 18px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
@@ -275,7 +337,102 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
275
337
  .pill-btn { height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-size: 13px; font-weight: 600; }
276
338
  .pill-btn:hover { background: rgba(255,255,255,.12); }
277
339
  .pill-btn.danger:hover { background: var(--danger); border-color: var(--danger); }
278
- .stage { position: relative; flex: 1; }
340
+ .player-body { flex: 1; display: flex; min-height: 0; }
341
+ .stage { position: relative; flex: 1; min-width: 0; }
342
+ .chat-dock { width: 340px; flex: none; display: flex; border-left: 1px solid rgba(255,255,255,.08); background: #0a0a0c; }
343
+ .chat-dock .chat-box { flex: 1; height: auto; border: 0; border-radius: 0; min-width: 0; }
344
+ .chat-dock .chat-name { width: 90px; }
345
+ .chat-dock .chat-form { flex-wrap: wrap; }
346
+ .chat-toggle[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
347
+ @media (max-width: 720px) { .chat-dock { position: absolute; right: 0; top: 49px; bottom: 0; width: min(340px, 100%); z-index: 2; } }
348
+
349
+ /* Unread chat dot (rail button and the player's chat button) */
350
+ .rail-btn, .chat-toggle { position: relative; }
351
+ .has-unread::after {
352
+ content: ""; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%;
353
+ background: var(--glow-cyan, #22d3ee); box-shadow: 0 0 0 2px var(--bg, #000), 0 0 10px var(--glow-cyan, #22d3ee);
354
+ animation: unread-pulse 1.6s ease-in-out infinite;
355
+ }
356
+ .chat-toggle.has-unread::after { top: -3px; right: -3px; box-shadow: 0 0 0 2px #0a0a0c, 0 0 10px var(--glow-cyan, #22d3ee); }
357
+ @keyframes unread-pulse { 50% { transform: scale(1.25); opacity: .75; } }
358
+ /* @mention: pink dot instead of cyan */
359
+ .has-unread.has-mention::after { background: #f472b6; box-shadow: 0 0 0 2px var(--bg, #000), 0 0 12px #f472b6; }
360
+ .chat-toggle.has-unread.has-mention::after { box-shadow: 0 0 0 2px #0a0a0c, 0 0 12px #f472b6; }
361
+ @media (prefers-reduced-motion: reduce) { .has-unread::after { animation: none; } }
362
+
363
+ /* Chat: typing line, @mentions */
364
+ .chat-typing { margin: 0; padding: 0 16px; height: 20px; font-size: 12px; color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
365
+ .chat-typing:not(:empty)::after { content: ""; display: inline-block; width: 4px; }
366
+ .chat-msg .at { color: var(--glow-cyan, #22d3ee); font-weight: 700; }
367
+ .chat-msg.mention { background: color-mix(in srgb, #f472b6 14%, transparent); border-left: 3px solid #f472b6; margin-left: -10px; padding: 3px 8px 3px 7px; border-radius: 3px; }
368
+ .chat-msg .who { cursor: pointer; }
369
+ .chat-msg .who:hover { text-decoration: underline; }
370
+
371
+ /* Report / request dialog */
372
+ .text-btn.link { padding: 0; border: 0; background: none; color: var(--glow-cyan, #22d3ee); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
373
+ .report-card { text-align: left; display: flex; flex-direction: column; gap: 10px; }
374
+ .report-card h2 { margin: 0; }
375
+ .report-sub { margin: -4px 0 2px; color: var(--muted); font-size: 13px; }
376
+ .report-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
377
+ .report-reasons:empty { display: none; }
378
+ .report-reasons button { height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--soft); color: var(--text); font-size: 13px; }
379
+ .report-reasons button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
380
+ .report-input { width: 100%; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; resize: vertical; }
381
+ .report-card .chat-note { padding: 0; }
382
+ .report-card .wheel-actions { justify-content: flex-end; margin-top: 0; }
383
+
384
+ /* Admin: reports list */
385
+ .reports { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; max-height: 420px; overflow-y: auto; }
386
+ .reports .none { color: var(--muted); font-size: 13px; padding: 6px 0; }
387
+ .report { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
388
+ .report .kind { flex: none; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; }
389
+ .report .kind.broken { background: color-mix(in srgb, var(--danger) 25%, transparent); color: var(--danger); }
390
+ .report .kind.request { background: color-mix(in srgb, var(--glow-cyan, #22d3ee) 20%, transparent); color: var(--glow-cyan, #22d3ee); }
391
+ .report .body { flex: 1; min-width: 0; }
392
+ .report .game { font-weight: 700; }
393
+ .report a.game { color: inherit; }
394
+ .report .meta { color: var(--muted); font-size: 11px; margin-top: 2px; }
395
+ .report .note { margin-top: 3px; word-wrap: break-word; }
396
+ .report .mod { border: 1px solid var(--line-2); background: var(--soft); color: var(--text); border-radius: 3px; font-size: 12px; padding: 2px 7px; }
397
+
398
+ /* Home: drag-to-bookmark chip */
399
+ .bookmark-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--muted); }
400
+ .bookmark-chip {
401
+ display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: 17px;
402
+ border: 1px dashed var(--line-2); background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--text);
403
+ font-weight: 600; text-decoration: none; cursor: grab; transition: border-color .2s, box-shadow .2s, transform .2s;
404
+ }
405
+ .bookmark-chip img { width: 16px; height: 16px; }
406
+ .bookmark-chip:hover { border-color: var(--glow-cyan, #22d3ee); border-style: solid; box-shadow: 0 0 18px color-mix(in srgb, var(--glow-cyan, #22d3ee) 35%, transparent); transform: translateY(-2px); }
407
+ .bookmark-chip:active { cursor: grabbing; }
408
+ .bookmark-chip.latest { border-style: solid; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
409
+ .bookmark-chip.latest:disabled { opacity: .6; cursor: wait; }
410
+ .bookmark-arrow { display: inline-block; animation: nudge-up 1.6s ease-in-out infinite; }
411
+ @keyframes nudge-up { 50% { transform: translateY(-4px); } }
412
+ @media (prefers-reduced-motion: reduce) { .bookmark-arrow { animation: none; } }
413
+
414
+ /* Page switches: the old page slides away while the new one slides in, the side bar stays put.
415
+ Moving down the side bar pages travel up; moving up they travel down. (app.js route) */
416
+ .main { view-transition-name: page; }
417
+ .rail { view-transition-name: rail; }
418
+ ::view-transition-group(page) { animation-duration: .55s; }
419
+ ::view-transition-old(page) { animation: page-out .32s cubic-bezier(.4, 0, 1, 1) both; }
420
+ ::view-transition-new(page) { animation: page-in .5s cubic-bezier(.16, 1, .3, 1) .08s both; }
421
+ @keyframes page-out { to { opacity: 0; transform: translateY(var(--out-y, -70px)) scale(.97); } }
422
+ @keyframes page-in { from { opacity: 0; transform: translateY(var(--in-y, 90px)) scale(.98); } }
423
+ html[data-nav-dir="up"] { --out-y: 70px; --in-y: -90px; }
424
+ ::view-transition-old(rail), ::view-transition-new(rail) { animation: none; }
425
+ /* Browsers without view transitions: the new page still glides in */
426
+ @supports not (view-transition-name: none) {
427
+ .view:not([hidden]) { animation: view-in .4s cubic-bezier(.16, 1, .3, 1) backwards; }
428
+ @keyframes view-in { from { opacity: 0; transform: translateY(40px); } }
429
+ }
430
+ .player:not([hidden]) { animation: player-in .3s cubic-bezier(.2, .8, .2, 1) backwards; }
431
+ @keyframes player-in { from { opacity: 0; transform: scale(.97); } }
432
+ .wheel-wrap:not([hidden]) { animation: fade-in .2s ease backwards; }
433
+ .wheel-wrap:not([hidden]) .wheel-card { animation: player-in .28s cubic-bezier(.2, .8, .2, 1) backwards; }
434
+ @keyframes fade-in { from { opacity: 0; } }
435
+ @media (prefers-reduced-motion: reduce) { .view:not([hidden]), .player:not([hidden]), .wheel-wrap:not([hidden]), .wheel-wrap:not([hidden]) .wheel-card { animation: none; } }
279
436
  #game-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
280
437
  .loader { position: absolute; inset: 0; display: grid; place-items: center; background: #000; color: #fff; padding: 16px; }
281
438
  .loader-card { width: min(440px, 100%); text-align: center; }
@@ -290,7 +447,10 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
290
447
  .corner-links { position: fixed; right: 14px; bottom: 12px; z-index: 5; display: flex; gap: 8px; }
291
448
  .corner-links > span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: color-mix(in srgb, var(--panel) 85%, transparent); font-size: 12px; color: var(--muted); }
292
449
  body.playing { overflow: hidden; }
293
- body:has(#view-games:not([hidden])) .corner-links { display: none; }
450
+ body:has(#view-games:not([hidden])) .corner-links,
451
+ body:has(#view-stats:not([hidden])) .corner-links,
452
+ body:has(#view-settings:not([hidden])) .corner-links,
453
+ body:has(#view-chat:not([hidden])) .corner-links { display: none; }
294
454
 
295
455
  /* ---------- Responsive ---------- */
296
456
  @media (max-width: 1100px) { .grid, .recent-row { grid-template-columns: repeat(min(var(--per-row), 4), minmax(0, 1fr)); } }
@@ -309,4 +469,4 @@ body:has(#view-games:not([hidden])) .corner-links { display: none; }
309
469
  .corner-links { display: none; }
310
470
  .clock { top: 8px; right: 8px; }
311
471
  }
312
- @media (prefers-reduced-motion: reduce) { .aurora span, .sweep::after { animation: none; } }
472
+ @media (prefers-reduced-motion: reduce) { .aurora span, .sweep::after, .wordmark, .boot-word { animation: none; } }
Binary file