/* 百人牛牛顶部信息区 v384：主操作置顶，走势与胜率分层。 */
#room.hundred-niu-mode .hundred-niu-room {
  grid-template-rows: 158px minmax(0, 1fr) 23px 52px 82px;
}

#room.hundred-niu-mode .hn-topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: 38px 92px;
  grid-template-areas:
    "banker banker"
    "trend rates";
  gap: 6px 7px;
  box-sizing: border-box;
  margin: 5px 4px 3px;
  padding: 7px 6px;
}

#room.hundred-niu-mode .hn-exit,
#room.hundred-niu-mode .hn-rules-btn {
  position: absolute;
  top: 8px;
  z-index: 6;
  width: 40px;
  height: 28px;
  padding: 0;
  font-size: 10px;
}

#room.hundred-niu-mode .hn-exit {
  left: 7px;
}

#room.hundred-niu-mode .hn-rules-btn {
  left: 51px;
}

#room.hundred-niu-mode .hn-apply-banker {
  grid-area: banker;
  align-self: start;
  justify-self: center;
  width: 118px;
  height: 34px;
  min-height: 34px;
  margin: 0;
  border-radius: 18px !important;
  font-size: 13px;
  line-height: 1;
}

#room.hundred-niu-mode .hn-trend {
  grid-area: trend;
  display: grid;
  grid-template-rows: 26px minmax(0, 1fr);
  min-width: 0;
  padding: 0 8px 2px 2px;
  border: 0;
  border-right: 1px solid rgba(255, 218, 105, .2);
  overflow: hidden;
}

#room.hundred-niu-mode .hn-trend header {
  box-sizing: border-box;
  height: 24px;
  margin: 0 0 2px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 218, 105, .16);
  border-radius: 5px 5px 0 0;
  background: rgba(0, 42, 28, .38);
}

#room.hundred-niu-mode .hn-trend header strong {
  font-size: 13px;
  line-height: 1;
}

#room.hundred-niu-mode .hn-trend header button {
  height: 20px;
  padding: 0 7px;
}

#room.hundred-niu-mode .hn-trend > div {
  grid-template-rows: repeat(4, 13px);
  align-content: center;
}

#room.hundred-niu-mode .hn-trend-row {
  grid-template-columns: 16px repeat(6, minmax(11px, 1fr));
  gap: 3px;
}

#room.hundred-niu-mode .hn-trend-row i {
  height: 13px;
}

#room.hundred-niu-mode .hn-rate-cards {
  grid-area: rates;
  align-self: stretch;
  gap: 5px;
  padding: 0;
}

#room.hundred-niu-mode .hn-rate-cards span {
  align-content: center;
  place-items: center;
  padding: 4px 2px;
}

#room.hundred-niu-mode .hn-rate-cards b {
  font-size: 12px;
}

#room.hundred-niu-mode .hn-rate-cards small {
  margin-top: 4px;
  font-size: 9px;
}

@media (max-width: 430px) {
  #room.hundred-niu-mode .hundred-niu-room {
    grid-template-rows: 154px minmax(0, 1fr) 23px 52px 82px;
  }

  #room.hundred-niu-mode .hn-topbar {
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: 36px 90px;
    padding-inline: 5px;
  }

  #room.hundred-niu-mode .hn-exit,
  #room.hundred-niu-mode .hn-rules-btn {
    width: 36px;
    height: 26px;
    font-size: 9px;
  }

  #room.hundred-niu-mode .hn-rules-btn {
    left: 47px;
  }

  #room.hundred-niu-mode .hn-apply-banker {
    width: 104px;
    height: 32px;
    min-height: 32px;
    font-size: 12px;
  }

  #room.hundred-niu-mode .hn-trend {
    padding-right: 5px;
  }

  #room.hundred-niu-mode .hn-trend-row {
    grid-template-columns: 13px repeat(6, minmax(9px, 1fr));
    gap: 2px;
  }

  #room.hundred-niu-mode .hn-trend > div {
    grid-template-rows: repeat(4, 12px);
    gap: 2px;
  }

  #room.hundred-niu-mode .hn-rate-cards b {
    font-size: 10px;
  }
}
