
/* Script Jitsu v3 additions: beginner UI + XP + toast + concept box */
.conceptBox{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 12px;
  border-radius: 14px;
  margin: 12px 0;
}
.conceptBox__title{ font-weight: 900; margin-bottom: 6px; }

.cheatsheet details{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(0,0,0,.14);
  margin: 10px 0;
}
.cheatsheet summary{ cursor:pointer; }
.divider{ height:1px; background: rgba(255,255,255,.10); margin: 14px 0; }

.xpHud__row{ display:flex; justify-content:space-between; align-items:baseline; }
.xpBar{
  margin-top:8px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  overflow:hidden;
}
.xpBar__fill{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(34,197,94,.75));
  transition: width 400ms ease;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(17,24,41,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  border-radius: 14px;
  padding: 10px 12px;
  display:none;
  z-index: 1200;
  width: min(560px, 92vw);
}
.toast--show{ display:block; animation: toastIn 220ms ease; }
@keyframes toastIn{
  from{ opacity:0; transform: translateX(-50%) translateY(8px); }
  to{ opacity:1; transform: translateX(-50%) translateY(0); }
}
.toast__title{ font-weight: 900; margin-bottom: 2px; }
.toast__text{ color: rgba(231,237,247,.9); }

@keyframes pop{ 0%{ transform: scale(.98); } 70%{ transform: scale(1.02); } 100%{ transform: scale(1); } }
.pop{ animation: pop 220ms ease; }

/* v3.1: hover tooltips + scaffolding block */
.scaffold{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  padding: 12px;
  border-radius: 14px;
  margin: 12px 0 14px 0;
}
.scaffold__title{ font-weight: 900; margin-bottom: 4px; }
.scaffold__text{ margin: 0 0 10px 0; color: rgba(231,237,247,.88); }
.scaffold__chips{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 10px; }
.kw{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(124,92,255,.12);
  cursor: help;
}
.kw code{ font-weight: 900; }
.kw[data-tip]::after{
  content: attr(data-tip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17,24,41,.98);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  color: rgba(231,237,247,.92);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 1300;
}
.kw[data-tip]:hover::after{
  opacity: 1;
  transform: translateY(0);
}
.scaffold__details summary{ cursor:pointer; }
