-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
126 lines (115 loc) · 3.73 KB
/
Copy pathstyle.css
File metadata and controls
126 lines (115 loc) · 3.73 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
@import url("../../engine/game-shell.css");
/* ── Reset ─────────────────────────────────────────────── */
/* ── Void Sector: canvas a pantalla completa en móvil/PWA ── */
@media (pointer: coarse), (display-mode: standalone) {
#game-container {
padding: 0;
}
#back-btn {
top: calc(6px + env(safe-area-inset-top, 0px));
left: calc(6px + env(safe-area-inset-left, 0px));
z-index: 30;
padding: 0.4rem 0.75rem;
font-size: 0.8rem;
}
}
/* ── Mobile skill buttons ─────────────────────────────── */
#mobile-skills {
position: fixed;
bottom: calc(env(safe-area-inset-bottom, 0px) + 36px);
right: calc(env(safe-area-inset-right, 0px) + 10px);
z-index: 20;
display: flex;
flex-direction: column;
gap: 12px;
pointer-events: auto;
}
#mobile-skills.hidden { display: none; }
.skill-btn {
width: 56px;
height: 56px;
border-radius: 50%;
border: 2px solid rgba(0,255,255,0.5);
background: rgba(0,10,20,0.75);
color: #0ff;
font-size: 22px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
user-select: none;
transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
position: relative;
backdrop-filter: blur(4px);
}
.skill-btn.inactive {
border-color: rgba(255,255,255,0.15);
opacity: 0.4;
pointer-events: none;
}
.skill-btn.active {
border-color: var(--skill-color, #0ff);
box-shadow: 0 0 12px var(--skill-color, #0ff);
opacity: 1;
}
.skill-btn:active { transform: scale(0.92); }
.skill-btn.toggled-on {
border-color: var(--skill-color, #0ff);
box-shadow: 0 0 20px var(--skill-color, #0ff), 0 0 40px var(--skill-color, #0ff);
background: rgba(0,255,255,0.15);
}
.skill-btn .skill-label {
position: absolute;
bottom: 4px;
left: 50%;
transform: translateX(-50%);
font-family: 'Orbitron', monospace;
font-size: 7px;
color: rgba(255,255,255,0.45);
white-space: nowrap;
pointer-events: none;
line-height: 1;
}
/* ── Mobile joystick (left side) ─────────────────────── */
#mobile-joystick-zone {
position: fixed;
bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
left: calc(env(safe-area-inset-left, 0px) + 10px);
width: 120px;
height: 120px;
z-index: 20;
pointer-events: auto;
touch-action: none;
}
#mobile-joystick-zone.hidden { display: none; }
#mobile-joystick-base {
position: absolute;
width: 100px; height: 100px;
left: 10px; top: 10px;
border-radius: 50%;
border: 2px solid rgba(0,255,255,0.3);
background: rgba(0,20,40,0.4);
backdrop-filter: blur(4px);
}
#mobile-joystick-knob {
position: absolute;
width: 40px; height: 40px;
left: 30px; top: 30px;
border-radius: 50%;
background: rgba(0,255,255,0.6);
box-shadow: 0 0 12px rgba(0,255,255,0.6);
pointer-events: none;
}
/* ── Only show mobile controls on touch devices ───────── */
@media (hover: hover) and (pointer: fine) {
#mobile-skills { display: none !important; }
#mobile-joystick-zone { display: none !important; }
}
/* ── Very small screens ──────────────────────────────── */
@media (max-width: 380px) {
.skill-btn { width: 48px; height: 48px; font-size: 18px; }
#mobile-joystick-zone { width: 100px; height: 100px; }
#mobile-joystick-base { width: 80px; height: 80px; left: 10px; top: 10px; }
#mobile-joystick-knob { width: 32px; height: 32px; left: 24px; top: 24px; }
}