/* Green Phosphor only. No glass, curvature, reflection, audio or moving controls. */
html:root[data-theme="green-phosphor-crt"] .phosphor-display{position:fixed;inset:0;z-index:29;pointer-events:none;overflow:hidden;user-select:none}
html:root[data-theme="green-phosphor-crt"] .phosphor-scan-beam{position:absolute;inset-inline:0;top:-25vh;height:clamp(80px,18vh,180px);background:linear-gradient(transparent,#39ff140a 35%,#b4ff9623 65%,transparent);mix-blend-mode:screen;opacity:0;animation:phosphor-sweep 19s linear 3s infinite}
html:root[data-theme="green-phosphor-crt"] .phosphor-boot{position:absolute;right:22px;bottom:24px;max-width:calc(100% - 44px);padding:10px 14px;border:1px solid #39ff145c;background:#000e;box-shadow:0 0 18px #39ff1418;color:#91ff7e;font:12px/1.7 "Lucida Console",Monaco,monospace;animation:phosphor-boot-fade 1.35s linear both}
html:root[data-theme="green-phosphor-crt"] .phosphor-boot span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:phosphor-boot-line .3s steps(24,end) var(--boot-delay) both}
html:root[data-theme="green-phosphor-crt"] .phosphor-letter{animation:phosphor-write .28s linear var(--write-delay) both}
html:root[data-theme="green-phosphor-crt"] .phosphor-frame-trace{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#86ff69,#86ff69) top left/0 1px no-repeat,linear-gradient(#86ff69,#86ff69) top right/1px 0 no-repeat,linear-gradient(#86ff69,#86ff69) bottom right/0 1px no-repeat,linear-gradient(#86ff69,#86ff69) bottom left/1px 0 no-repeat;animation:phosphor-frame 1s linear var(--frame-delay) both}
html:root[data-theme="green-phosphor-crt"] .page-head h1::after{content:"";position:absolute;display:inline-block;width:.5ch;height:.8em;margin:.2em 0 0 .28ch;background:#39ff14;box-shadow:0 0 9px #39ff1466;pointer-events:none;animation:phosphor-cursor 1.15s steps(1,end) infinite}
html:root[data-theme="green-phosphor-crt"] .card::before{width:22px;height:22px;border-top:2px solid #39ff14;border-left:2px solid #39ff14;box-shadow:-3px -3px 0 -2px #39ff1450}
html:root[data-theme="green-phosphor-crt"] .card[data-phosphor-panel]::after{content:attr(data-phosphor-panel);bottom:-.65em;right:12px;left:auto;width:auto;height:auto;padding:0 6px;border:0;background:#071407;color:#86c680;font:12px/1.3 "Lucida Console",Monaco,monospace;letter-spacing:1px;pointer-events:none}
html:root[data-theme="green-phosphor-crt"] :is(.btn,.nav-item,.tabbar button){font-family:var(--theme-font);box-shadow:inset 0 1px #91ff7e30,inset 0 -3px #000b,0 0 0 1px #1f8f1f50;text-shadow:0 0 3px #39ff1422;transition:box-shadow .45s ease-out,text-shadow .45s ease-out,background-color .12s,border-color .12s}
html:root[data-theme="green-phosphor-crt"] :is(.btn,.nav-item,.tabbar button):is(:hover,:focus-visible):not(:disabled){border-color:#91ff7e;box-shadow:inset 0 1px #b9ff9838,inset 0 -3px #000b,0 0 14px #39ff1438;text-shadow:1px 0 #39ff1450,0 0 8px #91ff7e99}
html:root[data-theme="green-phosphor-crt"] :is(.btn,.nav-item,.tabbar button):active:not(:disabled){transform:none;box-shadow:inset 0 2px 8px #000b,0 0 11px #39ff1450;border-color:#c0ffac}
html:root[data-theme="green-phosphor-crt"] .btn.primary{border-color:#91ff7e;text-shadow:none;box-shadow:inset 0 1px #d2ffc55c,inset 0 -3px #075800,0 0 8px #39ff1426}
html:root[data-theme="green-phosphor-crt"] .btn.primary:is(:hover,:focus-visible):not(:disabled){background:#91ff7e;color:#001800;text-shadow:none}
html:root[data-theme="green-phosphor-crt"] :focus-visible{outline-color:#91ff7e}
html:root[data-theme="green-phosphor-crt"] ::selection{background:#39ff14;color:#001800;text-shadow:none}
@keyframes phosphor-write{0%{opacity:0;text-shadow:none}8%{opacity:1;color:#d2ffc5;text-shadow:1px 0 #39ff1480,0 0 9px #91ff7eaa}100%{opacity:1;color:inherit;text-shadow:inherit}}
@keyframes phosphor-cursor{0%,52%{opacity:.9}53%,100%{opacity:0}}
@keyframes phosphor-boot-line{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes phosphor-boot-fade{0%,75%{opacity:1}100%{opacity:0}}
@keyframes phosphor-frame{0%{background-size:0 1px,1px 0,0 1px,1px 0;opacity:.9}25%{background-size:100% 1px,1px 0,0 1px,1px 0}50%{background-size:100% 1px,1px 100%,0 1px,1px 0}75%{background-size:100% 1px,1px 100%,100% 1px,1px 0;opacity:.9}100%{background-size:100% 1px,1px 100%,100% 1px,1px 100%;opacity:0}}
@keyframes phosphor-sweep{0%,78%{top:-25vh;opacity:0}79%{top:-25vh;opacity:.7}96%{top:110vh;opacity:.7}97%,100%{top:110vh;opacity:0}}
@media(max-width:767px){html:root[data-theme="green-phosphor-crt"] .phosphor-boot{top:calc(70px + env(safe-area-inset-top,0px));bottom:auto;right:16px;max-width:calc(100% - 32px);font-size:12px}}
@media(prefers-reduced-motion:reduce){
  html:root[data-theme="green-phosphor-crt"] .phosphor-display,html:root[data-theme="green-phosphor-crt"] .phosphor-frame-trace{display:none}
  html:root[data-theme="green-phosphor-crt"] .phosphor-letter{animation:none;opacity:1}
  html:root[data-theme="green-phosphor-crt"] .page-head h1::after{animation:none;opacity:.65}
  html:root[data-theme="green-phosphor-crt"] :is(.btn,.nav-item,.tabbar button){transition:none}
}
