BlueGit

timfa questward

Files

questward / client / ui / play.css

play.css

play.css 10.5 KiB Download Raw
1:root {
2 color-scheme: dark;
3 font-family: "Segoe UI", sans-serif;
4 background: #101216;
5 color: #e8e4d9;
6}
7
8html, body {
9 margin: 0;
10 height: 100%;
11 overflow: hidden;
12}
13
14#hud {
15 position: fixed;
16 z-index: 2;
17 top: 0;
18 left: 0;
19 right: 0;
20 display: flex;
21 gap: 1.25rem;
22 align-items: center;
23 padding: 0.5rem 0.75rem;
24 background: rgba(12, 14, 18, 0.82);
25}
26
27#overlay {
28 position: fixed;
29 inset: 0;
30 z-index: 3;
31 display: grid;
32 place-items: center;
33 background: #101216;
34}
35
36#overlay[hidden], #hud[hidden] {
37 display: none !important;
38}
39
40.panel {
41 width: min(420px, 92vw);
42 background: #1a1e26;
43 border: 1px solid #2c3340;
44 padding: 1.25rem;
45}
46
47label, .character-row {
48 display: flex;
49 gap: 0.5rem;
50 align-items: center;
51 margin: 0.5rem 0;
52}
53
54input, select, button {
55 font: inherit;
56 background: #101216;
57 color: inherit;
58 border: 1px solid #3a4250;
59 padding: 0.3rem 0.5rem;
60}
61
62button {
63 cursor: pointer;
64}
65
66.error { color: #f0a0a0; min-height: 1.2em; }
67.hint { color: #9aa3b2; font-size: 0.9rem; }
68a { color: #d4c48a; }
69
70#nametag {
71 position: fixed;
72 z-index: 4;
73 pointer-events: none;
74 transform: translate(-50%, -100%);
75 background: rgba(12, 14, 18, 0.88);
76 border: 1px solid #3a4250;
77 padding: 0.1rem 0.45rem;
78 font-size: 0.85rem;
79}
80
81#context-menu {
82 position: fixed;
83 z-index: 20;
84 min-width: 140px;
85 background: #161a22;
86 border: 1px solid #3a4250;
87 padding: 0.25rem;
88 display: flex;
89 flex-direction: column;
90 gap: 0.15rem;
91}
92
93#context-menu[hidden] {
94 display: none !important;
95}
96
97#context-menu button {
98 display: block;
99 width: 100%;
100 text-align: left;
101 background: transparent;
102 border: 0;
103 color: #e8ecf4;
104 padding: 0.35rem 0.55rem;
105 cursor: pointer;
106}
107
108#context-menu button:hover {
109 background: #2a3140;
110}
111
112#inspect-backdrop {
113 position: fixed;
114 inset: 0;
115 z-index: 6;
116 background: rgba(0, 0, 0, 0.45);
117}
118
119#inspect-modal {
120 position: fixed;
121 z-index: 7;
122 left: 50%;
123 top: 40%;
124 transform: translate(-50%, -50%);
125 width: min(360px, 92vw);
126 background: #161a22;
127 border: 1px solid #3a4250;
128 padding: 0.85rem 1rem 1rem;
129}
130
131#inspect-modal header {
132 display: flex;
133 align-items: center;
134 justify-content: space-between;
135 gap: 0.75rem;
136}
137
138#inspect-action {
139 display: flex;
140 flex-wrap: wrap;
141 gap: 0.4rem;
142 margin-top: 0.5rem;
143}
144
145#friends-panel {
146 position: fixed;
147 z-index: 5;
148 top: 48px;
149 right: 0.75rem;
150 width: min(280px, 92vw);
151 max-height: calc(100vh - 64px);
152 overflow: auto;
153 background: #1a1e26;
154 border: 1px solid #2c3340;
155 padding: 0.75rem;
156}
157
158#skills-panel {
159 position: fixed;
160 z-index: 5;
161 top: 50%;
162 left: 50%;
163 transform: translate(-50%, -50%);
164 width: min(520px, 94vw);
165 max-height: calc(100vh - 80px);
166 overflow: auto;
167 background: #1a1e26;
168 border: 1px solid #2c3340;
169 padding: 0.75rem;
170 box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
171}
172
173.skills-grid {
174 display: grid;
175 grid-template-columns: 1fr 1fr;
176 gap: 0.55rem 0.75rem;
177 margin: 0.5rem 0;
178}
179
180.skill-row {
181 display: flex;
182 gap: 0.55rem;
183 align-items: stretch;
184 min-width: 0;
185}
186
187.skill-icon {
188 flex: 0 0 36px;
189 width: 36px;
190 height: 36px;
191 border-radius: 6px;
192 background: #101216;
193 border: 1px solid #3a4250;
194}
195
196.skill-body {
197 flex: 1;
198 display: flex;
199 flex-direction: column;
200 justify-content: center;
201 gap: 0.25rem;
202 min-width: 0;
203}
204
205.skill-title {
206 font-size: 0.85rem;
207 line-height: 1.2;
208 white-space: nowrap;
209 overflow: hidden;
210 text-overflow: ellipsis;
211}
212
213.skill-xp-track {
214 height: 8px;
215 background: #101216;
216 border: 1px solid #3a4250;
217 border-radius: 4px;
218 overflow: hidden;
219}
220
221.skill-xp-fill {
222 height: 100%;
223 background: linear-gradient(90deg, #6a7a40, #d4c48a);
224 border-radius: 3px;
225 transition: width 0.25s ease-out;
226}
227
228#bag-panel, #bank-panel {
229 position: fixed;
230 z-index: 5;
231 top: 48px;
232 left: 0.75rem;
233 width: min(320px, 92vw);
234 max-height: calc(100vh - 64px);
235 overflow: auto;
236 background: #1a1e26;
237 border: 1px solid #2c3340;
238 padding: 0.75rem;
239}
240
241#bank-panel {
242 left: auto;
243 right: 0.75rem;
244 width: min(340px, 92vw);
245}
246
247#bank-panel header {
248 display: flex;
249 justify-content: space-between;
250 align-items: center;
251}
252
253.bank-tabs {
254 display: flex;
255 gap: 0.25rem;
256 margin: 0.4rem 0;
257}
258
259.bank-tab {
260 flex: 1;
261 font-size: 0.8rem;
262 padding: 0.3rem 0.4rem;
263}
264
265.bank-tab.active {
266 outline: 1px solid #d4c48a;
267}
268
269.item-grid {
270 display: grid;
271 grid-template-columns: repeat(8, 1fr);
272 gap: 0.25rem;
273 margin: 0.4rem 0;
274}
275
276.item-grid.equip {
277 grid-template-columns: repeat(3, 1fr);
278}
279
280.item-slot {
281 position: relative;
282 min-height: 36px;
283 padding: 0.15rem;
284 image-rendering: pixelated;
285}
286
287.item-slot img {
288 width: 100%;
289 height: 32px;
290 object-fit: contain;
291 image-rendering: pixelated;
292}
293
294.item-slot.selected {
295 outline: 2px solid #d4c48a;
296}
297
298.item-slot .qty {
299 position: absolute;
300 right: 2px;
301 bottom: 1px;
302 font-size: 0.7rem;
303}
304
305.bag-actions {
306 display: flex;
307 flex-wrap: wrap;
308 gap: 0.35rem;
309}
310
311.modal-backdrop {
312 position: fixed;
313 inset: 0;
314 z-index: 5;
315 background: rgba(8, 10, 14, 0.55);
316}
317
318#send-panel,
319#send-target-panel,
320#letter-panel,
321#transfer-panel,
322#write-cheque-panel {
323 position: fixed;
324 z-index: 6;
325 top: 50%;
326 left: 50%;
327 transform: translate(-50%, -50%);
328 width: min(380px, 92vw);
329 max-height: min(80vh, 640px);
330 overflow: auto;
331 background: #1a1e26;
332 border: 1px solid #2c3340;
333 padding: 0.85rem 1rem 1rem;
334}
335
336#craft-panel {
337 position: fixed;
338 z-index: 6;
339 top: 50%;
340 left: 50%;
341 transform: translate(-50%, -50%);
342 width: min(560px, 94vw);
343 max-height: min(85vh, 720px);
344 overflow: auto;
345 background: #1a1e26;
346 border: 1px solid #2c3340;
347 padding: 0.85rem 1rem 1rem;
348}
349
350#craft-panel header {
351 display: flex;
352 justify-content: space-between;
353 align-items: center;
354 margin-bottom: 0.5rem;
355}
356
357.craft-layout {
358 display: grid;
359 grid-template-columns: 1fr 1fr;
360 gap: 0.75rem;
361 align-items: start;
362}
363
364@media (max-width: 520px) {
365 .craft-layout {
366 grid-template-columns: 1fr;
367 }
368}
369
370.craft-recipe-grid {
371 display: grid;
372 grid-template-columns: repeat(3, 1fr);
373 gap: 0.35rem;
374}
375
376.craft-recipe-cell {
377 display: flex;
378 flex-direction: column;
379 align-items: center;
380 gap: 0.2rem;
381 padding: 0.35rem 0.25rem;
382 min-height: 72px;
383 background: #12151c;
384 border: 1px solid #2c3340;
385 cursor: pointer;
386}
387
388.craft-recipe-cell.selected {
389 outline: 2px solid #d4c48a;
390}
391
392.craft-recipe-cell img {
393 width: 32px;
394 height: 32px;
395 object-fit: contain;
396 image-rendering: pixelated;
397}
398
399.craft-recipe-name {
400 font-size: 0.72rem;
401 text-align: center;
402 line-height: 1.15;
403 word-break: break-word;
404}
405
406.craft-detail {
407 min-height: 160px;
408 padding: 0.35rem;
409 background: #12151c;
410 border: 1px solid #2c3340;
411}
412
413.craft-output {
414 display: flex;
415 flex-direction: column;
416 align-items: center;
417 gap: 0.25rem;
418 margin-bottom: 0.5rem;
419}
420
421.craft-output img {
422 width: 48px;
423 height: 48px;
424 object-fit: contain;
425 image-rendering: pixelated;
426}
427
428.craft-output h3 {
429 margin: 0;
430 font-size: 0.95rem;
431 text-align: center;
432}
433
434.craft-inputs {
435 list-style: none;
436 margin: 0 0 0.5rem;
437 padding: 0;
438}
439
440.craft-input-row {
441 display: flex;
442 align-items: center;
443 gap: 0.4rem;
444 margin-bottom: 0.35rem;
445 font-size: 0.85rem;
446}
447
448.craft-input-row.short {
449 color: #c07070;
450}
451
452.craft-input-row img {
453 width: 24px;
454 height: 24px;
455 object-fit: contain;
456 image-rendering: pixelated;
457}
458
459.craft-progress {
460 height: 8px;
461 margin: 0.4rem 0;
462 background: #0e1014;
463 border: 1px solid #2c3340;
464 border-radius: 2px;
465 overflow: hidden;
466}
467
468.craft-progress-fill {
469 height: 100%;
470 width: 0%;
471 background: linear-gradient(90deg, #6a7a40, #d4c48a);
472 transition: width 0.05s linear;
473}
474
475#craft-button {
476 width: 100%;
477 margin-top: 0.25rem;
478}
479
480#craft-button:disabled {
481 opacity: 0.45;
482}
483
484#send-target-panel {
485 z-index: 7;
486}
487
488#send-panel header,
489#send-target-panel header,
490#letter-panel header,
491#transfer-panel header,
492#write-cheque-panel header {
493 display: flex;
494 justify-content: space-between;
495 align-items: center;
496 gap: 0.5rem;
497 margin-bottom: 0.5rem;
498}
499
500#send-panel[hidden],
501#send-target-panel[hidden],
502#letter-panel[hidden],
503#transfer-panel[hidden],
504#write-cheque-panel[hidden],
505.modal-backdrop[hidden] {
506 display: none !important;
507}
508
509.send-item {
510 display: flex;
511 align-items: center;
512 gap: 0.75rem;
513 margin: 0.5rem 0;
514}
515
516.send-item img {
517 width: 48px;
518 height: 48px;
519 object-fit: contain;
520 image-rendering: pixelated;
521}
522
523.send-row {
524 display: flex;
525 flex-direction: column;
526 gap: 0.25rem;
527 margin: 0.5rem 0;
528 font-size: 0.9rem;
529}
530
531.send-target-row {
532 display: flex;
533 align-items: center;
534 gap: 0.65rem;
535 width: 100%;
536 text-align: left;
537 margin: 0.3rem 0;
538}
539
540.send-target-text {
541 display: flex;
542 flex-direction: column;
543 gap: 0.1rem;
544}
545
546.send-search {
547 display: flex;
548 flex-wrap: wrap;
549 gap: 0.35rem;
550 margin-top: 0.75rem;
551}
552
553.send-search input {
554 flex: 1 1 6rem;
555}
556
557.char-preview {
558 position: relative;
559 width: 36px;
560 height: 48px;
561 flex: 0 0 auto;
562 image-rendering: pixelated;
563 background: #101216;
564 border: 1px solid #2c3340;
565}
566
567.char-preview img {
568 position: absolute;
569 inset: 0;
570 width: 100%;
571 height: 100%;
572 object-fit: contain;
573 image-rendering: pixelated;
574}
575
576#letter-body {
577 display: block;
578 width: 100%;
579 box-sizing: border-box;
580 margin: 0;
581 padding: 0;
582 border: none;
583 outline: none;
584 resize: none;
585 overflow: hidden;
586 background: transparent;
587 color: inherit;
588 font: inherit;
589 line-height: 1.45;
590 min-height: 8rem;
591 field-sizing: content;
592}
593
594.letter-paper {
595 background: #f4f0e4;
596 color: #1c1814;
597 padding: 1.25rem 1.35rem;
598 margin: 0.35rem 0 0.75rem;
599 max-height: min(55vh, 420px);
600 overflow-y: auto;
601 scrollbar-width: none;
602 -ms-overflow-style: none;
603 box-shadow: inset 0 0 0 1px rgba(40, 32, 24, 0.08);
604}
605
606.letter-paper::-webkit-scrollbar {
607 display: none;
608 width: 0;
609 height: 0;
610}
611
612.letter-signature {
613 margin: 1.35rem 0 0;
614 padding: 0;
615 border: none;
616 background: transparent;
617 white-space: pre-wrap;
618 font: inherit;
619 color: inherit;
620 line-height: 1.45;
621}
622
623#friends-panel h2, #friends-panel h3 {
624 margin: 0.4rem 0;
625 font-size: 0.95rem;
626}
627
628.social-row {
629 display: flex;
630 flex-wrap: wrap;
631 gap: 0.35rem;
632 align-items: center;
633 margin: 0.35rem 0;
634}
635
636#inspect-modal[hidden],
637#inspect-backdrop[hidden],
638#friends-panel[hidden],
639#skills-panel[hidden],
640#bag-panel[hidden],
641#bank-panel[hidden],
642#craft-panel[hidden],
643#craft-backdrop[hidden],
644#nametag[hidden],
645#chat-bar[hidden] {
646 display: none !important;
647}
648
649#chat-bar {
650 position: fixed;
651 z-index: 5;
652 left: 50%;
653 bottom: 1.25rem;
654 transform: translateX(-50%);
655 width: min(640px, calc(100vw - 2rem));
656}
657
658#chat-bar input {
659 width: 100%;
660 box-sizing: border-box;
661 padding: 0.55rem 0.75rem;
662 background: rgba(12, 14, 18, 0.92);
663}
664
665.chat-bubble {
666 position: fixed;
667 z-index: 4;
668 pointer-events: none;
669 transform: translate(-50%, -100%);
670 max-width: min(280px, 70vw);
671 background: rgba(16, 18, 24, 0.92);
672 border: 1px solid #3a4250;
673 border-radius: 8px;
674 padding: 0.3rem 0.55rem;
675 font-size: 0.9rem;
676 line-height: 1.25;
677 white-space: pre-wrap;
678 word-break: break-word;
679}
680
681.chat-bubble[hidden] {
682 display: none !important;
683}