@ywkrlerche/richardwho 1.0.52 → 1.0.53

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,377 @@
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: .7; }
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
+ .kw-stat { margin-top: 4px !important; color: var(--cyan); }
202
+ .kw-common { margin-top: 4px !important; font-size: 19px; color: var(--dim); }
203
+ .kw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
204
+ .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;
205
+ background: rgba(13, 27, 48, .94); border: 2px solid var(--edge); font: 22px var(--mono); letter-spacing: .12em; color: #b9d3e6; justify-content: center;
206
+ 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); }
207
+ .kw-status b { color: var(--cyan); }
208
+ .kw-clock { flex: 1; min-width: 200px; height: 12px; padding: 2px; border: 2px solid var(--edge); background: var(--deep); }
209
+ .kw-clock span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), #f59e0b 25%, var(--cyan) 55%); }
210
+ @keyframes kwTime { from { width: 100%; } to { width: 0; } }
211
+ .kw-secs { min-width: 2ch; font: 30px var(--mono); text-align: right; }
212
+ .kw-secs.hurry { color: var(--pink) !important; animation: kwBlink .5s steps(1) infinite; }
213
+ .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; }
214
+ .kw-leave:hover { color: #fff; border-color: #355a80; }
215
+ .kw-results { max-height: calc(83% - 34px); overflow: auto; }
216
+ .kw-big { margin: 8px 0 0; font: 76px/1 var(--mono); color: var(--cyan); text-shadow: 0 0 22px rgba(34, 211, 238, .45); }
217
+ .kw-zoneline { margin-top: 6px !important; font: 12px var(--pixel); letter-spacing: .25em; }
218
+ .kw-emoji { margin-top: 10px !important; font-size: 24px; letter-spacing: .15em; }
219
+ /* "Better than 62% of today's players", and everyone's scores as a curve with you on it */
220
+ .kw-pct { margin: 14px 0 4px; }
221
+ .kw-pct-text { margin: 0; font: 12px/1.6 var(--pixel); letter-spacing: .22em; color: var(--cyan); }
222
+ .kw-pct-text b { font-weight: 400; color: var(--pink); text-shadow: 0 0 10px rgba(255, 92, 159, .55); }
223
+ .kw-pct-sub { margin: 2px 0 0; font: 17px var(--mono); color: var(--dim); }
224
+ .kw-curve { margin-bottom: 10px; }
225
+ .kw-curve-plot { position: relative; height: 86px; border-bottom: 1px solid #2b4a6b; }
226
+ .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; }
227
+ .kw-curve-fill { fill: rgba(34, 211, 238, .16); }
228
+ .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)); }
229
+ .kw-curve-stem { position: absolute; bottom: 0; width: 2px; background: var(--pink); transform: translateX(-50%); animation: kwFadeIn .3s .8s both; }
230
+ .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; }
231
+ .kw-curve-axis { position: relative; height: 22px; font: 15px var(--mono); color: #5f7f9c; }
232
+ .kw-curve-axis span, .kw-curve-axis b { position: absolute; top: 4px; transform: translateX(-50%); }
233
+ .kw-curve-axis .first { transform: none; } .kw-curve-axis .last { transform: translateX(-100%); }
234
+ .kw-curve-axis b { font: 10px/1.9 var(--pixel); letter-spacing: .15em; color: var(--pink); animation: kwFadeIn .3s .9s both; }
235
+ @keyframes kwCurveRise { from { transform: scaleY(0); opacity: 0; } }
236
+ @keyframes kwFadeIn { from { opacity: 0; } }
237
+ @keyframes kwDotPop { from { transform: translate(-50%, -50%) scale(0); } }
238
+ .kw-rounds { margin: 12px 0 0; padding: 0; list-style: none; }
239
+ .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); }
240
+ .kw-rq { color: var(--dim); } .kw-rounds b { font-weight: 400; color: #fff; text-align: right; } .kw-rounds s { color: #64748b; }
241
+ .kw-rp { text-align: right; font: 12px var(--pixel); color: var(--tier); }
242
+
243
+ /* ---------- The answer sinking: a sign with your answer drops past the tier lines and lands on its own ---------- */
244
+ .kw-card { transition: opacity .3s ease, translate .3s ease; }
245
+ .kw-card.sunk { opacity: 0; translate: -50% -24px; pointer-events: none; }
246
+ .kw-card.result { top: auto; bottom: 72px; animation: kwRise .35s ease-out; }
247
+ .kw-card.result .kw-hint { display: none; }
248
+ .kw-card.result .kw-prompt { font-size: 30px; margin: 6px 0 2px; }
249
+ @keyframes kwRise { from { opacity: 0; translate: -50% 30px; } to { opacity: 1; translate: -50% 0; } }
250
+ .kw-stage.sinking .kw-krill { opacity: 0; transition: none; } /* it rides the answer instead */
251
+ .kw-sink { position: absolute; inset: 0; overflow: hidden; }
252
+ .kw-lines { position: absolute; inset: 0; pointer-events: none; }
253
+ .kw-line { position: absolute; left: 9%; right: 9%; height: 0; border-top: 2px dashed rgba(214, 236, 250, .2); transition: border-color .25s; }
254
+ .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; }
255
+ .kw-line.passed { border-top-color: rgba(214, 236, 250, .5); }
256
+ .kw-line.passed span { color: rgba(230, 246, 255, .85); }
257
+ .kw-line.hit { border-top: 3px solid var(--tier); box-shadow: 0 0 16px var(--tier); }
258
+ .kw-line.hit span { color: var(--tier); transform: scale(1.45); text-shadow: 0 0 12px var(--tier); }
259
+ .kw-line.beyond { opacity: .4; }
260
+ .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;
261
+ 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; }
262
+ .kw-plaque em { margin-left: 12px; font-style: normal; font-size: 22px; color: #7dd3fc; }
263
+ .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); }
264
+ .kw-plaque.miss { color: #fda4af; border-color: #7f3346; }
265
+ .kw-plaque.float { animation: kwFloatAway 1.1s ease-out forwards; }
266
+ .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; }
267
+ .kw-rider svg { display: block; width: 100%; height: auto; }
268
+ .kw-fizz { position: absolute; left: 12%; right: 12%; bottom: 100%; height: 90px; pointer-events: none; }
269
+ .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; }
270
+ .kw-rush { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none; }
271
+ .kw-sink.fast .kw-rush { opacity: 1; }
272
+ .kw-rush i { position: absolute; bottom: -30%; width: 2px; background: linear-gradient(transparent, rgba(214, 236, 250, .4)); animation: kwRush .45s linear infinite; }
273
+ .kw-stage.thud .kw-ui, .kw-stage.thud .kw-sink { animation: kwShake .45s; }
274
+ @keyframes kwSway2 { from { rotate: -5deg; } to { rotate: 2deg; } }
275
+ @keyframes kwLand { 0% { scale: 1.12 .82; } 45% { scale: .94 1.08; } 100% { scale: 1 1; } }
276
+ @keyframes kwFloatAway { to { translate: -50% calc(-100% - 60px); opacity: 0; rotate: 8deg; } }
277
+ @keyframes kwFizz { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-80px) scale(1.1); opacity: 0; } }
278
+ @keyframes kwRush { from { transform: translateY(0); } to { transform: translateY(-160vh); } }
279
+
280
+ /* ---------- Puffer Party ---------- */
281
+ .kw-party { position: absolute; top: 56px; bottom: 12px; left: 50%; translate: -50% 0; width: min(780px, 94%); overflow: auto; display: grid; gap: 12px; align-content: start; animation: kwIn .5s ease-out; }
282
+ .kw-panel { padding: 16px 18px; background: rgba(10, 24, 48, .94); border: 2px solid var(--edge); }
283
+ .kw-pp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
284
+ .kw-pp-top > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
285
+ .kw-code { padding: 4px 12px; border: 2px dashed var(--cyan); background: var(--deep); font: 20px var(--pixel); letter-spacing: .25em; color: var(--cyan); }
286
+ .kw-pp-players { margin: 0; padding: 0; list-style: none; }
287
+ .kw-pp-players li { display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin-bottom: 6px; border: 2px solid #1f3a5c; background: #0d1f3a; font: 22px var(--mono); transition: border-color .2s, background .2s; }
288
+ .kw-pp-players li.hold { border-color: #f59e0b; background: rgba(245, 158, 11, .14); }
289
+ .kw-pp-players li.out { opacity: .45; } .kw-pp-players li.out .kw-pn { text-decoration: line-through; }
290
+ .kw-pp-players li.off .kw-pn::after { content: " · away"; color: var(--dim); font-size: 17px; }
291
+ .kw-pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .kw-pn small { color: var(--dim); }
292
+ .kw-hearts { color: var(--pink); letter-spacing: 2px; } .kw-hearts i { font-style: normal; color: #33475f; }
293
+ .kw-has { width: 24px; --heat: 0; animation: kwBob 1s ease-in-out infinite; } .kw-has svg { display: block; width: 100%; height: auto; }
294
+ .kw-pp-players.row { display: flex; flex-wrap: wrap; gap: 6px; } .kw-pp-players.row li { margin: 0; }
295
+ .kw-pp-setup { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
296
+ .kw-pp-setup label { display: grid; gap: 4px; font: 9px var(--pixel); letter-spacing: .2em; color: #8fb3cc; }
297
+ .kw-pp-setup select { height: 40px; font-size: 21px; }
298
+ .kw-pp-setup .kw-check { display: flex; align-items: center; gap: 8px; font: 19px var(--mono); letter-spacing: 0; color: var(--ink); }
299
+ .kw-rules { margin-top: 14px !important; font-size: 18px; }
300
+ .kw-pp-stage { position: relative; display: grid; justify-items: center; text-align: center; padding: 16px; background: rgba(10, 24, 48, .9); border: 2px solid var(--edge); overflow: hidden; }
301
+ .kw-pp-stage .kw-prompt { font-size: 38px; }
302
+ .kw-puffer { position: relative; width: 180px; height: 176px; display: grid; place-items: center; --s: .85; --heat: 0; animation: kwWobble calc(1.4s - var(--heat) * 1.15s) ease-in-out infinite alternate; }
303
+ .kw-puff-art { width: 140px; height: auto; overflow: visible; }
304
+ .kw-puffer .kw-puff-art { transform: scale(var(--s)); transition: transform .25s linear; }
305
+ .kw-puff-art .kw-body { fill: color-mix(in srgb, #ef4444 calc(var(--heat, 0) * 100%), #fcd34d); }
306
+ .kw-puff-art .kw-spikes, .kw-puff-art .kw-fin { fill: color-mix(in srgb, #b91c1c calc(var(--heat, 0) * 100%), #f59e0b); }
307
+ .kw-pop-word { position: absolute; font: 700 44px var(--pixel); color: #fde047; text-shadow: 0 3px 0 #b45309, 0 0 24px #f97316; opacity: 0; pointer-events: none; }
308
+ .kw-pp-stage.popped .kw-puff-art { animation: kwBurst .7s ease-out; }
309
+ .kw-pp-stage.popped .kw-pop-word { animation: kwPopWord 1s ease-out; }
310
+ .kw-pp-clock { font: 40px var(--mono); font-variant-numeric: tabular-nums; }
311
+ .kw-pp-clock.hurry { color: var(--pink); animation: kwBlink .4s steps(1) infinite; }
312
+ .kw-pp-turn { font: 22px var(--mono); color: #b9d3e6; }
313
+ .kw-pp-stage .kw-answer { width: min(540px, 100%); }
314
+ .kw-pp-last { margin-top: 8px !important; min-height: 1.3em; font: 20px var(--mono); color: var(--dim); } .kw-pp-last b { color: #fff; }
315
+ .kw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
316
+ .kw-chips li { padding: 2px 10px; border: 1px solid #1f3a5c; background: #0d1f3a; font: 18px var(--mono); } .kw-chips li.me { border-color: var(--cyan); }
317
+ .kw-pp-over { text-align: center; }
318
+ .kw-pp-win { padding: 10px 0; }
319
+ .kw-pp-win h2 { margin: 4px 0; font: 24px var(--pixel); letter-spacing: .2em; }
320
+ .kw-trophy { display: block; font-size: 64px; animation: kwBob 2s ease-in-out infinite; }
321
+ .kw-pp-over .kw-pp-players { max-width: 420px; margin: 10px auto; text-align: left; }
322
+
323
+ /* ---------- Animations ---------- */
324
+ @keyframes kwDrift { to { translate: 14vw 0; } }
325
+ @keyframes kwWaves { to { background-position: 0 0, 92px 5px; } }
326
+ @keyframes kwSway { from { translate: -40px 0; } to { translate: 40px 0; } }
327
+ @keyframes kwSnow { to { background-position: 0 -131px, 33px -42px; } }
328
+ @keyframes kwBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
329
+ @keyframes kwSwim { from { translate: -12vw 0; } to { translate: 112vw 0; } }
330
+ @keyframes kwFloat { from { translate: 0 -10px; } to { translate: 0 14px; } }
331
+ @keyframes kwWhale { from { translate: 110vw 0; } to { translate: -45vw 0; } }
332
+ @keyframes kwLure { from { opacity: .45; scale: .8; } to { opacity: 1; scale: 1.15; } }
333
+ @keyframes kwTwinkle { from { opacity: .35; } to { opacity: 1; } }
334
+ @keyframes kwChest { 0% { scale: 1; } 30% { scale: 1.35; } 60% { scale: .95; } 100% { scale: 1.1; } }
335
+ @keyframes kwIdle { 0%, 100% { translate: 0 0; rotate: -4deg; } 50% { translate: 0 -6px; rotate: 5deg; } }
336
+ @keyframes kwDiveKrill { 0% { rotate: 0; } 20% { rotate: -30deg; translate: 0 -14px; } 55% { rotate: 70deg; translate: 0 34px; } 100% { rotate: 0; translate: 0 0; } }
337
+ @keyframes kwSad { 25% { translate: -6px 0; rotate: -12deg; } 75% { translate: 6px 0; rotate: 12deg; } }
338
+ @keyframes kwBubble { 0% { opacity: 0; transform: translateY(0) scale(.5); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1.3); } }
339
+ @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); } }
340
+ @keyframes kwSpark { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
341
+ @keyframes kwFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
342
+ @keyframes kwShake { 20% { translate: -7px 3px; } 40% { translate: 6px -3px; } 60% { translate: -5px 2px; } 80% { translate: 4px -1px; } }
343
+ @keyframes kwIn { from { opacity: 0; transform: translateY(10px); } }
344
+ @keyframes kwCardIn { from { opacity: 0; translate: -50% 28px; } to { opacity: 1; translate: -50% 0; } }
345
+ @keyframes kwSheet { from { opacity: 0; transform: translateY(40px); } }
346
+ @keyframes kwGlitch { 0%, 88%, 100% { translate: -0.8% 4%; } 90% { translate: 1.6% -2%; } 93% { translate: -2.2% 6%; } 96% { translate: 0.6% 2%; } }
347
+ @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); } }
348
+ @keyframes kwBlink { 50% { opacity: .35; } }
349
+ @keyframes kwWobble { from { rotate: -6deg; } to { rotate: 6deg; } }
350
+ @keyframes kwBurst { 0% { transform: scale(var(--s)); opacity: 1; } 40% { transform: scale(calc(var(--s) * 1.45)); opacity: .9; } 100% { transform: scale(.4); opacity: 0; } }
351
+ @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); } }
352
+ @media (prefers-reduced-motion: reduce) {
353
+ .kw *, .kw *::before, .kw *::after { animation: none !important; transition: none !important; }
354
+ }
355
+
356
+ /* ---------- Phones and small screens ---------- */
357
+ @media (max-width: 720px) {
358
+ .kw-stage { height: calc(100dvh - 56px); }
359
+ .kw-logo { width: 92%; }
360
+ .kw-subtitle { font-size: 14px; letter-spacing: .4em; }
361
+ .kw-tagline { font-size: 17px; }
362
+ .kw-play { height: 62px; font-size: 20px; }
363
+ .kw-boat { width: 110px; top: calc(var(--sky) - 40px); }
364
+ .kw-hud { gap: 8px; top: 8px; }
365
+ .kw-box { min-width: 88px; padding: 4px 10px 2px; } .kw-box b { font-size: 24px; }
366
+ .kw-progress li { width: 11px; height: 11px; }
367
+ .kw-card { top: calc(17% + 30px); padding: 14px 16px; }
368
+ .kw-prompt { font-size: 32px; }
369
+ .kw-answer input { font-size: 24px !important; }
370
+ .kw-leave { top: auto; bottom: 74px; }
371
+ .kw-status { font-size: 18px; }
372
+ .kw-clock { min-width: 120px; }
373
+ .kw-mode { grid-template-columns: 40px 1fr; } .kw-mode em { grid-column: 2; }
374
+ .kw-two { grid-template-columns: 1fr; }
375
+ .kw-zone, .kw-ruler span { display: none; }
376
+ .kw-corner.right { top: 12px; right: 12px; grid-auto-flow: column; }
377
+ }