@ywkrlerche/richardwho 1.0.43 → 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/app.js +461 -304
- package/config.js +4 -10
- package/games/sixty.html +134 -0
- package/games.json +1 -1
- package/index.html +58 -60
- package/index.svg +17 -5
- package/logos/sixty.jpg +0 -0
- package/package.json +1 -1
- package/style.css +101 -107
package/index.html
CHANGED
|
@@ -13,29 +13,45 @@
|
|
|
13
13
|
// Apply the saved tab disguise and theme before anything else shows (app.js has the full theme code)
|
|
14
14
|
try {
|
|
15
15
|
var s = JSON.parse(localStorage.getItem("rug-settings") || "{}");
|
|
16
|
-
//
|
|
17
|
-
window.rugHoliday
|
|
16
|
+
// The holiday calendar: which theme is on today (null = none) and each holiday's big day this season.
|
|
17
|
+
// Shared with app.js as window.rugHoliday(now) and window.rugHolidayDay(name, now).
|
|
18
|
+
var calendar = function (now) {
|
|
18
19
|
now = now || new Date();
|
|
19
20
|
var y = now.getFullYear(), m = now.getMonth(), d = now.getDate(), today = new Date(y, m, d).getTime(), DAY = 864e5;
|
|
21
|
+
var at = function (mo, da, yr) { return new Date(yr || y, mo, da).getTime(); };
|
|
20
22
|
// Easter Sunday (Gregorian computus)
|
|
21
23
|
var a = y % 19, b = Math.floor(y / 100), c = y % 100, h = (19 * a + b - Math.floor(b / 4) - Math.floor((b - Math.floor((b + 8) / 25) + 1) / 3) + 15) % 30;
|
|
22
24
|
var l = (32 + 2 * (b % 4) + 2 * Math.floor(c / 4) - h - c % 4) % 7, mm = Math.floor((a + 11 * h + 22 * l) / 451);
|
|
23
|
-
var easter =
|
|
25
|
+
var easter = at(Math.floor((h + l - 7 * mm + 114) / 31) - 1, (h + l - 7 * mm + 114) % 31 + 1);
|
|
24
26
|
var thanksgiving = 1 + (4 - new Date(y, 10, 1).getDay() + 7) % 7 + 21; // 4th Thursday of November
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
if (m ===
|
|
32
|
-
if (
|
|
33
|
-
|
|
27
|
+
var superbowl = at(1, 1 + (7 - new Date(y, 1, 1).getDay()) % 7 + 7); // 2nd Sunday of February
|
|
28
|
+
var day = {
|
|
29
|
+
newyear: m === 11 ? at(0, 1, y + 1) : at(0, 1), superbowl: superbowl, valentines: at(1, 14), stpatricks: at(2, 17),
|
|
30
|
+
aprilfools: at(3, 1), easter: easter, july4: at(6, 4), halloween: at(9, 31), thanksgiving: at(10, thanksgiving), christmas: at(11, 25)
|
|
31
|
+
};
|
|
32
|
+
var theme = null;
|
|
33
|
+
if ((m === 11 && d === 31) || (m === 0 && d <= 7)) theme = "newyear";
|
|
34
|
+
else if (today >= superbowl - 2 * DAY && today <= superbowl) theme = "superbowl"; // Friday to Sunday
|
|
35
|
+
else if (m === 1 && d <= 14) theme = "valentines";
|
|
36
|
+
else if (m === 2 && d >= 10 && d <= 17) theme = "stpatricks";
|
|
37
|
+
else if (m === 3 && d === 1) theme = "aprilfools";
|
|
38
|
+
else if (today >= easter - 7 * DAY && today <= easter + DAY) theme = "easter";
|
|
39
|
+
else if (m === 6 && d <= 5) theme = "july4";
|
|
40
|
+
else if ((m === 5 && d >= 15) || m === 6 || (m === 7 && d <= 10)) theme = "summer";
|
|
41
|
+
else if ((m === 7 && d >= 20) || (m === 8 && d <= 7)) theme = "backtoschool";
|
|
42
|
+
else if (m === 9) theme = "halloween";
|
|
43
|
+
else if (m === 10 && d <= thanksgiving + 1) theme = "thanksgiving";
|
|
44
|
+
else if (m === 11 && d <= 26) theme = "christmas";
|
|
45
|
+
return { theme: theme, day: day };
|
|
34
46
|
};
|
|
47
|
+
window.rugHoliday = function (now) { return calendar(now).theme; };
|
|
48
|
+
window.rugHolidayDay = function (name, now) { return calendar(now).day[name] || null; };
|
|
35
49
|
var t = s.theme === "black" || s.theme === "white" ? s.theme : window.rugHoliday() || "black";
|
|
36
50
|
document.documentElement.dataset.theme = t === "white" ? "light" : "dark";
|
|
37
|
-
if (t !== "black" && t !== "white")
|
|
38
|
-
|
|
51
|
+
if (t !== "black" && t !== "white") {
|
|
52
|
+
document.documentElement.classList.add(t, "holiday");
|
|
53
|
+
if (t !== "halloween" && t !== "christmas") document.documentElement.classList.add("fest");
|
|
54
|
+
}
|
|
39
55
|
if (s.tabTitle) document.title = s.tabTitle;
|
|
40
56
|
if (s.tabIcon) document.getElementById("tab-icon").href = s.tabIcon;
|
|
41
57
|
} catch (e) {}
|
|
@@ -73,9 +89,6 @@
|
|
|
73
89
|
<button class="rail-btn" type="button" id="soundboard-btn" title="Soundboard" aria-label="Soundboard">
|
|
74
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>
|
|
75
91
|
</button>
|
|
76
|
-
<button class="rail-btn" type="button" data-nav="ai" title="AI chat" aria-label="AI chat">
|
|
77
|
-
<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>
|
|
78
|
-
</button>
|
|
79
92
|
<button class="rail-btn" type="button" id="random-btn" title="Random game" aria-label="Random game">
|
|
80
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>
|
|
81
94
|
</button>
|
|
@@ -124,6 +137,7 @@
|
|
|
124
137
|
<span class="sweep" aria-hidden="true"></span>
|
|
125
138
|
</form>
|
|
126
139
|
<p class="home-sub" id="home-sub"></p>
|
|
140
|
+
<p class="holiday-banner" id="holiday-banner" hidden></p>
|
|
127
141
|
<p class="online" id="online" hidden><span class="online-dot"></span><span id="online-count"></span></p>
|
|
128
142
|
<!-- bottom-left corner: bookmark chip, latest version, what's new -->
|
|
129
143
|
<div class="home-corner">
|
|
@@ -239,55 +253,38 @@
|
|
|
239
253
|
</div>
|
|
240
254
|
</section>
|
|
241
255
|
|
|
242
|
-
<!-- AI CHAT: one chatbot backed by several free AI services (keys in config.js) -->
|
|
243
|
-
<section id="view-ai" class="view ai" hidden>
|
|
244
|
-
<div class="ai-app" id="ai-app">
|
|
245
|
-
<aside class="ai-side" aria-label="Your AI chats">
|
|
246
|
-
<div class="ai-side-top">
|
|
247
|
-
<span class="ai-brand">richardwho <b>AI</b></span>
|
|
248
|
-
<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>
|
|
249
|
-
</div>
|
|
250
|
-
<button class="ai-side-btn" type="button" id="ai-new"><span aria-hidden="true">+</span> New chat</button>
|
|
251
|
-
<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>
|
|
252
|
-
<input id="ai-search" type="search" placeholder="Search chats…" autocomplete="off" spellcheck="false" aria-label="Search chats"></label>
|
|
253
|
-
<nav class="ai-chats" id="ai-chats"></nav>
|
|
254
|
-
<div class="ai-usage" id="ai-usage">
|
|
255
|
-
<div class="ai-usage-head"><span>⏱ Usage</span><span class="ai-free">FREE</span></div>
|
|
256
|
-
<div class="ai-usage-bar"><span id="ai-usage-fill"></span></div>
|
|
257
|
-
<div class="ai-usage-grid"><span id="ai-usage-used">0/100</span><span id="ai-usage-left">100 left</span></div>
|
|
258
|
-
<p class="ai-usage-reset">Resets at midnight</p>
|
|
259
|
-
</div>
|
|
260
|
-
</aside>
|
|
261
|
-
<div class="ai-main">
|
|
262
|
-
<header class="ai-top">
|
|
263
|
-
<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>
|
|
264
|
-
<h1 class="ai-title" id="ai-title">New chat</h1>
|
|
265
|
-
<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>
|
|
266
|
-
</header>
|
|
267
|
-
<div class="ai-log" id="ai-log" aria-live="polite"></div>
|
|
268
|
-
<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>
|
|
269
|
-
<form class="ai-form" id="ai-form" autocomplete="off">
|
|
270
|
-
<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>
|
|
271
|
-
<div class="ai-inputrow">
|
|
272
|
-
<textarea id="ai-input" rows="1" maxlength="4000" placeholder="Ask anything…" aria-label="Message the AI"></textarea>
|
|
273
|
-
<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>
|
|
274
|
-
<input type="file" id="ai-pic-input" accept="image/*" hidden>
|
|
275
|
-
<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>
|
|
276
|
-
</div>
|
|
277
|
-
</form>
|
|
278
|
-
<p class="ai-foot" id="ai-foot"></p>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
</section>
|
|
282
|
-
|
|
283
256
|
<!-- CHAT -->
|
|
284
257
|
<section id="view-chat" class="view chat" hidden>
|
|
285
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>
|
|
286
259
|
<div class="chat-box" id="chat-box">
|
|
260
|
+
<!-- Public chat, then a tab for each private room you're in, then "+ Room" -->
|
|
261
|
+
<div class="chat-tabs" id="chat-tabs" role="tablist" aria-label="Chats"></div>
|
|
287
262
|
<div class="chat-top">
|
|
288
263
|
<span class="chat-here" id="chat-here"><span class="online-dot"></span><span id="chat-here-n">Connecting…</span></span>
|
|
289
264
|
<button class="text-btn" type="button" id="chat-full-btn" title="Full-screen chat (Esc to leave)">⛶ Full screen</button>
|
|
290
265
|
</div>
|
|
266
|
+
<!-- Private rooms: this strip shows while you're in one; the panel is for hosting or joining -->
|
|
267
|
+
<div class="room-strip" id="room-strip" hidden>
|
|
268
|
+
<span>🔒 Private room <b id="room-strip-code"></b></span>
|
|
269
|
+
<button class="text-btn" type="button" id="room-copy" title="Copy the code to share it">Copy code</button>
|
|
270
|
+
<span class="room-left" id="room-strip-left"></span>
|
|
271
|
+
<span class="room-strip-btns">
|
|
272
|
+
<button class="text-btn" type="button" id="room-close" title="Close the room for everyone and delete its messages" hidden>Close room</button>
|
|
273
|
+
<button class="text-btn" type="button" id="room-leave" title="Leave this room and remove its tab">Leave</button>
|
|
274
|
+
</span>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="room-panel" id="room-panel" hidden>
|
|
277
|
+
<div class="room-row">
|
|
278
|
+
<button class="pill-btn" type="button" id="room-host">Host a room</button>
|
|
279
|
+
<span class="room-or">or join one:</span>
|
|
280
|
+
<form class="room-join" id="room-join" autocomplete="off">
|
|
281
|
+
<input id="room-code" maxlength="6" placeholder="CODE" aria-label="Room code" spellcheck="false" autocapitalize="characters">
|
|
282
|
+
<button class="pill-btn" type="submit">Join</button>
|
|
283
|
+
</form>
|
|
284
|
+
</div>
|
|
285
|
+
<p class="room-msg" id="room-msg" aria-live="polite"></p>
|
|
286
|
+
<p class="room-help">Hosting gives you a code to share. Rooms close after 24 hours. The chat rules still apply, and the site owner can check any room.</p>
|
|
287
|
+
</div>
|
|
291
288
|
<div class="chat-off" id="chat-off" hidden>
|
|
292
289
|
<p><strong>Chat isn't switched on yet.</strong></p>
|
|
293
290
|
<p>It needs the site's free Firebase database (see SETUP.md).</p>
|
|
@@ -432,6 +429,9 @@
|
|
|
432
429
|
<div class="reports" id="reported-list"></div>
|
|
433
430
|
<h3 class="set-sub">Muted and banned</h3>
|
|
434
431
|
<div class="reports" id="punished-list"></div>
|
|
432
|
+
<h3 class="set-sub">Private rooms <span id="rooms-count"></span></h3>
|
|
433
|
+
<p class="set-help">Rooms people are hosting right now. Open one to read it and moderate it like the main chat.</p>
|
|
434
|
+
<div class="reports" id="rooms-list"></div>
|
|
435
435
|
</div>
|
|
436
436
|
<div id="admin-quotes" hidden>
|
|
437
437
|
<h3 class="set-sub">Quote submissions <span id="quotes-count"></span></h3>
|
|
@@ -566,7 +566,6 @@
|
|
|
566
566
|
|
|
567
567
|
<div class="toast" id="toast" role="status" aria-live="polite"></div>
|
|
568
568
|
|
|
569
|
-
|
|
570
569
|
<!-- First-visit tour (also from Settings → Site tour) -->
|
|
571
570
|
<div class="tour" id="tour" hidden>
|
|
572
571
|
<div class="tour-spot" id="tour-spot"></div>
|
|
@@ -581,7 +580,6 @@
|
|
|
581
580
|
</div>
|
|
582
581
|
</div>
|
|
583
582
|
|
|
584
|
-
|
|
585
583
|
<script src="config.js"></script>
|
|
586
584
|
<script src="app.js"></script>
|
|
587
585
|
</body>
|
package/index.svg
CHANGED
|
@@ -50,12 +50,24 @@
|
|
|
50
50
|
frame.setAttribute("allowfullscreen", "");
|
|
51
51
|
document.getElementById("root").appendChild(frame);
|
|
52
52
|
// Write the page into a blank frame so it keeps this real https:// address (games need it)
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
const show = (hash) => {
|
|
54
|
+
const doc = frame.contentDocument;
|
|
55
|
+
doc.open();
|
|
56
|
+
doc.write(html);
|
|
57
|
+
doc.close();
|
|
58
|
+
if (hash && hash.length > 1) frame.contentWindow.location.hash = hash;
|
|
59
|
+
frame.contentWindow.focus();
|
|
60
|
+
};
|
|
61
|
+
show(location.hash);
|
|
57
62
|
msg.remove();
|
|
58
|
-
frame
|
|
63
|
+
// If the frame ever ends up on another page (a reload, or a stray link), put the site back
|
|
64
|
+
frame.addEventListener("load", () => {
|
|
65
|
+
try {
|
|
66
|
+
const d = frame.contentDocument;
|
|
67
|
+
const hash = frame.contentWindow.location.hash;
|
|
68
|
+
if (d && !d.getElementById("view-home")) show(hash.indexOf("#play/") === 0 ? "" : hash);
|
|
69
|
+
} catch (e) {}
|
|
70
|
+
});
|
|
59
71
|
// keep the tab's name and icon in step with the site (disguise changes, game names)
|
|
60
72
|
setInterval(() => {
|
|
61
73
|
try {
|
package/logos/sixty.jpg
ADDED
|
Binary file
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -57,6 +57,7 @@ kbd { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 6px; border
|
|
|
57
57
|
transition: opacity .35s ease, visibility .35s;
|
|
58
58
|
}
|
|
59
59
|
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
|
|
60
|
+
.boot.done .boot-word { animation: none; }
|
|
60
61
|
.boot-inner { width: min(420px, 86vw); text-align: center; }
|
|
61
62
|
.boot-word { font-size: clamp(44px, 8vw, 72px); font-weight: 800; letter-spacing: -.055em; margin-bottom: 26px; }
|
|
62
63
|
.boot-bar { height: 3px; background: var(--soft-2); overflow: hidden; border-radius: 3px; }
|
|
@@ -73,7 +74,7 @@ kbd { font: 600 11px ui-monospace, Consolas, monospace; padding: 1px 6px; border
|
|
|
73
74
|
radial-gradient(28vw 16vh at 27vw 38vh, color-mix(in srgb, var(--glow-violet) 45%, transparent), transparent 70%);
|
|
74
75
|
}
|
|
75
76
|
.aurora span { display: none; }
|
|
76
|
-
body
|
|
77
|
+
body[data-view="games"] .aurora { opacity: .7; }
|
|
77
78
|
|
|
78
79
|
/* ---------- Left rail ---------- */
|
|
79
80
|
.rail {
|
|
@@ -128,7 +129,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
128
129
|
background-repeat: no-repeat, repeat; /* the shine layer must repeat or the word loses its fill */
|
|
129
130
|
transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
|
|
130
131
|
transition: transform .35s cubic-bezier(.2, .8, .2, 1), --spot .3s;
|
|
131
|
-
animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, shine2
|
|
132
|
+
animation: rise .7s cubic-bezier(.2, .8, .2, 1) both, shine2 2.6s ease-in-out .9s 1;
|
|
132
133
|
}
|
|
133
134
|
.wordmark.hovering { transition: transform .12s ease-out; }
|
|
134
135
|
@property --spot { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
@@ -149,7 +150,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
149
150
|
.home-search input::-webkit-search-cancel-button { display: none; }
|
|
150
151
|
.home-search:focus-within { border-color: color-mix(in srgb, var(--text) 40%, transparent); }
|
|
151
152
|
/* the input itself has no outline, so the box shows a clear ring when the keyboard is in it */
|
|
152
|
-
.home-search:
|
|
153
|
+
.home-search:focus-within, .search:focus-within { box-shadow: 0 0 0 2px var(--glow-cyan, #22d3ee); }
|
|
153
154
|
/* The light that sweeps along the bottom edge */
|
|
154
155
|
.sweep { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
|
|
155
156
|
.sweep::after {
|
|
@@ -213,8 +214,9 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
213
214
|
.badge::before { content: "★ "; color: #facc15; }
|
|
214
215
|
|
|
215
216
|
.grid { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
|
|
216
|
-
/* 800+ tiles:
|
|
217
|
-
|
|
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; }
|
|
218
220
|
.recent-row { display: grid; grid-template-columns: repeat(var(--per-row), minmax(0, 1fr)); gap: 14px; }
|
|
219
221
|
.empty { text-align: center; color: var(--muted); padding: 50px 0; }
|
|
220
222
|
|
|
@@ -234,8 +236,9 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
234
236
|
|
|
235
237
|
/* ---------- Online count (home) ---------- */
|
|
236
238
|
.online { margin: 10px 0 0; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
|
|
237
|
-
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
|
|
238
|
-
|
|
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; } }
|
|
239
242
|
|
|
240
243
|
/* ---------- Settings ---------- */
|
|
241
244
|
.settings { padding-top: 26px; padding-bottom: 60px; max-width: 760px; }
|
|
@@ -417,7 +420,7 @@ body:has(#view-games:not([hidden])) .aurora { opacity: .7; }
|
|
|
417
420
|
/* @mention: pink dot instead of cyan */
|
|
418
421
|
.has-unread.has-mention::after { background: #f472b6; box-shadow: 0 0 0 2px var(--bg, #000), 0 0 12px #f472b6; }
|
|
419
422
|
.chat-toggle.has-unread.has-mention::after { box-shadow: 0 0 0 2px #0a0a0c, 0 0 12px #f472b6; }
|
|
420
|
-
@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; } }
|
|
421
424
|
|
|
422
425
|
/* Scroll areas and pop-ups: scrolling to the end doesn't drag the page behind along */
|
|
423
426
|
.chat-log, .reports, .chat-dock, .wheel-wrap { overscroll-behavior: contain; }
|
|
@@ -521,11 +524,11 @@ html[data-nav-dir="up"] { --out-y: 24px; --in-y: -32px; }
|
|
|
521
524
|
.corner-links { position: fixed; right: 14px; bottom: 12px; z-index: 5; display: flex; gap: 8px; }
|
|
522
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); }
|
|
523
526
|
body.playing { overflow: hidden; }
|
|
524
|
-
body
|
|
525
|
-
body
|
|
526
|
-
body
|
|
527
|
-
body
|
|
528
|
-
body
|
|
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; }
|
|
529
532
|
|
|
530
533
|
/* What's new */
|
|
531
534
|
.changelog { max-width: 760px; }
|
|
@@ -604,98 +607,6 @@ body.chat-full { overflow: hidden; }
|
|
|
604
607
|
|
|
605
608
|
|
|
606
609
|
|
|
607
|
-
/* ---------- AI chat: sidebar of chats + chat area ---------- */
|
|
608
|
-
.view.ai { padding: 0; }
|
|
609
|
-
.ai-app { position: relative; display: grid; grid-template-columns: 260px minmax(0, 1fr); height: 100vh; }
|
|
610
|
-
.ai-app.side-closed { grid-template-columns: 0 minmax(0, 1fr); }
|
|
611
|
-
.ai-app.side-closed .ai-side { visibility: hidden; }
|
|
612
|
-
.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); }
|
|
613
|
-
.ai-side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
|
|
614
|
-
.ai-brand { font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
|
|
615
|
-
.ai-brand b { color: var(--glow-cyan, #22d3ee); }
|
|
616
|
-
.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; }
|
|
617
|
-
.ai-icon svg { width: 19px; height: 19px; fill: currentColor; }
|
|
618
|
-
.ai-icon:hover { background: var(--soft); color: var(--text); }
|
|
619
|
-
.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; }
|
|
620
|
-
.ai-side-btn svg { width: 16px; height: 16px; fill: currentColor; }
|
|
621
|
-
.ai-side-btn:hover { background: var(--soft); }
|
|
622
|
-
.ai-side-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border-radius: 6px; background: var(--soft); }
|
|
623
|
-
.ai-side-search svg { width: 15px; height: 15px; fill: var(--muted); flex: none; }
|
|
624
|
-
.ai-side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font-size: 13px; }
|
|
625
|
-
.ai-chats { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
|
|
626
|
-
.ai-group { margin: 12px 10px 4px; font-size: 11px; color: var(--muted); }
|
|
627
|
-
.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; }
|
|
628
|
-
.ai-chat-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
629
|
-
.ai-chat-item:hover { background: var(--soft); }
|
|
630
|
-
.ai-chat-item.on { background: color-mix(in srgb, var(--text) 12%, transparent); }
|
|
631
|
-
.ai-none { margin: 12px 10px; font-size: 12px; color: var(--muted); }
|
|
632
|
-
.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; }
|
|
633
|
-
.ai-usage-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
|
|
634
|
-
.ai-free { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 10px; color: var(--muted); }
|
|
635
|
-
.ai-usage-bar { height: 4px; margin: 10px 0 8px; border-radius: 2px; background: var(--soft); overflow: hidden; }
|
|
636
|
-
.ai-usage-bar span { display: block; height: 100%; width: 0; background: var(--glow-cyan, #22d3ee); transition: width .3s; }
|
|
637
|
-
.ai-usage-grid { display: grid; grid-template-columns: 1fr 1fr; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
638
|
-
.ai-usage-grid b { color: var(--text); }
|
|
639
|
-
.ai-usage-reset { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
|
|
640
|
-
.ai-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100vh; }
|
|
641
|
-
.ai-top { display: flex; align-items: center; gap: 8px; height: 54px; flex: none; padding: 0 160px 0 16px; /* right side: room for the clock */ }
|
|
642
|
-
.ai-show-side { display: none; }
|
|
643
|
-
.ai-app.side-closed .ai-show-side { display: grid; }
|
|
644
|
-
.ai-title { flex: 1; margin: 0; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
645
|
-
.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; }
|
|
646
|
-
.ai-welcome { margin: auto; text-align: center; }
|
|
647
|
-
.ai-welcome h2 { margin: 0 0 22px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
|
|
648
|
-
.ai-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 540px; margin: 0 auto; }
|
|
649
|
-
.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; }
|
|
650
|
-
.ai-suggest button:hover { background: var(--soft); border-color: var(--line-2); }
|
|
651
|
-
.ai-off { margin: auto; text-align: center; color: var(--muted); padding: 30px; }
|
|
652
|
-
.ai-off p { margin: 4px 0; }
|
|
653
|
-
.ai-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
|
|
654
|
-
.ai-msg.user { align-self: flex-end; background: var(--soft); border-bottom-right-radius: 4px; }
|
|
655
|
-
.ai-msg.assistant { align-self: flex-start; max-width: 100%; padding: 4px 2px; background: none; }
|
|
656
|
-
.ai-msg p { margin: 0 0 8px; } .ai-msg p:last-child { margin-bottom: 0; }
|
|
657
|
-
.ai-msg .ai-h { font-weight: 800; }
|
|
658
|
-
.ai-msg hr { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
|
|
659
|
-
.ai-msg ul, .ai-msg ol { margin: 4px 0 8px; padding-left: 22px; }
|
|
660
|
-
.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); }
|
|
661
|
-
.ai-msg pre { margin: 6px 0 8px; padding: 12px 14px; border-radius: 8px; background: #0b0f19; color: #e2e8f0; overflow-x: auto; }
|
|
662
|
-
.ai-msg pre code { padding: 0; background: none; color: inherit; }
|
|
663
|
-
.ai-msg a { color: var(--glow-cyan, #22d3ee); }
|
|
664
|
-
.ai-msg-img { display: block; max-width: 220px; max-height: 220px; margin-bottom: 6px; border-radius: 8px; }
|
|
665
|
-
.ai-img-note { display: block; color: var(--muted); font-size: 12px; }
|
|
666
|
-
.ai-by { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
|
|
667
|
-
.ai-msg.thinking { display: flex; gap: 5px; padding: 12px 4px; }
|
|
668
|
-
.ai-msg.thinking span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ai-dot 1s ease-in-out infinite; }
|
|
669
|
-
.ai-msg.thinking span:nth-child(2) { animation-delay: .15s; } .ai-msg.thinking span:nth-child(3) { animation-delay: .3s; }
|
|
670
|
-
@keyframes ai-dot { 50% { transform: translateY(-5px); opacity: .5; } }
|
|
671
|
-
@media (prefers-reduced-motion: reduce) { .ai-msg.thinking span { animation: none; } }
|
|
672
|
-
.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); }
|
|
673
|
-
.ai-form[hidden], .ai-attach[hidden] { display: none; }
|
|
674
|
-
.ai-attach { position: relative; display: inline-block; margin: 2px 4px 8px; }
|
|
675
|
-
.ai-attach img { display: block; max-height: 80px; border-radius: 8px; }
|
|
676
|
-
.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; }
|
|
677
|
-
.ai-inputrow { display: flex; align-items: flex-end; gap: 6px; }
|
|
678
|
-
.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; }
|
|
679
|
-
.ai-inputrow .ai-icon { width: 38px; height: 38px; }
|
|
680
|
-
.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; }
|
|
681
|
-
.ai-send:disabled { opacity: .4; cursor: default; }
|
|
682
|
-
.ai-send svg { width: 18px; height: 18px; fill: currentColor; }
|
|
683
|
-
.ai-foot { flex: none; margin: 8px 0 12px; text-align: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
684
|
-
@media (max-width: 800px) {
|
|
685
|
-
.ai-app, .ai-app.side-closed { grid-template-columns: minmax(0, 1fr); }
|
|
686
|
-
.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); }
|
|
687
|
-
.ai-app.side-closed .ai-side { display: none; }
|
|
688
|
-
.ai-show-side { display: grid; }
|
|
689
|
-
.ai-top { padding-right: 100px; }
|
|
690
|
-
}
|
|
691
|
-
@media (max-width: 720px) {
|
|
692
|
-
/* leave room for the bottom bar */
|
|
693
|
-
.ai-app, .ai-main { height: calc(100dvh - 56px); }
|
|
694
|
-
body:has(#view-ai:not([hidden])) .main { padding-bottom: 0; }
|
|
695
|
-
}
|
|
696
|
-
body:has(#view-ai:not([hidden])) .corner-links { display: none; }
|
|
697
|
-
|
|
698
|
-
|
|
699
610
|
/* ---------- Halloween (October, dark theme): night sky, moon, webs, bats, graveyard ---------- */
|
|
700
611
|
html.halloween[data-theme="dark"] {
|
|
701
612
|
--shine: #fdba74;
|
|
@@ -953,7 +864,7 @@ html.christmas[data-theme="dark"] .xmas { display: block; }
|
|
|
953
864
|
.tour { position: fixed; inset: 0; z-index: 90; }
|
|
954
865
|
.tour[hidden] { display: none; }
|
|
955
866
|
.tour::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
|
|
956
|
-
.tour
|
|
867
|
+
.tour.spot-on::before { display: none; } /* the spotlight's own shadow darkens the rest */
|
|
957
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; }
|
|
958
869
|
.tour-spot[hidden] { display: none; }
|
|
959
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; }
|
|
@@ -1039,7 +950,6 @@ html.fest[data-theme="dark"] .rail-show { background: color-mix(in srgb, var(--f
|
|
|
1039
950
|
html.fest[data-theme="dark"] .home-search { border-color: color-mix(in srgb, var(--f-a) 28%, transparent); background: color-mix(in srgb, var(--f-bg) 80%, transparent); border-radius: 8px; }
|
|
1040
951
|
.festive { position: fixed; inset: 0 0 0 var(--rail-w); z-index: -1; overflow: hidden; pointer-events: none; display: none; }
|
|
1041
952
|
html.fest[data-theme="dark"] .festive { display: block; }
|
|
1042
|
-
.festive-hills { position: absolute; left: 0; bottom: 0; width: 100%; height: 22vh; fill: var(--f-hill); }
|
|
1043
953
|
.festive-prop { position: absolute; bottom: 10px; font-size: var(--s); opacity: .9; animation: prop-bob 3.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--f-a) 30%, transparent)); }
|
|
1044
954
|
@keyframes prop-bob { to { transform: translateY(-5px) rotate(-3deg); } }
|
|
1045
955
|
@media (prefers-reduced-motion: reduce) { .festive * { animation: none !important; } }
|
|
@@ -1054,3 +964,87 @@ html.fest[data-theme="dark"] .festive { display: block; }
|
|
|
1054
964
|
#view-games .games-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
|
|
1055
965
|
.games-foot { display: flex; justify-content: center; margin: 28px 0 8px; }
|
|
1056
966
|
.games-foot:empty { display: none; }
|
|
967
|
+
|
|
968
|
+
/* ---------- Private chat rooms ---------- */
|
|
969
|
+
.chat-top-btns { display: inline-flex; align-items: center; gap: 14px; }
|
|
970
|
+
.room-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--glow-cyan, #22d3ee) 9%, transparent); font-size: 13px; }
|
|
971
|
+
.room-strip b { margin-left: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .12em; }
|
|
972
|
+
.room-left { color: var(--muted); font-size: 12px; }
|
|
973
|
+
.room-strip-btns { margin-left: auto; display: inline-flex; gap: 14px; }
|
|
974
|
+
.room-panel { padding: 12px; border-bottom: 1px solid var(--line); }
|
|
975
|
+
.room-row, .room-join { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
|
|
976
|
+
.room-or { color: var(--muted); font-size: 13px; }
|
|
977
|
+
#room-code { width: 108px; height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
|
|
978
|
+
.room-msg { margin: 8px 0 0; min-height: 1.3em; font-size: 13px; color: var(--danger); }
|
|
979
|
+
.room-help { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
|
|
980
|
+
.chat-log.host .chat-msg .act-delete { display: inline-block; }
|
|
981
|
+
|
|
982
|
+
/* ---------- Holiday themes, part 2: scenes, bunting, more holidays, touches on every page ---------- */
|
|
983
|
+
html.superbowl { --f-bg: #07140c; --f-bg2: #030a06; --f-a: #fbbf24; --f-b: #4ade80; --f-cream: #f7fee7; --f-glow1: rgba(74, 222, 128, .12); --f-glow2: rgba(251, 191, 36, .1); --f-on: #1c1403; --f-hill: #0c2414; }
|
|
984
|
+
html.aprilfools { --f-bg: #14101f; --f-bg2: #0a0812; --f-a: #a78bfa; --f-b: #34d399; --f-cream: #f5f3ff; --f-glow1: rgba(167, 139, 250, .15); --f-glow2: rgba(52, 211, 153, .1); --f-on: #160f2e; --f-hill: #1d1733; }
|
|
985
|
+
html.summer { --f-bg: #0b1a2b; --f-bg2: #050d17; --f-a: #fbbf24; --f-b: #38bdf8; --f-cream: #fff7e0; --f-glow1: rgba(251, 191, 36, .14); --f-glow2: rgba(56, 189, 248, .12); --f-on: #1f1503; --f-hill: #0b1b2a; }
|
|
986
|
+
html.backtoschool { --f-bg: #101426; --f-bg2: #070a15; --f-a: #facc15; --f-b: #f87171; --f-cream: #fefce8; --f-glow1: rgba(250, 204, 21, .12); --f-glow2: rgba(96, 165, 250, .12); --f-on: #1a1503; --f-hill: #171c33; }
|
|
987
|
+
/* the two older themes get the same accent variables, so the shared rules below cover them too */
|
|
988
|
+
html.halloween { --f-a: #fb923c; --f-b: #fdba74; --f-on: #170c20; }
|
|
989
|
+
html.christmas { --f-a: #dc2626; --f-b: #22c55e; --f-on: #fff; }
|
|
990
|
+
html.newyear { --f-emoji: "🎉"; } html.valentines { --f-emoji: "💘"; } html.stpatricks { --f-emoji: "☘️"; } html.easter { --f-emoji: "🐣"; }
|
|
991
|
+
html.july4 { --f-emoji: "🎆"; } html.thanksgiving { --f-emoji: "🦃"; } html.superbowl { --f-emoji: "🏈"; } html.aprilfools { --f-emoji: "🤡"; }
|
|
992
|
+
html.summer { --f-emoji: "☀️"; } html.backtoschool { --f-emoji: "✏️"; } html.halloween { --f-emoji: "🎃"; } html.christmas { --f-emoji: "🎄"; }
|
|
993
|
+
|
|
994
|
+
/* drawn scene along the bottom of the home page */
|
|
995
|
+
.festive-scene { position: absolute; left: 0; bottom: 0; width: 100%; height: 30vh; overflow: visible; }
|
|
996
|
+
.festive-scene .s-hill { fill: var(--f-hill); }
|
|
997
|
+
.festive-scene .s-dark { fill: var(--f-hill); stroke: var(--f-hill); }
|
|
998
|
+
.festive-scene .s-win { fill: var(--f-b); opacity: .5; }
|
|
999
|
+
.festive-scene .s-float { transform-box: fill-box; transform-origin: 50% 100%; animation: s-float 4.5s ease-in-out infinite alternate; }
|
|
1000
|
+
@keyframes s-float { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-9px) rotate(3deg); } }
|
|
1001
|
+
/* a string of little flags under the quote bar */
|
|
1002
|
+
.bunting { position: absolute; top: 62px; left: 0; right: 0; height: 34px; }
|
|
1003
|
+
.bunting svg { position: absolute; inset: 0; width: 100%; height: 22px; fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .4; }
|
|
1004
|
+
.bunting i { position: absolute; width: 16px; height: 18px; margin-left: -8px; background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%); opacity: .78; transform-origin: 50% 0; animation: flag-sway 2.8s ease-in-out infinite alternate; }
|
|
1005
|
+
@keyframes flag-sway { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
|
|
1006
|
+
/* April Fools': the scenery hangs from the ceiling and the logo is mirrored until you point at it */
|
|
1007
|
+
html.aprilfools[data-theme="dark"] .festive { transform: rotate(180deg); }
|
|
1008
|
+
html.aprilfools[data-theme="dark"] .wordmark { transform: scaleX(-1); transition: transform .35s ease; }
|
|
1009
|
+
html.aprilfools[data-theme="dark"] .wordmark:hover { transform: none; }
|
|
1010
|
+
/* "12 days until Christmas" / "Happy Halloween!" under the home page search */
|
|
1011
|
+
.holiday-banner { margin: 14px 0 0; display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
|
|
1012
|
+
color: var(--f-cream, var(--text)); background: color-mix(in srgb, var(--f-a, #fff) 14%, transparent); border: 1px solid color-mix(in srgb, var(--f-a, #fff) 35%, transparent); }
|
|
1013
|
+
.holiday-banner[hidden] { display: none; }
|
|
1014
|
+
|
|
1015
|
+
/* every other page: the holiday's accent color on the selected things, its emoji by the page title and in the corner */
|
|
1016
|
+
html.holiday[data-theme="dark"] .games-head h1::after { content: var(--f-emoji); margin-left: 12px; font-size: .62em; vertical-align: .12em; }
|
|
1017
|
+
html.holiday[data-theme="dark"] .games-head h1 { text-shadow: 0 0 34px color-mix(in srgb, var(--f-a) 30%, transparent); }
|
|
1018
|
+
html.holiday[data-theme="dark"] .tab[aria-selected="true"],
|
|
1019
|
+
html.holiday[data-theme="dark"] .trivia-opt[aria-selected="true"] { background: var(--f-a); border-color: var(--f-a); color: var(--f-on); }
|
|
1020
|
+
html.holiday[data-theme="dark"] #chat-send,
|
|
1021
|
+
html.holiday[data-theme="dark"] .pill-btn.play { background: var(--f-a); border-color: var(--f-a); color: var(--f-on); }
|
|
1022
|
+
html.holiday[data-theme="dark"] .chat-box,
|
|
1023
|
+
html.holiday[data-theme="dark"] .trivia-card,
|
|
1024
|
+
html.holiday[data-theme="dark"] .set-group { border-color: color-mix(in srgb, var(--f-a) 22%, var(--line)); }
|
|
1025
|
+
html.holiday[data-theme="dark"] .gotd { border-color: color-mix(in srgb, var(--f-a) 35%, var(--line)); }
|
|
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; }
|
|
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; }
|
|
1028
|
+
html.holiday[data-theme="dark"] body[data-view="home"]::after,
|
|
1029
|
+
html.holiday[data-theme="dark"] body.playing::after,
|
|
1030
|
+
html.holiday[data-theme="dark"] body.chat-full::after { content: none; }
|
|
1031
|
+
@media (prefers-reduced-motion: reduce) { .bunting i, .festive-scene .s-float { animation: none !important; } }
|
|
1032
|
+
@media (max-width: 720px) {
|
|
1033
|
+
.festive-scene { height: 22vh; }
|
|
1034
|
+
.bunting i:nth-of-type(even) { display: none; }
|
|
1035
|
+
html.holiday[data-theme="dark"] body::after { display: none; }
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/* ---------- Chat tabs: Public, your rooms, + Room ---------- */
|
|
1039
|
+
.chat-tabs { display: flex; align-items: flex-end; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
|
|
1040
|
+
.chat-tabs::-webkit-scrollbar { display: none; }
|
|
1041
|
+
.chat-tab { position: relative; flex: none; padding: 8px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
|
|
1042
|
+
.chat-tab:hover { color: var(--text); background: var(--soft); }
|
|
1043
|
+
.chat-tab[aria-selected="true"] { color: var(--text); background: color-mix(in srgb, var(--panel) 92%, transparent); border-color: var(--line); margin-bottom: -1px; padding-bottom: 9px; }
|
|
1044
|
+
.chat-tab[data-tab]:not([data-tab="main"]) { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
|
|
1045
|
+
.chat-tab.unread::after { content: ""; position: absolute; top: 6px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--glow-cyan, #22d3ee); box-shadow: 0 0 6px var(--glow-cyan, #22d3ee); }
|
|
1046
|
+
.chat-tab.add { color: var(--text); }
|
|
1047
|
+
.chat-tab.add[aria-expanded="true"] { background: var(--soft); }
|
|
1048
|
+
html.holiday[data-theme="dark"] .chat-tab[aria-selected="true"] { box-shadow: inset 0 2px 0 var(--f-a); }
|
|
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; }
|
|
1050
|
+
html.holiday[data-theme="dark"] .chat-tab.unread::after { background: var(--f-a); box-shadow: 0 0 6px var(--f-a); }
|