/* RESET */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,
body{
  height:100%;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#0b1120;
  color:#e5e7eb;
  display:flex;
  flex-direction:column;
}

/* LINKS */
a{
  color:inherit;
  text-decoration:none;
}

/* HEADER */
.site-header{
  border-bottom:1px solid #1f2937;
  background:#111827;
}

.site-header__inner{
  max-width:1200px;
  margin:0 auto;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.site-logo{
  font-size:18px;
  font-weight:700;
  white-space:nowrap;
}

/* LANG */
.lang-switcher{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.lang-btn{
  padding:7px 10px;
  border-radius:10px;
  background:#1f2937;
  font-size:13px;
  transition:.15s;
}

.lang-btn:hover{
  background:#374151;
}

/* MAIN */
.page{
  flex:1;
  padding:16px;
  padding-bottom:92px;
}

.workspace{
  max-width:1200px;
  margin:0 auto;
  background:#020617;
  border:1px solid #1f2937;
  border-radius:16px;
  min-height:520px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}

canvas{
  display:block;
  max-width:100%;
  height:auto;
  background:#000;
}

/* FOOTER */
.site-footer{
  border-top:1px solid #1f2937;
  background:#111827;
}

.site-footer__inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  font-size:13px;
  color:#94a3b8;
  text-align:center;
}

.footer-sep{
  margin:0 8px;
}

/* BOTTOM TOOLBAR */
.bottom-toolbar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1000;
  
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  
  padding:10px 14px;
  
  overflow-x:auto;
  overflow-y:hidden;
  
  background:rgba(7,16,40,.96);
  backdrop-filter:blur(10px);
  
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  }
  .bottom-toolbar::-webkit-scrollbar{
  display:none;
  }
  .tool-btn{
    flex:0 0 62px;
    height:52px;
    
    display:flex;
    align-items:center;
    justify-content:center;
    
    border:none;
    border-radius:14px;
    
    background:rgba(255,255,255,.06);
    color:rgba(255,255,255,.75);
    
    transition:.18s ease;
    }
      .tool-btn.is-active{
      background:#2563eb;
      color:#fff;
      box-shadow:0 0 0 1px rgba(255,255,255,.12) inset;
      }
    .page{
      padding-bottom:90px;
      }

	.tool-btn:active{
	  transform:scale(.98);
	}

	.tool-btn:disabled{
	  opacity:.55;
	  cursor:wait;
	}

/* MOBILE */
@media (max-width:700px){

  .site-header__inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .site-logo{
    font-size:16px;
  }

  .workspace{
    min-height:420px;
  }

  .tool-btn{
    font-size:11px;
    padding:11px 4px;
  }

}
.icon-btn{
  width:44px;
  height:44px;
  border:none;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111;
  color:#fff;
}

.material-symbols-outlined{
  font-size:22px;
}
.color-palette{
  position:fixed;
  left:50%;
  bottom:90px;
  transform:translateX(-50%);
  display:none;
  gap:10px;
  padding:10px 12px;
  background:rgba(15,15,15,.95);
  border-radius:14px;
  z-index:9999;
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  }
  
  .color-palette.show{
  display:flex;
  }
  
  .color-btn{
  width:34px;
  height:34px;
  border:none;
  border-radius:50%;
  padding:0;
  cursor:pointer;
  outline:none;
  }
  
  .color-btn.active{
  box-shadow:0 0 0 3px #fff inset;
  transform:scale(1.08);
  }
  #angleCanvas{
    touch-action:none;
    -webkit-user-select:none;
    user-select:none;
    -webkit-touch-callout:none;
    }
    .top-info-btn{
      width:34px;
      height:34px;
      display:flex;
      align-items:center;
      justify-content:center;
      border-radius:50%;
      text-decoration:none;
      color:#fff;
      background:rgba(255,255,255,.08);
      }
      
	      .top-info-btn .material-symbols-outlined{
	      font-size:20px;
	      }
	      .analysis-panel{
	      position:fixed;
	      right:16px;
	      bottom:92px;
	      width:min(420px, calc(100vw - 32px));
	      max-height:55vh;
	      overflow:auto;
	      z-index:10000;
	      display:none;
	      padding:16px;
	      border:1px solid rgba(255,255,255,.12);
	      border-radius:14px;
	      background:rgba(15,23,42,.96);
	      color:#e5e7eb;
	      box-shadow:0 16px 38px rgba(0,0,0,.45);
	      }
	      
	      .analysis-panel.show{
	      display:block;
	      }
	      
	      .analysis-panel__head{
	      display:flex;
	      align-items:center;
	      justify-content:space-between;
	      gap:12px;
	      margin-bottom:10px;
	      }
	      
	      .analysis-panel__title{
	      font-size:16px;
	      font-weight:700;
	      }
	      
	      .analysis-panel__close{
	      width:32px;
	      height:32px;
	      border:none;
	      border-radius:50%;
	      background:rgba(255,255,255,.08);
	      color:#fff;
	      }
	      
	      .analysis-panel__body{
	      white-space:pre-wrap;
	      font-size:14px;
	      line-height:1.55;
	      color:#dbe4f0;
	      }
	      /* INFO PAGE */

.info-page{
  max-width:900px;
  margin:0 auto;
  padding:24px 16px 110px;
  }
  
  .info-page h1{
  font-size:30px;
  line-height:1.2;
  margin:0 0 14px;
  text-align:center;
  }
  
  .info-intro{
  font-size:16px;
  line-height:1.6;
  opacity:.85;
  text-align:center;
  max-width:680px;
  margin:0 auto 24px;
  }
  
  .info-list{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  }
  
  .info-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:16px;
  backdrop-filter:blur(8px);
  }
  
  .info-card h2{
  font-size:18px;
  line-height:1.3;
  margin:0 0 8px;
  }
  
  .info-card p{
  font-size:15px;
  line-height:1.6;
  opacity:.88;
  margin:0;
  }
  
  @media (min-width:768px){
  
  .info-list{
  grid-template-columns:1fr 1fr;
  gap:16px;
  }
  
  .info-page{
  padding:34px 20px 130px;
  }
  
  .info-page h1{
  font-size:38px;
  }
  
  .info-intro{
  font-size:17px;
  margin-bottom:30px;
  }
  
  }
