@ywkrlerche/richardwho 1.0.44 → 1.0.45

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
@@ -52,7 +52,6 @@
52
52
  document.documentElement.classList.add(t, "holiday");
53
53
  if (t !== "halloween" && t !== "christmas") document.documentElement.classList.add("fest");
54
54
  }
55
- if (s.disguise === "off") document.documentElement.classList.add("no-splash"); // no Classroom screen when the disguise is off
56
55
  if (s.tabTitle) document.title = s.tabTitle;
57
56
  if (s.tabIcon) document.getElementById("tab-icon").href = s.tabIcon;
58
57
  } catch (e) {}
@@ -61,46 +60,6 @@
61
60
  <body>
62
61
  <!-- Keyboard users: first Tab stop jumps past the side bar. A button, not href="#main", since # links drive the page routing -->
63
62
  <button class="skip-link" type="button" id="skip-link">Skip to content</button>
64
- <!-- Disguise: looks like Google Classroom loading for a moment, then fades into the boot screen below (app.js) -->
65
- <div class="gc-splash" id="gc-splash" aria-hidden="true">
66
- <header class="gc-top">
67
- <svg class="gc-ico" viewBox="0 0 24 24"><path d="M3 18h18v-2H3v2Zm0-5h18v-2H3v2Zm0-7v2h18V6H3Z"/></svg>
68
- <svg class="gc-mark" viewBox="0 0 48 48"><rect x="2" y="6" width="44" height="36" rx="4" fill="#f9ab00"/><rect x="6" y="10" width="36" height="28" rx="2" fill="#0f9d58"/>
69
- <circle cx="24" cy="21" r="4.2" fill="#fff"/><path d="M15.5 33c.8-4.4 4.3-7 8.5-7s7.7 2.6 8.5 7Z" fill="#fff"/>
70
- <circle cx="13.5" cy="22.5" r="3" fill="#57bb8a"/><path d="M8 33c.5-3.4 2.8-5.4 5.5-5.4 1.4 0 2.6.5 3.6 1.4-1 1.1-1.7 2.5-2 4Z" fill="#57bb8a"/>
71
- <circle cx="34.5" cy="22.5" r="3" fill="#57bb8a"/><path d="M40 33c-.5-3.4-2.8-5.4-5.5-5.4-1.4 0-2.6.5-3.6 1.4 1 1.1 1.7 2.5 2 4Z" fill="#57bb8a"/>
72
- <rect x="27" y="38" width="13" height="3" rx="1" fill="#fff"/></svg>
73
- <span class="gc-name"><span class="gc-google">Google</span> Classroom</span>
74
- <span class="gc-spacer"></span>
75
- <svg class="gc-ico" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2Z"/></svg>
76
- <svg class="gc-ico" viewBox="0 0 24 24"><path d="M6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 20a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm6 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/></svg>
77
- <span class="gc-me">S</span>
78
- <div class="gc-bar"><div class="gc-bar-fill"></div></div>
79
- </header>
80
- <div class="gc-body">
81
- <nav class="gc-nav">
82
- <div class="gc-nav-item on"><svg viewBox="0 0 24 24"><path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5Z"/></svg>Home</div>
83
- <div class="gc-nav-item"><svg viewBox="0 0 24 24"><path d="M19 4h-1V2h-2v2H8V2H6v2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Zm0 16H5V9h14v11Z"/></svg>Calendar</div>
84
- <hr>
85
- <div class="gc-nav-item"><svg viewBox="0 0 24 24"><path d="M12 3 1 9l11 6 9-4.9V17h2V9L12 3Zm-7 9.2v4L12 20l7-3.8v-4L12 16l-7-3.8Z"/></svg>Enrolled</div>
86
- <div class="gc-nav-item sub"><svg viewBox="0 0 24 24"><path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2Zm-9 14-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9Z"/></svg>To-do</div>
87
- <div class="gc-nav-item sub"><i style="background:#1967d2">A</i>Algebra II</div>
88
- <div class="gc-nav-item sub"><i style="background:#137333">B</i>Biology</div>
89
- <div class="gc-nav-item sub"><i style="background:#e37400">E</i>English 10 Honors</div>
90
- <div class="gc-nav-item sub"><i style="background:#a142f4">W</i>World History</div>
91
- <div class="gc-nav-item sub"><i style="background:#c5221f">S</i>Spanish II</div>
92
- <div class="gc-nav-item sub"><i style="background:#007b83">P</i>Physical Education</div>
93
- </nav>
94
- <main class="gc-cards">
95
- <div class="gc-card" style="--c:#1967d2"><div class="gc-head"><b>Algebra II</b><span>Period 2</span><small>Mr. Daniels</small><em style="background:#5e97f6">D</em></div><div class="gc-due"><span>Due Friday</span>Unit 4 Quiz: Quadratics</div></div>
96
- <div class="gc-card" style="--c:#137333"><div class="gc-head"><b>Biology</b><span>Period 4</span><small>Mrs. Okafor</small><em style="background:#33a853">O</em></div><div class="gc-due"><span>Due tomorrow</span>Cell Respiration Lab</div></div>
97
- <div class="gc-card" style="--c:#e37400"><div class="gc-head"><b>English 10 Honors</b><span>Period 1</span><small>Ms. Reyes</small><em style="background:#f6ae2d">R</em></div><div class="gc-due"><span>Due Monday</span>Of Mice and Men: Ch. 3 Response</div></div>
98
- <div class="gc-card" style="--c:#a142f4"><div class="gc-head"><b>World History</b><span>Period 6</span><small>Mr. Brennan</small><em style="background:#c58af9">B</em></div><div class="gc-due"><span>Due Wednesday</span>Industrial Revolution DBQ</div></div>
99
- <div class="gc-card" style="--c:#c5221f"><div class="gc-head"><b>Spanish II</b><span>Period 3</span><small>Sra. Morales</small><em style="background:#ee675c">M</em></div><div class="gc-due"><span>Due Thursday</span>Vocabulario: La comida</div></div>
100
- <div class="gc-card" style="--c:#007b83"><div class="gc-head"><b>Physical Education</b><span>Period 5</span><small>Coach Turner</small><em style="background:#24a1a8">T</em></div><div class="gc-due"><span>No work due soon</span></div></div>
101
- </main>
102
- </div>
103
- </div>
104
63
  <!-- Boot screen: shows instantly while the site checks for a newer version and loads the game list -->
105
64
  <div class="boot" id="boot" aria-live="polite">
106
65
  <div class="boot-inner">
@@ -130,9 +89,6 @@
130
89
  <button class="rail-btn" type="button" id="soundboard-btn" title="Soundboard" aria-label="Soundboard">
131
90
  <svg viewBox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 7.97v8.05A4.48 4.48 0 0 0 16.5 12ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06A9 9 0 0 0 14 3.23Z"/></svg>
132
91
  </button>
133
- <button class="rail-btn" type="button" data-nav="ai" title="AI chat" aria-label="AI chat">
134
- <svg viewBox="0 0 24 24"><path d="M11 2h2v2.07A7 7 0 0 1 19 11v5a3 3 0 0 1-3 3h-1l-3 3-3-3H8a3 3 0 0 1-3-3v-5a7 7 0 0 1 6-6.93V2Zm-2.5 9a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm7 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM2 11h1.5v5H2v-5Zm18.5 0H22v5h-1.5v-5Z"/></svg>
135
- </button>
136
92
  <button class="rail-btn" type="button" id="random-btn" title="Random game" aria-label="Random game">
137
93
  <svg viewBox="0 0 24 24"><path d="M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2Zm2.5 3a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM12 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3ZM7.5 15a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm9 0a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"/></svg>
138
94
  </button>
@@ -297,47 +253,6 @@
297
253
  </div>
298
254
  </section>
299
255
 
300
- <!-- AI CHAT: one chatbot backed by several free AI services (keys in config.js) -->
301
- <section id="view-ai" class="view ai" hidden>
302
- <div class="ai-app" id="ai-app">
303
- <aside class="ai-side" aria-label="Your AI chats">
304
- <div class="ai-side-top">
305
- <span class="ai-brand">richardwho <b>AI</b></span>
306
- <button class="ai-icon" type="button" id="ai-collapse" title="Hide chats" aria-label="Hide chats"><svg viewBox="0 0 24 24"><path d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v12h5V6H4Zm7 0v12h9V6h-9Zm-3.2 3.5L5.3 12l2.5 2.5 1-1L7.3 12l1.5-1.5-1-1Z"/></svg></button>
307
- </div>
308
- <button class="ai-side-btn" type="button" id="ai-new"><span aria-hidden="true">+</span> New chat</button>
309
- <label class="ai-side-search"><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>
310
- <input id="ai-search" type="search" placeholder="Search chats…" autocomplete="off" spellcheck="false" aria-label="Search chats"></label>
311
- <nav class="ai-chats" id="ai-chats"></nav>
312
- <div class="ai-usage" id="ai-usage">
313
- <div class="ai-usage-head"><span>⏱ Usage</span><span class="ai-free">FREE</span></div>
314
- <div class="ai-usage-bar"><span id="ai-usage-fill"></span></div>
315
- <div class="ai-usage-grid"><span id="ai-usage-used">0/100</span><span id="ai-usage-left">100 left</span></div>
316
- <p class="ai-usage-reset">Resets at midnight</p>
317
- </div>
318
- </aside>
319
- <div class="ai-main">
320
- <header class="ai-top">
321
- <button class="ai-icon ai-show-side" type="button" id="ai-expand" title="Show chats" aria-label="Show chats"><svg viewBox="0 0 24 24"><path d="M4 4h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v12h5V6H4Zm7 0v12h9V6h-9ZM5.7 9.5l2.5 2.5-2.5 2.5-1-1L6.2 12l-1.5-1.5 1-1Z"/></svg></button>
322
- <h1 class="ai-title" id="ai-title">New chat</h1>
323
- <button class="ai-icon" type="button" id="ai-delete" title="Delete this chat" aria-label="Delete this chat"><svg viewBox="0 0 24 24"><path d="M9 3h6l1 2h4v2H4V5h4l1-2Zm-3 6h12l-1 11a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L6 9Zm4 2v8h2v-8h-2Zm4 0v8h2v-8h-2Z"/></svg></button>
324
- </header>
325
- <div class="ai-log" id="ai-log" aria-live="polite"></div>
326
- <div class="ai-off" id="ai-off" hidden><p><strong>The AI isn't set up yet.</strong></p><p>It needs at least one free AI key in config.js (see SETUP.md).</p></div>
327
- <form class="ai-form" id="ai-form" autocomplete="off">
328
- <div class="ai-attach" id="ai-attach" hidden><img id="ai-attach-img" alt="Picture to send"><button type="button" id="ai-attach-x" aria-label="Remove picture">✕</button></div>
329
- <div class="ai-inputrow">
330
- <textarea id="ai-input" rows="1" maxlength="4000" placeholder="Ask anything…" aria-label="Message the AI"></textarea>
331
- <button class="ai-icon" type="button" id="ai-pic" title="Add a picture" aria-label="Add a picture"><svg viewBox="0 0 24 24"><path d="M5 4h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Zm0 2v9.6l3.5-3.5 3 3 4.5-4.5 3 3V6H5Zm3.5 1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Z"/></svg></button>
332
- <input type="file" id="ai-pic-input" accept="image/*" hidden>
333
- <button class="ai-send" type="submit" id="ai-send" title="Send" aria-label="Send"><svg viewBox="0 0 24 24"><path d="M11 20V8.8l-4.6 4.6L5 12l7-7 7 7-1.4 1.4L13 8.8V20h-2Z"/></svg></button>
334
- </div>
335
- </form>
336
- <p class="ai-foot" id="ai-foot"></p>
337
- </div>
338
- </div>
339
- </section>
340
-
341
256
  <!-- CHAT -->
342
257
  <section id="view-chat" class="view chat" hidden>
343
258
  <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>
@@ -651,7 +566,6 @@
651
566
 
652
567
  <div class="toast" id="toast" role="status" aria-live="polite"></div>
653
568
 
654
-
655
569
  <!-- First-visit tour (also from Settings → Site tour) -->
656
570
  <div class="tour" id="tour" hidden>
657
571
  <div class="tour-spot" id="tour-spot"></div>
@@ -666,7 +580,6 @@
666
580
  </div>
667
581
  </div>
668
582
 
669
-
670
583
  <script src="config.js"></script>
671
584
  <script src="app.js"></script>
672
585
  </body>
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ywkrlerche/richardwho",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "Richards Unblocked Games",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
package/style.css CHANGED
@@ -50,44 +50,6 @@ button { cursor: pointer; }
50
50
  kbd { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--soft); }
51
51
  :focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
52
52
 
53
- /* ---------- "Google Classroom" loading screen (shown first, then the boot screen) ---------- */
54
- /* A made-up Classroom home page: top bar, class list on the left, class cards, and the blue loading bar */
55
- .gc-splash { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: #fff; color: #3c4043;
56
- font: 400 14px/1.4 "Google Sans", Roboto, Arial, sans-serif; transition: opacity .3s ease, visibility .3s; overflow: hidden; }
57
- .gc-splash.gone { opacity: 0; visibility: hidden; pointer-events: none; }
58
- html.no-splash .gc-splash { display: none; }
59
- .gc-top { position: relative; flex: none; display: flex; align-items: center; gap: 4px; height: 64px; padding: 0 16px 0 12px; border-bottom: 1px solid #e0e0e0; }
60
- .gc-ico { width: 24px; height: 24px; margin: 0 8px; fill: #5f6368; }
61
- .gc-mark { width: 40px; height: 40px; margin: 0 4px 0 6px; }
62
- .gc-name { color: #5f6368; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
63
- .gc-google { font-weight: 500; }
64
- .gc-spacer { flex: 1; }
65
- .gc-me { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 10px; border-radius: 50%; background: #8e24aa; color: #fff; font-size: 15px; font-weight: 500; }
66
- .gc-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: #c6dafc; overflow: hidden; }
67
- .gc-bar-fill { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: #1a73e8; animation: gc-load 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
68
- @keyframes gc-load { to { left: 100%; } }
69
- .gc-body { flex: 1; display: flex; min-height: 0; }
70
- .gc-nav { flex: none; width: 300px; padding: 8px 12px 8px 0; border-right: 1px solid #e0e0e0; overflow: hidden; }
71
- .gc-nav hr { margin: 8px 0 8px 0; border: 0; border-top: 1px solid #e0e0e0; }
72
- .gc-nav-item { display: flex; align-items: center; gap: 20px; height: 48px; padding: 0 24px; border-radius: 0 24px 24px 0; color: #3c4043; font-size: 14px; font-weight: 500; white-space: nowrap; }
73
- .gc-nav-item.on { background: #e8f0fe; color: #1967d2; }
74
- .gc-nav-item svg { width: 24px; height: 24px; flex: none; fill: currentColor; opacity: .85; }
75
- .gc-nav-item.on svg { opacity: 1; }
76
- .gc-nav-item.sub { height: 52px; padding-left: 24px; font-weight: 400; }
77
- .gc-nav-item i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-style: normal; font-size: 15px; font-weight: 500; }
78
- .gc-cards { flex: 1; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 24px; padding: 24px; overflow: hidden; }
79
- .gc-card { width: 300px; height: 296px; display: flex; flex-direction: column; border: 1px solid #dadce0; border-radius: 8px; overflow: hidden; background: #fff; }
80
- .gc-head { position: relative; height: 100px; padding: 16px 16px 0; color: #fff;
81
- background: radial-gradient(circle at 88% 22%, rgba(255,255,255,.16) 0 34px, transparent 35px), radial-gradient(circle at 70% 115%, rgba(255,255,255,.12) 0 52px, transparent 53px), var(--c); }
82
- .gc-head b { display: block; font-size: 22px; font-weight: 400; line-height: 28px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
83
- .gc-head span { display: block; font-size: 14px; line-height: 20px; }
84
- .gc-head small { display: block; margin-top: 6px; font-size: 13px; opacity: .92; }
85
- .gc-head em { position: absolute; right: 16px; bottom: -36px; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 0; color: #fff; font-style: normal; font-size: 30px; }
86
- .gc-due { flex: 1; padding: 48px 16px 0; color: #3c4043; font-size: 14px; border-bottom: 1px solid #dadce0; }
87
- .gc-due span { display: block; margin-bottom: 4px; color: #5f6368; font-size: 13px; }
88
- @media (max-width: 960px) { .gc-nav { display: none; } }
89
- @media (max-width: 560px) { .gc-top .gc-ico:not(:first-child), .gc-me { display: none; } .gc-card { width: 100%; } .gc-cards { padding: 16px; } }
90
-
91
53
  /* ---------- Boot screen ---------- */
92
54
  .boot {
93
55
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
@@ -95,6 +57,7 @@ html.no-splash .gc-splash { display: none; }
95
57
  transition: opacity .35s ease, visibility .35s;
96
58
  }
97
59
  .boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
60
+ .boot.done .boot-word { animation: none; }
98
61
  .boot-inner { width: min(420px, 86vw); text-align: center; }
99
62
  .boot-word { font-size: clamp(44px, 8vw, 72px); font-weight: 800; letter-spacing: -.055em; margin-bottom: 26px; }
100
63
  .boot-bar { height: 3px; background: var(--soft-2); overflow: hidden; border-radius: 3px; }
@@ -111,7 +74,7 @@ html.no-splash .gc-splash { display: none; }
111
74
  radial-gradient(28vw 16vh at 27vw 38vh, color-mix(in srgb, var(--glow-violet) 45%, transparent), transparent 70%);
112
75
  }
113
76
  .aurora span { display: none; }
114
- body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
77
+ body[data-view="games"] .aurora { opacity: .7; }
115
78
 
116
79
  /* ---------- Left rail ---------- */
117
80
  .rail {
@@ -166,7 +129,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
166
129
  background-repeat: no-repeat, repeat; /* the shine layer must repeat or the word loses its fill */
167
130
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
168
131
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), --spot .3s;
169
- animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, shine2 5.5s ease-in-out 1s infinite;
132
+ animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, shine2 2.6s ease-in-out .9s 1;
170
133
  }
171
134
  .wordmark.hovering { transition: transform .12s ease-out; }
172
135
  @property --spot { syntax: "<length>"; inherits: false; initial-value: 0px; }
@@ -187,7 +150,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
187
150
  .home-search input::-webkit-search-cancel-button { display: none; }
188
151
  .home-search:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
189
152
  /* the input itself has no outline, so the box shows a clear ring when the keyboard is in it */
190
- .home-search:has(input:focus-visible), .search:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--glow-cyan, #22d3ee); }
153
+ .home-search:focus-within, .search:focus-within { box-shadow: 0 0 0 2px var(--glow-cyan, #22d3ee); }
191
154
  /* The light that sweeps along the bottom edge */
192
155
  .sweep { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
193
156
  .sweep::after {
@@ -251,8 +214,9 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
251
214
  .badge::before { content: "★ "; color: #facc15; }
252
215
 
253
216
  .grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
254
- /* 800+ tiles: let the browser skip drawing the ones off screen (makes opening Games fast) */
255
- .grid .tile { content-visibility: auto; contain-intrinsic-size: auto 160px; }
217
+ /* 800+ tiles: each one is walled off, so changes inside a tile never make the browser re-measure the whole grid.
218
+ (Skipping off-screen tiles with content-visibility made scrolling stutter: every tile scrolling in re-laid out the grid.) */
219
+ .grid .tile { contain: layout paint style; }
256
220
  .recent-row { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
257
221
  .empty { text-align: center; color: var(--muted); padding: 50px 0; }
258
222
 
@@ -272,8 +236,9 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
272
236
 
273
237
  /* ---------- Online count (home) ---------- */
274
238
  .online { margin: 10px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
275
- .online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
276
- @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
239
+ .online-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
240
+ .online-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(34,197,94,.55); animation: pulse 2s ease-out infinite; }
241
+ @keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3); opacity: 0; } }
277
242
 
278
243
  /* ---------- Settings ---------- */
279
244
  .settings { padding-top: 26px; padding-bottom: 60px; max-width: 760px; }
@@ -455,7 +420,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
455
420
  /* @mention: pink dot instead of cyan */
456
421
  .has-unread.has-mention::after { background: #f472b6; box-shadow: 0 0 0 2px var(--bg, #000), 0 0 12px #f472b6; }
457
422
  .chat-toggle.has-unread.has-mention::after { box-shadow: 0 0 0 2px #0a0a0c, 0 0 12px #f472b6; }
458
- @media (prefers-reduced-motion: reduce) { .has-unread::after, .online-dot { animation: none; } }
423
+ @media (prefers-reduced-motion: reduce) { .has-unread::after, .online-dot::after { animation: none; } }
459
424
 
460
425
  /* Scroll areas and pop-ups: scrolling to the end doesn't drag the page behind along */
461
426
  .chat-log, .reports, .chat-dock, .wheel-wrap { overscroll-behavior: contain; }
@@ -559,11 +524,11 @@ html[data-nav-dir="up"] { --out-y: 24px; --in-y: -32px; }
559
524
  .corner-links { position: fixed; right: 14px; bottom: 12px; z-index: 5; display: flex; gap: 8px; }
560
525
  .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); }
561
526
  body.playing { overflow: hidden; }
562
- body:has(#view-games:not([hidden])) .corner-links,
563
- body:has(#view-stats:not([hidden])) .corner-links,
564
- body:has(#view-settings:not([hidden])) .corner-links,
565
- body:has(#view-chat:not([hidden])) .corner-links,
566
- body:has(#view-changelog:not([hidden])) .corner-links { display: none; }
527
+ body[data-view="games"] .corner-links,
528
+ body[data-view="stats"] .corner-links,
529
+ body[data-view="settings"] .corner-links,
530
+ body[data-view="chat"] .corner-links,
531
+ body[data-view="changelog"] .corner-links { display: none; }
567
532
 
568
533
  /* What's new */
569
534
  .changelog { max-width: 760px; }
@@ -642,98 +607,6 @@ body.chat-full { overflow: hidden; }
642
607
 
643
608
 
644
609
 
645
- /* ---------- AI chat: sidebar of chats + chat area ---------- */
646
- .view.ai { padding: 0; }
647
- .ai-app { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100vh; }
648
- .ai-app.side-closed { grid-template-columns: 0 minmax(0, 1fr); }
649
- .ai-app.side-closed .ai-side { visibility: hidden; }
650
- .ai-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; overflow: hidden; padding: 14px 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 75%, transparent); }
651
- .ai-side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
652
- .ai-brand { font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
653
- .ai-brand b { color: var(--glow-cyan, #22d3ee); }
654
- .ai-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
655
- .ai-icon svg { width: 19px; height: 19px; fill: currentColor; }
656
- .ai-icon:hover { background: var(--soft); color: var(--text); }
657
- .ai-side-btn { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 14px; text-align: left; cursor: pointer; }
658
- .ai-side-btn svg { width: 16px; height: 16px; fill: currentColor; }
659
- .ai-side-btn:hover { background: var(--soft); }
660
- .ai-side-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 6px; background: var(--soft); }
661
- .ai-side-search svg { width: 15px; height: 15px; fill: var(--muted); flex: none; }
662
- .ai-side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 13px; }
663
- .ai-chats { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
664
- .ai-group { margin: 12px 10px 4px; font-size: 11px; color: var(--muted); }
665
- .ai-chat-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; }
666
- .ai-chat-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
667
- .ai-chat-item:hover { background: var(--soft); }
668
- .ai-chat-item.on { background: color-mix(in srgb, var(--text) 12%, transparent); }
669
- .ai-none { margin: 12px 10px; font-size: 12px; color: var(--muted); }
670
- .ai-usage { flex: none; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--bg) 60%, transparent); font-size: 12px; }
671
- .ai-usage-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
672
- .ai-free { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 10px; color: var(--muted); }
673
- .ai-usage-bar { height: 4px; margin: 10px 0 8px; border-radius: 2px; background: var(--soft); overflow: hidden; }
674
- .ai-usage-bar span { display: block; height: 100%; width: 0; background: var(--glow-cyan, #22d3ee); transition: width .3s; }
675
- .ai-usage-grid { display: grid; grid-template-columns: 1fr 1fr; color: var(--muted); font-variant-numeric: tabular-nums; }
676
- .ai-usage-grid b { color: var(--text); }
677
- .ai-usage-reset { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
678
- .ai-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; }
679
- .ai-top { display: flex; align-items: center; gap: 8px; height: 54px; flex: none; padding: 0 160px 0 16px; /* right side: room for the clock */ }
680
- .ai-show-side { display: none; }
681
- .ai-app.side-closed .ai-show-side { display: grid; }
682
- .ai-title { flex: 1; margin: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
683
- .ai-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 10px max(16px, calc((100% - 760px) / 2)) 20px; }
684
- .ai-welcome { margin: auto; text-align: center; }
685
- .ai-welcome h2 { margin: 0 0 22px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
686
- .ai-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 540px; margin: 0 auto; }
687
- .ai-suggest button { padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--text); font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
688
- .ai-suggest button:hover { background: var(--soft); border-color: var(--line-2); }
689
- .ai-off { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
690
- .ai-off p { margin: 4px 0; }
691
- .ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
692
- .ai-msg.user { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 4px; }
693
- .ai-msg.assistant { align-self: flex-start; max-width: 100%; padding: 4px 2px; background: none; }
694
- .ai-msg p { margin: 0 0 8px; } .ai-msg p:last-child { margin-bottom: 0; }
695
- .ai-msg .ai-h { font-weight: 800; }
696
- .ai-msg hr { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
697
- .ai-msg ul, .ai-msg ol { margin: 4px 0 8px; padding-left: 22px; }
698
- .ai-msg code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); }
699
- .ai-msg pre { margin: 6px 0 8px; padding: 12px 14px; border-radius: 8px; background: #0b0f19; color: #e2e8f0; overflow-x: auto; }
700
- .ai-msg pre code { padding: 0; background: none; color: inherit; }
701
- .ai-msg a { color: var(--glow-cyan, #22d3ee); }
702
- .ai-msg-img { display: block; max-width: 220px; max-height: 220px; margin-bottom: 6px; border-radius: 8px; }
703
- .ai-img-note { display: block; color: var(--muted); font-size: 12px; }
704
- .ai-by { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
705
- .ai-msg.thinking { display: flex; gap: 5px; padding: 12px 4px; }
706
- .ai-msg.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s ease-in-out infinite; }
707
- .ai-msg.thinking span:nth-child(2) { animation-delay: .15s; } .ai-msg.thinking span:nth-child(3) { animation-delay: .3s; }
708
- @keyframes ai-dot { 50% { transform: translateY(-5px); opacity: .5; } }
709
- @media (prefers-reduced-motion: reduce) { .ai-msg.thinking span { animation: none; } }
710
- .ai-form { flex: none; width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 14px; background: color-mix(in srgb, var(--panel) 92%, transparent); }
711
- .ai-form[hidden], .ai-attach[hidden] { display: none; }
712
- .ai-attach { position: relative; display: inline-block; margin: 2px 4px 8px; }
713
- .ai-attach img { display: block; max-height: 80px; border-radius: 8px; }
714
- .ai-attach button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 11px; line-height: 1; cursor: pointer; }
715
- .ai-inputrow { display: flex; align-items: flex-end; gap: 6px; }
716
- .ai-inputrow textarea { flex: 1; min-width: 0; height: 40px; max-height: 180px; padding: 10px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; line-height: 20px; resize: none; scrollbar-width: thin; }
717
- .ai-inputrow .ai-icon { width: 38px; height: 38px; }
718
- .ai-send { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--text); color: var(--bg); cursor: pointer; }
719
- .ai-send:disabled { opacity: .4; cursor: default; }
720
- .ai-send svg { width: 18px; height: 18px; fill: currentColor; }
721
- .ai-foot { flex: none; margin: 8px 0 12px; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
722
- @media (max-width: 800px) {
723
- .ai-app, .ai-app.side-closed { grid-template-columns: minmax(0, 1fr); }
724
- .ai-side { position: absolute; z-index: 4; inset: 0 auto 0 0; width: min(280px, 85vw); box-shadow: 0 0 40px rgba(0,0,0,.6); }
725
- .ai-app.side-closed .ai-side { display: none; }
726
- .ai-show-side { display: grid; }
727
- .ai-top { padding-right: 100px; }
728
- }
729
- @media (max-width: 720px) {
730
- /* leave room for the bottom bar */
731
- .ai-app, .ai-main { height: calc(100dvh - 56px); }
732
- body:has(#view-ai:not([hidden])) .main { padding-bottom: 0; }
733
- }
734
- body:has(#view-ai:not([hidden])) .corner-links { display: none; }
735
-
736
-
737
610
  /* ---------- Halloween (October, dark theme): night sky, moon, webs, bats, graveyard ---------- */
738
611
  html.halloween[data-theme="dark"] {
739
612
  --shine: #fdba74;
@@ -991,7 +864,7 @@ html.christmas[data-theme="dark"] .xmas { display: block; }
991
864
  .tour { position: fixed; inset: 0; z-index: 90; }
992
865
  .tour[hidden] { display: none; }
993
866
  .tour::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
994
- .tour:has(.tour-spot:not([hidden]))::before { display: none; } /* the spotlight's own shadow darkens the rest */
867
+ .tour.spot-on::before { display: none; } /* the spotlight's own shadow darkens the rest */
995
868
  .tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .6); outline: 2px solid var(--glow-cyan, #22d3ee); transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease; pointer-events: none; }
996
869
  .tour-spot[hidden] { display: none; }
997
870
  .tour-card { position: fixed; width: min(320px, calc(100vw - 24px)); padding: 18px 18px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .8); transition: left .25s ease, top .25s ease; }
@@ -1152,7 +1025,7 @@ html.holiday[data-theme="dark"] .set-group { border-color: color-mix(in srgb, va
1152
1025
  html.holiday[data-theme="dark"] .gotd { border-color: color-mix(in srgb, var(--f-a) 35%, var(--line)); }
1153
1026
  html.holiday[data-theme="dark"] .block-head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--f-a); vertical-align: 1px; }
1154
1027
  html.holiday[data-theme="dark"] body::after { content: var(--f-emoji); position: fixed; right: 20px; bottom: 12px; z-index: 0; font-size: 72px; line-height: 1; opacity: .16; pointer-events: none; }
1155
- html.holiday[data-theme="dark"] body:has(#view-home:not([hidden]))::after,
1028
+ html.holiday[data-theme="dark"] body[data-view="home"]::after,
1156
1029
  html.holiday[data-theme="dark"] body.playing::after,
1157
1030
  html.holiday[data-theme="dark"] body.chat-full::after { content: none; }
1158
1031
  @media (prefers-reduced-motion: reduce) { .bunting i, .festive-scene .s-float { animation: none !important; } }
@@ -1175,5 +1048,3 @@ html.holiday[data-theme="dark"] body.chat-full::after { content: none; }
1175
1048
  html.holiday[data-theme="dark"] .chat-tab[aria-selected="true"] { box-shadow: inset 0 2px 0 var(--f-a); }
1176
1049
  html.holiday[data-theme="dark"] .chat-tab.unread::after, html.holiday[data-theme="dark"] .chat-tab.add { color: var(--f-a); background-color: transparent; }
1177
1050
  html.holiday[data-theme="dark"] .chat-tab.unread::after { background: var(--f-a); box-shadow: 0 0 6px var(--f-a); }
1178
- /* the two little icons along the bottom of a Classroom card (your work, folder) */
1179
- .gc-card::after { content: ""; flex: none; height: 52px; background: no-repeat right 14px center / 96px 24px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 24' fill='%235f6368'%3E%3Cpath d='M30 4H18l-1 2h-3v2h16V6h-3l-1-2Zm-2 6H16v10c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V10Zm-7 2h2v8h-2v-8Zm4 0h2v8h-2v-8Z' opacity='0'/%3E%3Cpath d='M20 3a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm-6 15c0-3 3-5 6-5s6 2 6 5v2H14v-2Zm14-12h6v2h-6V6Zm0 4h6v2h-6v-2Zm0 4h6v2h-6v-2Z'/%3E%3Cpath d='M78 6h-8l-2-2h-6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2Zm0 12H62V8h16v10Z'/%3E%3C/svg%3E"); }