initial commit

This commit is contained in:
azykov@mail.ru
2026-09-04 16:03:17 +03:00
commit a05d5f4547
31 changed files with 2842 additions and 0 deletions
+217
View File
@@ -0,0 +1,217 @@
.app {
display: flex;
flex-direction: column;
height: 100%;
}
.topbar {
display: flex;
align-items: center;
gap: 20px;
padding: 10px 16px;
background: var(--panel-bg);
border-bottom: 4px solid var(--panel-border);
box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
flex-shrink: 0;
}
.topbar__title {
font-size: 14px;
margin: 0;
color: var(--accent);
text-shadow: 2px 2px 0 var(--panel-border);
}
.topbar .spacer {
flex-grow: 1;
}
.inventory-slot {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
background: rgba(0, 0, 0, 0.25);
border: 3px solid var(--panel-border);
font-size: 14px;
}
.main-row {
display: flex;
flex-direction: row;
flex-grow: 1;
min-height: 0;
}
.sidebar {
width: 260px;
flex-shrink: 0;
background: var(--panel-bg);
border-right: 4px solid var(--panel-border);
overflow-y: auto;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.sidebar__title {
font-size: 13px;
margin: 0;
color: var(--accent);
text-shadow: 2px 2px 0 var(--panel-border);
}
.upgrade-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.upgrade-btn {
display: flex;
flex-direction: column;
gap: 6px;
padding: 10px;
background: rgba(0, 0, 0, 0.25);
border: 3px solid var(--panel-border);
color: var(--text);
font-family: inherit;
font-size: 10px;
line-height: 1.5;
text-align: left;
cursor: pointer;
}
.upgrade-btn:hover:not(:disabled) {
border-color: var(--accent);
}
.upgrade-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.upgrade-btn__header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
.upgrade-btn__level {
color: var(--accent);
flex-shrink: 0;
}
.upgrade-btn__effects {
display: flex;
align-items: center;
gap: 6px;
color: #cbd5c0;
}
.upgrade-btn__arrow {
color: var(--accent);
}
.upgrade-btn__cost {
display: flex;
align-items: center;
gap: 4px;
margin-top: 2px;
color: #f5c518;
}
.game-map {
position: relative;
flex-grow: 1;
overflow: hidden;
background-color: #4caf50;
background-image:
linear-gradient(45deg, #46a047 25%, transparent 25%),
linear-gradient(-45deg, #46a047 25%, transparent 25%),
linear-gradient(45deg, transparent 75%, #46a047 75%),
linear-gradient(-45deg, transparent 75%, #46a047 75%);
background-size: 32px 32px;
background-position: 0 0, 0 16px, 16px -16px, -16px 0px;
cursor: default;
touch-action: none;
user-select: none;
}
.entity {
position: absolute;
transform: translate(-50%, -50%);
pointer-events: none;
}
.entity.log-shadow {
width: 20px;
height: 10px;
margin: 8px 0px 0px 0px;
border-radius: 50%;
background: rgba(0, 0, 0, 0.35);
z-index: 0;
}
.entity.tree-shadow {
width: 64px;
height: 32px;
border-radius: 50%;
margin: 26px 0px 0px -11px;
background: rgba(0, 0, 0, 0.35);
z-index: 0;
}
.entity.character-shadow {
width: 48px;
height: 24px;
border-radius: 50%;
margin: 32px 0px 0px 0px;
background: rgba(0, 0, 0, 0.35);
z-index: 0;
}
.entity.tree {
pointer-events: auto;
cursor: pointer;
padding: 12px;
margin: -12px;
}
.entity.tree.tree--chopping svg {
animation: chop-shake 0.12s infinite;
}
.entity.character {
transition: none;
}
.entity.character.character--walking svg {
animation: walk-bob 0.3s infinite steps(2);
}
@keyframes chop-shake {
0%, 100% {
transform: translate(0, 0) rotate(0deg);
}
25% {
transform: translate(-2px, 1px) rotate(-6deg);
}
50% {
transform: translate(1px, -2px) rotate(5deg);
}
75% {
transform: translate(-1px, 1px) rotate(-4deg);
}
}
@keyframes walk-bob {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-3px);
}
}