File size: 6,531 Bytes
17aced5
 
 
 
 
 
 
 
 
 
 
18e1208
 
17aced5
 
 
 
 
 
 
 
 
 
18e1208
17aced5
6360385
18e1208
 
6360385
 
17aced5
6360385
17aced5
6360385
18e1208
6360385
18e1208
6360385
18e1208
6360385
18e1208
6360385
 
18e1208
 
 
 
17aced5
18e1208
17aced5
18e1208
 
 
6360385
 
 
 
 
 
 
 
 
18e1208
17aced5
6360385
 
 
 
 
 
 
 
 
 
18e1208
6360385
18e1208
 
6360385
18e1208
 
6360385
 
 
 
 
 
18e1208
6360385
18e1208
6360385
17aced5
6360385
 
17aced5
18e1208
6360385
 
 
 
 
 
18e1208
6360385
 
 
 
18e1208
6360385
 
 
18e1208
 
 
 
 
 
 
 
 
17aced5
18e1208
 
 
 
 
 
17aced5
18e1208
 
 
 
17aced5
18e1208
 
 
 
 
 
 
17aced5
 
18e1208
 
 
 
17aced5
18e1208
 
 
 
 
 
 
17aced5
18e1208
 
 
 
 
17aced5
18e1208
 
 
17aced5
 
18e1208
 
 
 
 
17aced5
18e1208
17aced5
18e1208
 
 
 
 
 
 
 
 
17aced5
18e1208
 
 
 
 
17aced5
18e1208
 
 
 
 
 
 
 
17aced5
 
18e1208
 
 
17aced5
 
18e1208
 
17aced5
 
18e1208
 
 
17aced5
 
18e1208
 
 
 
17aced5
 
18e1208
 
 
6360385
 
18e1208
17aced5
18e1208
 
17aced5
18e1208
 
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
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #242836;
  --border: #2e3348;
  --text: #e4e6f0;
  --muted: #8b8fa8;
  --accent: #f97316;
  --accent2: #ef4444;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

section { padding: 1.5rem; max-width: 1000px; margin: 0 auto; }

.center-card {
  max-width: 440px;
  margin: 12vh auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.center-card h1 { font-size: 2rem; margin-bottom: 0.25rem; letter-spacing: -0.5px; }
.subtitle { color: var(--muted); margin-bottom: 1.25rem; }
.hint { color: var(--muted); font-size: 0.82rem; margin-top: 1rem; font-style: italic; }

/* Buttons */
.primary {
  background: linear-gradient(135deg, var(--accent), #ea580c);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.primary.big { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.primary:disabled { opacity: 0.5; cursor: default; }
.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(249,115,22,0.3); }

.secondary {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s;
}
.secondary:hover { border-color: var(--accent); color: var(--text); }
.small { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

.badge {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
}
.badge.warn { border-color: var(--warn); color: var(--warn); }

/* Robot list */
.robot-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.robot-btn {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 0.7rem 1rem; cursor: pointer; font-size: 0.95rem;
  transition: all 0.15s;
}
.robot-btn:hover { border-color: var(--accent); background: rgba(249,115,22,0.1); }
.muted { color: var(--muted); }
.error { color: var(--accent2); }

/* Header */
header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
header h1 { font-size: 1.4rem; }
.header-right { display: flex; align-items: center; gap: 0.5rem; }

/* Video */
.video-section { margin-bottom: 1rem; }
.video-container {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
}
.video-container video {
  width: 100%;
  display: block;
  max-height: 420px;
  object-fit: contain;
}

/* Flash */
.flash-overlay {
  position: absolute; inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s;
}
.flash-overlay.flash-active { opacity: 0.9; transition: opacity 0.04s; }

/* Countdown */
.countdown-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4);
  pointer-events: none;
}
#countdownNumber {
  font-size: 8rem; font-weight: 800;
  color: #fff; text-shadow: 0 0 40px rgba(249,115,22,0.8);
  letter-spacing: -4px;
}
#countdownNumber.pulse {
  animation: pulse 0.9s ease-out;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0; }
  40% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.9; }
}

/* Prompt bar */
.prompt-section { margin-bottom: 1.5rem; }
.prompt-row {
  display: flex; gap: 0.5rem; align-items: stretch;
}
.mic-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.1rem; min-width: 64px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); cursor: pointer; font-size: 0.72rem;
  transition: all 0.12s;
  user-select: none;
}
.mic-btn:hover { border-color: var(--accent); color: var(--text); }
.mic-btn .mic-icon { font-size: 1.4rem; }
.mic-btn.recording {
  background: var(--accent2); border-color: var(--accent2); color: #fff;
  animation: recpulse 1.2s infinite;
}
@keyframes recpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  50%     { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}

.prompt-input {
  flex: 1;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.8rem 1rem; color: var(--text); font-size: 1rem;
  transition: border-color 0.15s;
}
.prompt-input:focus { outline: none; border-color: var(--accent); }

/* Chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.6rem;
}
.chip {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); padding: 0.3rem 0.75rem; font-size: 0.82rem;
  cursor: pointer; transition: all 0.12s;
}
.chip:hover { border-color: var(--accent); color: var(--text); }

/* Status line */
.status-line {
  margin-top: 0.5rem; font-size: 0.85rem; min-height: 1.2em;
}
.status-line.error { color: var(--accent2); }

/* Reveal */
.reveal-section { margin-top: 1.5rem; }
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.img-box {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1;
}
.img-box img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; background: #000;
}
.img-box .label {
  position: absolute; top: 0.5rem; left: 0.5rem;
  background: rgba(0,0,0,0.6); padding: 0.15rem 0.5rem;
  border-radius: 4px; font-size: 0.75rem; color: #fff;
}
.download {
  position: absolute; bottom: 0.5rem; right: 0.5rem;
  background: var(--accent); color: #fff;
  padding: 0.35rem 0.8rem; border-radius: 6px;
  font-size: 0.85rem; text-decoration: none; font-weight: 500;
}

.reveal-actions {
  margin-top: 0.8rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* Footer */
footer {
  margin-top: 2rem; text-align: center;
  color: var(--muted); font-size: 0.82rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }