File size: 7,728 Bytes
c92d4b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b225791
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c92d4b3
 
 
 
 
 
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
:root {
    --bg: #0b1020;
    --bg-2: #0e1530;
    --panel: #151a2e;
    --panel-2: #090d1c;
    --border: #262c45;
    --text: #f5f5f8;
    --muted: #a0a7c0;
    --accent: #6366f1;
    --ok: #22c55e;
    --err: #ef4444;
    --warn: #f59e0b;
}

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    background: radial-gradient(ellipse at top, var(--bg-2), var(--bg) 65%);
    color: var(--text);
    min-height: 100vh;
}
body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    font-feature-settings: "cv11", "ss03";
}

button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
button.primary { font-size: 15px; }
button.btn-block { display: block; width: 100%; padding: 12px; }
button:active { transform: translateY(1px); }

/* โ”€โ”€โ”€ Gate โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

.gate { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.gate-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px; width: 100%; text-align: center;
    box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6);
}
.big-emoji { font-size: 64px; margin-bottom: 12px; }
.gate-card h1 { font-size: 24px; margin: 0 0 12px; }
.gate-card p { color: var(--muted); margin: 0 0 16px; }

.robot-list { display: flex; flex-direction: column; gap: 8px; }
.row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-radius: 10px;
    border: 1px solid var(--border); background: transparent;
    cursor: pointer; text-align: left; color: inherit; font-family: inherit;
}
.row:hover { background: rgba(255,255,255,0.025); }
.row .emoji { font-size: 24px; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .meta { font-size: 11px; color: var(--muted); }
.row .chev { font-size: 20px; color: var(--muted); }

/* โ”€โ”€โ”€ Game โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

.game { max-width: 960px; margin: 0 auto; padding: 24px 18px 80px; }

.topbar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 16px; margin-bottom: 18px;
}
.brand { font-size: 18px; }
.brand b { font-weight: 700; margin: 0 4px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
    font-size: 12px; font-weight: 600;
    padding: 5px 10px; border-radius: 999px;
    background: var(--panel); border: 1px solid var(--border);
}
.pill.ghost { color: var(--muted); }

/* Status bar โ€” big, central, the user's primary feedback channel. */
.status {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 22px; margin-bottom: 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.status.ok   { border-color: var(--ok);   background: rgba(34,197,94,0.08); }
.status.err  { border-color: var(--err);  background: rgba(239,68,68,0.08); }
.status.warn { border-color: var(--warn); background: rgba(245,158,11,0.08); }
.status-icon { font-size: 32px; line-height: 1; }
.status-text { font-size: 17px; font-weight: 500; }

/* Groups โ€” head/body/antennas */
.group {
    margin-bottom: 22px;
    transition: opacity 0.2s;
}
.group.dim { opacity: 0.35; }
.group-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); margin-bottom: 10px;
}
.hint { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Cross layout for head tilts. */
.cross { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cross-row { display: flex; gap: 12px; align-items: center; justify-content: center; }
.cross-center {
    width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    background: var(--panel-2); border: 1px dashed var(--border);
    border-radius: 50%;
}

.row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* The lit-up tiles. Color comes from --c which the tile template sets
 * per-direction. Unlit state is a desaturated outline; lit state flashes
 * the tile in its color. */
.tile {
    --c: #6366f1;
    flex: 1 1 120px;
    max-width: 160px;
    min-height: 80px;
    display: flex; align-items: center; justify-content: center;
    padding: 14px 12px;
    background: var(--panel);
    border: 2px solid var(--border);
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.15s, transform 0.05s, background 0.15s;
    cursor: default;
    user-select: none;
}
.tile-label { white-space: nowrap; }

.tile.lit {
    animation: flash 0.45s ease-out;
    border-color: var(--c);
}
@keyframes flash {
    0%   { background: var(--c); color: #fff;        transform: scale(1.06); box-shadow: 0 0 30px var(--c); }
    60%  { background: var(--c); color: #fff;        transform: scale(1.03); box-shadow: 0 0 20px var(--c); }
    100% { background: var(--panel); color: var(--text); transform: scale(1.0); box-shadow: 0 0 0 transparent; }
}

/* โ”€โ”€โ”€ Leaderboard โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ */

.leaderboard {
    margin-top: 22px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.lb-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.lb-status { font-size: 12px; color: var(--muted); }
.lb-status.ok  { color: var(--ok); }
.lb-status.err { color: var(--err); }

.lb-list { list-style: none; padding: 0; margin: 0; }
.lb-row {
    display: grid;
    grid-template-columns: 32px 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
}
.lb-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.lb-row.lb-me { background: rgba(99,102,241,0.16); border: 1px solid rgba(99,102,241,0.5); }
.lb-rank {
    font-weight: 700;
    text-align: center;
    color: var(--muted);
}
.lb-rank.gold   { color: #fbbf24; }
.lb-rank.silver { color: #d1d5db; }
.lb-rank.bronze { color: #b45309; }
.lb-avatar, .lb-avatar-placeholder {
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
    background: var(--panel-2); border: 1px solid var(--border);
    object-fit: cover; overflow: hidden;
}
.lb-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.lb-score { font-weight: 700; }
.lb-empty {
    text-align: center;
    color: var(--muted);
    padding: 12px 0;
    font-size: 13px;
}
.lb-ellipsis {
    text-align: center;
    color: var(--muted);
    letter-spacing: 0.5em;
    padding: 4px 0;
}

@media (max-width: 640px) {
    .topbar { flex-direction: column; align-items: flex-start; }
    .tile { min-height: 64px; padding: 10px; font-size: 13px; }
    .cross-center { width: 72px; height: 72px; font-size: 28px; }
    .status-text { font-size: 15px; }
}