Compare commits

...

1 Commits

Author SHA1 Message Date
Alexander Whitestone
a69038e1cf fix: add missing phase-transition overlay element (#101)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 4s
The showPhaseTransition() function looks for #phase-transition
but the element was never added to index.html. Added the overlay
div with .pt-phase, .pt-name, .pt-desc children and CSS.

Note: 'trust draining' toast and mute/contrast buttons were
already fixed in prior commits.
2026-04-13 04:05:50 -04:00

View File

@@ -114,6 +114,48 @@ 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 {
position: fixed;
inset: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0,0,0,0.85);
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}
#phase-transition.active {
opacity: 1;
pointer-events: auto;
}
#phase-transition .pt-content {
text-align: center;
animation: ptPulse 0.6s ease-out;
}
#phase-transition .pt-phase {
font-size: 14px;
letter-spacing: 4px;
color: #ffd700;
margin-bottom: 8px;
}
#phase-transition .pt-name {
font-size: 36px;
font-weight: bold;
color: #fff;
margin-bottom: 12px;
text-shadow: 0 0 20px rgba(74,158,255,0.6);
}
#phase-transition .pt-desc {
font-size: 16px;
color: #aaa;
}
@keyframes ptPulse {
0% { transform: scale(0.8); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
</style>
</head>
<body>
@@ -272,6 +314,14 @@ The light is on. The room is empty."
</div>
</div>
<div id="phase-transition">
<div class="pt-content">
<div class="pt-phase"></div>
<div class="pt-name"></div>
<div class="pt-desc"></div>
</div>
</div>
<div id="toast-container"></div>
<div id="custom-tooltip"></div>
</body>