Dead code cleanups

This commit is contained in:
2026-06-15 07:46:32 -07:00
parent 045857a8fd
commit daeac91d07
21 changed files with 578 additions and 473 deletions

View File

@@ -1,11 +1,22 @@
/* --- Scene board layout --- */
.scene-view-layout {
display: grid;
grid-template-columns: 180px 1.4fr 1fr;
grid-template-columns: 180px minmax(0, 1.7fr) minmax(300px, 1fr);
gap: 1.5rem;
align-items: start;
}
/* The middle column stacks hand / challenge / obstacle cards. */
.table-column {
display: flex;
flex-direction: column;
}
/* Stretch the log column to the full row height so its sticky panel can travel. */
.log-column {
align-self: stretch;
}
@media (max-width: 1100px) {
.scene-view-layout {
grid-template-columns: 1fr;
@@ -175,7 +186,7 @@
}
.obstacle-item.in-challenge {
box-shadow: 0 0 0 2px var(--danger);
box-shadow: 0 0 0 2px var(--deep);
}
@media (max-width: 768px) {
@@ -196,10 +207,56 @@
.obstacle-card-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 0.3rem;
}
.card-caption {
font-size: 0.6rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted);
}
/* Obstacle color (red/black) — fixed by the original card; matching it draws back */
.obstacle-color-tag {
display: inline-flex;
align-items: center;
gap: 0.35rem;
margin-bottom: 0.4rem;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 0.12rem 0.5rem;
border-radius: 999px;
cursor: help;
}
.obstacle-color-tag::before {
content: '';
width: 0.6rem;
height: 0.6rem;
border-radius: 50%;
display: inline-block;
}
.obstacle-color-tag.red {
color: var(--suit-red);
background: color-mix(in srgb, var(--suit-red) 14%, transparent);
}
.obstacle-color-tag.red::before { background: var(--suit-red); }
.obstacle-color-tag.black {
color: var(--suit-black);
background: color-mix(in srgb, var(--suit-black) 14%, transparent);
}
.obstacle-color-tag.black::before { background: var(--suit-black); }
.suit-badge {
font-weight: 900;
font-size: 1.1rem;
@@ -221,7 +278,7 @@
}
.obstacle-details .in-challenge-tag {
color: var(--danger);
color: var(--deep);
font-size: 0.8rem;
}
@@ -294,19 +351,25 @@
grid-column: 1 / -1;
}
/* --- Challenges --- */
/* --- Challenges --- (framed in the Deep's teal so red/black always means suit color) */
/* The challenge-area card IS the box; the challenge content sits flush inside it. */
.challenge-area-card {
border-color: color-mix(in srgb, var(--deep) 45%, transparent);
}
.challenge-item {
background: color-mix(in srgb, var(--danger) 5%, transparent);
border: 1px solid var(--danger);
border-radius: var(--radius-md);
padding: 1rem 1.25rem;
margin-bottom: 1rem;
text-align: left;
}
.challenge-item + .challenge-item {
border-top: 1px solid var(--edge-soft);
padding-top: 1rem;
}
.challenge-item h4 {
color: var(--danger);
font-size: 1.15rem;
color: var(--deep);
font-size: 1.25rem;
margin: 0;
}
@@ -337,37 +400,31 @@
margin: 0 0 0.5rem 0;
}
/* --- Deep control panel --- */
.deep-panel-card {
max-height: 80vh;
overflow-y: auto;
border-color: color-mix(in srgb, var(--deep) 40%, transparent);
}
.deep-divider {
border: 0;
height: 1px;
background: linear-gradient(to right, transparent, color-mix(in srgb, var(--deep) 40%, transparent), transparent);
margin: 2rem 0;
}
.obstacles-checkboxes {
/* --- Challenge area (middle column) --- */
/* Obstacles applied to an active Challenge, pulled up into the Challenge panel */
.challenge-obstacles {
display: flex;
flex-direction: column;
gap: 0.5rem;
background: var(--well);
padding: 1rem;
border-radius: var(--radius-sm);
max-height: 150px;
overflow-y: auto;
border: 1px solid var(--edge);
gap: 1rem;
margin-top: 0.75rem;
}
.objective-player-block {
background: var(--well);
padding: 0.5rem 0.75rem;
border-radius: var(--radius-sm);
margin-bottom: 0.5rem;
/* The Deep's call-a-challenge + end-scene controls live below any open Challenges */
.deep-challenge-controls {
margin-top: 0.5rem;
}
/* When a Challenge is active the rest of the Obstacle list collapses out of the way */
.obstacle-collapse > summary {
cursor: pointer;
color: var(--text-muted);
font-family: var(--font-heading);
font-size: 0.9rem;
padding: 0.35rem 0;
}
.obstacle-collapse[open] > summary {
margin-bottom: 1rem;
}
.scene-upkeep-controls {