@ywkrlerche/richardwho 1.0.52 → 1.0.54

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.
@@ -0,0 +1,504 @@
1
+ @import url("https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=VT323&display=swap");
2
+ /* KrillionWho: loaded with the game (krillionwho.js). A pixel ocean with its own colors, whatever the site's theme. */
3
+ .view.krillionwho { padding: 0; }
4
+ .kw { --cyan: #22d3ee; --pink: #ff5c9f; --ink: #e6f6ff; --dim: #8aa6bd; --panel: #0d1b30; --edge: #22344f; --deep: #06101d;
5
+ --pixel: "Silkscreen", ui-monospace, Consolas, monospace; --mono: "VT323", ui-monospace, Consolas, monospace;
6
+ font-family: var(--mono); color: var(--ink); }
7
+ .kw .t0 { --tier: #64748b; } .kw .t10 { --tier: #67e8f9; } .kw .t20 { --tier: #22d3ee; } .kw .t30 { --tier: #38bdf8; }
8
+ .kw .t40 { --tier: #60a5fa; } .kw .t50 { --tier: #818cf8; } .kw .t60 { --tier: #a78bfa; } .kw .t70 { --tier: #c084fc; }
9
+ .kw .t80 { --tier: #e879f9; } .kw .t90 { --tier: #f472b6; } .kw .t100 { --tier: #fbbf24; }
10
+ .kw button { font: inherit; color: inherit; }
11
+ .kw p { margin: 0; }
12
+
13
+ /* ---------- The stage and the ocean ---------- */
14
+ .kw-stage { position: relative; height: 100vh; height: 100dvh; min-height: 540px; overflow: hidden; background: #a8d4ee; --sky: 400px; user-select: none; }
15
+ .kw-world { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--sky) + var(--m, 1px) * 7000 + 160vh); will-change: transform; }
16
+ .kw-sky { position: absolute; left: 0; right: 0; top: 0; height: var(--sky); overflow: hidden;
17
+ background: linear-gradient(#a6d2ec 0%, #c3e2f2 40%, #e0eff6 82%, #eef7fa 100%); }
18
+ .kw-sun { position: absolute; top: -140px; right: 4%; width: 460px; height: 340px; background: radial-gradient(closest-side, rgba(255, 249, 220, .9), rgba(255, 249, 220, 0)); }
19
+ .kw-cloud { position: absolute; }
20
+ .kw-cloud svg { display: block; width: 100%; height: auto; }
21
+ .kw-cloud.c1 { top: 5%; left: -2%; width: 210px; animation: kwDrift 70s ease-in-out infinite alternate; }
22
+ .kw-cloud.c2 { top: 2%; left: 36%; width: 300px; animation: kwDrift 95s ease-in-out infinite alternate-reverse; }
23
+ .kw-cloud.c3 { top: 9%; left: 80%; width: 250px; animation: kwDrift 85s ease-in-out infinite alternate; }
24
+ .kw-water { position: absolute; left: 0; right: 0; top: var(--sky); height: calc(var(--m, 1px) * 7000 + 160vh);
25
+ background: linear-gradient(180deg, #3478a8 0, #2a6798 calc(var(--m, 1px) * 40), #225a8b calc(var(--m, 1px) * 200), #1b4c7b calc(var(--m, 1px) * 500), #153e69 calc(var(--m, 1px) * 1000),
26
+ #103157 calc(var(--m, 1px) * 2000), #0b2545 calc(var(--m, 1px) * 3000), #081b37 calc(var(--m, 1px) * 4000), #06142a calc(var(--m, 1px) * 5000), #040d1e calc(var(--m, 1px) * 6000), #030915 calc(var(--m, 1px) * 7000), #020610 100%); }
27
+ .kw-surface { position: absolute; left: 0; right: 0; top: calc(var(--sky) - 3px); height: 9px;
28
+ background: linear-gradient(#d3ecf7 0 2px, #5d9fcb 2px 5px, transparent 5px), repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 18px, transparent 18px 46px);
29
+ background-size: auto, 92px 3px; background-repeat: no-repeat, repeat-x; background-position: 0 0, 0 5px; animation: kwWaves 6s linear infinite; }
30
+ .kw-rays { position: absolute; left: 0; right: 0; top: var(--sky); height: 760px; pointer-events: none;
31
+ background: repeating-linear-gradient(97deg, rgba(255, 255, 255, .06) 0 50px, transparent 50px 170px);
32
+ -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); animation: kwSway 14s ease-in-out infinite alternate; }
33
+ .kw-snow { position: absolute; left: 0; right: 0; top: var(--sky); height: calc(var(--m, 1px) * 7000 + 100vh); pointer-events: none;
34
+ background-image: radial-gradient(rgba(255, 255, 255, .32) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1.6px);
35
+ background-size: 113px 131px, 71px 89px; background-position: 0 0, 33px 47px; animation: kwSnow 60s linear infinite; }
36
+ .kw-boat { position: absolute; left: 17%; top: calc(var(--sky) - 54px); width: 150px; animation: kwBob 3.2s ease-in-out infinite; }
37
+ .kw-boat svg, .kw-jelly svg, .kw-angler svg, .kw-chest svg, .kw-krill-art { display: block; width: 100%; height: auto; }
38
+ .kw-school { position: absolute; left: 0; right: 0; height: 64px; pointer-events: none; }
39
+ .kw-school i { position: absolute; left: 0; width: var(--size); animation: kwSwim var(--speed) linear infinite; opacity: .85; }
40
+ .kw-school.left i { animation-direction: reverse; }
41
+ .kw-school.right i svg { transform: scaleX(-1); }
42
+ .kw-school svg { display: block; width: 100%; height: auto; }
43
+ .kw-jelly { position: absolute; width: 44px; filter: drop-shadow(0 0 9px rgba(240, 171, 252, .75)); animation: kwFloat 6s ease-in-out infinite alternate; }
44
+ .kw-jelly.j2 { animation-delay: -2s; width: 34px; } .kw-jelly.j3 { animation-delay: -4s; width: 52px; }
45
+ .kw-whale { position: absolute; left: 0; width: 380px; opacity: .6; animation: kwWhale 90s linear infinite; }
46
+ .kw-whale svg { display: block; width: 100%; }
47
+ .kw-angler { position: absolute; width: 96px; animation: kwFloat 7s ease-in-out infinite alternate; }
48
+ .kw-angler::after { content: ""; position: absolute; left: 30%; top: -16%; width: 26px; height: 26px; border-radius: 50%;
49
+ background: radial-gradient(closest-side, rgba(253, 224, 71, .95), rgba(253, 224, 71, 0)); animation: kwLure 1.6s ease-in-out infinite alternate; }
50
+ .kw-angler.a2 { transform: scaleX(-1); animation-delay: -3s; }
51
+ .kw-glow { position: absolute; left: 0; right: 0; height: calc(var(--m, 1px) * 4300); pointer-events: none;
52
+ background-image: radial-gradient(rgba(125, 211, 252, .75) 1px, transparent 2px), radial-gradient(rgba(240, 171, 252, .6) 1px, transparent 2px);
53
+ background-size: 157px 173px, 233px 211px; background-position: 0 0, 77px 91px; animation: kwTwinkle 3.5s ease-in-out infinite alternate; }
54
+ .kw-trench { position: absolute; width: 20%; height: calc(var(--m, 1px) * 1400 + 160vh); background: #02050b; }
55
+ .kw-trench.l { left: 0; clip-path: polygon(0 0, 30% 0, 45% 8%, 38% 15%, 62% 24%, 55% 34%, 80% 45%, 72% 56%, 100% 68%, 100% 100%, 0 100%); }
56
+ .kw-trench.r { right: 0; clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%, 0 70%, 25% 58%, 18% 47%, 42% 36%, 35% 25%, 58% 14%, 52% 6%); }
57
+ .kw-floor { position: absolute; left: 0; right: 0; height: 160vh; background: linear-gradient(#2b2236 0 10px, #120e18 10px 26px, #08060c 26px); text-align: center; }
58
+ .kw-floor p { padding-top: 40px; font: 18px var(--mono); letter-spacing: .2em; color: #6a5f7e; }
59
+ .kw-chest { position: absolute; left: 50%; top: -40px; width: 68px; translate: -50% 0; filter: drop-shadow(0 0 6px rgba(251, 191, 36, .35)); }
60
+ .kw-chest.open { animation: kwChest 1.4s ease-out; filter: drop-shadow(0 0 22px rgba(251, 191, 36, .9)); }
61
+ .kw-zone { position: absolute; left: 16px; font: 10px var(--pixel); letter-spacing: .3em; text-transform: uppercase; color: rgba(214, 236, 250, .4); margin-top: 8px; }
62
+ .kw-zone small { display: block; font: 15px var(--mono); letter-spacing: .1em; }
63
+ .kw-ruler { position: absolute; right: 0; top: 0; bottom: 0; width: 64px; pointer-events: none; }
64
+ .kw-ruler::before { content: ""; position: absolute; right: 0; top: var(--sky); width: 10px; height: calc(var(--m, 1px) * 7000);
65
+ background: repeating-linear-gradient(to bottom, rgba(214, 236, 250, .35) 0 1px, transparent 1px calc(var(--m, 1px) * 100)); }
66
+ .kw-ruler span { position: absolute; right: 14px; translate: 0 -50%; font: 15px var(--mono); color: rgba(214, 236, 250, .45); }
67
+ .kw-scan { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }
68
+
69
+ /* The krill: up by the boat at home, down left while diving */
70
+ .kw-krill { position: absolute; z-index: 2; width: 46px; left: var(--kx, 71%); top: var(--ky, 68%); transition: left 1.4s cubic-bezier(.5, 0, .2, 1), top 1.4s cubic-bezier(.5, 0, .2, 1), opacity .6s;
71
+ filter: drop-shadow(0 0 7px rgba(244, 63, 94, .85)); animation: kwIdle 2.4s ease-in-out infinite; pointer-events: none; }
72
+ [data-mode="dive"] .kw-krill { --kx: 14%; --ky: 74%; }
73
+ [data-mode="party"] .kw-krill { --kx: 90%; --ky: 84%; opacity: 0; }
74
+ .kw-krill.diving { animation: kwDiveKrill 1.7s cubic-bezier(.4, 0, .2, 1); }
75
+ .kw-krill.sad { animation: kwSad .6s ease-in-out; }
76
+ .kw-trail i { position: absolute; left: 30%; top: 10%; width: 7px; height: 7px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%; opacity: 0; }
77
+ .kw-krill.diving .kw-trail i { animation: kwBubble 1.4s ease-out; }
78
+ .kw-krill.diving .kw-trail i:nth-child(2) { left: 55%; animation-delay: .15s; } .kw-krill.diving .kw-trail i:nth-child(3) { left: 20%; animation-delay: .3s; } .kw-krill.diving .kw-trail i:nth-child(4) { left: 65%; animation-delay: .45s; }
79
+
80
+ /* ---------- Effects: points pop out of the krill, sparks fly ---------- */
81
+ .kw-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
82
+ .kw-pop { position: absolute; translate: -50% -100%; text-align: center; animation: kwPopUp 2.1s cubic-bezier(.2, .8, .2, 1) forwards; white-space: nowrap; }
83
+ .kw-pop b { display: block; font: 700 46px var(--pixel); color: var(--tier); text-shadow: 0 0 16px var(--tier), 3px 3px 0 #04121d; }
84
+ .kw-pop small { display: block; margin-top: 2px; font: 11px var(--pixel); letter-spacing: .25em; color: #fff; text-shadow: 2px 2px 0 #04121d; }
85
+ .kw-spark { position: absolute; width: 7px; height: 7px; background: var(--tier); box-shadow: 0 0 8px var(--tier); animation: kwSpark .95s ease-out forwards; }
86
+ .kw-stage.legend::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(circle at 16% 72%, rgba(251, 191, 36, .6), transparent 62%); animation: kwFlash 1.3s ease-out forwards; }
87
+ .kw-stage.legend .kw-ui { animation: kwShake .5s; }
88
+
89
+ /* ---------- Corners, buttons, words ---------- */
90
+ .kw-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
91
+ .kw-ui > *, .kw-ui button, .kw-ui input, .kw-ui select, .kw-ui form, .kw-ui a { pointer-events: auto; }
92
+ .kw-corner { position: absolute; z-index: 7; display: grid; gap: 8px; }
93
+ .kw-corner.left { top: 12px; left: 12px; } .kw-corner.right { top: 56px; right: 12px; }
94
+ .kw-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid #4b6684; background: #2a3d55; color: var(--ink); font-size: 16px; line-height: 1; }
95
+ .kw-icon:hover { background: #35506f; }
96
+ .kw-burger { width: 16px; height: 12px; background: linear-gradient(var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 7px, transparent 7px 10px, var(--ink) 10px 12px); }
97
+ .kw-btn { height: 50px; padding: 0 18px; border: 2px solid var(--cyan); background: #0b1a33; font: 13px var(--pixel); letter-spacing: .15em; color: var(--ink); box-shadow: 0 0 12px rgba(34, 211, 238, .35); white-space: nowrap; }
98
+ .kw-btn:hover, .kw-btn:focus-visible { background: #12284a; box-shadow: 0 0 18px rgba(34, 211, 238, .6); outline: none; }
99
+ .kw-btn.ghost { border-color: #355a80; box-shadow: none; }
100
+ .kw-btn.ghost:hover { border-color: var(--cyan); }
101
+ .kw-btn.small { height: 34px; padding: 0 12px; font-size: 11px; }
102
+ .kw-btn.wide { width: 100%; margin-bottom: 10px; }
103
+ .kw-btn:disabled, .kw-play:disabled { opacity: .45; cursor: default; }
104
+ .kw-link { border: 0; background: none; padding: 4px 0; font: 19px var(--mono); color: #7dd3fc; text-decoration: underline; text-underline-offset: 3px; }
105
+ .kw-link:hover { color: #fff; }
106
+ .kw-muted { font: 19px var(--mono); color: var(--dim); }
107
+ .kw-note { min-height: 1.2em; margin-top: 8px; font: 19px var(--mono); color: var(--dim); }
108
+ .kw-note.err { color: #fda4af; }
109
+ .kw-label { margin: 16px 0 8px; font: 10px var(--pixel); letter-spacing: .3em; color: #6b8aa5; }
110
+ .kw-tag { display: inline-block; padding: 2px 6px; font: 9px var(--pixel); letter-spacing: .12em; background: var(--tier, var(--cyan)); color: #04121d; vertical-align: middle; }
111
+ .kw input:not([type]), .kw select { height: 48px; padding: 0 12px; border: 2px solid #1e3a5f; background: var(--deep); color: #fff; font: 26px var(--mono); outline: 0; caret-color: var(--pink); }
112
+ .kw input:not([type]):focus, .kw select:focus { border-color: var(--cyan); box-shadow: 0 0 12px rgba(34, 211, 238, .35); }
113
+ .kw input::placeholder { color: #4a6782; }
114
+ .kw input.shake { animation: kwShake .32s; border-color: #fb7185 !important; }
115
+
116
+ /* ---------- Home ---------- */
117
+ .kw-home { position: absolute; inset: 0; }
118
+ .kw-hero { position: absolute; left: 0; right: 0; top: 13%; text-align: center; animation: kwIn .8s ease-out; }
119
+ .kw-logo { position: relative; width: min(640px, 84%); margin: 0 auto; }
120
+ .kw-logo svg { display: block; width: 100%; height: auto; }
121
+ .kw-logo-cyan { position: absolute; inset: 0; translate: -0.8% 4%; opacity: .85; animation: kwGlitch 4s steps(1) infinite; }
122
+ .kw-logo-pink { position: relative; }
123
+ .kw-subtitle { margin-top: 26px !important; font: 20px var(--pixel); letter-spacing: .55em; color: #22b6d6; }
124
+ .kw-tagline { margin-top: 12px !important; font: 22px var(--mono); letter-spacing: .1em; color: #3e6b86; }
125
+ .kw-menu { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; width: min(600px, 92%); display: grid; gap: 12px; justify-items: center; animation: kwIn .8s ease-out .15s backwards; }
126
+ .kw-howto { justify-self: start; border: 0; background: none; font: 11px var(--pixel); letter-spacing: .25em; color: #8fb3cc; padding: 4px 0; }
127
+ .kw-howto:hover { color: #fff; }
128
+ .kw-today { font: 20px var(--mono); letter-spacing: .12em; color: #7dd3fc; }
129
+ .kw-play { width: 100%; height: 76px; border: 3px solid var(--cyan); background: #0d1a33; color: var(--ink); font: 700 28px var(--pixel); letter-spacing: .3em;
130
+ box-shadow: 0 0 0 2px #0d1a33, 0 0 24px rgba(34, 211, 238, .55), inset 0 0 18px rgba(34, 211, 238, .16); animation: kwGlowPulse 2.4s ease-in-out infinite; }
131
+ .kw-play:hover, .kw-play:focus-visible { background: #13284d; outline: none; }
132
+ .kw-play.small { height: 56px; font-size: 18px; margin-top: 12px; }
133
+ .kw-foot { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font: 9px var(--pixel); letter-spacing: .25em; color: #6b8aa5; }
134
+
135
+ /* ---------- Pop-up sheets ---------- */
136
+ .kw-modal { position: absolute; inset: 0; z-index: 6; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(2, 8, 20, .55); }
137
+ .kw-sheet { position: relative; width: min(640px, 100%); max-height: calc(100% - 30px); overflow: auto; padding: 22px; background: #0a1830; border: 2px solid var(--cyan);
138
+ box-shadow: 0 0 28px rgba(34, 211, 238, .35); animation: kwSheet .3s cubic-bezier(.2, .8, .2, 1); }
139
+ .kw-sheet-title { margin: 0 40px 14px 0 !important; font: 16px var(--pixel); letter-spacing: .3em; color: var(--ink); }
140
+ .kw-x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 2px solid #355a80; background: none; font-size: 14px; }
141
+ .kw-back { display: block; margin-bottom: 12px; border: 0; background: none; font: 10px var(--pixel); letter-spacing: .25em; color: #8fb3cc; padding: 0; }
142
+ .kw-mode { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 10px;
143
+ border: 2px solid #1f3a5c; background: #0d1f3a; text-align: left; transition: border-color .15s, box-shadow .15s, transform .15s; }
144
+ .kw-mode:hover, .kw-mode:focus-visible { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34, 211, 238, .4); transform: translateY(-2px); outline: none; }
145
+ .kw-mode-art { width: 48px; justify-self: center; }
146
+ .kw-mode-art svg { display: block; width: 100%; height: auto; }
147
+ .kw-mode-art .kw-puff-art { --heat: 0; }
148
+ .kw-mode-text b { display: block; font: 15px var(--pixel); letter-spacing: .18em; }
149
+ .kw-mode-text small { display: block; margin-top: 2px; font: 18px var(--mono); color: var(--dim); }
150
+ .kw-mode em { font: 11px var(--pixel); letter-spacing: .14em; font-style: normal; color: var(--cyan); white-space: nowrap; }
151
+ .kw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
152
+ .kw-tile { min-height: 48px; padding: 8px 10px; border: 2px solid #1f3a5c; background: #0d1f3a; font: 11px var(--pixel); letter-spacing: .12em; text-align: left; }
153
+ .kw-tile small { display: block; margin-top: 2px; font: 16px var(--mono); letter-spacing: 0; color: var(--dim); }
154
+ .kw-tile:hover, .kw-tile:focus-visible { border-color: var(--cyan); outline: none; } .kw-tile.on { border-color: var(--pink); }
155
+ .kw-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
156
+ .kw-inline { display: flex; gap: 8px; margin: 10px 0; }
157
+ .kw-inline input { flex: 1; min-width: 0; }
158
+ .kw-inline .kw-btn { height: 48px; }
159
+ .kw-title-puff { display: inline-block; width: 26px; margin-right: 10px; vertical-align: -6px; --heat: 0; }
160
+ .kw-title-puff svg { width: 100%; height: auto; display: block; }
161
+ .kw-steps { margin: 0 0 14px; padding-left: 24px; font: 20px var(--mono); color: #cfe3f1; }
162
+ .kw-steps li { margin: 5px 0; } .kw-steps b { color: #fff; }
163
+ .kw-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
164
+ .kw-tiers li { display: grid; justify-items: center; padding: 6px 2px; border: 2px solid color-mix(in srgb, var(--tier) 45%, transparent); background: color-mix(in srgb, var(--tier) 12%, transparent); }
165
+ .kw-tiers span { font-size: 20px; } .kw-tiers b { font: 12px var(--pixel); color: var(--tier); } .kw-tiers small { font: 14px var(--mono); color: var(--dim); }
166
+ .kw-board { margin: 0; padding: 0; list-style: none; }
167
+ .kw-board li { display: flex; align-items: center; gap: 10px; padding: 5px 4px; border-bottom: 1px solid #1a2f4b; font: 21px var(--mono); }
168
+ .kw-board li.me { background: rgba(34, 211, 238, .1); }
169
+ .kw-rank { width: 24px; text-align: center; color: #6b8aa5; } .kw-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kw-deep { color: var(--cyan); }
170
+
171
+ /* ---------- The dive ---------- */
172
+ .kw-hud { position: absolute; top: 10px; left: 50%; translate: -50% 0; display: flex; align-items: flex-start; gap: clamp(10px, 6vw, 120px); animation: kwIn .5s ease-out; }
173
+ .kw-box { min-width: 126px; padding: 6px 14px 4px; background: rgba(13, 27, 48, .94); border: 2px solid var(--edge);
174
+ clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
175
+ .kw-box small { display: block; font: 9px var(--pixel); letter-spacing: .3em; color: #8fb3cc; }
176
+ .kw-box b { display: block; font: 34px/1.05 var(--mono); color: var(--cyan); font-variant-numeric: tabular-nums; }
177
+ .kw-box.score { text-align: right; } .kw-box.score b { color: var(--pink); }
178
+ .kw-progress { display: grid; justify-items: center; gap: 5px; padding-top: 6px; }
179
+ .kw-progress ol { display: flex; gap: 3px; margin: 0; padding: 3px; list-style: none; background: rgba(13, 27, 48, .9); border: 2px solid var(--edge); }
180
+ .kw-progress li { width: 15px; height: 15px; background: #13233a; border: 1px solid #2a4566; }
181
+ .kw-progress li.now { background: var(--pink); border-color: #ffd1e3; animation: kwBlink 1s steps(1) infinite; }
182
+ .kw-progress li.done { background: var(--tier); border-color: var(--tier); }
183
+ .kw-progress small { font: 9px var(--pixel); letter-spacing: .25em; color: #5f7f99; }
184
+ .kw-card { position: absolute; left: 50%; top: calc(17% + 12px); translate: -50% 0; width: min(600px, 92%); padding: 18px 24px 20px; background: rgba(14, 27, 47, .95); border: 2px solid var(--edge);
185
+ clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
186
+ .kw-card.in { animation: kwCardIn .55s cubic-bezier(.2, .8, .2, 1); }
187
+ .kw-card-top { font: 12px var(--pixel); letter-spacing: .3em; color: var(--pink); }
188
+ .kw-prompt { margin: 10px 0 6px; font: 44px/1.02 var(--mono); color: #f8fafc; letter-spacing: .01em; }
189
+ .kw-hint { font: 18px var(--mono); letter-spacing: .14em; color: #7dd3fc; }
190
+ .kw-answer { display: flex; gap: 10px; margin-top: 14px; }
191
+ .kw-answer input { flex: 1; min-width: 0; height: 54px !important; font-size: 30px !important; }
192
+ .kw-answer input:disabled { opacity: .5; }
193
+ .kw-answer .kw-btn { height: 54px; }
194
+ .kw-close { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 10px 14px; border: 2px solid #fbbf24; background: rgba(251, 191, 36, .1); font: 22px var(--mono); animation: kwIn .2s ease-out; }
195
+ .kw-close b { color: #fde68a; }
196
+ .kw-wrong { margin-top: 10px !important; font: 21px var(--mono); color: #fda4af; animation: kwIn .2s ease-out; }
197
+ .kw-wrong span { color: var(--dim); }
198
+ .kw-reveal { margin-top: 14px; font: 22px var(--mono); animation: kwIn .3s ease-out; }
199
+ .kw-said b { color: #fff; } .kw-said.miss { color: #fda4af; }
200
+ .kw-tierword { color: var(--tier); }
201
+ /* an answer in the color of the rarity it got */
202
+ .kw .kw-tc { color: var(--tier); text-shadow: 0 0 12px color-mix(in srgb, var(--tier) 55%, transparent); }
203
+ @keyframes kwTierFlash { from { color: #fff; text-shadow: 0 0 22px var(--tier); transform: scale(1.25); } }
204
+ .kw-tc { display: inline-block; }
205
+ .kw-stat { margin-top: 4px !important; color: var(--cyan); }
206
+ .kw-common { margin-top: 4px !important; font-size: 19px; color: var(--dim); }
207
+ .kw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
208
+ .kw-status { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; display: flex; align-items: center; gap: 14px; min-width: min(420px, 92%); padding: 10px 18px;
209
+ background: rgba(13, 27, 48, .94); border: 2px solid var(--edge); font: 22px var(--mono); letter-spacing: .12em; color: #b9d3e6; justify-content: center;
210
+ clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
211
+ .kw-status b { color: var(--cyan); }
212
+ .kw-clock { flex: 1; min-width: 200px; height: 12px; padding: 2px; border: 2px solid var(--edge); background: var(--deep); }
213
+ .kw-clock span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), #f59e0b 25%, var(--cyan) 55%); }
214
+ @keyframes kwTime { from { width: 100%; } to { width: 0; } }
215
+ .kw-secs { min-width: 2ch; font: 30px var(--mono); text-align: right; }
216
+ .kw-secs.hurry { color: var(--pink) !important; animation: kwBlink .5s steps(1) infinite; }
217
+ .kw-leave { position: absolute; top: 60px; left: 12px; padding: 7px 10px; border: 2px solid var(--edge); background: rgba(13, 27, 48, .9); font: 10px var(--pixel); letter-spacing: .2em; color: #8fb3cc; }
218
+ .kw-leave:hover { color: #fff; border-color: #355a80; }
219
+ .kw-results { max-height: calc(83% - 34px); overflow: auto; }
220
+ .kw-big { margin: 8px 0 0; font: 76px/1 var(--mono); color: var(--cyan); text-shadow: 0 0 22px rgba(34, 211, 238, .45); }
221
+ .kw-zoneline { margin-top: 6px !important; font: 12px var(--pixel); letter-spacing: .25em; }
222
+ .kw-emoji { margin-top: 10px !important; font-size: 24px; letter-spacing: .15em; }
223
+ /* "Better than 62% of today's players", and everyone's scores as a curve with you on it */
224
+ .kw-pct { margin: 14px 0 4px; }
225
+ .kw-pct-text { margin: 0; font: 12px/1.6 var(--pixel); letter-spacing: .22em; color: var(--cyan); }
226
+ .kw-pct-text b { font-weight: 400; color: var(--pink); text-shadow: 0 0 10px rgba(255, 92, 159, .55); }
227
+ .kw-pct-sub { margin: 2px 0 0; font: 17px var(--mono); color: var(--dim); }
228
+ .kw-curve { margin-bottom: 10px; }
229
+ .kw-curve-plot { position: relative; height: 86px; border-bottom: 1px solid #2b4a6b; }
230
+ .kw-curve-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: bottom; animation: kwCurveRise .9s cubic-bezier(.2, .8, .2, 1) both; }
231
+ .kw-curve-fill { fill: rgba(34, 211, 238, .16); }
232
+ .kw-curve-line { fill: none; stroke: var(--cyan); stroke-width: 2.5px; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .6)); }
233
+ .kw-curve-stem { position: absolute; bottom: 0; width: 2px; background: var(--pink); transform: translateX(-50%); animation: kwFadeIn .3s .8s both; }
234
+ .kw-curve-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px rgba(255, 92, 159, .3), 0 0 14px var(--pink); transform: translate(-50%, -50%); animation: kwDotPop .45s .85s cubic-bezier(.3, 1.8, .5, 1) both; }
235
+ .kw-curve-axis { position: relative; height: 22px; font: 15px var(--mono); color: #5f7f9c; }
236
+ .kw-curve-axis span, .kw-curve-axis b { position: absolute; top: 4px; transform: translateX(-50%); }
237
+ .kw-curve-axis .first { transform: none; } .kw-curve-axis .last { transform: translateX(-100%); }
238
+ .kw-curve-axis b { font: 10px/1.9 var(--pixel); letter-spacing: .15em; color: var(--pink); animation: kwFadeIn .3s .9s both; }
239
+ @keyframes kwCurveRise { from { transform: scaleY(0); opacity: 0; } }
240
+ @keyframes kwFadeIn { from { opacity: 0; } }
241
+ @keyframes kwDotPop { from { transform: translate(-50%, -50%) scale(0); } }
242
+ .kw-rounds { margin: 12px 0 0; padding: 0; list-style: none; }
243
+ .kw-rounds li { display: grid; grid-template-columns: 1fr auto 56px; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #1a2f4b; font: 20px var(--mono); }
244
+ .kw .kw-rounds li:not(.t0) b { color: var(--tier); }
245
+ .kw-rq { color: var(--dim); } .kw-rounds b { font-weight: 400; color: #fff; text-align: right; } .kw-rounds s { color: #64748b; }
246
+ .kw-rp { text-align: right; font: 12px var(--pixel); color: var(--tier); }
247
+
248
+ /* ---------- The answer sinking: a sign with your answer drops past the tier lines and lands on its own ---------- */
249
+ .kw-card { transition: opacity .3s ease, translate .3s ease; }
250
+ .kw-card.sunk { opacity: 0; translate: -50% -24px; pointer-events: none; }
251
+ .kw-card.result { top: auto; bottom: 72px; animation: kwRise .35s ease-out; }
252
+ .kw-card.result .kw-hint { display: none; }
253
+ .kw-card.result .kw-prompt { font-size: 30px; margin: 6px 0 2px; }
254
+ @keyframes kwRise { from { opacity: 0; translate: -50% 30px; } to { opacity: 1; translate: -50% 0; } }
255
+ .kw-stage.sinking .kw-krill { opacity: 0; transition: none; } /* it rides the answer instead */
256
+ .kw-sink { position: absolute; inset: 0; overflow: hidden; }
257
+ .kw-lines { position: absolute; inset: 0; pointer-events: none; }
258
+ .kw-line { position: absolute; left: 9%; right: 9%; height: 0; border-top: 2px dashed rgba(214, 236, 250, .2); transition: border-color .25s; }
259
+ .kw-line span { position: absolute; right: 0; top: -24px; font: 12px var(--pixel); letter-spacing: .22em; color: rgba(214, 236, 250, .35); white-space: nowrap; transform-origin: right bottom; transition: color .25s, transform .35s cubic-bezier(.3, 1.6, .5, 1), text-shadow .25s; }
260
+ .kw-line.passed { border-top-color: rgba(214, 236, 250, .5); }
261
+ .kw-line.passed span { color: rgba(230, 246, 255, .85); }
262
+ .kw-line.hit { border-top: 3px solid var(--tier); box-shadow: 0 0 16px var(--tier); }
263
+ .kw-line.hit span { color: var(--tier); transform: scale(1.45); text-shadow: 0 0 12px var(--tier); }
264
+ .kw-line.beyond { opacity: .4; }
265
+ .kw-plaque { position: absolute; left: 50%; top: 40%; translate: -50% -100%; transition: top .38s cubic-bezier(.55, 0, .9, .4); z-index: 1; padding: 8px 18px 10px; background: #182c46; border: 2px solid #2f4a6c; color: #dbe9f5;
266
+ font: 32px var(--mono); letter-spacing: .06em; white-space: nowrap; rotate: -4deg; box-shadow: 0 8px 0 rgba(3, 10, 22, .45), 0 0 0 1px #0b1628; animation: kwSway2 1.1s ease-in-out infinite alternate; }
267
+ .kw-plaque em { margin-left: 12px; font-style: normal; font-size: 22px; color: #7dd3fc; }
268
+ .kw-plaque.land { animation: kwLand .55s cubic-bezier(.3, 1.6, .5, 1), kwSway2 1.1s ease-in-out .55s infinite alternate; border-color: var(--tier); box-shadow: 0 8px 0 rgba(3, 10, 22, .45), 0 0 22px var(--tier); }
269
+ .kw-plaque span { transition: color .35s, text-shadow .35s; }
270
+ .kw-plaque.land span, .kw-plaque.land em { color: var(--tier); text-shadow: 0 0 14px color-mix(in srgb, var(--tier) 70%, transparent); } /* the answer lights up in its rarity's color */
271
+ .kw-plaque.miss { color: #fda4af; border-color: #7f3346; }
272
+ .kw-plaque.float { animation: kwFloatAway 1.1s ease-out forwards; }
273
+ .kw-rider { position: absolute; right: -10px; top: -40px; width: 40px; rotate: 6deg; filter: drop-shadow(0 0 7px rgba(244, 63, 94, .9)); animation: kwIdle 1.6s ease-in-out infinite; }
274
+ .kw-rider svg { display: block; width: 100%; height: auto; }
275
+ .kw-fizz { position: absolute; left: 12%; right: 12%; bottom: 100%; height: 90px; pointer-events: none; }
276
+ .kw-fizz i { position: absolute; bottom: 0; aspect-ratio: 1; border: 1.5px solid rgba(214, 236, 250, .75); border-radius: 50%; animation: kwFizz 1.2s ease-out infinite; }
277
+ .kw-rush { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
278
+ .kw-sink.fast .kw-rush { opacity: 1; }
279
+ .kw-rush i { position: absolute; bottom: -30%; width: 2px; background: linear-gradient(transparent, rgba(214, 236, 250, .4)); animation: kwRush .45s linear infinite; }
280
+ .kw-stage.thud .kw-ui, .kw-stage.thud .kw-sink { animation: kwShake .45s; }
281
+ @keyframes kwSway2 { from { rotate: -5deg; } to { rotate: 2deg; } }
282
+ @keyframes kwLand { 0% { scale: 1.12 .82; } 45% { scale: .94 1.08; } 100% { scale: 1 1; } }
283
+ @keyframes kwFloatAway { to { translate: -50% calc(-100% - 60px); opacity: 0; rotate: 8deg; } }
284
+ @keyframes kwFizz { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-80px) scale(1.1); opacity: 0; } }
285
+ @keyframes kwRush { from { transform: translateY(0); } to { transform: translateY(-160vh); } }
286
+
287
+ /* ---------- Puffer Party ---------- */
288
+ /* The table on the left (everyone in a ring of bubbles round the pufferfish), the prompt and your answer on the right.
289
+ Narrow screens stack them: prompt, table, answer, already said. */
290
+ .kw-party { position: absolute; top: 56px; bottom: 12px; left: 50%; translate: -50% 0; width: min(1120px, 96%); overflow: auto; display: grid;
291
+ grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "top top" "table side";
292
+ gap: 12px; animation: kwIn .5s ease-out; }
293
+ .kw-panel { padding: 16px 18px; background: rgba(10, 24, 48, .94); border: 2px solid var(--edge); }
294
+ .kw-pp-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
295
+ .kw-pp-top > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
296
+ .kw-code { padding: 4px 12px; border: 2px dashed var(--cyan); background: var(--deep); font: 20px var(--pixel); letter-spacing: .25em; color: var(--cyan); }
297
+ .kw-count { font: 10px var(--pixel); letter-spacing: .25em; color: #8fb3cc; }
298
+ .kw-side { grid-area: side; display: grid; grid-auto-rows: max-content; gap: 10px; min-height: 0; overflow: auto; }
299
+ .kw-pn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
300
+ .kw-hearts { color: var(--pink); letter-spacing: 2px; } .kw-hearts i { font-style: normal; color: #33475f; }
301
+
302
+ /* The table: open water, a ring of current joining the seats, bubbles drifting up */
303
+ .kw-arena { grid-area: table; position: relative; min-height: 300px; overflow: hidden; container-type: size;
304
+ --b: clamp(44px, 15cqmin, 92px); --nf: clamp(16px, 4.4cqmin, 23px); --pf: clamp(64px, 23cqmin, 150px); }
305
+ .kw-arena::before { content: ""; position: absolute; left: 13%; right: 13%; top: 15%; bottom: 15%; border-radius: 50%; border: 2px dashed rgba(125, 211, 252, .16);
306
+ background: radial-gradient(closest-side, rgba(34, 211, 238, .13), rgba(34, 211, 238, .04) 62%, transparent); }
307
+ .kw-arena::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
308
+ background-image: radial-gradient(circle, transparent 2px, rgba(186, 230, 253, .6) 2.5px, transparent 3.6px), radial-gradient(circle, transparent 1.4px, rgba(186, 230, 253, .45) 2px, transparent 3px);
309
+ background-size: 190px 230px, 130px 170px; background-position: 30px 0, 90px 60px; animation: kwRise 10s linear infinite; }
310
+ .kw-seats { position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0; list-style: none; pointer-events: none; } /* above the pufferfish, so names stay readable */
311
+ .kw-seat { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; max-width: 30%;
312
+ transition: left .7s cubic-bezier(.4, 0, .2, 1), top .7s cubic-bezier(.4, 0, .2, 1), opacity .4s; }
313
+ .kw-bub { position: relative; display: grid; place-items: center; width: var(--b); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(186, 230, 253, .55);
314
+ background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .6) 0 6%, transparent 7%), radial-gradient(circle, rgba(8, 27, 55, .6) 58%, rgba(125, 211, 252, .3));
315
+ box-shadow: inset 0 -6px 14px rgba(125, 211, 252, .18), 0 0 16px rgba(34, 211, 238, .14);
316
+ animation: kwBob 3.2s ease-in-out infinite; animation-delay: var(--d, 0s); transition: border-color .3s, box-shadow .3s; }
317
+ .kw-bub svg { width: 64%; height: auto; filter: drop-shadow(0 2px 0 rgba(2, 6, 16, .55)); }
318
+ .kw-seat .kw-pn { max-width: 100%; font: var(--nf)/1 var(--mono); text-align: center; text-shadow: 0 2px 0 #020610, 0 0 8px #020610; }
319
+ .kw-seat .kw-hearts { min-height: 1em; font-size: calc(var(--nf) * .8); line-height: 1; }
320
+ .kw-seat.me .kw-pn { color: var(--cyan); }
321
+ .kw-seat.hold .kw-bub, .kw-seat.won .kw-bub { border-color: #fbbf24; box-shadow: 0 0 24px rgba(251, 191, 36, .55), inset 0 -6px 14px rgba(251, 191, 36, .25); }
322
+ /* the holder's fuse: a ring round their bubble that burns down with their time */
323
+ .kw-seat.hold .kw-bub::after { content: ""; position: absolute; inset: -8px; border-radius: 50%;
324
+ background: conic-gradient(#fbbf24 calc(var(--left, 1) * 360deg), rgba(251, 191, 36, .14) 0);
325
+ -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
326
+ .kw-seat.out { opacity: .38; } .kw-seat.out .kw-bub { border-style: dashed; animation: none; filter: grayscale(1); } .kw-seat.out .kw-pn { text-decoration: line-through; }
327
+ .kw-seat.off .kw-pn::after { content: " · away"; color: var(--dim); }
328
+ .kw-seat.open .kw-bub { border: 2px dashed rgba(186, 230, 253, .22); background: none; box-shadow: none; animation: none; }
329
+ .kw-seat.open .kw-pn { color: #4b6b85; text-shadow: none; }
330
+ .kw-seat.won .kw-bub { animation-duration: 1.2s; }
331
+
332
+ .kw-seat.hit .kw-bub { border-color: #f87171; animation: kwHit .7s ease-out; }
333
+
334
+ /* The pufferfish: in the middle while you wait (poke it), then swimming over to face whoever has it. It's a calm fish
335
+ until time runs low, then it puffs up into a spiky ball that swells, turns red and shakes, and bursts if nobody passes it. */
336
+ .kw-pf { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); pointer-events: none;
337
+ transition: left .55s cubic-bezier(.3, .7, .3, 1), top .55s cubic-bezier(.3, .7, .3, 1); }
338
+ [data-state="lobby"] .kw-pf { animation: kwFloat 3s ease-in-out infinite alternate; pointer-events: auto; cursor: pointer; }
339
+ [data-state="over"] .kw-pf { display: none; }
340
+ .kw-pf.right .kw-puffer { transform: scaleX(-1); }
341
+ .kw-puffer { position: relative; width: 180px; height: 176px; display: grid; place-items: center; --s: .9; --heat: 0;
342
+ animation: kwWobble calc(1.4s - var(--heat) * 1.15s) ease-in-out infinite alternate; transition: scale .5s cubic-bezier(.3, 1.6, .5, 1), opacity .25s; }
343
+ .kw-pf.gone .kw-puffer { scale: 0; opacity: 0; transition: none; }
344
+ .kw-arena .kw-puffer { width: var(--pf); height: var(--pf); }
345
+ .kw-puffer > svg { grid-area: 1 / 1; }
346
+ .kw-puff-art { width: 140px; height: auto; overflow: visible; }
347
+ .kw-arena .kw-puff-art { width: 90%; }
348
+ .kw-puffer .kw-puff-art { transform: scale(var(--s)); transition: transform .25s linear; }
349
+ .kw-puffer .kw-puff-ball, .kw-puffer.puffed .kw-puff-calm { display: none; }
350
+ .kw-puffer.puffed .kw-puff-ball { display: block; animation: kwInflate .45s cubic-bezier(.3, 1.6, .5, 1);
351
+ filter: drop-shadow(0 0 calc(var(--heat) * 16px) color-mix(in srgb, #f87171 calc(var(--heat) * 90%), transparent)); }
352
+ .kw-puffer.critical .kw-puff-ball { animation: kwJitter .1s linear infinite; }
353
+ /* sweat flying off it when it's about to go */
354
+ .kw-puffer.critical::before, .kw-puffer.critical::after { content: ""; position: absolute; top: 2%; width: 7%; aspect-ratio: 2 / 3; border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
355
+ background: #bae6fd; box-shadow: inset -1px -2px 0 #38bdf8; animation: kwSweat .55s ease-out infinite; }
356
+ .kw-puffer.critical::before { left: 6%; --sx: -1; } .kw-puffer.critical::after { right: 6%; --sx: 1; animation-delay: .27s; }
357
+ /* its colors, from sunny yellow to angry red */
358
+ .kw-puff-art .pL { fill: color-mix(in srgb, #fecaca calc(var(--heat, 0) * 100%), #fff1a8); }
359
+ .kw-puff-art .pY { fill: color-mix(in srgb, #f87171 calc(var(--heat, 0) * 100%), #fcd34d); }
360
+ .kw-puff-art .pD { fill: color-mix(in srgb, #dc2626 calc(var(--heat, 0) * 100%), #f59e0b); }
361
+ .kw-puff-art .pR { fill: color-mix(in srgb, #7f1d1d calc(var(--heat, 0) * 100%), #b45309); }
362
+ .kw-puff-art .pW { fill: color-mix(in srgb, #ffe4e6 calc(var(--heat, 0) * 100%), #fff7e6); }
363
+ .kw-puff-art .pw { fill: color-mix(in srgb, #fda4af calc(var(--heat, 0) * 100%), #f2d7a6); }
364
+ .kw-puff-art .pS { fill: color-mix(in srgb, #7f1d1d calc(var(--heat, 0) * 100%), #a16207); }
365
+ .kw-puff-art .pF { fill: color-mix(in srgb, #b91c1c calc(var(--heat, 0) * 100%), #f97316); }
366
+ .kw-puff-art .pf { fill: color-mix(in srgb, #fca5a5 calc(var(--heat, 0) * 100%), #fdba74); }
367
+ .kw-puff-art .pT { fill: color-mix(in srgb, #991b1b calc(var(--heat, 0) * 100%), #c2410c); }
368
+ .kw-puff-art .pt, .kw-puff-art .pm { fill: color-mix(in srgb, #f87171 calc(var(--heat, 0) * 100%), #fb923c); }
369
+
370
+ /* The pop: a flash, a shock ring, bits of pufferfish everywhere and a big POP! */
371
+ .kw-arena.shake { animation: kwShake .45s; }
372
+ .kw-boom { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; }
373
+ .kw-boom > * { position: absolute; left: 0; top: 0; translate: -50% -50%; }
374
+ .kw-boom-flash { width: calc(var(--pf) * 2); aspect-ratio: 1; border-radius: 50%;
375
+ background: radial-gradient(circle, #fff 0 16%, #fef08a 28%, rgba(251, 146, 60, .8) 46%, rgba(239, 68, 68, 0) 70%); animation: kwBoomFlash .6s ease-out forwards; }
376
+ .kw-boom-ring { width: var(--pf); aspect-ratio: 1; border-radius: 50%; border: 4px solid #fde68a; animation: kwBoomRing .75s ease-out forwards; }
377
+ .kw-boom i { width: calc(var(--pf) * .08 * var(--z)); aspect-ratio: 1; background: var(--c); animation: kwShard var(--t) cubic-bezier(.12, .75, .35, 1) forwards; }
378
+ .kw-boom-word { font: 700 clamp(26px, 10cqmin, 56px)/1 var(--pixel); color: #fde047; text-shadow: 0 3px 0 #b45309, 0 0 24px #f97316; white-space: nowrap; animation: kwPopWord 1.2s ease-out forwards; }
379
+ .kw-lost { position: absolute; z-index: 5; translate: -50% -50%; font: 700 clamp(18px, 5cqmin, 30px) var(--pixel); color: #f87171; white-space: nowrap; pointer-events: none;
380
+ text-shadow: 0 2px 0 #450a0a, 0 0 10px rgba(248, 113, 113, .7); animation: kwLost 1.6s ease-out forwards; }
381
+
382
+ /* The room code, big enough to read out to friends */
383
+ .kw-pp-room { text-align: center; }
384
+ .kw-pp-room .kw-label { margin: 0 0 8px; }
385
+ .kw-bigcode { display: inline-flex; gap: 6px; padding: 0; border: 0; background: none; cursor: copy; }
386
+ .kw-bigcode b { display: grid; place-items: center; width: clamp(34px, 3.4vw, 46px); aspect-ratio: 4 / 5; border: 2px solid var(--cyan); background: var(--deep);
387
+ font: 700 clamp(22px, 2.3vw, 31px) var(--pixel); color: #fff; text-shadow: 0 0 12px rgba(34, 211, 238, .85); box-shadow: 0 4px 0 #0e7490, inset 0 0 14px rgba(34, 211, 238, .2); }
388
+ .kw-bigcode:hover b, .kw-bigcode:focus-visible b { border-color: #fff; }
389
+ .kw-bigcode:focus-visible { outline: none; }
390
+ .kw-pp-room .kw-muted { margin-top: 10px !important; font-size: 17px; }
391
+
392
+ /* The side: the prompt, your turn, what's been said */
393
+ .kw-pp-ask { text-align: center; } .kw-pp-ask .kw-prompt { font-size: 36px; }
394
+ .kw-pp-play { display: grid; justify-items: center; text-align: center; }
395
+ .kw-pp-play .kw-answer { width: 100%; margin-top: 10px; }
396
+ .kw-pp-play .kw-close { width: 100%; }
397
+ .kw-pp-clock { font: 40px/1 var(--mono); font-variant-numeric: tabular-nums; }
398
+ .kw-pp-clock.hurry { color: var(--pink); animation: kwBlink .4s steps(1) infinite; }
399
+ .kw-pp-turn { margin-top: 4px !important; font: 22px var(--mono); color: #b9d3e6; }
400
+ .kw-pp-last { margin-top: 8px !important; min-height: 1.3em; font: 20px var(--mono); color: var(--dim); } .kw-pp-last b { color: #fff; }
401
+ .kw-pp-last.fresh b { animation: kwTierFlash .9s ease-out; }
402
+ .kw-used .kw-label { margin-top: 0; }
403
+ .kw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
404
+ .kw-chips li { padding: 2px 10px; border: 1px solid #1f3a5c; background: #0d1f3a; font: 18px var(--mono); } .kw-chips li.me { border-color: var(--cyan); }
405
+ .kw .kw-chips li.tier { color: var(--tier); border-color: color-mix(in srgb, var(--tier) 35%, #1f3a5c); } .kw .kw-chips li.tier.me { border-color: var(--cyan); }
406
+ .kw-pp-setup { display: flex; flex-wrap: wrap; gap: 12px; }
407
+ .kw-pp-setup label { display: grid; gap: 4px; font: 9px var(--pixel); letter-spacing: .2em; color: #8fb3cc; }
408
+ .kw-pp-setup select { height: 40px; font-size: 21px; }
409
+ .kw-pp-setup .kw-check { display: flex; align-items: center; gap: 8px; font: 19px var(--mono); letter-spacing: 0; color: var(--ink); }
410
+ .kw-pp-lobby #kw-pp-go { margin-top: 14px; }
411
+ .kw-rules { margin-top: 14px !important; font-size: 18px; }
412
+ .kw-pp-over { text-align: center; }
413
+ .kw-pp-win { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); width: 46%; text-align: center; }
414
+ .kw-pp-win.late { animation: kwWinIn .5s cubic-bezier(.3, 1.5, .5, 1) 1.1s backwards; } /* after the last pop */
415
+ .kw-pp-win h2 { margin: 4px 0; font: clamp(14px, 4.4cqmin, 24px) var(--pixel); letter-spacing: .2em; }
416
+ .kw-trophy { display: block; font-size: clamp(40px, 13cqmin, 72px); animation: kwBob 2s ease-in-out infinite; }
417
+
418
+ /* Short windows (laptops): tighter spacing and a smaller prompt so the answer box stays on screen */
419
+ @media (max-height: 760px) {
420
+ .kw-party { top: 50px; gap: 8px; }
421
+ .kw-party .kw-panel { padding: 10px 14px; }
422
+ .kw-pp-ask .kw-prompt { margin: 6px 0 4px; font-size: 30px; }
423
+ .kw-pp-clock { font-size: 32px; }
424
+ .kw-pp-turn { font-size: 19px; }
425
+ .kw-rules { font-size: 17px; }
426
+ }
427
+ /* Narrow screens (phones): one column, the table between the prompt and your answer */
428
+ @media (max-width: 860px) {
429
+ .kw-party { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; grid-auto-rows: max-content; gap: 8px; }
430
+ .kw-pp-top, .kw-arena, .kw-side { grid-area: auto; }
431
+ .kw-side { display: contents; }
432
+ .kw-side > * { order: 3; } .kw-pp-ask, .kw-pp-room { order: 1; } .kw-used { order: 4; }
433
+ .kw-arena { order: 2; height: clamp(260px, 50vh, 440px); min-height: 0; }
434
+ [data-state="lobby"] .kw-arena { height: clamp(220px, 36vh, 400px); } /* so the code and START both fit */
435
+ .kw-pp-ask .kw-prompt { font-size: 28px; }
436
+ }
437
+ @keyframes kwRise { to { background-position: 30px -230px, 90px -110px; } }
438
+
439
+ /* ---------- Animations ---------- */
440
+ @keyframes kwDrift { to { translate: 14vw 0; } }
441
+ @keyframes kwWaves { to { background-position: 0 0, 92px 5px; } }
442
+ @keyframes kwSway { from { translate: -40px 0; } to { translate: 40px 0; } }
443
+ @keyframes kwSnow { to { background-position: 0 -131px, 33px -42px; } }
444
+ @keyframes kwBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
445
+ @keyframes kwSwim { from { translate: -12vw 0; } to { translate: 112vw 0; } }
446
+ @keyframes kwFloat { from { translate: 0 -10px; } to { translate: 0 14px; } }
447
+ @keyframes kwWhale { from { translate: 110vw 0; } to { translate: -45vw 0; } }
448
+ @keyframes kwLure { from { opacity: .45; scale: .8; } to { opacity: 1; scale: 1.15; } }
449
+ @keyframes kwTwinkle { from { opacity: .35; } to { opacity: 1; } }
450
+ @keyframes kwChest { 0% { scale: 1; } 30% { scale: 1.35; } 60% { scale: .95; } 100% { scale: 1.1; } }
451
+ @keyframes kwIdle { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -6px; rotate: 5deg; } }
452
+ @keyframes kwDiveKrill { 0% { rotate: 0; } 20% { rotate: -30deg; translate: 0 -14px; } 55% { rotate: 70deg; translate: 0 34px; } 100% { rotate: 0; translate: 0 0; } }
453
+ @keyframes kwSad { 25% { translate: -6px 0; rotate: -12deg; } 75% { translate: 6px 0; rotate: 12deg; } }
454
+ @keyframes kwBubble { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.3); } }
455
+ @keyframes kwPopUp { 0% { opacity: 0; transform: translateY(14px) scale(.4); } 14% { opacity: 1; transform: translateY(-6px) scale(1.18); } 26% { transform: translateY(0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-80px) scale(1); } }
456
+ @keyframes kwSpark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
457
+ @keyframes kwFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
458
+ @keyframes kwShake { 20% { translate: -7px 3px; } 40% { translate: 6px -3px; } 60% { translate: -5px 2px; } 80% { translate: 4px -1px; } }
459
+ @keyframes kwIn { from { opacity: 0; transform: translateY(10px); } }
460
+ @keyframes kwCardIn { from { opacity: 0; translate: -50% 28px; } to { opacity: 1; translate: -50% 0; } }
461
+ @keyframes kwSheet { from { opacity: 0; transform: translateY(40px); } }
462
+ @keyframes kwGlitch { 0%, 88%, 100% { translate: -0.8% 4%; } 90% { translate: 1.6% -2%; } 93% { translate: -2.2% 6%; } 96% { translate: 0.6% 2%; } }
463
+ @keyframes kwGlowPulse { 50% { box-shadow: 0 0 0 2px #0d1a33, 0 0 36px rgba(34, 211, 238, .8), inset 0 0 22px rgba(34, 211, 238, .25); } }
464
+ @keyframes kwBlink { 50% { opacity: .35; } }
465
+ @keyframes kwWobble { from { rotate: -6deg; } to { rotate: 6deg; } }
466
+ @keyframes kwPopWord { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 25% { opacity: 1; transform: scale(1.15) rotate(4deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }
467
+ @keyframes kwInflate { from { scale: .55; } 60% { scale: 1.12; } to { scale: 1; } }
468
+ @keyframes kwJitter { 0%, 100% { translate: -2% 1%; } 50% { translate: 2% -1%; } }
469
+ @keyframes kwSweat { 0% { opacity: 0; translate: 0 0; } 25% { opacity: 1; } 100% { opacity: 0; translate: calc(var(--sx) * 170%) 150%; } }
470
+ @keyframes kwBoomFlash { 0% { scale: .25; opacity: 1; } 55% { opacity: .85; } 100% { scale: 1.2; opacity: 0; } }
471
+ @keyframes kwBoomRing { from { scale: .35; opacity: 1; } to { scale: 2.4; opacity: 0; border-width: 1px; } }
472
+ @keyframes kwShard { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; }
473
+ 100% { transform: translate(calc(var(--x) * var(--pf)), calc(var(--y) * var(--pf) + var(--pf) * .3)) rotate(var(--r)); opacity: 0; } }
474
+ @keyframes kwLost { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; transform: translateY(-20%) scale(1.2); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-160%) scale(1); } }
475
+ @keyframes kwHit { 0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .9); background-color: rgba(248, 113, 113, .55); } 15% { translate: -6px 0; } 30% { translate: 6px 0; }
476
+ 45% { translate: -4px 0; } 60% { translate: 3px 0; } 100% { box-shadow: 0 0 0 18px rgba(248, 113, 113, 0); translate: 0 0; } }
477
+ @keyframes kwWinIn { from { opacity: 0; scale: .5; } }
478
+ @media (prefers-reduced-motion: reduce) {
479
+ .kw *, .kw *::before, .kw *::after { animation: none !important; transition: none !important; }
480
+ .kw-boom-flash, .kw-boom-ring, .kw-boom i, .kw-puffer::before, .kw-puffer::after { display: none; }
481
+ }
482
+
483
+ /* ---------- Phones and small screens ---------- */
484
+ @media (max-width: 720px) {
485
+ .kw-stage { height: calc(100dvh - 56px); }
486
+ .kw-logo { width: 92%; }
487
+ .kw-subtitle { font-size: 14px; letter-spacing: .4em; }
488
+ .kw-tagline { font-size: 17px; }
489
+ .kw-play { height: 62px; font-size: 20px; }
490
+ .kw-boat { width: 110px; top: calc(var(--sky) - 40px); }
491
+ .kw-hud { gap: 8px; top: 8px; }
492
+ .kw-box { min-width: 88px; padding: 4px 10px 2px; } .kw-box b { font-size: 24px; }
493
+ .kw-progress li { width: 11px; height: 11px; }
494
+ .kw-card { top: calc(17% + 30px); padding: 14px 16px; }
495
+ .kw-prompt { font-size: 32px; }
496
+ .kw-answer input { font-size: 24px !important; }
497
+ .kw-leave { top: auto; bottom: 74px; }
498
+ .kw-status { font-size: 18px; }
499
+ .kw-clock { min-width: 120px; }
500
+ .kw-mode { grid-template-columns: 40px 1fr; } .kw-mode em { grid-column: 2; }
501
+ .kw-two { grid-template-columns: 1fr; }
502
+ .kw-zone, .kw-ruler span { display: none; }
503
+ .kw-corner.right { top: 12px; right: 12px; grid-auto-flow: column; }
504
+ }