fix: replace blanket CSS reset with modern reset, fix text jiggle

- Modern CSS reset (Comeau/Bell style) replaces * { margin: 0; padding: 0 }
- Restore dialog margin: auto for proper centering
- Remove translateY from room transitions to prevent text jiggle
- Opacity-only fade for clean room changes

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alexander Brown
2026-03-24 16:34:45 -07:00
committed by DrJKL
parent c78ad2f2c6
commit 0505bda1ce

View File

@@ -37,7 +37,13 @@
--purple: #bc8cff;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Modern CSS reset (based on Josh Comeau / Andy Bell) */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
#hud, .stat-bar-group, .choice-key, .challenge-badge, .artifact-type,
.sidebar-header, #room-layer, .ending-label, .scorecard-header,
@@ -653,6 +659,8 @@
/* --- Ending Dialog --- */
dialog { margin: auto; }
#ending-dialog {
background: var(--surface);
border: 2px solid var(--border);
@@ -927,17 +935,12 @@
/* --- Room transition --- */
#narrative {
transition: opacity 0.2s ease, transform 0.2s ease;
}
#narrative.exit {
opacity: 0;
transform: translateY(-6px);
transition: opacity 0.2s ease;
}
#narrative.exit,
#narrative.enter {
opacity: 0;
transform: translateY(6px);
}
/* --- Utilities --- */