:root { --cyan:#00F3FF; --green:#39FF14; --red:#FF3333; --gold:#FFD700; --purple:#BC13FE; --blue:#1E90FF; --void:#050505; --panel:rgba(8,12,16,0.98); }
* { box-sizing:border-box; }
body { margin:0; background:var(--void); color:white; font-family:'Rajdhani',sans-serif; height:100vh; overflow:hidden; display:grid; grid-template-rows:35px 1fr 280px; }
header { display:flex; justify-content:space-between; align-items:center; padding:0 15px; border-bottom:1px solid #333; background:#0a0a0a; }
h1 { font-family:'Orbitron'; font-size:16px; margin:0; color:var(--gold); letter-spacing:2px; }
.header-right { display:flex; align-items:center; gap:20px; }
.growth-panel { display:flex; align-items:center; gap:10px; min-width:180px; }
.sys-stat { font-family:'Orbitron'; font-weight:bold; min-width:120px; text-align:right; }
.sys-stat span.online { color:var(--green); text-shadow:0 0 5px var(--green); }
.sys-stat span.offline { color:var(--red); }
.xp-bar-bg { flex:1; height:6px; background:#333; border-radius:3px; position:relative; overflow:hidden; }
.xp-bar-fill { height:100%; background:var(--gold); width:0%; transition:width 0.5s; }
main { display:grid; grid-template-columns:1fr 320px; height:100%; overflow:hidden; }
#chart-area { border-right:1px solid #333; position:relative; height:100%; width:100%; }
#tv_chart { height:100%; width:100%; }
#right-panel { background:var(--panel); display:flex; flex-direction:column; border-left:1px solid var(--cyan); }
.reactor-box { height:120px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-bottom:1px solid #333; background:radial-gradient(circle,#112,#000); }
svg { width:80px; height:80px; filter:drop-shadow(0 0 5px var(--cyan)); }
.spin { animation:spin 10s linear infinite; transform-origin:50px 50px; }
@keyframes spin { 100% { transform:rotate(360deg); } }
.combo-count { font-family:'Orbitron'; font-size:24px; font-weight:900; color:var(--cyan); }
.persona-container { flex:1; overflow-y:auto; padding:5px; }
.p-card { background:rgba(255,255,255,0.03); margin-bottom:3px; padding:4px 8px; border-left:3px solid #666; display:flex; flex-direction:column; cursor:pointer; }
.p-row { display:flex; justify-content:space-between; font-size:11px; font-family:'Orbitron'; margin-bottom:2px; }
.p-bar { height:3px; background:#222; width:100%; }
.p-fill { height:100%; width:0%; transition:width 0.5s; }
footer { display:grid; grid-template-columns:1fr 220px; background:#080808; border-top:1px solid #333; height:100%; overflow:hidden; }
.constructor-area { display:flex; flex-direction:column; border-right:1px solid #333; }
.tf-bar { display:flex; height:30px; border-bottom:1px solid #222; }
.tf-btn { flex:1; background:#111; border:none; border-right:1px solid #222; color:#666; font-family:'Orbitron'; font-size:11px; cursor:pointer; }
.tf-btn.active { background:var(--cyan); color:#000; font-weight:bold; }
.tf-btn[data-tf="EXIT"].active { background:var(--red); color:white; }
.element-grid { flex:1; display:grid; grid-template-columns:repeat(5,1fr); gap:2px; padding:2px; overflow-y:auto; }
.el-btn { background:#111; border:1px solid #333; color:#aaa; font-size:9px; display:flex; align-items:center; justify-content:center; padding:2px; cursor:pointer; text-align:center; min-height:35px; word-break:break-all; line-height:1.1; font-family:'Noto Sans JP',sans-serif; }
.el-btn:hover { background:#222; }
.el-btn.type-earth { border-color:var(--blue); color:var(--blue); }
.el-btn.type-human { border-color:var(--green); color:var(--green); }
.el-btn.type-heaven { border-color:var(--red); color:var(--red); }
.el-btn.type-void { border-color:#666; color:#666; }
.el-btn.type-quantum { border-color:var(--purple); color:var(--purple); }
.el-btn.type-exit { border-color:var(--gold); color:var(--gold); }
.el-btn.selected { background:rgba(255,255,255,0.15); font-weight:bold; box-shadow:0 0 5px inset; }
.ea-panel { padding:5px; display:flex; flex-direction:column; gap:3px; }
.ea-row { display:flex; justify-content:space-between; font-size:10px; color:#888; }
.val { color:white; font-weight:bold; font-family:'Orbitron'; }
.pnl-display { font-size:20px; text-align:center; font-family:'Orbitron'; color:var(--cyan); margin:2px 0; }
.inject-btn { margin-top:auto; background:var(--gold); color:#000; border:none; padding:8px; font-family:'Orbitron'; font-weight:bold; cursor:pointer; }