Repository navigation
Expand file tree
/
Copy pathworld.css
More file actions
235 lines (215 loc) · 14.2 KB
/
Copy pathworld.css
File metadata and controls
235 lines (215 loc) · 14.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/* ============================================================================
* DEPRECATED — FACADE-FIRST SCENE STYLES (2026-09-15). See world/DEPRECATED.md
* and world/SIMULATION-DESIGN.md. Kept for reference; do not extend.
* ============================================================================ */
/* PROJECT ULTIMATE — living world scene (Cumulative Web Inc) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #03040a;
font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: #eaf2ff; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
#stage { position: fixed; inset: 0; z-index: 2; }
/* ---- Agents ---- */
.agent { position: absolute; transform: translate(-50%, -50%); cursor: pointer;
transition: left 1.2s ease, top 1.2s ease; }
.agent video { width: 118px; height: 118px; object-fit: cover; border-radius: 50%;
border: 2px solid rgba(120, 200, 255, .55); box-shadow: 0 0 22px rgba(90, 160, 255, .35);
background: #0a0f22; display: block; }
.agent .nameplate { position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
margin-top: 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
color: #cfe4ff; text-shadow: 0 0 8px rgba(80,150,255,.8); white-space: nowrap; }
.agent .badge { position: absolute; top: -6px; right: -6px; width: 30px; height: 30px;
border-radius: 50%; display: none; align-items: center; justify-content: center;
font-size: 16px; background: radial-gradient(circle at 30% 30%, #ffe9a8, #f5a623);
box-shadow: 0 0 14px rgba(245, 200, 60, .9); }
/* expressions */
.agent.expr-idle { animation: floaty 6s ease-in-out infinite; }
.agent.expr-working video { animation: pulse 2.4s ease-in-out infinite; }
.agent.expr-celebrating { animation: bounce 1.1s ease-in-out infinite; }
.agent.expr-celebrating .badge { display: flex; }
.agent.expr-alert video { border-color: #ff5a5a; box-shadow: 0 0 26px rgba(255, 90, 90, .7); }
.agent .ring { position: absolute; left: 50%; top: 50%; width: 118px; height: 118px;
border-radius: 50%; border: 2px solid #ff6b6b; transform: translate(-50%, -50%) scale(.6);
opacity: 0; pointer-events: none; }
.agent.expr-alert .ring { animation: ringx 1.8s ease-out infinite; }
@keyframes floaty { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 18px rgba(90,180,255,.4);} 50% { box-shadow: 0 0 34px rgba(90,180,255,.85);} }
@keyframes bounce { 0%,100% { margin-top: 0; } 40% { margin-top: -26px; } }
@keyframes ringx { 0% { transform: translate(-50%,-50%) scale(.6); opacity: .9; }
100% { transform: translate(-50%,-50%) scale(1.9); opacity: 0; } }
/* ---- Guests ---- */
.guest { position: absolute; transform: translate(-50%, -50%); text-align: center;
transition: left 1.2s ease, top 1.2s ease; }
.guest .orb { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto;
background: radial-gradient(circle at 35% 35%, #bfe3ff, #3a7bd5 70%, #1c3f7a);
box-shadow: 0 0 18px rgba(120, 190, 255, .8); display: flex; align-items: center;
justify-content: center; font-weight: 700; font-size: 22px; color: #06122b;
animation: floaty 7s ease-in-out infinite; }
.guest .glabel { font-size: 10px; letter-spacing: .1em; color: #bcd6ff; margin-top: 5px;
text-shadow: 0 0 6px rgba(90,150,255,.9); }
/* ---- Panels ---- */
.panel { position: fixed; z-index: 10; background: rgba(6, 12, 30, .78); backdrop-filter: blur(8px);
border: 1px solid rgba(110, 170, 255, .25); border-radius: 12px; padding: 14px 16px;
max-width: 300px; font-size: 13px; line-height: 1.5; }
.panel h3 { font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
color: #9cc4ff; margin-bottom: 8px; }
#rules-panel { left: 16px; bottom: 16px; }
#rules-panel .rule { margin: 6px 0; padding-left: 14px; position: relative; }
#rules-panel .rule::before { content: "◆"; position: absolute; left: 0; color: #6eaaff; font-size: 10px; }
#rules-panel .incoming { color: #8fa3c7; font-style: italic; }
#owner-toggle { position: fixed; right: 16px; top: 16px; z-index: 12; background: rgba(6,12,30,.8);
border: 1px solid rgba(110,170,255,.35); color: #cfe4ff; border-radius: 8px;
padding: 8px 12px; font-size: 12px; letter-spacing: .1em; cursor: pointer; }
#owner-panel { right: 16px; top: 58px; max-height: 70vh; overflow-y: auto; display: none; width: 320px; }
#owner-panel.open { display: block; }
.ledger-entry { border-bottom: 1px solid rgba(110,170,255,.15); padding: 8px 0; }
.ledger-entry .actor { color: #ffd98a; font-weight: 600; }
.ledger-entry .action { color: #9cc4ff; }
.ledger-entry .detail { color: #d7e4fa; font-size: 12px; }
.ledger-entry .ts { color: #7186a8; font-size: 11px; }
/* ---- Status card ---- */
#status-card { position: fixed; z-index: 20; width: 300px; background: rgba(8, 14, 34, .95);
border: 1px solid rgba(120, 180, 255, .4); border-radius: 14px; padding: 16px;
box-shadow: 0 8px 40px rgba(0,0,0,.6); display: none; }
#status-card.open { display: block; }
#status-card .close { position: absolute; top: 8px; right: 12px; cursor: pointer;
color: #8fa3c7; font-size: 16px; }
#status-card h2 { font-size: 18px; color: #fff; text-transform: capitalize; }
#status-card .dept { font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
color: #9cc4ff; margin: 4px 0 10px; }
#status-card .row { margin: 8px 0; font-size: 13px; }
#status-card .row .k { color: #8fa3c7; font-size: 11px; letter-spacing: .1em;
text-transform: uppercase; display: block; margin-bottom: 2px; }
#status-card a { color: #8fc3ff; }
/* ---- Loading / error / empty states ---- */
.hidden { display: none !important; }
#loading { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
align-items: center; justify-content: center; gap: 18px; background: #03040a; }
#loading img { width: 84px; height: 84px; border-radius: 50%;
box-shadow: 0 0 30px rgba(255,255,255,.2); }
#loading .spin { width: 34px; height: 34px; border-radius: 50%;
border: 3px solid rgba(120,180,255,.2); border-top-color: #8fc3ff;
animation: spin 1s linear infinite; }
#loading p { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #9cc4ff; }
@keyframes spin { to { transform: rotate(360deg); } }
#error-banner { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 40;
background: rgba(60, 12, 18, .92); border: 1px solid rgba(255, 110, 110, .5);
color: #ffd7d7; border-radius: 10px; padding: 10px 18px; font-size: 12.5px;
text-align: center; line-height: 1.6; max-width: 90vw; }
#stage-empty { position: fixed; top: 40%; left: 50%; transform: translate(-50%, -50%); z-index: 5;
text-align: center; color: #8fa3c7; font-size: 14px; line-height: 1.8; letter-spacing: .04em;
text-shadow: 0 0 12px rgba(0,0,0,.8); pointer-events: none; }
/* ---- Brand ---- */
#watermark { position: fixed; right: 14px; bottom: 12px; z-index: 30; opacity: .85;
pointer-events: none; }
#watermark img { width: 44px; height: 44px; border-radius: 50%;
box-shadow: 0 0 12px rgba(255,255,255,.25); }
#kingcode { position: fixed; left: 16px; top: 14px; z-index: 10; font-size: 12px;
letter-spacing: .08em; color: #ffd98a; text-shadow: 0 0 10px rgba(245,200,60,.6);
background: rgba(6,12,30,.6); border: 1px solid rgba(245,200,60,.3);
padding: 6px 12px; border-radius: 20px; }
#world-clock { position: fixed; left: 16px; top: 52px; z-index: 10; font-size: 11px;
color: #8fa3c7; letter-spacing: .12em; }
@media (max-width: 720px) {
.agent video { width: 84px; height: 84px; }
.agent .ring { width: 84px; height: 84px; }
#rules-panel { max-width: 220px; font-size: 11px; }
#owner-panel { width: 260px; }
}
/* ---- Archipelago: camera ---- */
#camera { position: fixed; inset: 0; transform-origin: 0 0; will-change: transform; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#stage { position: absolute; inset: 0; }
/* ---- Island signage: glowing NAME + verbs ---- */
#island-signs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.island-sign { position: absolute; transform: translate(-50%, -100%); text-align: center;
pointer-events: auto; cursor: pointer; padding: 4px 10px; }
.island-sign .island-name { font-size: 15px; font-weight: 800; letter-spacing: .28em;
color: #fff; text-shadow: 0 0 10px var(--glow), 0 0 26px var(--glow); }
.island-sign .island-verbs { font-size: 10px; letter-spacing: .3em; color: var(--glow);
text-shadow: 0 0 8px var(--glow); margin-top: 3px; white-space: nowrap; }
.island-sign.hub-sign .island-name { font-size: 19px; }
.island-sign:hover .island-name, .island-sign:focus .island-name { text-decoration: underline; }
/* ---- KingCode: gold crown, hub only ---- */
#kingcode-node .crown { position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
width: 0; height: 0; pointer-events: none;
border-left: 26px solid transparent; border-right: 26px solid transparent;
border-bottom: 30px solid #ffd75e; filter: drop-shadow(0 0 10px rgba(255,215,94,.9)); }
#kingcode-node .crown::before { content: ""; position: absolute; left: -26px; top: 30px;
width: 52px; height: 9px; background: linear-gradient(90deg, #b8860b, #ffd75e, #b8860b);
border-radius: 4px; }
#kingcode-node .kc-avatar { width: 118px; height: 118px; object-fit: cover; border-radius: 50%;
border: 3px solid #ffd75e; box-shadow: 0 0 30px rgba(255,215,94,.75); background: #0a0f22; display: block; }
#kingcode-node .nameplate { color: #ffd98a; }
/* ---- Nav controls ---- */
#nav-controls { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
z-index: 12; display: flex; gap: 8px; }
#nav-controls button { width: 42px; height: 42px; border-radius: 50%; font-size: 18px;
background: rgba(6,12,30,.8); border: 1px solid rgba(110,170,255,.35); color: #cfe4ff;
cursor: pointer; }
#nav-controls button:hover { border-color: #8fc3ff; box-shadow: 0 0 12px rgba(120,180,255,.5); }
/* ---- Live activity feed ---- */
#feed-panel { position: fixed; right: 16px; top: 116px; z-index: 11; width: 300px;
max-height: 42vh; overflow-y: auto; background: rgba(6,12,30,.82); backdrop-filter: blur(8px);
border: 1px solid rgba(110,170,255,.25); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
#feed-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
#feed-header h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9cc4ff; }
#feed-toggle { background: none; border: 1px solid rgba(110,170,255,.35); color: #cfe4ff;
border-radius: 6px; width: 26px; height: 26px; cursor: pointer; }
#feed-panel.collapsed #feed-list { display: none; }
.feed-entry { border-bottom: 1px solid rgba(110,170,255,.15); padding: 7px 0; }
.feed-entry .actor { color: #ffd98a; font-weight: 600; }
.feed-entry .action { color: #9cc4ff; }
.feed-entry .detail { color: #d7e4fa; font-size: 12px; }
.feed-entry .ts, .win .ts { color: #7186a8; font-size: 11px; }
#feed-panel .incoming { color: #8fa3c7; font-style: italic; }
/* ---- Owner controls ---- */
.owner-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.owner-row input[type="range"] { flex: 1; accent-color: #ffd75e; }
#tod-label { font-size: 11px; color: #ffd98a; min-width: 34px; }
#tod-live, #follow-select { background: rgba(6,12,30,.8); border: 1px solid rgba(110,170,255,.35);
color: #cfe4ff; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
#follow-select { width: 100%; }
/* ---- Status card extras ---- */
.expr-tag { color: #ffd98a; }
.win { margin-top: 6px; padding: 6px 8px; background: rgba(20,34,64,.5);
border-left: 3px solid #ffd75e; border-radius: 0 8px 8px 0; font-size: 12px; }
/* ---- Island interior overlay ---- */
#interior-overlay { position: fixed; inset: 0; z-index: 30; display: flex;
align-items: center; justify-content: center; }
#interior-overlay .interior-walls { position: absolute; inset: 0;
background: radial-gradient(ellipse at 50% 30%, var(--land), #03040a 75%);
opacity: .96; }
.interior-card { position: relative; width: min(560px, 92vw); max-height: 86vh; overflow-y: auto;
background: rgba(5,9,24,.92); border: 1px solid var(--glow, #8fc3ff); border-radius: 18px;
padding: 26px 28px; box-shadow: 0 0 60px color-mix(in srgb, var(--glow, #8fc3ff) 35%, transparent);
animation: interiorIn .45s ease-out; }
@keyframes interiorIn { from { transform: translateY(24px) scale(.97); opacity: 0; }
to { transform: none; opacity: 1; } }
.interior-close { position: absolute; top: 12px; right: 14px; background: none; border: none;
color: #8fa3c7; font-size: 18px; cursor: pointer; }
.interior-logo { width: 52px; height: 52px; border-radius: 50%;
box-shadow: 0 0 16px rgba(255,255,255,.3); }
.interior-kicker { font-size: 10px; letter-spacing: .3em; color: #8fa3c7; margin: 10px 0 4px; }
.interior-card h2 { font-size: 30px; letter-spacing: .18em; color: #fff;
text-shadow: 0 0 14px var(--glow); }
.interior-verbs { font-size: 12px; letter-spacing: .3em; color: var(--glow); margin: 6px 0 14px;
text-shadow: 0 0 8px var(--glow); }
.interior-agent { display: flex; gap: 14px; align-items: center; margin: 10px 0;
padding: 10px; background: rgba(16,26,52,.6); border-radius: 12px; }
.interior-agent video { width: 86px; height: 86px; border-radius: 50%; object-fit: cover;
border: 2px solid var(--glow); }
.interior-agent-name { font-weight: 700; font-size: 15px; }
.interior-agent-role { font-size: 12px; color: #9cc4ff; margin-top: 4px; }
.interior-theme { font-size: 13.5px; color: #d7e4fa; line-height: 1.6; margin: 12px 0; }
.interior-stations { display: grid; gap: 8px; margin: 10px 0; }
.station { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: #cfe4ff;
background: rgba(14,22,46,.55); border-radius: 8px; padding: 8px 12px; }
.station-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow);
box-shadow: 0 0 8px var(--glow); flex-shrink: 0; transform: translateY(-1px); }
.interior-bridges { margin-top: 12px; font-size: 12px; }
.interior-bridges .k { color: #8fa3c7; letter-spacing: .15em; text-transform: uppercase;
font-size: 10px; display: block; margin-bottom: 6px; }
.bridge-link { background: rgba(20,34,64,.6); border: 1px solid rgba(110,170,255,.35);
color: #cfe4ff; border-radius: 16px; padding: 5px 12px; margin: 0 6px 6px 0; cursor: pointer;
font-size: 12px; }
.bridge-link:hover { border-color: #8fc3ff; }