BlueGit

projects-timfalken-com meteors

Files

meteors / build / style.css

style.css

style.css 19.1 KiB Download Raw
1/* Meteors — responsive, portrait-friendly, no page scroll during play. */
2*, *::before, *::after { box-sizing: border-box; }
3
4html, body {
5 margin: 0;
6 padding: 0;
7 width: 100%;
8 height: 100%;
9 overflow: hidden;
10 background: #0b1020;
11 color: #e8eaf2;
12 font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
13 touch-action: none;
14 overscroll-behavior: none;
15 -webkit-user-select: none;
16 user-select: none;
17 -webkit-tap-highlight-color: transparent;
18}
19
20#stars {
21 position: fixed;
22 inset: 0;
23 pointer-events: none;
24 background:
25 radial-gradient(1px 1px at 12% 18%, #fff 0 50%, transparent 51%),
26 radial-gradient(1px 1px at 28% 72%, #cde 0 50%, transparent 51%),
27 radial-gradient(1.5px 1.5px at 47% 32%, #fff 0 50%, transparent 51%),
28 radial-gradient(1px 1px at 63% 81%, #bbd 0 50%, transparent 51%),
29 radial-gradient(1px 1px at 81% 22%, #fff 0 50%, transparent 51%),
30 radial-gradient(1.5px 1.5px at 91% 64%, #def 0 50%, transparent 51%),
31 radial-gradient(1px 1px at 8% 88%, #fff 0 50%, transparent 51%),
32 radial-gradient(2px 2px at 72% 48%, #89a 0 50%, transparent 51%),
33 linear-gradient(180deg, #0b1020 0%, #141a33 55%, #1a1440 100%);
34 z-index: 0;
35}
36
37.screen {
38 position: fixed;
39 inset: 0;
40 z-index: 5;
41 display: flex;
42 flex-direction: column;
43 align-items: center;
44 justify-content: center;
45 padding: 24px 20px;
46 text-align: center;
47}
48
49.screen[hidden], #hud[hidden], #game-over[hidden], #online-panel[hidden], #minis[hidden], #spectator[hidden], #podium[hidden], #flights[hidden], #flights-back[hidden], #planet-select[hidden], #offline-result[hidden], #offline-hud[hidden], #chain-indicator[hidden], #designer[hidden], #designer-edit[hidden] { display: none !important; }
50
51h1 {
52 font-size: clamp(48px, 14vw, 96px);
53 letter-spacing: 0.06em;
54 margin: 0 0 8px;
55 font-weight: 800;
56 background: linear-gradient(180deg, #fff6c8 0%, #ff9a3a 45%, #e85d3a 100%);
57 -webkit-background-clip: text;
58 background-clip: text;
59 color: transparent;
60 filter: drop-shadow(0 2px 12px rgba(232, 93, 58, 0.55));
61}
62
63.tagline {
64 margin: 0 0 28px;
65 font-size: clamp(15px, 3.6vw, 20px);
66 color: #c5cae0;
67 max-width: 28em;
68}
69
70#btn-play, #btn-planet-go {
71 appearance: none;
72 border: 0;
73 cursor: pointer;
74 font: inherit;
75 font-size: clamp(20px, 5vw, 28px);
76 font-weight: 700;
77 letter-spacing: 0.08em;
78 text-transform: uppercase;
79 color: #1a1020;
80 background: linear-gradient(180deg, #ffe27a, #f0c53a 40%, #e89a20);
81 padding: 14px 48px;
82 border-radius: 999px;
83 box-shadow:
84 0 0 0 3px rgba(255, 220, 120, 0.25),
85 0 8px 24px rgba(240, 197, 58, 0.45);
86 touch-action: manipulation;
87 min-height: 52px;
88 min-width: 200px;
89}
90
91#btn-play:is(:hover, :focus-visible), #btn-planet-go:is(:hover, :focus-visible) {
92 transform: translateY(-1px);
93 box-shadow:
94 0 0 0 3px rgba(255, 220, 120, 0.4),
95 0 10px 28px rgba(240, 197, 58, 0.6);
96}
97
98#btn-play:active, #btn-planet-go:active { transform: translateY(1px); }
99
100.last-score {
101 margin: 22px 0 0;
102 font-size: clamp(16px, 4vw, 22px);
103 color: #ffe27a;
104}
105
106.hint {
107 margin: 36px auto 0;
108 max-width: 32em;
109 font-size: clamp(13px, 3.2vw, 16px);
110 line-height: 1.45;
111 color: #8e95b3;
112}
113
114#hud {
115 position: fixed;
116 top: 0;
117 left: 0;
118 right: 0;
119 z-index: 4;
120 display: flex;
121 justify-content: space-between;
122 align-items: flex-start;
123 padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 4px;
124 pointer-events: none;
125 text-shadow: 0 1px 4px #000;
126 gap: 12px;
127}
128
129.hud-label {
130 font-size: 11px;
131 letter-spacing: 0.14em;
132 text-transform: uppercase;
133 color: #9aa3c2;
134}
135
136#score {
137 font-size: clamp(28px, 8vw, 42px);
138 font-weight: 800;
139 line-height: 1;
140 color: #fff6c8;
141}
142
143#planet-name {
144 font-weight: 700;
145 font-size: clamp(14px, 3.5vw, 18px);
146 text-align: right;
147}
148
149#planet-stats {
150 font-variant-numeric: tabular-nums;
151 font-size: clamp(11px, 2.8vw, 14px);
152 color: #b7bdd4;
153 text-align: right;
154 white-space: nowrap;
155}
156
157.overlay {
158 background: rgba(8, 10, 22, 0.78);
159 backdrop-filter: blur(6px);
160}
161
162.overlay h2 {
163 font-size: clamp(32px, 9vw, 56px);
164 margin: 0 0 8px;
165 color: #ffb0a0;
166}
167
168.go-score {
169 font-size: clamp(20px, 5vw, 28px);
170 color: #ffe27a;
171 margin-top: 18px;
172}
173
174/* Framework canvases sit on the body. Keep them above the starfield, below HUD. */
175canvas {
176 z-index: 2;
177 touch-action: none;
178 display: block;
179}
180
181/* Very narrow / short phones: shrink hints so the Play button stays on screen. */
182@media (max-height: 520px) {
183 .hint { display: none; }
184 h1 { font-size: 42px; }
185 #btn-play, #btn-planet-go { padding: 10px 36px; }
186}
187
188
189/* ---- Stage 2: online, lobby, miniatures, flights, podium ---- */
190
191#btn-online, .btn-secondary, a.button {
192 margin-top: 12px;
193 padding: 10px 36px;
194 font-size: clamp(16px, 4vw, 20px);
195 border: 1px solid #6a7394;
196 border-radius: 999px;
197 color: #e8eaf2;
198 background: linear-gradient(180deg, #2a3150, #1b2038);
199 cursor: pointer;
200 text-decoration: none;
201 display: inline-block;
202 font-family: inherit;
203}
204#btn-online:is(:hover, :focus-visible),
205.btn-secondary:is(:hover, :focus-visible),
206a.button:is(:hover, :focus-visible) {
207 border-color: #ffe27a;
208 color: #fff6c8;
209}
210#btn-create, #btn-join, #btn-ready, #btn-start, #btn-spectate,
211#btn-play, #btn-planet-go, #btn-designer-new, #btn-designer-save {
212 /* play already styled */
213}
214
215#btn-create, #btn-join, #btn-ready, #btn-start, #btn-spectate,
216#btn-designer-new, #btn-designer-save {
217 padding: 10px 28px;
218 font-size: clamp(16px, 4vw, 20px);
219 border: 0;
220 border-radius: 999px;
221 color: #1a1020;
222 background: linear-gradient(180deg, #ffe27a, #f0c53a 40%, #e89a20);
223 cursor: pointer;
224 font-weight: 700;
225 font-family: inherit;
226}
227#btn-start:disabled, #btn-ready:disabled {
228 opacity: 0.45;
229 cursor: default;
230}
231
232#online-panel h1 {
233 font-size: clamp(36px, 9vw, 64px);
234}
235#online-panel {
236 z-index: 5;
237 overflow: auto;
238 text-align: center;
239 padding: 16px 16px 24px;
240}
241#online-panel .who {
242 color: #c5cae0;
243 margin: 0 0 8px;
244}
245#online-lobby .tagline { margin-bottom: 8px; }
246#online-lobby .lobby-code { margin: 4px 0 6px; }
247#online-panel .notice {
248 max-width: 36em;
249 margin: 0 auto 16px;
250 text-align: left;
251 line-height: 1.45;
252 color: #c5cae0;
253}
254#online-panel code {
255 font-size: 0.92em;
256 color: #ffe27a;
257}
258#online-panel a { color: #9ec5ff; }
259.error {
260 color: #ffb0a0;
261 margin: 8px 0;
262}
263.notice {
264 background: rgba(20, 24, 48, 0.7);
265 border: 1px solid #3a4268;
266 border-radius: 12px;
267 padding: 14px 16px;
268}
269.join-form {
270 display: flex;
271 gap: 8px;
272 justify-content: center;
273 align-items: flex-end;
274 flex-wrap: wrap;
275 margin: 16px 0;
276}
277.join-form label {
278 display: flex;
279 flex-direction: column;
280 align-items: flex-start;
281 font-size: 13px;
282 color: #9aa3c2;
283}
284.join-form input {
285 font-size: 22px;
286 letter-spacing: 0.2em;
287 text-transform: uppercase;
288 width: 8em;
289 padding: 8px 10px;
290 border-radius: 8px;
291 border: 1px solid #6a7394;
292 background: #141a33;
293 color: #fff6c8;
294 font-family: inherit;
295 text-align: center;
296}
297.lobby-code {
298 font-size: clamp(22px, 6vw, 34px);
299 margin: 8px 0 16px;
300 color: #ffe27a;
301}
302.btn-tiny {
303 font-size: 13px;
304 padding: 4px 10px;
305 margin-left: 8px;
306 border-radius: 999px;
307 border: 1px solid #6a7394;
308 background: #1b2038;
309 color: #e8eaf2;
310 cursor: pointer;
311 font-family: inherit;
312 letter-spacing: 0;
313 vertical-align: middle;
314}
315.player-list {
316 list-style: none;
317 padding: 0;
318 margin: 0 auto 18px;
319 max-width: 22em;
320 text-align: left;
321}
322.player-list li {
323 display: flex;
324 justify-content: space-between;
325 padding: 8px 12px;
326 border-bottom: 1px solid #2a3150;
327 color: #e8eaf2;
328}
329.player-list .ready { color: #8eec9a; }
330.player-list .waiting { color: #8e95b3; }
331.player-list .you { font-weight: 700; }
332.lobby-actions {
333 display: flex;
334 gap: 10px;
335 justify-content: center;
336 flex-wrap: wrap;
337 margin-top: 12px;
338}
339
340#minis {
341 position: fixed;
342 top: 0;
343 left: 0;
344 right: 0;
345 z-index: 4;
346 display: flex;
347 gap: 10px;
348 justify-content: center;
349 align-items: flex-end;
350 flex-wrap: wrap;
351 padding: 6px 8px 0;
352 pointer-events: none;
353}
354#minis.sides {
355 inset: 0;
356 display: block;
357 padding: 0;
358 overflow: visible;
359 max-height: none;
360 gap: 0;
361}
362#minis.sides .mini {
363 position: absolute;
364 margin: 0;
365 min-width: 0;
366}
367#minis.sides .mini-name {
368 max-width: 100%;
369}
370.mini {
371 text-align: center;
372 color: #c5cae0;
373 font-size: 11px;
374 min-width: 72px;
375}
376.mini-name {
377 max-width: 90px;
378 overflow: hidden;
379 text-overflow: ellipsis;
380 white-space: nowrap;
381 font-weight: 700;
382}
383.mini-canvas {
384 display: block;
385 width: 80px;
386 height: 104px;
387 background: #0c1020;
388 border: 1px solid #2a3150;
389 border-radius: 4px;
390 image-rendering: pixelated;
391}
392.mini.eliminated { opacity: 0.45; }
393.mini.eliminated .mini-meta { color: #ffb0a0; }
394
395#flights {
396 position: fixed;
397 inset: 0;
398 z-index: 6;
399 pointer-events: none;
400 overflow: visible;
401}
402/* Enemy-to-enemy arcs: above the starfield and minis, but the field
403 rectangle is clipped out so they pass behind the player's field (t1125). */
404#flights-back {
405 position: fixed;
406 inset: 0;
407 z-index: 5;
408 pointer-events: none;
409 overflow: visible;
410}
411#flights .flight,
412#flights-back .flight {
413 position: fixed;
414 top: 0;
415 left: 0;
416 width: 40px;
417 height: 40px;
418 will-change: transform;
419 pointer-events: none;
420}
421
422#spectator h2, #podium h2 {
423 color: #ffe27a;
424}
425.podium-list {
426 list-style: none;
427 padding: 0;
428 margin: 16px auto;
429 max-width: 16em;
430 font-size: clamp(20px, 5vw, 28px);
431}
432.podium-list li {
433 padding: 6px 0;
434 color: #e8eaf2;
435}
436.podium-list li:first-child { color: #ffe27a; font-size: 1.2em; font-weight: 700; }
437.podium-list li:nth-child(2) { color: #d0d6ea; }
438.podium-list li:nth-child(3) { color: #e0a878; }
439
440@media (max-height: 520px) {
441 #online-panel .hint, #online-panel .tagline { display: block; }
442 .mini-canvas { width: 56px; height: 73px; }
443}
444
445/* Stage 3: planet (field) selection */
446#planet-select {
447 justify-content: flex-start;
448 overflow-y: auto;
449 touch-action: pan-y;
450 -webkit-overflow-scrolling: touch;
451 padding-top: 20px;
452 padding-bottom: 32px;
453}
454#planet-select h1 {
455 font-size: clamp(32px, 9vw, 64px);
456 margin-bottom: 4px;
457}
458#planet-select .tagline { margin-bottom: 16px; }
459.planet-grid {
460 display: grid;
461 grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
462 gap: 12px;
463 width: min(1000px, 100%);
464 margin: 0 auto 16px;
465 text-align: left;
466 touch-action: pan-y;
467}
468.planet-card {
469 appearance: none;
470 display: block;
471 width: 100%;
472 margin: 0;
473 padding: 12px 14px 10px;
474 border: 1px solid rgba(200, 210, 240, 0.16);
475 border-radius: 14px;
476 background: rgba(16, 20, 40, 0.72);
477 color: inherit;
478 font: inherit;
479 text-align: left;
480 cursor: pointer;
481 touch-action: manipulation;
482 transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
483}
484.planet-card:hover, .planet-card:focus-visible {
485 border-color: rgba(255, 226, 122, 0.55);
486 outline: none;
487}
488.planet-card.selected {
489 border-color: #ffe27a;
490 box-shadow: 0 0 0 2px rgba(255, 226, 122, 0.35), 0 8px 24px rgba(0,0,0,0.35);
491 background: rgba(40, 32, 16, 0.78);
492}
493.planet-card .planet-title {
494 font-size: 1.15rem;
495 font-weight: 700;
496 letter-spacing: 0.03em;
497 color: #fff6c8;
498}
499.planet-card .planet-people {
500 font-size: 0.85rem;
501 color: #8e95b3;
502 margin: 0 0 6px;
503}
504.planet-card .planet-nums {
505 font-variant-numeric: tabular-nums;
506 font-size: 0.78rem;
507 color: #c5cae0;
508 letter-spacing: 0.01em;
509 line-height: 1.35;
510 margin: 0 0 8px;
511}
512.planet-card .planet-swatches {
513 display: flex;
514 gap: 6px;
515 align-items: center;
516}
517.planet-card .planet-swatches img {
518 width: 26px;
519 height: 26px;
520 image-rendering: auto;
521 flex: 0 0 auto;
522}
523.planet-actions {
524 display: flex;
525 gap: 12px;
526 flex-wrap: wrap;
527 justify-content: center;
528 margin-top: 8px;
529 flex-shrink: 0;
530}
531.planet-grid.compact {
532 grid-template-columns: repeat(4, minmax(0, 1fr));
533 gap: 8px;
534 width: min(920px, 92vw);
535 min-width: min(920px, 92vw);
536 max-height: none;
537 overflow: visible;
538 touch-action: pan-y;
539 margin-bottom: 10px;
540 align-self: center;
541}
542@media (max-width: 720px) {
543 .planet-grid.compact {
544 grid-template-columns: repeat(2, minmax(0, 1fr));
545 }
546}
547.planet-grid.compact .planet-card { padding: 6px 8px; }
548.planet-grid.compact .planet-title { font-size: 1rem; }
549.planet-grid.compact .planet-nums { font-size: 0.7rem; margin-bottom: 6px; }
550.planet-grid.compact .planet-swatches img { width: 20px; height: 20px; }
551.lobby-planet-label { margin: 8px 0 6px; }
552.player-list .planet-tag {
553 display: block;
554 font-size: 0.78rem;
555 font-weight: 500;
556 color: #9aa3c4;
557}
558#online-lobby {
559 overflow-y: auto;
560 touch-action: pan-y;
561 -webkit-overflow-scrolling: touch;
562 justify-content: flex-start;
563 padding-top: 8px;
564}
565@media (max-width: 520px) {
566 .planet-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
567 .planet-card .planet-nums { font-size: 0.68rem; }
568 .planet-card { padding: 10px 8px 8px; }
569}
570
571/* t1106: on-screen log for ?debug=drag */
572#drag-debug {
573 position: fixed;
574 left: 6px;
575 right: 6px;
576 bottom: 6px;
577 z-index: 50;
578 pointer-events: none;
579 background: rgba(8, 10, 22, 0.82);
580 color: #c6f6c8;
581 font: 11px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
582 padding: 8px 10px;
583 border-radius: 6px;
584 border: 1px solid #3a6;
585 white-space: pre-wrap;
586 word-break: break-word;
587 max-height: 28vh;
588 overflow: hidden;
589}
590
591
592/* ---- Offline Strijd (t1119), chain bonus (t1120), column warn (t1123) ---- */
593.hud-offline {
594 position: absolute;
595 left: 50%;
596 transform: translateX(-50%);
597 bottom: 6px;
598 font-size: 12px;
599 color: #c5cae0;
600 white-space: nowrap;
601 letter-spacing: 0.02em;
602 pointer-events: none;
603}
604.hud-sep { opacity: 0.55; margin: 0 0.25em; }
605#chain-indicator {
606 position: absolute;
607 left: 50%;
608 transform: translateX(-50%);
609 top: 100%;
610 margin-top: 4px;
611 color: #ffe27a;
612 font-weight: 700;
613 font-size: 14px;
614 text-shadow: 0 1px 4px #000;
615 pointer-events: none;
616 z-index: 5;
617}
618#offline-result h2 { color: #ffe27a; }
619#minis {
620 overflow: auto;
621 flex-wrap: wrap;
622}
623#minis.crowded .mini { min-width: 44px; }
624#minis.crowded .mini-canvas {
625 width: 56px;
626 height: 73px;
627}
628@media (max-width: 520px) {
629 .hud-offline { font-size: 11px; bottom: 4px; }
630}
631
632/* —— t1139 Planet Designer + account chrome —— */
633.menu-account {
634 margin-top: 1.2rem;
635 font-size: 0.9rem;
636 color: #c8c4d4;
637}
638.menu-account a { color: #ffe27a; }
639.menu-account a:hover { color: #fff; }
640#btn-designer {
641 display: block;
642 margin: 0.7rem auto 0;
643}
644#btn-designer[hidden] { display: none; }
645#menu-user[hidden], #menu-guest[hidden], #menu-local-login[hidden],
646#btn-designer-delete[hidden] { display: none; }
647.designer-card { cursor: default; text-align: left; }
648.designer-card-actions {
649 display: flex;
650 gap: 6px;
651 margin-top: 8px;
652 justify-content: center;
653}
654.btn-tiny {
655 font: inherit;
656 font-size: 0.85rem;
657 padding: 6px 10px;
658 border-radius: 8px;
659 border: 1px solid #5a5470;
660 background: #2a2540;
661 color: #eee;
662 cursor: pointer;
663 min-height: 36px;
664}
665.btn-tiny:hover, .btn-tiny:focus-visible { background: #3a3555; border-color: #ffe27a; }
666.btn-danger-lite { color: #ffb4b4; }
667.designer-form {
668 max-width: 28rem;
669 margin: 0 auto;
670 display: flex;
671 flex-direction: column;
672 gap: 0.7rem;
673 text-align: left;
674}
675.des-field { display: flex; flex-direction: column; gap: 4px; }
676.des-field > span:first-child { font-weight: 600; color: #ddd; }
677.des-field input[type="text"] {
678 font: inherit;
679 padding: 8px 10px;
680 border-radius: 8px;
681 border: 1px solid #5a5470;
682 background: #1a1628;
683 color: #fff;
684 min-height: 40px;
685}
686.des-slider input[type="range"] { width: 100%; min-height: 32px; }
687.des-val, .des-power {
688 font-variant-numeric: tabular-nums;
689 color: #ffe27a;
690 font-weight: 700;
691}
692.des-power {
693 font-size: 1.25rem;
694 text-align: center;
695 margin: 0.2rem 0;
696}
697.des-slots {
698 display: grid;
699 grid-template-columns: repeat(5, 1fr);
700 gap: 8px;
701}
702.des-slot {
703 font: inherit;
704 background: #1a1628;
705 border: 1px solid #5a5470;
706 border-radius: 10px;
707 padding: 8px 4px;
708 cursor: pointer;
709 color: #eee;
710 display: flex;
711 flex-direction: column;
712 align-items: center;
713 gap: 4px;
714 min-height: 88px;
715}
716.des-slot img { width: 48px; height: 48px; image-rendering: pixelated; }
717.des-slot span { font-size: 0.7rem; text-align: center; line-height: 1.15; }
718.des-slot:hover, .des-slot:focus-visible { border-color: #ffe27a; background: #2a2540; }
719.des-modal {
720 position: fixed;
721 inset: 0;
722 background: rgba(8, 6, 16, 0.78);
723 z-index: 40;
724 display: flex;
725 align-items: flex-start;
726 justify-content: center;
727 padding: 12px;
728 overflow: auto;
729}
730.des-modal[hidden] { display: none !important; }
731.des-modal-card {
732 background: #161226;
733 border: 1px solid #5a5470;
734 border-radius: 14px;
735 padding: 14px 14px 18px;
736 max-width: 56rem;
737 width: 100%;
738 margin: 1.5rem auto 3rem;
739 box-shadow: 0 12px 40px rgba(0,0,0,0.5);
740}
741.des-modal-head {
742 display: flex;
743 align-items: center;
744 justify-content: space-between;
745 gap: 12px;
746 margin-bottom: 12px;
747}
748.des-modal-head h2 { margin: 0; font-size: 1.2rem; }
749.des-block-grid {
750 display: grid;
751 grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
752 gap: 8px;
753}
754.des-block {
755 position: relative;
756 font: inherit;
757 background: #1a1628;
758 border: 1px solid #5a5470;
759 border-radius: 10px;
760 padding: 6px 4px 8px;
761 cursor: pointer;
762 color: #eee;
763 display: flex;
764 flex-direction: column;
765 align-items: center;
766 gap: 3px;
767 min-height: 92px;
768}
769.des-block img { width: 48px; height: 48px; image-rendering: pixelated; }
770.des-block-name {
771 font-size: 0.65rem;
772 text-align: center;
773 line-height: 1.15;
774 overflow: hidden;
775 text-overflow: ellipsis;
776 max-width: 100%;
777}
778.des-block:hover:not(:disabled), .des-block:focus-visible:not(:disabled) {
779 border-color: #ffe27a;
780 background: #2a2540;
781}
782.des-block.current { outline: 2px solid #ffe27a; }
783.des-block.used img, .des-block.locked img,
784.des-block.used .des-block-name, .des-block.locked .des-block-name {
785 opacity: 0.42;
786 filter: grayscale(1);
787}
788.des-block.used, .des-block.locked {
789 cursor: not-allowed;
790}
791.des-block-need {
792 font-size: 0.6rem;
793 color: #ffe27a;
794 opacity: 0.9;
795}
796.des-lock {
797 position: absolute;
798 top: 2px;
799 right: 2px;
800 width: 22px;
801 height: 22px;
802 display: flex;
803 align-items: center;
804 justify-content: center;
805 background: rgba(16, 12, 28, 0.92);
806 border-radius: 5px;
807 pointer-events: none;
808 z-index: 2;
809 box-shadow: 0 0 0 1px rgba(255, 226, 122, 0.35);
810}
811.des-lock svg { display: block; }
812.planet-card.custom { position: relative; }
813.planet-card .custom-badge {
814 position: absolute;
815 top: 6px;
816 right: 6px;
817 font-size: 0.65rem;
818 background: #3a2a10;
819 color: #ffe27a;
820 border: 1px solid #ffe27a;
821 border-radius: 999px;
822 padding: 1px 6px;
823 letter-spacing: 0.02em;
824}
825@media (max-width: 520px) {
826 .des-slots { grid-template-columns: repeat(5, 1fr); gap: 4px; }
827 .des-slot { min-height: 76px; padding: 4px 2px; }
828 .des-slot img, .des-block img { width: 36px; height: 36px; }
829 .des-block { min-height: 80px; }
830 .des-block-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
831 .des-field input[type="text"], .btn-tiny { min-height: 44px; }
832}
833
834#designer, #designer-edit {
835 justify-content: flex-start;
836 overflow-y: auto;
837 touch-action: pan-y;
838 -webkit-overflow-scrolling: touch;
839 padding-top: 16px;
840 padding-bottom: 40px;
841}
842#designer h1, #designer-edit h1 {
843 font-size: clamp(28px, 8vw, 56px);
844 margin-bottom: 6px;
845}
846#designer .tagline, #designer-edit .tagline { margin-bottom: 12px; }
847#designer-list {
848 width: min(1000px, 100%);
849 margin-bottom: 16px;
850}
851@media (max-width: 520px) {
852 #designer-edit .designer-form { gap: 0.45rem; }
853 .des-slots { margin-bottom: 8px; }
854 #designer-edit .planet-actions, #designer .planet-actions {
855 position: sticky;
856 bottom: 0;
857 padding-bottom: 8px;
858 background: linear-gradient(180deg, transparent, #0b1020 30%);
859 }
860}
861
862#designer-edit .hint, #designer .hint { margin: 8px auto 4px; }
863#designer-edit .designer-form { max-width: 26rem; }
864#designer-edit .planet-actions { margin-top: 12px; padding-bottom: 16px; }