-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
371 lines (360 loc) · 26.5 KB
/
Copy pathstyles.css
File metadata and controls
371 lines (360 loc) · 26.5 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
:root {
--ink: #172033;
--muted: #5c6b7f;
--panel: rgba(255, 255, 255, 0.88);
--line: rgba(23, 32, 51, 0.12);
--green: #19b893;
--blue: #3d6df6;
--pink: #ef5d88;
--yellow: #ffc94d;
--violet: #7b61ff;
--shadow: 0 24px 70px rgba(31, 48, 78, 0.16);
}
* { box-sizing: border-box; }
.loading-screen {
position: fixed;
inset: 0;
z-index: 9999;
display: grid;
place-items: center;
background: linear-gradient(135deg, #edf6ff 0%, #f8fff2 100%);
transition: opacity 0.35s ease, visibility 0.35s ease;
}
.loading-screen img {
width: min(38vw, 150px);
aspect-ratio: 1;
border-radius: 34px;
box-shadow: 0 26px 70px rgba(31, 48, 78, 0.22);
animation: logoPulse 0.9s ease-in-out infinite alternate;
}
.loading-screen.hide {
opacity: 0;
visibility: hidden;
pointer-events: none;
}
@keyframes logoPulse {
from { transform: scale(0.96); }
to { transform: scale(1.04); }
}
body {
margin: 0;
min-height: 100vh;
color: var(--ink);
background:
linear-gradient(120deg, rgba(61, 109, 246, 0.14), rgba(25, 184, 147, 0.14)),
linear-gradient(135deg, #f5fbff 0%, #fff7dc 48%, #f1fff8 100%);
font-family: "Trebuchet MS", "Noto Sans Devanagari", system-ui, sans-serif;
}
button, select, input { font: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 4px solid rgba(61, 109, 246, 0.28); outline-offset: 3px; }
.app-shell { width: min(1220px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 36px; }
.top-header { display: flex; align-items: center; justify-content: center; padding: 8px 0 18px; }
.brand-lockup { display: flex; align-items: center; gap: 16px; padding: 12px 18px; border: 1px solid rgba(255,255,255,0.7); border-radius: 24px; background: rgba(255,255,255,0.54); box-shadow: 0 16px 45px rgba(31,48,78,0.12); }
.logo-mark { display: grid; place-items: center; width: clamp(70px, 10vw, 96px); aspect-ratio: 1; border-radius: 24px; background: linear-gradient(135deg, #3d6df6, #19b893); box-shadow: 0 18px 35px rgba(61,109,246,0.24); }
.logo-mark img { width: 88%; height: 88%; display: block; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 4.7rem); line-height: 0.95; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1; }
.control-bar, .game-status, .progress-map, .game-stage {
background: var(--panel);
border: 1px solid rgba(255, 255, 255, 0.76);
box-shadow: var(--shadow);
border-radius: 18px;
}
.control-bar { display: grid; grid-template-columns: minmax(170px, 1fr) auto auto; gap: 12px; align-items: end; padding: 14px; }
.field { display: grid; gap: 6px; min-width: min(100%, 220px); color: var(--muted); font-weight: 900; }
select, .typing-input { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 14px; color: var(--ink); background: white; font-weight: 900; }
.toggle-field, .stat-pill { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px; border-radius: 14px; font-weight: 900; }
.toggle-field { border: 2px solid rgba(25, 184, 147, 0.22); background: #eafff9; }
.audio-button { cursor: pointer; color: var(--ink); }
.audio-button[aria-pressed="true"] { border-color: rgba(25, 184, 147, 0.7); background: #dffff5; }
.audio-check { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 900; }
.stat-pill { border: 2px solid rgba(255, 201, 77, 0.4); background: #fff5c8; }
.stat-pill strong { font-size: 1.6rem; }
.game-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.tab { min-height: 62px; border: 2px solid rgba(255,255,255,0.74); border-radius: 18px; background: white; color: var(--ink); box-shadow: 0 12px 28px rgba(31, 48, 78, 0.1); font-weight: 900; cursor: pointer; transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.tab.nepali, .nepali-text { font-family: "Noto Sans Devanagari", system-ui, sans-serif; }
.tab.active { border-color: rgba(25, 184, 147, 0.78); background: linear-gradient(135deg, #eafff9, #ffffff); box-shadow: 0 16px 34px rgba(25, 184, 147, 0.22); }
.game-status { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; padding: 14px; }
.game-status article { display: grid; gap: 4px; min-height: 82px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #ffffff, #f7fbff); border: 1px solid var(--line); }
.game-status span { color: var(--muted); font-weight: 900; }
.game-status strong { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
.progress-map { margin-bottom: 16px; padding: 14px; }
.map-nodes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; }
.map-node { display: grid; place-items: center; min-height: 42px; border-radius: 14px; background: white; border: 2px solid var(--line); font-weight: 900; color: var(--muted); }
.map-node.done { background: #eafff9; border-color: #95e1d2; color: #126b5b; }
.map-node.current { background: #fff3bf; border-color: var(--yellow); color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 201, 77, 0.25); }
.game-stage { min-height: 560px; padding: 24px; }
.game-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.skill-label { margin: 0 0 8px; color: #126b5b; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.round-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: end; }
.round-stats span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 14px; background: #eef4ff; color: #264bb7; font-weight: 900; }
.game-instructions { margin: 8px 0 22px; color: var(--muted); font-size: 1.08rem; font-weight: 900; }
.game-board { min-height: 260px; width: 100%; }
.memory-grid, .focus-grid, .match-grid, .shape-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(58px, 1fr)); gap: 12px; width: min(100%, 820px); margin-inline: auto; }
.card, .tile, .match-card, .shape-tile { display: grid; place-items: center; aspect-ratio: 1; min-height: 58px; border: 2px solid var(--line); border-radius: 18px; background: white; color: var(--ink); font-size: clamp(0.95rem, 2.4vw, 1.75rem); font-weight: 900; cursor: pointer; box-shadow: 0 12px 26px rgba(31, 48, 78, 0.11); transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease; text-align: center; padding: 8px; }
.card:hover, .tile:hover, .match-card:hover, .shape-tile:hover, .answer-button:hover, .letter:hover, .tab:hover, .primary-button:hover, .ghost-button:hover { transform: translateY(-3px); }
.card.hidden { background: linear-gradient(135deg, rgba(61, 109, 246, 0.94), rgba(25, 184, 147, 0.94)), repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(255,255,255,0.16) 9px, rgba(255,255,255,0.16) 18px); color: transparent; }
.card.matched, .match-card.selected, .match-card.matched { border-color: var(--green); background: #eafff9; }
.logic-panel, .quiz-panel, .word-panel, .typing-panel, .path-panel, .count-panel, .xo-panel, .sort-panel { display: grid; gap: 18px; }
.sequence, .answer-row, .letter-bank, .word-slots, .sort-slots, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seq-item { display: grid; place-items: center; min-width: 82px; height: 82px; padding: 0 10px; border-radius: 18px; background: white; border: 2px solid var(--line); box-shadow: 0 12px 26px rgba(31, 48, 78, 0.1); font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 900; }
.answer-button, .primary-button, .ghost-button { min-height: 50px; border-radius: 14px; border: 2px solid transparent; padding: 0 18px; font-weight: 900; cursor: pointer; }
.answer-button { background: white; border-color: var(--line); min-width: 86px; box-shadow: 0 8px 18px rgba(31, 48, 78, 0.08); }
.answer-button.correct, .shape-tile.correct { border-color: var(--green); background: #eafff9; }
.answer-button.wrong, .match-card.wrong, .shape-tile.wrong { border-color: var(--pink); background: #fff0f5; }
.focus-grid .target { border-color: var(--yellow); background: #fff7d6; }
.question-text { margin: 0; font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 900; color: #24395a; overflow-wrap: anywhere; }
.small-question { font-size: clamp(1.8rem, 4vw, 3rem); }
.letter { min-width: 58px; height: 58px; padding: 0 12px; border-radius: 14px; border: 2px solid var(--line); background: white; font-size: 1.5rem; font-weight: 900; cursor: pointer; }
.slot { display: grid; place-items: center; min-width: 58px; min-height: 58px; padding: 8px 10px; border: 2px dashed #9fb1c1; border-radius: 14px; color: var(--blue); background: #f7fbff; font-size: 1.25rem; font-weight: 900; }
.typing-input { max-width: 560px; font-size: 1.2rem; }
.actions { margin-top: 22px; }
.primary-button { background: linear-gradient(135deg, var(--green), #14a6c7); color: white; box-shadow: 0 12px 28px rgba(25,184,147,0.24); }
.ghost-button { background: white; color: var(--ink); border-color: var(--line); }
.feedback { min-height: 30px; margin: 16px 0 0; font-size: 1.15rem; font-weight: 900; color: #126b5b; }
.color-word { display: inline-grid; place-items: center; min-height: 128px; width: min(100%, 460px); border-radius: 18px; background: white; border: 3px solid var(--line); box-shadow: 0 14px 30px rgba(31, 48, 78, 0.12); text-transform: uppercase; }
.shape-tile { gap: 7px; align-content: center; font-size: 0.9rem; }
.shape-tile.red { background: #ffe8ee; } .shape-tile.blue { background: #eaf0ff; } .shape-tile.green { background: #eafff5; }
.shape-tile.yellow { background: #fff6cf; } .shape-tile.purple { background: #f0eaff; } .shape-tile.orange { background: #fff0df; }
.shape-icon { width: 36px; height: 36px; display: block; background: currentColor; }
.shape-icon.circle { border-radius: 50%; }
.shape-icon.square { border-radius: 8px; }
.shape-icon.triangle { width: 0; height: 0; background: transparent; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid currentColor; }
.shape-icon.star { clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.shape-icon.diamond { transform: rotate(45deg); border-radius: 7px; }
.shape-icon.heart { clip-path: path("M18 32 C3 20 6 4 18 8 C30 4 33 20 18 32 Z"); }
.path-panel { justify-items: center; }
.path-grid { display: grid; grid-template-columns: repeat(var(--path-size), minmax(50px, 78px)); gap: 10px; }
.path-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: #f7fbff; border: 2px solid var(--line); font-weight: 900; }
.path-cell.rock { background: #e8edf5; color: #6a7788; }
.path-cell.treasure { background: #fff3bf; color: #8a6100; }
.path-cell.player { background: #eafff9; color: #126b5b; border-color: var(--green); }
.path-controls { display: grid; grid-template-columns: repeat(3, 64px); grid-template-areas: ". up ." "left . right" ". down ."; gap: 10px; justify-content: center; margin-top: 14px; }
.path-controls .up { grid-area: up; }
.path-controls .left { grid-area: left; }
.path-controls .right { grid-area: right; }
.path-controls .down { grid-area: down; }
.path-controls .answer-button { min-width: 64px; min-height: 60px; padding: 0; font-size: 1.6rem; }
.xo-panel { justify-items: center; }
.xo-board {
display: grid;
grid-template-columns: repeat(3, minmax(72px, 116px));
gap: 12px;
}
.xo-cell {
display: grid;
place-items: center;
aspect-ratio: 1;
border: 3px solid var(--line);
border-radius: 22px;
background: #ffffff;
color: var(--ink);
font-size: clamp(2rem, 7vw, 4rem);
font-weight: 900;
cursor: pointer;
box-shadow: 0 12px 26px rgba(31, 48, 78, 0.11);
}
.xo-cell.x { color: var(--blue); background: #eef4ff; }
.xo-cell.o { color: var(--pink); background: #fff0f5; }
.sort-panel { justify-items: center; }
.sort-slots { justify-content: center; }
.count-cloud { display: grid; grid-template-columns: repeat(6, minmax(54px, 1fr)); gap: 10px; max-width: 620px; }
.count-cloud span { display: grid; place-items: center; min-height: 54px; border-radius: 16px; background: white; border: 2px solid var(--line); font-weight: 900; box-shadow: 0 8px 18px rgba(31,48,78,0.08); }
.audio-player { display: none; }
.reward-toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; transform: translateY(18px) scale(0.95); opacity: 0; pointer-events: none; padding: 14px 18px; border-radius: 16px; background: #253044; color: white; box-shadow: var(--shadow); font-weight: 900; transition: opacity 0.2s ease, transform 0.2s ease; }
.reward-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.answer-button.correct, .letter:disabled, .match-card.matched { animation: pop 0.22s ease; }
@keyframes pop { 50% { transform: scale(1.05); } }
@media (max-width: 980px) {
.control-bar, .game-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.memory-grid, .focus-grid, .match-grid, .shape-grid { width: 100%; }
}
@media (max-width: 820px) {
.brand-lockup { width: 100%; justify-content: center; }
.game-header { display: grid; grid-template-columns: 1fr; }
.round-stats { justify-content: start; }
}
@media (max-width: 560px) {
.app-shell { width: min(100% - 20px, 1180px); padding-top: 12px; }
.brand-lockup { display: grid; justify-items: center; text-align: center; }
.control-bar, .game-status, .game-tabs, .map-nodes { grid-template-columns: 1fr; }
.memory-grid, .focus-grid, .match-grid, .shape-grid { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
.game-stage { padding: 16px; }
.memory-grid, .focus-grid, .match-grid, .shape-grid { gap: 8px; }
.seq-item { min-width: 62px; height: 62px; }
.path-grid, .count-cloud { grid-template-columns: repeat(4, minmax(48px, 1fr)); }
.xo-board { grid-template-columns: repeat(3, minmax(72px, 1fr)); width: 100%; }
.path-controls { grid-template-columns: repeat(3, 58px); }
.reward-toast { left: 10px; right: 10px; bottom: 10px; text-align: center; }
}
.tab {
display: grid;
grid-template-columns: 48px 1fr;
align-items: center;
gap: 10px;
text-align: left;
padding: 8px 12px;
}
.tab::before {
content: attr(data-icon);
display: grid;
place-items: center;
width: 42px;
height: 42px;
border-radius: 14px;
background: linear-gradient(135deg, #eef4ff, #eafff9);
border: 2px solid rgba(23, 32, 51, 0.1);
color: #20355a;
font-size: 0.78rem;
font-weight: 900;
box-shadow: inset 0 -8px 16px rgba(61, 109, 246, 0.08), 0 8px 18px rgba(31, 48, 78, 0.08);
}
.tab[data-game="memory"]::before { content: "2x"; background: linear-gradient(135deg, #fff3bf, #eafff9); }
.tab[data-game="logic"]::before { content: "ABC"; background: linear-gradient(135deg, #eef4ff, #f0eaff); }
.tab[data-game="attention"]::before { content: "EYE"; background: linear-gradient(135deg, #eafff9, #fff3bf); }
.tab[data-game="math"]::before { content: "+-"; background: linear-gradient(135deg, #fff0f5, #fff3bf); }
.tab[data-game="tugOfWar"]::before { content: "PULL"; background: linear-gradient(135deg, #eef4ff, #fff0f5); }
.tab[data-game="codeBreaker"]::before { content: "#?"; background: linear-gradient(135deg, #f0eaff, #fff3bf); }
.tab[data-game="words"]::before { content: "ABC"; background: linear-gradient(135deg, #eafff9, #ffffff); }
.tab[data-game="science"]::before { content: "LAB"; background: linear-gradient(135deg, #eef4ff, #eafff9); }
.tab[data-game="typing"]::before { content: "KEY"; background: linear-gradient(135deg, #ffffff, #eef4ff); }
.tab[data-game="colorCode"]::before { content: "RGB"; background: linear-gradient(135deg, #fff0f5, #eafff9); }
.tab[data-game="storyOrder"]::before { content: "1-3"; background: linear-gradient(135deg, #fff3bf, #ffffff); }
.tab[data-game="shapeLab"]::before { content: "SH"; background: linear-gradient(135deg, #f0eaff, #eafff9); }
.tab[data-game="treasurePath"]::before { content: "MAP"; background: linear-gradient(135deg, #fff3bf, #eef4ff); }
.tab[data-game="quickCount"]::before { content: "123"; background: linear-gradient(135deg, #eafff9, #fff3bf); }
.tab[data-game="xoGame"]::before { content: "XO"; background: linear-gradient(135deg, #eef4ff, #fff0f5); }
.tab[data-game="numberSort"]::before { content: "1<9"; background: linear-gradient(135deg, #ffffff, #fff3bf); }
.tab.active::before { border-color: rgba(25, 184, 147, 0.55); transform: scale(1.04); }
.challenge-panel, .code-panel .quiz-panel { justify-items: start; }
.micro-copy { margin: 0; color: var(--muted); font-weight: 900; }
.mode-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mode-row .active { border-color: var(--green); background: #eafff9; }
.tug-panel { display: grid; gap: 18px; }
.tug-scoreboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.tug-scoreboard span { min-height: 42px; display: grid; place-items: center; border-radius: 14px; border: 2px solid var(--line); background: white; color: var(--muted); font-weight: 900; }
.tug-arena { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(280px, 560px) minmax(120px, 1fr); gap: 12px; align-items: center; }
.tug-side { display: grid; place-items: center; gap: 8px; min-height: 112px; border-radius: 16px; border: 2px solid var(--line); background: white; font-weight: 900; text-align: center; }
.tug-side.p1 { background: #eef4ff; color: #264bb7; }
.tug-side.p2 { background: #fff0f5; color: #bb3158; }
.tug-person { position: relative; width: 54px; height: 70px; display: block; }
.tug-person::before { content: ""; position: absolute; left: 16px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: currentColor; }
.tug-person::after { content: ""; position: absolute; left: 23px; top: 28px; width: 8px; height: 34px; border-radius: 8px; background: currentColor; box-shadow: -17px 14px 0 -1px currentColor, 17px 14px 0 -1px currentColor; }
.left-person { transform: rotate(-8deg); }
.right-person { transform: scaleX(-1) rotate(-8deg); }
.rope-track { position: relative; min-height: 88px; border-radius: 18px; background: linear-gradient(90deg, #eef4ff, #fff3bf 50%, #fff0f5); border: 2px solid var(--line); overflow: hidden; }
.rope-track::before { content: ""; position: absolute; left: 18px; right: 18px; top: 42px; height: 8px; border-radius: 999px; background: repeating-linear-gradient(90deg, #8b6a38, #8b6a38 12px, #c69c5c 12px, #c69c5c 24px); box-shadow: 0 3px 0 rgba(23, 32, 51, 0.14); }
.center-line, .win-line { position: absolute; top: 8px; transform: translateX(-50%); padding: 3px 7px; border-radius: 999px; background: white; border: 2px solid var(--line); font-size: 0.68rem; font-weight: 900; color: var(--muted); }
.center-line { left: 50%; color: #8a6100; border-color: rgba(255, 201, 77, 0.8); }
.left-win { left: 8%; color: #264bb7; }
.right-win { left: 92%; color: #bb3158; }
.rope-marker { position: absolute; top: 46px; left: calc(50% + (var(--rope) * 10%)); width: 42px; height: 42px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--yellow); border: 5px solid white; box-shadow: 0 8px 18px rgba(31, 48, 78, 0.2); transition: left 0.25s ease; }
.rope-knot { position: absolute; inset: 9px; border-radius: 50%; border: 4px solid rgba(23, 32, 51, 0.28); }
.tug-question.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.tug-player-panel { display: grid; gap: 12px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: white; box-shadow: 0 10px 24px rgba(31, 48, 78, 0.08); }
.tug-player-panel.player-1 { border-color: rgba(61, 109, 246, 0.28); background: #f7faff; }
.tug-player-panel.player-2 { border-color: rgba(239, 93, 136, 0.28); background: #fff8fb; }
.tug-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-weight: 900; }
.timer, .mistakes, .bot-status { display: inline-grid; place-items: center; min-height: 34px; padding: 0 10px; border-radius: 999px; background: #eef4ff; color: #264bb7; font-weight: 900; }
.timer.danger { background: #fff0f5; color: #bb3158; animation: pulseTimer 0.8s ease-in-out infinite alternate; }
.bot-panel .answer-row { min-height: 50px; }
@keyframes pulseTimer { from { transform: scale(1); } to { transform: scale(1.06); } }
.player-answer-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; width: 100%; }
.player-answer-row strong { min-width: 84px; color: var(--muted); }
.code-history { display: grid; gap: 8px; width: min(100%, 520px); }
.code-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; min-height: 46px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 14px; background: white; font-weight: 900; }
.code-row span { color: var(--muted); }
.code-input { letter-spacing: 0.18em; max-width: 260px; }
@media (max-width: 720px) {
.tug-scoreboard, .tug-arena, .tug-question.split { grid-template-columns: 1fr; }
.rope-track { order: -1; }
.player-answer-row { justify-content: start; }
.code-row { grid-template-columns: 1fr; }
}
.tug-side.p1, .tug-player-panel.player-1 { border-color: rgba(61, 109, 246, 0.5); background: linear-gradient(135deg, #eef4ff, #ffffff); color: #264bb7; }
.tug-side.p2, .tug-player-panel.player-2 { border-color: rgba(239, 93, 136, 0.5); background: linear-gradient(135deg, #fff0f5, #ffffff); color: #bb3158; }
.tug-side.active-side { box-shadow: 0 0 0 4px rgba(255, 201, 77, 0.35), 0 16px 32px rgba(31, 48, 78, 0.14); transform: translateY(-2px); }
.tug-player-panel.active-turn { box-shadow: 0 0 0 4px rgba(255, 201, 77, 0.28), 0 14px 34px rgba(31, 48, 78, 0.12); }
.tug-player-panel.waiting-turn { opacity: 0.72; }
.rope-track { background: linear-gradient(90deg, rgba(61,109,246,0.18), #fff3bf 50%, rgba(239,93,136,0.2)); }
.rope-track::before { background: linear-gradient(90deg, #3d6df6 0 45%, #8b6a38 45% 55%, #ef5d88 55% 100%); }
.rope-marker { left: calc(50% + (var(--rope) * 38%)); }
.rope-hand { position: absolute; top: 34px; width: 22px; height: 22px; border-radius: 50%; border: 4px solid white; z-index: 2; transition: left 0.25s ease; box-shadow: 0 8px 14px rgba(31, 48, 78, 0.18); }
.left-hand { left: calc(38% + (var(--rope) * 38%)); background: #3d6df6; }
.right-hand { left: calc(62% + (var(--rope) * 38%)); background: #ef5d88; }
.tug-scoreboard .p1-score { color: #264bb7; border-color: rgba(61, 109, 246, 0.36); background: #eef4ff; }
.tug-scoreboard .p2-score { color: #bb3158; border-color: rgba(239, 93, 136, 0.36); background: #fff0f5; }
.tug-winner { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; min-height: 230px; padding: 28px; border-radius: 18px; border: 3px solid var(--line); background: white; text-align: center; animation: winnerPop 0.55s ease both; }
.tug-winner h3 { margin: 0; font-size: clamp(2rem, 6vw, 4rem); line-height: 1; }
.tug-winner p { margin: 0; color: var(--muted); font-weight: 900; }
.tug-winner.blue-win { color: #264bb7; background: linear-gradient(135deg, #eef4ff, #ffffff); border-color: rgba(61, 109, 246, 0.45); }
.tug-winner.red-win { color: #bb3158; background: linear-gradient(135deg, #fff0f5, #ffffff); border-color: rgba(239, 93, 136, 0.45); }
.p1-won .left-person, .p2-won .right-person { animation: winnerDance 0.45s ease-in-out infinite alternate; }
@keyframes winnerPop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes winnerDance { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-8px) rotate(7deg); } }
.p2-won .right-person { animation-name: winnerDanceRight; }
@keyframes winnerDanceRight { from { transform: scaleX(-1) translateY(0) rotate(-8deg); } to { transform: scaleX(-1) translateY(-8px) rotate(7deg); } }
@media (max-width: 720px) {
.left-hand { left: calc(35% + (var(--rope) * 34%)); }
.right-hand { left: calc(65% + (var(--rope) * 34%)); }
}
.tug-side.active-side .tug-person { animation: pullingLean 0.7s ease-in-out infinite alternate; }
.tug-side.p1.active-side .tug-person { transform-origin: 50% 85%; }
.tug-side.p2.active-side .tug-person { transform-origin: 50% 85%; }
.tug-side.active-side strong { transform: scale(1.04); }
.rope-track::after { content: ""; position: absolute; left: 18px; right: 18px; top: 39px; height: 14px; border-radius: 999px; background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255,255,255,0.45) 14px 18px); opacity: 0.55; pointer-events: none; }
.rope-marker, .rope-hand { animation: ropeTension 0.55s ease-in-out infinite alternate; }
.tug-winner { position: relative; overflow: hidden; }
.tug-winner h3, .tug-winner p, .tug-winner button { position: relative; z-index: 2; }
.celebration-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.celebration-piece {
position: absolute;
left: calc(50% + var(--x));
bottom: -22px;
width: 12px;
height: 18px;
border-radius: 12px 12px 2px 12px;
background: #ffc94d;
opacity: 0;
transform: translateY(0) rotate(0deg);
animation: flyCelebration 2.8s ease-out infinite;
animation-delay: var(--delay);
}
.piece-0 { background: #ffc94d; border-radius: 50% 50% 4px 50%; }
.piece-1 { background: #19b893; width: 10px; height: 10px; border-radius: 50%; }
.piece-2 { background: #ef5d88; border-radius: 50% 4px 50% 50%; }
.piece-3 { background: #3d6df6; width: 8px; height: 20px; border-radius: 8px; }
.piece-4 { background: #ffffff; border: 2px solid rgba(23,32,51,0.12); }
.piece-5 { background: #7b61ff; width: 14px; height: 14px; border-radius: 4px; }
.blue-win .celebration-piece:nth-child(3n) { background: #3d6df6; }
.red-win .celebration-piece:nth-child(3n) { background: #ef5d88; }
.blue-win h3 { animation: winnerTitleBlue 0.7s ease-in-out infinite alternate; }
.red-win h3 { animation: winnerTitleRed 0.7s ease-in-out infinite alternate; }
@keyframes pullingLean {
from { transform: translateX(0) rotate(-8deg); }
to { transform: translateX(-5px) rotate(-15deg); }
}
.tug-side.p2.active-side .tug-person { animation-name: pullingLeanRight; }
@keyframes pullingLeanRight {
from { transform: scaleX(-1) translateX(0) rotate(-8deg); }
to { transform: scaleX(-1) translateX(-5px) rotate(-15deg); }
}
@keyframes ropeTension {
from { filter: saturate(1); }
to { filter: saturate(1.3) brightness(1.04); }
}
@keyframes flyCelebration {
0% { opacity: 0; transform: translateY(0) translateX(0) rotate(0deg) scale(0.65); }
12% { opacity: 1; }
72% { opacity: 1; }
100% { opacity: 0; transform: translateY(-245px) translateX(calc(var(--spin) * 70px)) rotate(calc(var(--spin) * 540deg)) scale(1.1); }
}
@keyframes winnerTitleBlue {
from { text-shadow: 0 0 0 rgba(61,109,246,0); transform: translateY(0); }
to { text-shadow: 0 14px 34px rgba(61,109,246,0.28); transform: translateY(-4px); }
}
@keyframes winnerTitleRed {
from { text-shadow: 0 0 0 rgba(239,93,136,0); transform: translateY(0); }
to { text-shadow: 0 14px 34px rgba(239,93,136,0.28); transform: translateY(-4px); }
}