-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
118 lines (104 loc) · 4.91 KB
/
styles.css
File metadata and controls
118 lines (104 loc) · 4.91 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
:root {
--bg: #0b0f1a;
--bg-soft: #0f1524;
--bg-glass: rgba(255,255,255,0.04);
--text: #e6f0ff;
--muted: #a8b3c7;
--primary: #5ad6ff;
--accent: #a67cff;
--success: #5cffb7;
--danger: #ff6b6b;
--card-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: radial-gradient(1200px 600px at 10% -10%, #15203b, transparent),
radial-gradient(1000px 700px at 110% 10%, #1b0f2d, transparent),
linear-gradient(180deg, var(--bg), #060913 60%);
overflow: hidden;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .logo { font-size: 22px; }
.brand h1 { font-size: 18px; margin: 0; letter-spacing: 0.3px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.controls button, .controls select, .controls input[type="text"] {
background: var(--bg-soft);
border: 1px solid rgba(255,255,255,0.08);
color: var(--text);
padding: 8px 10px;
border-radius: 10px;
box-shadow: var(--card-shadow);
}
.controls .primary { background: linear-gradient(180deg, var(--accent), var(--primary)); color: #041018; font-weight: 700; }
.controls .toggle { display: inline-flex; gap: 6px; align-items: center; background: transparent; box-shadow: none; border: 0; }
.controls .seed { display: inline-flex; gap: 6px; align-items: center; }
.layout {
position: absolute;
top: var(--topbar-h, 56px);
right: 0;
bottom: var(--footer-h, 64px);
left: 0;
display: grid;
grid-template-columns: 320px 1fr 320px;
gap: 14px;
padding: 0 14px 14px 14px;
}
.panel { height: 100%; overflow: auto; padding: 4px 0; }
.panel .card {
background: var(--bg-glass);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 16px;
padding: 12px 14px;
margin-bottom: 14px;
box-shadow: var(--card-shadow);
}
.card h3 { margin: 8px 0 10px 0; font-size: 14px; color: var(--muted); letter-spacing: 0.25px; }
.stage { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.6) inset; }
#renderer-root { position: absolute; inset: 0; }
.minimap { position: absolute; left: 12px; bottom: 12px; width: 180px; height: 180px; border-radius: 12px; background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--card-shadow); display: none; }
.footer {
position: absolute; left: 0; right: 0; bottom: 0;
padding: 10px 16px; display: flex; justify-content: space-between; align-items: center;
background: linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
backdrop-filter: blur(6px);
}
.footer a { color: var(--primary); text-decoration: none; }
.footer .links { display: flex; gap: 12px; }
.footer .contact { font-size: 12px; color: var(--muted); }
.footer .contact a { color: var(--accent); }
dialog { border: 0; border-radius: 16px; padding: 0; background: var(--bg-soft); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
dialog article { padding: 12px 14px; }
dialog header { display: flex; justify-content: space-between; align-items: center; }
dialog header h2 { margin: 0; }
dialog header button { background: transparent; color: var(--text); border: 0; font-size: 18px; }
.touch-pad { position: absolute; right: 14px; bottom: 14px; width: 160px; height: 160px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 6px; opacity: 0.85; }
.touch-pad div { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
.touch-pad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.touch-pad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.touch-pad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.touch-pad [data-dir="down"] { grid-column: 2; grid-row: 3; }
.toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: 16px; background: rgba(0,0,0,0.6); padding: 10px 12px; border-radius: 10px; backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.toast.show { opacity: 1; }
ol#ui-leaderboard { margin: 0; padding-left: 18px; }
ol#ui-leaderboard li { padding: 2px 0; color: var(--muted); }
@media (max-width: 1200px) {
.layout { grid-template-columns: 280px 1fr 280px; }
}
@media (max-width: 980px) {
.layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
.panel.left, .panel.right { display: none; }
.touch-pad { display: grid; }
}