/* 猫田小日子 v2.0 · 发布修复 */
/* 右上角：钱 + 委托 + 营造 + 图鉴固定成一排；钱栏稍短，后三栏等宽，整排右边缘与小地图对齐。 */
#hud #hud-tr{align-items:flex-end!important}
#hud #hud-tr .tr-strip{
  display:grid!important;
  grid-template-columns:minmax(94px,.78fr) repeat(3,minmax(78px,1fr));
  width:354px;
  gap:5px;
  align-items:stretch;
  align-self:flex-end;
  margin-right:0!important;
  box-sizing:border-box;
}
#hud #hud-tr .tr-strip>*{min-width:0!important;width:100%;box-sizing:border-box;margin-left:0!important}
#hud #hud-tr .tr-strip .coin{justify-content:center!important;padding:0 5px 0 2px!important;overflow:hidden}
#hud #hud-tr .tr-strip .coin b{white-space:nowrap;overflow:hidden;text-overflow:clip}
#hud #hud-tr .tr-strip button,#hud #hud-tr .tr-strip #btn-deed.shown{justify-content:center!important;padding-left:5px!important;padding-right:5px!important}
#hud #hud-tr .tr-map{align-self:flex-end;margin-right:0!important}
/* 昵称会比“初一”长，给首行留出自然宽度，同时不挤掉节气/周几。 */
#hud-tl #hud-date{max-width:7.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){
  #hud #hud-tr .tr-strip{width:326px;grid-template-columns:minmax(86px,.76fr) repeat(3,minmax(72px,1fr));gap:4px}
  #hud #hud-tr .tr-strip button,#hud #hud-tr .tr-strip #btn-deed.shown{padding-left:3px!important;padding-right:3px!important;letter-spacing:1px!important}
}

/* v2.0.1 HUD 对齐修正：以圆形小地图 104px 为基准列宽。
   最右“图鉴”与地图左右边缘严格重合；委托/营造同宽；钱栏缩短。 */
#hud #hud-tr .tr-strip{
  width:auto!important;
  grid-template-columns:92px 104px 104px 104px!important;
  column-gap:6px!important;
  justify-content:end!important;
  align-self:flex-end!important;
}
#hud #hud-tr .tr-strip>*{width:100%!important;min-width:0!important}
#hud #hud-tr .tr-strip .coin{padding-left:2px!important;padding-right:3px!important}
#hud #hud-tr .tr-strip button,#hud #hud-tr .tr-strip #btn-deed.shown{padding-left:4px!important;padding-right:4px!important}
#hud #hud-tr .tr-map{align-self:flex-end!important;margin-right:0!important}
@media(max-width:760px){
  #hud #hud-tr .tr-strip{width:auto!important;grid-template-columns:84px 94px 94px 94px!important;column-gap:5px!important}
}


/* v2.0.2 右侧地图组件：只保留 人物 / 设置 / 玩法指南 三枚圆钮。
   地图形状不再用独立按钮切换；三钮按小地图本体高度等距、垂直居中。 */
#hud #hud-tr .tr-dock>#mm-shape,
#hud #hud-tr .tr-dock>#btn-mm{display:none!important}
#hud #hud-tr .tr-map{display:flex!important;align-items:center!important;gap:9px!important;padding-top:0!important}
#hud #hud-tr .tr-dock{
  height:104px!important;
  display:grid!important;
  grid-template-rows:repeat(3,30px)!important;
  align-content:space-between!important;
  justify-content:center!important;
  gap:0!important;
  padding:0!important;
  margin:0!important;
}
#hud #hud-tr .tr-dock>button{width:30px!important;height:30px!important;margin:0!important}
#hud #hud-tr .tr-dock>#btn-guide181{display:grid!important}
#minimap-wrap.round{align-self:center!important}
body.hud-tight #hud #hud-tr .tr-dock{height:84px!important;grid-template-rows:repeat(3,26px)!important}
body.hud-tight #hud #hud-tr .tr-dock>button{width:26px!important;height:26px!important}
body.hud-tight2 #hud #hud-tr .tr-dock{height:68px!important;grid-template-rows:repeat(3,21px)!important}
body.hud-tight2 #hud #hud-tr .tr-dock>button{width:21px!important;height:21px!important}

/* v2.0.3：恢复右侧三枚功能键原有触控尺寸，不再跟随 hud-tight 缩小。
   三键与圆形小地图组成同一 104px 高组件：36px 按钮，首尾与地图上下边缘齐。 */
#hud #hud-tr .tr-map{display:flex!important;align-items:flex-start!important;gap:8px!important;padding-top:0!important}
#hud #hud-tr .tr-dock,
body.hud-tight #hud #hud-tr .tr-dock,
body.hud-tight2 #hud #hud-tr .tr-dock{
  width:36px!important;height:104px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:space-between!important;
  padding:0!important;margin:0!important;gap:0!important;
}
#hud #hud-tr .tr-dock>button,
body.hud-tight #hud #hud-tr .tr-dock>button,
body.hud-tight2 #hud #hud-tr .tr-dock>button{
  flex:0 0 36px!important;width:36px!important;height:36px!important;
  min-width:36px!important;min-height:36px!important;
  padding:0!important;margin:0!important;box-sizing:border-box!important;
  display:grid!important;place-items:center!important;
}
#hud #hud-tr .tr-dock>button svg{width:20px!important;height:20px!important}
#hud #hud-tr .tr-dock>#mm-shape,#hud #hud-tr .tr-dock>#btn-mm{display:none!important}
#hud #hud-tr .tr-dock>#btn-guide181{display:grid!important}
/* 地图本体在紧凑 HUD 下也保持 104px，避免按钮列和地图再次错位。 */
body.hud-tight #minimap-wrap.round,body.hud-tight2 #minimap-wrap.round,#minimap-wrap.round{width:104px!important;height:104px!important}

/* v2.0.6：三枚圆钮保持 36px 可点尺寸；圆形地图增至 120px，三键上下端严格贴齐地图上下端，中间留 6px。 */
#hud #hud-tr .tr-map{align-items:flex-start!important;gap:9px!important}
#hud #hud-tr .tr-dock,body.hud-tight #hud #hud-tr .tr-dock,body.hud-tight2 #hud #hud-tr .tr-dock{
  width:36px!important;height:120px!important;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:space-between!important;padding:0!important;margin:0!important;gap:0!important;
}
#hud #hud-tr .tr-dock>button,body.hud-tight #hud #hud-tr .tr-dock>button,body.hud-tight2 #hud #hud-tr .tr-dock>button{
  flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
}
#minimap-wrap.round,body.hud-tight #minimap-wrap.round,body.hud-tight2 #minimap-wrap.round{width:120px!important;height:120px!important}
