html,body{margin:0;height:100%;background:#000;overflow:hidden}
#stage{position:absolute;left:50%;top:50%;width:960px;height:600px;margin:-300px 0 0 -480px;transform-origin:center;background:#000;overflow:hidden;font-family:"Courier New",Courier,monospace;user-select:none;-webkit-user-select:none}
#cv{position:absolute;left:0;top:0;width:960px;height:600px}
#dom{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none}
#dom>*{pointer-events:auto}
#fx{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;z-index:4;background:repeating-linear-gradient(to bottom,rgba(0,0,0,0) 0,rgba(0,0,0,0) 2px,rgba(0,0,0,.13) 3px)}

#voice{position:absolute;left:60px;right:60px;bottom:12px;min-height:58px;padding:12px 18px;box-sizing:border-box;background:rgba(0,0,0,.82);border:1px solid #777;color:#eee;font-size:18px;line-height:1.35;z-index:5;pointer-events:none}
#voice.empty{display:none}
#voice.self{color:#7dffb0;font-style:italic;border-color:#2a6}
#voice.more #vtext::after{content:" \25BC";font-size:12px;animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
#vchoices{margin-top:8px;display:flex;gap:12px;flex-wrap:wrap;pointer-events:auto}
#vchoices:empty{display:none}
button{font:inherit;font-size:16px;background:#000;color:#fff;border:1px solid #fff;padding:6px 16px;cursor:pointer}
button:hover:not(:disabled){background:#fff;color:#000}
button:disabled{opacity:.55;cursor:default}
button.picked{background:#7dffb0;color:#000;opacity:1}

.overlay{position:absolute;left:0;top:0;right:0;bottom:0;z-index:10;background:rgba(0,0,0,.92);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.overlay.hidden{display:none}
#start h1{font-size:150px;margin:0;font-weight:normal;text-shadow:0 0 30px #fff,0 0 80px #9cf;line-height:1}
#start .sub{font-size:26px;letter-spacing:10px;margin:0 0 30px}
#start .tip{color:#777;font-size:13px;margin-top:26px}
#startbtns{display:flex;flex-direction:column;gap:10px;align-items:center}
#pause h2{letter-spacing:8px;font-weight:normal}

/* Fase 3: gestionale stile software d'ufficio */
.office{position:absolute;left:14px;top:12px;width:932px;height:458px;background:#c0c0c0;border:2px outset #fff;font-family:Tahoma,Verdana,sans-serif;font-size:13px;color:#000;box-sizing:border-box}
.office .tbar{background:linear-gradient(90deg,#000080,#1084d0);color:#fff;font-weight:bold;padding:4px 8px;display:flex;justify-content:space-between}
.office .menu{padding:3px 8px;border-bottom:1px solid #808080}
.office .menu span{margin-right:14px}
.office .cols{display:flex;gap:10px;padding:8px}
.office .left{flex:1.25}
.office .right{flex:1}
.office table{border-collapse:collapse;width:100%;background:#fff}
.office td,.office th{border:1px solid #b0b0b0;padding:4px 6px;text-align:left;font-size:13px}
.office th{background:#d4d0c8;font-weight:normal;text-align:center}
.office td.n{text-align:center;width:22px;background:#d4d0c8}
.office .bar{font-family:"Courier New",monospace;letter-spacing:1px;color:#000080}
.office button{font-family:Tahoma,sans-serif;font-size:13px;background:#c0c0c0;color:#000;border:2px outset #fff;padding:1px 9px}
.office button:hover:not(:disabled){background:#d8d8d8;color:#000}
.office button:active:not(:disabled){border-style:inset}
.office .endrow{display:flex;justify-content:space-between;align-items:center;margin-top:8px}
.office #end{padding:6px 16px;font-weight:bold}
.office .res{background:#fff;border:2px inset #fff;padding:6px}
.office .res div{display:flex;justify-content:space-between;font-family:"Courier New",monospace;font-size:13px}
.office .low{color:#c00;font-weight:bold}
.office pre{background:#000;color:#3f6;margin:8px 0 0;padding:6px;height:96px;font-size:12px;line-height:1.1;border:2px inset #fff;overflow:hidden}
.office .log{background:#ffffe1;border:1px solid #808080;margin-top:8px;padding:5px;height:78px;overflow:hidden;font-size:12px}
.office .fx{color:#555;font-size:11px}
