Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Whitestone
89713dc867 fix: add missing phase-transition overlay element (closes #101)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
Bug 2 of 3 from #101: showPhaseTransition() looked for #phase-transition
but the element didn't exist in index.html. Phase transitions silently
failed — no celebratory overlay appeared on phase-up.

Added:
- Overlay div with .pt-phase, .pt-name, .pt-desc children
- CSS for centered fullscreen overlay with fade transition
- Matches the dark theme + gold/blue accent palette

Note: Bugs 1 (toast text) and 3 (mute/contrast buttons) were already
fixed in previous commits.
2026-04-13 04:10:01 -04:00

View File

@@ -114,9 +114,22 @@ body{background:var(--bg);color:var(--text);font-family:'SF Mono','Cascadia Code
.header-btn{background:#0e0e1a;border:1px solid #333;color:#666;font-size:13px;width:28px;height:28px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.15s;font-family:inherit}
.header-btn:hover{border-color:#4a9eff;color:#4a9eff}
.header-btn.muted{opacity:0.5}
/* Phase transition overlay */
#phase-transition{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(10,10,30,0.92);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity 0.4s ease}
#phase-transition.active{opacity:1;pointer-events:auto}
.pt-phase{color:#4a9eff;font-size:13px;letter-spacing:4px;text-transform:uppercase;margin-bottom:8px;font-family:monospace}
.pt-name{color:#ffd700;font-size:28px;font-weight:700;margin-bottom:12px;text-shadow:0 0 20px rgba(255,215,0,0.4)}
.pt-desc{color:#8899aa;font-size:13px;max-width:400px;text-align:center;line-height:1.5}
</style>
</head>
<body>
<div id="phase-transition">
<div class="pt-phase"></div>
<div class="pt-name"></div>
<div class="pt-desc"></div>
</div>
<div id="header" style="position:relative">
<div class="header-btns">
<button id="mute-btn" class="header-btn" onclick="toggleMute()" aria-label="Sound on, click to mute" title="Toggle sound (M)">🔊</button>