augment trees, pitch-limit fallback, and cached definitions

This commit is contained in:
tresabhi committed 2026-11-15 17:28:43 -06:00
1 parent da9c5272bc
commit 79129ff3c0
57 files changed
+2196 -717

No files matched your search

@@ -1,7 +1,4 @@
.tree {
/* The game lays the tree out left to right; here depth runs top to bottom */
--depth-gap: var(--space-5);
--sibling-gap: var(--space-4);
--line-thickness: var(--space-1);
--line-border: var(--space-1) solid var(--gray-6);
@@ -9,12 +6,7 @@
margin-bottom: calc(var(--space-2) + var(--font-size-minor));
}
display: grid;
gap: var(--depth-gap) var(--sibling-gap);
.cell {
position: relative;
.trunk-left,
.trunk-right {
position: absolute;
@@ -71,41 +63,5 @@
.snake-right {
left: 100%;
}
.module {
position: relative;
.icon {
width: 2em;
height: 2em;
.module[data-major="true"] & {
transform: scale(1.25);
}
}
.price {
display: flex;
gap: var(--space-1);
font-size: var(--font-size-minor);
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
margin-top: var(--space-2);
background-color: var(--gray-2);
svg,
img {
width: 1em;
height: 1em;
}
}
}
}
}