blob: 771009b76f4b859b3a6ca3ac9c6c7e59efacc0ce (
plain) (
blame)
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
|
/* XCOM-like Game Styles */
/* Optimized for both desktop and mobile */
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: #333;
color: #fff;
margin: 0;
padding: 0;
box-sizing: border-box;
overflow: hidden;
}
#gameContainer {
position: relative;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
canvas {
background: #222;
border: 1px solid #555;
max-width: 100vw;
max-height: 100vh;
display: block;
}
#actionButtons {
position: absolute;
top: 10px;
right: 10px;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 5px;
}
#endTurnBtn, #skipMovementBtn, #skipAttackBtn {
margin: 0;
padding: 8px 16px;
font-size: 14px;
cursor: pointer;
background: #4CAF50;
color: white;
border: none;
border-radius: 4px;
transition: background-color 0.3s;
white-space: nowrap;
}
#endTurnBtn:hover:not(:disabled) {
background: #45a049;
}
#endTurnBtn:disabled {
background: #666;
cursor: not-allowed;
}
#skipMovementBtn {
background: #2196F3;
}
#skipMovementBtn:hover:not(:disabled) {
background: #1976D2;
}
#skipMovementBtn:disabled {
background: #666;
cursor: not-allowed;
}
#skipAttackBtn {
background: #FF9800;
}
#skipAttackBtn:hover:not(:disabled) {
background: #F57C00;
}
#skipAttackBtn:disabled {
background: #666;
cursor: not-allowed;
}
/* Mobile optimizations */
@media (max-width: 768px) {
#endTurnBtn {
padding: 12px 20px;
font-size: 16px;
top: 5px;
right: 5px;
}
}
/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
#endTurnBtn {
min-height: 44px; /* iOS recommended minimum */
}
}
|