:root{
  --olam-gold:#d7ab54;
  --olam-gold2:#8f682d;
  --olam-bg:#070a0c;
  --olam-panel:#0d1216;
  --olam-text:#eee5d3;
  --olam-muted:#a89e8b;
}

#olam-launcher{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9998;
  width:76px;
  height:76px;
  border-radius:50%;
  border:1px solid var(--olam-gold);
  background:
    radial-gradient(circle at 35% 30%, #51401f 0%, #17130d 38%, #080a0b 75%);
  box-shadow:
    0 0 30px rgba(215,171,84,.20),
    inset 0 0 20px rgba(215,171,84,.10);
  color:var(--olam-gold);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:Georgia,serif;
  font-size:28px;
  transition:.25s ease;
}

#olam-launcher:hover{
  transform:translateY(-3px) scale(1.04);
  box-shadow:0 0 42px rgba(215,171,84,.34);
}

#olam-launcher::after{
  content:"OLAM";
  position:absolute;
  bottom:-21px;
  font-size:9px;
  letter-spacing:.22em;
  color:#b99b62;
}

#olam-panel{
  position:fixed;
  z-index:9999;
  right:24px;
  bottom:122px;
  width:min(410px,calc(100vw - 32px));
  height:min(590px,calc(100vh - 150px));
  background:
    linear-gradient(180deg,rgba(19,25,29,.98),rgba(5,8,10,.99));
  border:1px solid rgba(215,171,84,.60);
  box-shadow:0 22px 70px rgba(0,0,0,.65);
  border-radius:12px;
  overflow:hidden;
  display:none;
  flex-direction:column;
  color:var(--olam-text);
  font-family:Georgia,"Times New Roman",serif;
}

#olam-panel.open{
  display:flex;
  animation:olamAwaken .25s ease-out;
}

@keyframes olamAwaken{
  from{opacity:0;transform:translateY(14px) scale(.98)}
  to{opacity:1;transform:none}
}

.olam-head{
  padding:16px 18px;
  border-bottom:1px solid rgba(215,171,84,.30);
  display:flex;
  align-items:center;
  gap:13px;
  background:linear-gradient(90deg,#15120c,#0b1013);
}

.olam-portrait{
  width:52px;
  height:52px;
  min-width:52px;
  border-radius:7px;
  border:1px solid var(--olam-gold2);
  background:
    linear-gradient(rgba(0,0,0,.15),rgba(0,0,0,.35)),
    url("/static/olam/olam.png") center/cover no-repeat,
    radial-gradient(circle,#6e5730,#17120c);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e4c77c;
  font-size:24px;
}

.olam-title{
  flex:1;
}

.olam-title strong{
  display:block;
  color:#e0bc70;
  font-size:20px;
  font-weight:400;
}

.olam-title span{
  color:#958b78;
  font-size:12px;
  letter-spacing:.08em;
}

.olam-status{
  color:#69b879 !important;
}

.olam-close{
  border:0;
  background:none;
  color:#c7ae78;
  font-size:24px;
  cursor:pointer;
}

#olam-messages{
  flex:1;
  overflow-y:auto;
  padding:18px;
  scroll-behavior:smooth;
}

.olam-msg{
  margin:0 0 14px;
  line-height:1.55;
  font-size:14px;
}

.olam-msg.guide{
  color:#ddd2bc;
  background:#13191c;
  border-left:2px solid var(--olam-gold2);
  padding:12px 14px;
  border-radius:0 8px 8px 0;
}

.olam-msg.user{
  margin-left:38px;
  background:#172435;
  padding:10px 13px;
  border-radius:9px;
  color:#e2e8ee;
}

.olam-action{
  display:inline-block;
  margin-top:9px;
  border:1px solid var(--olam-gold2);
  color:#e6c476;
  background:#0a0e10;
  padding:8px 12px;
  border-radius:4px;
  text-decoration:none;
  cursor:pointer;
  font-family:inherit;
}

.olam-action:hover{
  background:#19150d;
}

.olam-quick{
  padding:0 14px 10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.olam-quick button{
  border:1px solid #403522;
  color:#c3aa77;
  background:#0d1113;
  padding:6px 9px;
  border-radius:14px;
  font-size:11px;
  cursor:pointer;
}

.olam-input{
  border-top:1px solid rgba(215,171,84,.22);
  display:flex;
  padding:12px;
  gap:8px;
  background:#090d0f;
}

.olam-input input{
  flex:1;
  border:1px solid #34383a;
  background:#0d1215;
  color:#eee5d3;
  padding:12px;
  border-radius:5px;
  outline:none;
}

.olam-input input:focus{
  border-color:var(--olam-gold2);
}

.olam-input button{
  border:1px solid var(--olam-gold2);
  background:#18140c;
  color:#e5c478;
  border-radius:5px;
  padding:0 15px;
  cursor:pointer;
}

@media(max-width:600px){
  #olam-launcher{
    width:64px;
    height:64px;
    right:16px;
    bottom:18px;
  }

  #olam-panel{
    right:16px;
    bottom:102px;
    height:calc(100vh - 130px);
  }
}
