File size: 4,250 Bytes
02d39ab
 
 
 
 
 
 
f0f9b56
02d39ab
 
 
 
 
 
 
 
 
90ac787
 
0870307
 
 
90ac787
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0870307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f0f9b56
 
02d39ab
f0f9b56
02d39ab
 
f0f9b56
 
 
 
 
 
02d39ab
f0f9b56
 
 
02d39ab
 
f0f9b56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
02d39ab
 
 
f0f9b56
 
 
 
 
 
 
 
 
 
 
 
02d39ab
 
f0f9b56
02d39ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f0f9b56
02d39ab
f0f9b56
 
 
 
02d39ab
 
 
f0f9b56
 
 
 
 
02d39ab
 
 
f0f9b56
 
02d39ab
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
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #fff;
}

#renderDiv {
    width: 100%;
    height: 100%;
    position: relative;
}

/* --- Corner controls container --- */
#corner-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 210;
}

/* --- Multiplayer toggle --- */
#multiplayer-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

#multiplayer-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 200, 0, 0.3);
}

.mp-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.mp-off {
    font-size: 9px;
    color: rgba(255, 100, 100, 0.7);
    font-weight: 700;
}

.mp-on {
    font-size: 9px;
    color: rgba(100, 255, 100, 0.9);
    font-weight: 700;
}

/* --- Legend toggle button (always visible) --- */
#legend-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

#legend-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 255, 255, 0.3);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.2);
    color: rgba(0, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.toggle-title {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-style: italic;
}

/* --- Controls hint overlay --- */
#controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 200;
    max-width: 420px;
    width: 90%;
    transition: opacity 0.5s;
}

#controls-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.hint-title {
    text-align: center;
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(0, 255, 255, 0.7);
    margin-bottom: 10px;
    font-weight: 600;
}

.hint-grid {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 4px 8px;
    font-size: 12px;
    line-height: 1.6;
}

.hint-icon {
    text-align: center;
    font-size: 14px;
}

.hint-desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}

.hint-fade {
    text-align: center;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Attract mode overlay --- */
#attract-mode {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 300;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

#attract-mode.visible {
    opacity: 1;
}

#attract-text {
    font-size: clamp(28px, 7vw, 60px);
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.3);
    letter-spacing: 6px;
    font-weight: 300;
    animation: pulse 2.5s ease-in-out infinite;
}

#attract-sub {
    font-size: clamp(11px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
    letter-spacing: 3px;
    font-weight: 300;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}