-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
207 lines (195 loc) · 8.63 KB
/
Copy pathstyles.css
File metadata and controls
207 lines (195 loc) · 8.63 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
/* styles.css — custom mechanics layered on top of Tailwind (AeroFarm "Cozy Corporate"). */
html, body { height: 100%; }
.material-symbols-outlined {
font-family: "Material Symbols Outlined";
font-weight: normal; font-style: normal; line-height: 1;
letter-spacing: normal; text-transform: none; display: inline-block;
white-space: nowrap; direction: ltr;
font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.msym { font-family: "Material Symbols Outlined"; font-weight: normal; font-style: normal;
line-height: 1; display: inline-block; font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; }
.msym.fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
/* ---- spreadsheet grid ---- */
.gridwrap { position: relative; }
.colhead, .rowhead {
background: #eae8e3; border-right: 1px solid #c3c8bc; border-bottom: 1px solid #c3c8bc;
color: #43483f; font-family: "JetBrains Mono", monospace; font-size: 11px;
display: flex; align-items: center; justify-content: center; user-select: none;
}
.grid-canvas { display: grid; background: #c3c8bc; gap: 1px; }
.farm-cell {
background: #fff; display: flex; align-items: center; justify-content: center;
position: relative; cursor: pointer; transition: background .1s, transform .05s; overflow: hidden;
}
.farm-cell:hover { background: #f5f3ee; }
.farm-cell.dirt { background: #f4eee4; } /* faint soil — marks the farmable plot */
.farm-cell.tilled { background: #e6dcc9; } /* browner once tilled */
.farm-cell.watered { background: #dfe7ee; }
.farm-cell.crop { background: rgba(75,107,64,.08); }
.farm-cell.ripe { background: rgba(254,153,112,.18); outline: 2px solid #974725; outline-offset: -2px; }
.farm-cell.debris { background: #eae8e3; }
.farm-cell.built { background: rgba(75,107,64,.14); }
.farm-cell.locked { background: #f0eee9; cursor: not-allowed; }
.farm-cell.inrange { outline: 2px solid #34532a; outline-offset: -2px; z-index: 5; }
.farm-cell:active { transform: scale(.96); }
.progress-fill { position: absolute; bottom: 0; left: 0; height: 4px; background: #34532a; }
.celllabel { font-family: "JetBrains Mono", monospace; line-height: 1; text-align: center; }
/* ---- water-status corner badge on crop tiles ---- */
.water-badge {
position: absolute; top: 2px; right: 2px;
width: 16px; height: 16px;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 11px; line-height: 1;
}
.water-badge.watered {
background: #2a6fa8;
color: #fff;
}
.water-badge.dry {
background: rgba(184, 134, 11, 0.18);
color: #b8860b;
border: 1px solid rgba(184, 134, 11, 0.45);
animation: water-dry-pulse 1.8s ease-in-out infinite;
}
@keyframes water-dry-pulse {
0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(184,134,11,.4); }
50% { opacity: 0.75; box-shadow: 0 0 0 3px rgba(184,134,11,0); }
}
/* ---- mine / generic icon grids ---- */
.icell { background: #fff; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: background .1s; }
.icell:hover { background: #f5f3ee; }
/* ---- fishing reel ---- */
.reel-strip { display: grid; grid-template-rows: repeat(12, 1fr); width: 84px; height: 360px; background: #c3c8bc; gap: 1px; border-radius: 8px; overflow: hidden; cursor: pointer; user-select: none; }
.reel-cell { background: #dfe7ee; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .06s; }
.reel-cell.zone { background: #acd19d; }
/* Catch celebration animations */
@keyframes reel-pop {
0% { transform: scale(0.4); opacity: 0; }
70% { transform: scale(1.15); opacity: 1; }
100% { transform: scale(1); }
}
@keyframes reel-floatout {
0% { transform: translateX(0); opacity: 1; }
100% { transform: translateX(60px); opacity: 0; }
}
.reel-result-panel { animation: reel-pop .35s cubic-bezier(.18,.89,.32,1.28) both; }
/* ---- inventory / storage slots ---- */
.slot { aspect-ratio: 1; background: #f0eee9; border: 1px solid rgba(115,121,110,.3); border-radius: .5rem;
display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; cursor: pointer; transition: background .1s; }
.slot:hover { background: #eae8e3; }
.slot.active { background: rgba(172,209,157,.4); border-color: #34532a; }
.slot .qty { position: absolute; bottom: 2px; right: 4px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: #43483f; }
/* tactile button: thick bottom border */
.btn-primary { background: #34532a; color: #fff; border-bottom: 3px solid #042101; border-radius: .5rem; transition: filter .1s, transform .05s; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); border-bottom-width: 2px; }
.btn-ghost { background: #f0eee9; color: #1b1c19; border: 1px solid rgba(115,121,110,.3); border-radius: .5rem; transition: background .1s; }
.btn-ghost:hover { background: #eae8e3; }
.btn-ghost.sel { background: #34532a; color: #fff; border-color: #34532a; }
/* scrollbars */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #f5f3ee; }
::-webkit-scrollbar-thumb { background: #c3c8bc; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #73796e; }
/* toast */
#toast.show { opacity: 1; transform: translate(-50%, -6px); }
#toast.good { background: #34532a; color: #fff; }
#toast.warn { background: #974725; color: #fff; }
.autocomplete-item { padding: 6px 12px; font-family: "JetBrains Mono", monospace; font-size: 12px; cursor: pointer; }
.autocomplete-item:hover { background: rgba(172,209,157,.25); }
/* ---- floaty gain popups ---- */
@keyframes floaty-rise {
0% { transform: translateY(0); opacity: 1; }
70% { transform: translateY(-32px); opacity: 1; }
100% { transform: translateY(-50px); opacity: 0; }
}
.floaty {
position: fixed;
z-index: 200;
pointer-events: none;
font-family: "JetBrains Mono", monospace;
font-size: 13px;
font-weight: 700;
padding: 3px 10px;
border-radius: 99px;
background: #34532a;
color: #fff;
white-space: nowrap;
animation: floaty-rise 1.1s ease-out forwards;
}
.floaty.warn { background: #974725; }
.floaty.good { background: #34532a; }
.floaty.xp { background: #2a5382; color: #fff; font-size: 11px; }
.floaty.gold { background: #7a5c00; color: #ffe082; }
/* ---- celebrate overlay card ---- */
@keyframes celebrate-in {
0% { transform: translate(-50%,-50%) scale(0.82); opacity: 0; }
65% { transform: translate(-50%,-50%) scale(1.03); opacity: 1; }
100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
@keyframes celebrate-in-big {
0% { transform: translate(-50%,-50%) scale(0.6) rotate(-2deg); opacity: 0; }
60% { transform: translate(-50%,-50%) scale(1.04) rotate(0.5deg); opacity: 1; }
100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 1; }
}
@keyframes celebrate-out {
0% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
100% { opacity: 0; transform: translate(-50%,-50%) scale(0.9); }
}
#overlayHost { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.celebrate-backdrop {
position: fixed; inset: 0; background: rgba(27,28,25,.45);
pointer-events: auto;
animation: celebrate-fade-in .2s ease-out both;
}
@keyframes celebrate-fade-in { from { opacity:0; } to { opacity:1; } }
.celebrate-card {
position: fixed; top: 50%; left: 50%;
transform: translate(-50%,-50%);
background: #fbf9f4;
border-radius: 20px;
border: 2.5px solid #c3c8bc;
box-shadow: 0 8px 40px rgba(0,0,0,.22);
padding: 36px 44px;
min-width: 320px; max-width: 520px;
text-align: center;
pointer-events: auto;
animation: celebrate-in .35s cubic-bezier(.18,.89,.32,1.28) both;
}
.celebrate-card.big {
min-width: 380px; max-width: 600px;
padding: 48px 56px;
animation: celebrate-in-big .45s cubic-bezier(.18,.89,.32,1.28) both;
}
.celebrate-card.out {
animation: celebrate-out .2s ease-in both;
}
.celebrate-icon { font-size: 52px; margin-bottom: 10px; line-height: 1; }
.celebrate-card.big .celebrate-icon { font-size: 70px; }
.celebrate-title {
font-family: "Plus Jakarta Sans", sans-serif;
font-weight: 800;
font-size: 22px;
color: #1b1c19;
margin-bottom: 8px;
line-height: 1.2;
}
.celebrate-card.big .celebrate-title { font-size: 30px; }
.celebrate-lines {
font-family: "JetBrains Mono", monospace;
font-size: 12px;
color: #43483f;
margin-top: 10px;
line-height: 1.7;
}
.celebrate-lines .cl-main { font-size: 14px; font-weight: 700; color: #34532a; }
.celebrate-lines .cl-big { font-size: 18px; font-weight: 800; color: #34532a; }
.celebrate-dismiss {
margin-top: 20px;
font-family: "JetBrains Mono", monospace;
font-size: 10px;
color: #73796e;
opacity: .7;
}